/srv/irclogs.ubuntu.com/2016/06/09/#snappy.txt

=== Aria22 is now known as Aria22|away
sergiusenselopio are you around?02:17
elopiosergiusens: yup.02:40
sergiusenselopio can you look at the last PR comment I made (the tour one)02:40
sergiusenselopio and for your branches. It may be late, but I want to land them :-)02:41
elopiosure, the night is young.02:41
elopiothere's a duplicated line in there :/02:43
sergiusenselopio should we land #551?02:50
croephaso... been looking at snapcraft.yaml examples, it looks all of them are building from source... can you not simply say, install xyz packages from apt?03:15
elopiosergiusens: yes, we can move to the common setup in a different branch.03:41
elopiohum, the all-snaps servers are not working.03:45
sgclarkmhall119: sergiusens: in regards to https://bugs.launchpad.net/snapcraft/+bug/1590599 I have been working on that snapcraft.yaml and it seems faster. Unfortunately, that one I did much experimenting and it had some cruft.03:52
ubottuLaunchpad bug 1590599 in Snapcraft "snapcraft prerequites are slow to resolve" [Undecided,New]03:52
sgclarkI will commit my changegs by the end of my night. Which of course should have been hours ago.03:53
sgclarksnappy is addicting as I thought it would be :)03:53
elopiosgclark: I'm so glad you are enjoying it :)04:35
sgclark:)04:39
sgclarkerg nope, still lots of qt4 going across and I am tired! I will sort this out tomorrow.05:11
dougbOn BeagleBone Black, only ttyO0, the console serial, is enabled. How do I enable the other available serial ports in Snappy?05:23
=== Aria22|away is now known as Aria
=== Aria is now known as Aria|away
=== Aria|away is now known as Aria
ogra_mvo, the new dir you added in livecd-rootfs ... is that supposed to become the mountpoint ?09:30
mvoogra_: its for zyga09:30
mvoogra_: its a confusing name09:30
mvoogra_: it should probably be "hostsystem" or something09:30
ogra_why didnt you call it "zygas-dir" then :P09:30
mvoogra_: :)09:30
ogra_ah,, k ... other way around then09:31
ogra_yeah, "host" or "hostfs" would be clearer09:31
mvoogra_: lets rename it then, i will tell zyga09:33
ogra_sounds good :)09:33
jennymHi, I am trying out some java projects in snapcraft. I would like to build two separate jar files from two java files, one of which depends on the other. I have a wrapper script which invokes java : java -cp HelloWorld-helper.jar:HelloWorld.jar oata.HelloWorld. However this doesn't run under snappy. I get a Error: Could not find or load main class error. It looks like I shouldn't set the classpath in the script like this. Any suggest09:33
ogra_jennym, there are maven and jdk plugins for snapcraft (i guess you could use the latter)09:36
ogra_there is a "java-hello-world" demo package at https://github.com/ubuntu-core/snapcraft/tree/master/demos, that might be of help09:37
jennymogra_, thanks. I am using the ant plugin which works fine for a single source file/single jar file example.09:38
jennymogra_, Yes my example is based on that but I extended it by making a src2 directory which resulted in a second jar being generated.09:44
ogra_and you modified the makefile and build.xml to take that into account ?09:45
jennymYes. I also modified the wrapper script.09:49
ogra_didrocks, didnt you package java stuff before ^^^ ?09:53
* ogra_ didnt09:53
didrockselopio: sergiusens: once you are around, I think the "tour" part is done for next release. There are 3 related PR (note that the examples tests are failing in the image creation): https://github.com/ubuntu-core/snapcraft/pull/551, https://github.com/ubuntu-core/snapcraft/pull/558 and https://github.com/ubuntu-core/snapcraft/pull/559)09:55
didrocksjamiebennett: FYI, those are the 3 we need in next snapcraft release ^09:55
didrocksogra_: I didn't, what's up?09:55
ogra_didrocks, well, just looking for someone who can help jennym09:55
didrockshum, classpath and so on, I'm afraid I don't know enough java about this09:56
jamiebennettdidrocks, OK, I presume sergiusens is well aware of these?09:56
ogra_yeah, same here ...09:56
didrocksmaybe sergiusens or kyrofa may help (as they wrote the plugin) once around?09:56
ogra_yeah09:56
didrocksjamiebennett: with the above ping (the first PR was from some days ago, the last 2 from this morning)09:56
jamiebennettdidrocks, OK09:57
didrocksjamiebennett: better if you double check as I guess we'll talk about release time and such, I didn't bother him with this yet09:57
=== _morphis is now known as morphis
=== hikiko is now known as hikiko|ln
didrocksjamiebennett: FYI, sergiusens is awake (but hiding) ;) first PR merged!10:52
jamiebennettdidrocks, Ah10:52
jamiebennett:)10:52
ogra_didrocks, he is just sleepwalking11:02
ogra_s/walking/merging/11:02
didrocksheh11:02
didrocksI guess that's it, inded11:02
didrocksindeed*11:03
sergiusensjamiebennett didrocks yes, I always hide in the mornings ;-)11:17
didrocks;)11:19
didrocksthe silent merger!11:19
sergiusensdidrocks ogra_ I think lool or mvo or mterry wrote those maven and ant plugins fwiw11:20
sergiusensdidrocks well if it is all good, what noise is there to make :-)11:20
ogra_didrocks, probably with a quiet snoring ;)11:20
didrockssergiusens: indeed :) keep me posted on the next 2 PR btw11:20
didrocksso that we can get 2.11 with the tour released and done11:21
sergiusensdidrocks don't worry, if you EOD, we will do what we always do ;-)11:22
didrockssergiusens: ah nice, seems that it can recreate now the vm (I retried it already this morning, it couldn't)11:24
* didrocks does the same on the other PR11:25
jennymdidrocks, sergiusens, ogra_ : I have solved my problem. Actually I didn't need to change the wrapper script (this is in reference to the original java-hello-world example). When there are two jar files generated by the ant task, the are both added to the classpath by snapcraft.11:26
sergiusensdidrocks yeah, we run out of instances fast, at least the jobs fail fast11:26
ogra_jennym, cool !11:26
didrocksjennym: excellent! so default are good! :)11:26
didrockssergiusens: ah, ok, that's the reason11:27
sergiusensoh, sorry jennym I didn't even read what your problem was. I was just stating a fact that I didn't write the plugin. It does add every jar it builds to CLASSPATH indeed11:27
jennymBy adding a -cp argument to the java command in the wrapper script I was probably upsetting the previously set classpath.11:28
jennymI am now going to try another extension to the example by including a jar file which is built externally. So I might get back about that. Thanks all.11:29
gouchi_hi11:32
gouchi_any tips how to fix this apparmor denied access http://www.hastebin.com/unuyijupiy.vhdl ?11:32
ogra_gouchi_, i think popey filed a bug for exactly that11:33
* ogra_ cant find the number atm11:34
ogra_gouchi_, bug 158967111:37
ubottubug 1589671 in Snappy "apparmor failure on udev with opengl interface" [Undecided,Confirmed] https://launchpad.net/bugs/158967111:37
gouchi_ogra_: thank you11:37
=== hikiko|ln is now known as hikiko
dholbachseb128, attente: have you seen anything like this already? https://files.gitter.im/ubuntu/snappy-playpen/9taf/ristretto.png11:44
dholbachthat's with https://github.com/ubuntu/snappy-playpen/tree/ristretto/ristretto11:44
seb128dholbach, seems like fonts missing11:57
seb128do you have the fontconfig hacks in your wrapper?11:57
seb128# Font Config11:57
seb128export FONTCONFIG_PATH=$SNAP/etc/fonts/config.d11:57
seb128export FONTCONFIG_FILE=$SNAP/etc/fonts/fonts.conf11:57
seb128seems you have11:57
seb128any command line error?11:57
ogra_dont you need to generate a font cache too ?11:58
ogra_or am i living in the past11:58
ogra_iirc there used to be a command11:59
didrocksseb128: that was exactly my answer gitter :p11:59
ogra_update-fonts-dir ...12:00
ogra_that was the one12:00
ogra_and -alias12:00
ogra_hmm12:02
ogra_or was it fc-cache12:03
seb128ogra_, unsure, it works for other gtk and qt apps with no extra update command12:05
=== vejmarie_ is now known as vejmarie
ogra_lundmar, bug 156660412:17
ubottubug 1566604 in Snappy "the snap command has no autocompletion" [Medium,Triaged] https://launchpad.net/bugs/156660412:17
lundmarogra_: not quite the same issue.12:19
ogra_well, then file a new bug :)12:20
lundmarsnap is installed using apt and I assume its completion script is installed the convetional way.12:20
dholbachogra_, I copied the bits from the galculator snap12:20
lundmarThe questions is, how do we support enablement of completion scripts included in snaps?12:20
lundmarquestion*12:21
ogra_dholbach, right,, and i dont see any font cache generatin in that script ... thats why i mentioned it12:21
dholbachok12:21
lundmarI've just create the "tio" snap. However, the system does not pick up on the completion script that the snap installs?12:21
ogra_lundmar, ah, you mean /snap/bin binaries ?12:21
lundmarcreated*12:21
lundmarogra_: exactly12:22
ogra_well, it works for the binaries in there12:22
ogra_ogra@styx:~$ free<tab><tab>12:22
ogra_free             freecad.FreeCAD  freetype-config12:22
ogra_freecad.FreeCAD is from a snap12:23
seb128dholbach, do you want me to have a look to the font thing?12:23
dholbachI think that was fixed in your version of the snap12:23
lundmarsure, but the actual app completion is not working because the system only sources the apt installed completion scripts12:23
dholbachI just filed https://github.com/ubuntu/snappy-playpen/issues/46 for this12:23
ogra_(it cant autocomplete options though)12:23
dholbachI'll try to fix it in both snaps12:23
ogra_lundmar, well, file a bug :)12:24
=== JanC is now known as Guest27912
=== JanC_ is now known as JanC
lundmarogra_: will do .)12:24
ogra_:)12:25
lundmarsource /snap/*/current/usr/share/bash-completion/completions/*12:25
ogra_well, i doubt we want it *that* generic12:26
lundmarwell, thats the gist of it :)12:26
ogra_rather have snapd bind-mount /snap/*/current/usr/share/bash-completion/completions/ content to some system dir to de-couple it12:26
ogra_i think that goes into the same category as manpages ... iirc jdstrand discussed the security side yesterday somewhere12:27
ogra_(for manpages that is)12:27
lundmarits kind of a layering issue, probably completion scripts or even man pages intalled by system (apt) should take precedence.12:30
kyrofamhall119, nice bug, thank you!12:31
lundmarin my case I've just created a snap "tio" which includes a completion script. Would be nice if the completion script could be automatically enabled.12:31
ogra_lundmar, well, the thing is that the snap itself doesnt not actually run on your system but inside the ubuntu-core snap ... all logic to hook something up to the outside world needs to happen in snapd and under special security observation12:37
ogra_does not12:37
lundmarit runs as a container?12:38
ogra_no12:39
ogra_but with the core snap as execution environment12:39
ogra_or s/execution environment/rootfs/ ... however you want to put it :)12:40
lundmarwell, I did discover the snap is basically a squashfs so I did learn that haha12:41
lundmarso snaps gets mounted and run by snapd within its own environment.12:41
lundmargot it12:41
ogra_yeah ... and interfaces allow them to talk to the outside world (or to specific acpects of the core snap)12:42
ogra_aspects12:42
lundmarstill, the current completion system is outside. So I would figure this case simply requires and exception to the rule12:42
ogra_indeed, but you also want to prevent a malicious snap from shipping some completion rule that can exploit some security issue in the bash-completion system to take over  your host system12:44
ogra_so this needs very careful crafting12:44
lundmartrue12:44
lundmarmaybe the solution would be to qualify snaps somehow but that would kind of go against the agility of snaps I guess.12:46
lundmarhttps://bugs.launchpad.net/snappy/+bug/159076712:50
ubottuLaunchpad bug 1590767 in Snappy "Support snap installed completion scripts" [Undecided,New]12:50
ogra_good12:52
lundmarsince it is pre-runtime it is difficult to see a solution that does not somehow require trusting that the application completion script is good.12:54
jdstrandcontainer/not container... ehh... it isn't a doc container. it is a snappy container if you will-- we use a bunch of things from the container world and then wrap it in apparmor (which can be thought of as a container) and seccomp12:56
jdstrands/doc/docker/12:56
jdstrandbasically, we use whatever we can to make things secure :)12:56
lundmarok, so simple a process with limited resources ^^12:56
ogra_:)12:56
lundmarsimply*12:56
jdstrandlundmar: bash completion is an interesting problem. I'm not sure if you saw the 'Man-pages in snaps' thread on snapcraft@, but ogra is right. hooking into completion means there is a way to execute code outside of the snap's confinement12:58
jdstrandlundmar: can you file a bug and add the snapd-interface tag?12:59
ogra_unlike man this isnt easily solvable by having a snapped binary in this case though12:59
lundmarI figure it is kind of the same issue, maybe worse for completion but both are outside the reach of containers12:59
jdstrandI can imagine ways to possibly do this12:59
jdstrandogra_: right12:59
jdstrandlundmar: yes-- since it is a script12:59
lundmarexactly12:59
jdstrandbut imagine we had a new executable: snap-completion13:00
lundmarso, how to trust the completion script?13:00
jdstrandimagine that runs under a restrictive apparmor profile13:00
jdstrandbash is modified to call snap-completion <script> if <script> is in say //var/lib/snapd/completion13:00
jdstrandor something13:01
jdstrandbasically, we get bash to run the script confined13:01
jdstrandI'm not saying that is the way we would do it, but I think there are possibilities for making it work13:01
lundmarbash ro to run the script confied? what does that mean? in the end the completion script will reside in the memory of the running bash session right?13:03
lundmarconfined*13:03
lundmarI mean, once the bash completion script is sourced by the bash session it can do whatever it likes, just like the system installed scripts.13:04
ogra_but your confined script would parse it first (under heavy restrictions)... and also run some content checks before it gets to bash13:05
lundmarI think the question is, how safe are regular completion scripts and should snap comletion scripts be safer?13:07
lundmaryou can make checks if you like but any safeguards I suspect will be easy to circumvent13:08
lundmarit is a tough seurity problem but snaps without man pages and completion scripts quickly gets painful I think.13:12
=== JanC_ is now known as JanC
lundmarsecurity*13:12
ogra_well13:13
ogra_that really depends on the target audience13:13
ogra_i guess 98% of computer users in the world do not know what a manpage is13:14
lundmarsure, and for the point and click end users it is a non-issue.13:15
lundmarbut for experienced users it is13:16
lundmarI figure snap caters for both13:16
ogra_well, curretly snap focuses on attracting developers by making their life as easy as possible ... long term i think the point and click users are the target ...13:19
ogra_but for the first we need to give the devs a comfortable way to ship manpages and completion scripts ... so it definitely is part of it13:19
ogra_even if both features will pprehaps never be used by the final target audience13:19
lundmarwouldnt be a proper package system without it ;)13:20
ogra_*perhaps13:20
ogra_well, i think since a long time that documentation should not be part of a package :)13:20
davidcallesergiusens: can you join us in 10-ish minutes on a hangout to talk about the blog post? (if not, that's alright, email will do)13:20
ogra_but thats personal opinion13:21
lundmarwell, it is a set that needs to match so decoupling those is troublesome.13:21
ogra_not if your packaging system would for example have an automated way to turn your shipped docs into versioned online docs and simply rip them out from the package13:23
lundmaryou cant trust online to be "online", bad idea - you can always trust man :)13:24
ogra_i often enough find myself googling for a manpage instead of using my terminal ... and in the end read it on manpages.ubuntu.com13:25
ogra_(though in the majority of cases where i need docs --help is even enough and that doesnt need any special system)13:26
lundmartsk tsk, and the you find an out of date man page and you don't even notice it.13:26
lundmarthen*13:26
ogra_manpages are kind of and intersection between --help and a proper hwto13:26
ogra_*howto13:26
lundmarman pages are much more complete while --help is more or less just a listing.13:29
ogra_yes, thats what i meant with "intersection"13:29
lundmarI wouldn't do without manpages13:30
lundmarneither completion scripts ^^13:30
ogra_:)13:30
lundmaranyway, I've created the bug report. I don't expect to see a solution due to the potential security issues.13:36
jdstrandand I commented13:36
jdstrandI think there might be a way to do it, but it would require a bit of design and engineering (and would need to be prioritiezed)13:37
lundmarit surely requires some bash magic and maybe even internals changes13:42
* jdstrand nods13:44
lundmarI guess if you could use a pipe to somehow bridge the normal bash session with a confined bash session running the actual completion function that might do the trick13:45
lundmarbut jez, it would take time to dig into that crusty ol code base of bash ^^13:45
lundmaronly problem is, what if the string feed is malicious?13:47
lundmartricky tricky tricky :)13:47
jdstrandindeed13:49
seb128what does "no handler to manage source" mean from snapcraft?13:50
jdstrandwe'd probably have to have an aggressive output filter, but I would think legitimate completion commands would pass that filter easily13:50
lundmarjdstrand: probaly filtering out non-readable chars would solve the problem of malicious feed from the confined session13:51
lundmarjdstrand: oh, we thought the same hehe13:51
jdstrandnon-readable, shell metachars13:51
jdstrandyep13:51
lundmarso, in the end it will depend on the state of bash internals ^^13:52
kgunnjdstrand: i finally got round to a pr for mir13:58
kgunnhttps://github.com/snapcore/snapd/pull/129913:58
kgunni see zyga is out...13:58
kyrofaseb128, it means you put something in the `source` key that snapcraft can't figure out14:00
kyrofaseb128, or it uses a version control system that it doesn't currently support (e.g. svn)14:00
seb128kyrofa, thanks, the error could be more descriptive :-)14:02
lundmarwhat, snapcraft doesn't support CVS?? :D14:03
kyrofaseb128, please log a bug! You're right, it could be more helpful14:03
seb128kyrofa, I had "source: https://git.gnome.org/browse/gucharmap" works with "source-type: git"14:03
kyrofaseb128, ah, yeah autodiscovery problem14:04
kyrofaseb128, it doesn't hit the URL and figure it out, it does it by pattern on the source itself14:04
kyrofaseb128, the only way it figures git out without `source-type` is if it ends in .git14:04
seb128kyrofa, if the url contains "git" it could assume it's a git repo14:04
seb128but fair enough14:05
kyrofaseb128, also fair14:05
seb128at least the message could state "can't figure source type, please specify one using source-type:"14:05
kyrofaseb128, agreed14:05
ogra_lundmar, write a plugin, patches accepted !14:06
lundmarCVS is an abomination to be left behind.14:08
lundmarchocked to still dicsover foss projects using it14:09
seb128kyrofa, https://bugs.launchpad.net/ubuntu/+source/snapcraft/+bug/159079714:09
ubottuLaunchpad bug 1590797 in snapcraft (Ubuntu) ""no handler to manage source" is not an helpful error" [Undecided,New]14:09
seb128kyrofa, unsure if I should open another one for the " if the url starts with "http(s)://git" it could probably be autoguessed as being a git source" part?14:09
seb128kyrofa, I would probably got as far as 'if contains "git"' but I guess 'start with http://git..." is a safe bet14:11
seb128if you provide a svn repo on a git.something url you are asking for issues :p14:11
croephaanyone here having trouble running docker containers under privileged mode? im getting `Error response from daemon: Cannot start container test: open /dev/dri: permission denied` I already tried chmod a+rwx /dev/dri  with no avail... any suggestions?14:21
ogra_oooh14:26
didrocksjdstrand: hey! in case you didn't notice, I asked a contributor to open a bug he's having on neovim: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/159072014:26
* ogra_ just noticed the "Price" column in snap find output14:26
ubottuLaunchpad bug 1590720 in snapd (Ubuntu) "neovim snap package freezes when saving a file (fchown)" [Undecided,New]14:26
ogra_heh, old topic14:27
zygao/14:31
zygahello snappers :)14:31
ogra_yo14:31
didrockshey zyga!14:33
dougbGood morning all14:41
dougbOn BeagleBone Black, only ttyO0, the console serial, is enabled. How do I enable the other available serial ports in Snappy?14:41
didrocksogra_: do you know? ^14:45
ogra_didrocks, i dont, sorry ...14:46
ogra_seems you need to set a kernel cmdline var14:46
ogra_hmm or not ... that seems to only work with hacked kernels that suppport capemgr14:47
ogra_ours kernel is plain mainline without these patches14:48
croephaso, is the snap that is a part of the 15.04 ubuntu core release the same snap that is part of the ubuntu 16.04 (non core) release?14:49
dougbogra_:Does that mean we’ll have to wait for built-in functionality to be able to connect through the other serial ports?14:50
ogra_dougb, well, i fear you would need a different kernel ... or find out how to enable UARTs on a non capemgr kernel14:51
dougbThat sounds like there are currently no plans for implementing this.14:54
ogra_well, someone should probably create an rcn-ee kernel for the beaglebone14:54
ogra_based off his tree14:54
ogra_(building a kernel snap is rather trivial ... )14:55
croephaim just jumping in here mid conversation, but if there is a kernel that works you can diff the configs to find out what you need to customize, might make thing easier14:56
ogra_well, this is more about patch sets than configs14:57
ogra_the beaglebone uses a patchset that has never made it upstream14:57
croephaahh ok14:57
ogra_the only kernel we have in the store for beagle is rather close to mainline (the ubuntu generic kernel built for armhf actually ... )14:58
ogra_so someone would have to roll a kernel with the capemanager patches specifically for the beaglebone and push it to the store14:59
jkridnerogra_: those patches have gotten pretty small now that device tree overlays are mainline.14:59
croephaso, is the snappy that is part of the 16.04 desktop release significantly newer than what is available in the latest core release? (15.04)15:01
ogra_jkridner, ah, but i guess not in 4.415:02
jkridnernot completely.15:02
ogra_croepha, yes, there were no core images for 16 yet15:02
ogra_they are about to happen soon15:03
ogra_everyone focuses on desktop atm so people can create snaps ... images come once desktop has all the basics15:03
croephaogra_, I can wait, im just trying to understand the current state of things, would like to play around, but was confused by the differences between desktop and core15:04
ogra_well, 15.04 was rather a first shot ...15:04
ogra_the 16 series is the real thing ... and will be around for 5 years15:05
jdstranddidrocks: responded15:10
didrocksjdstrand: thanks a bunch! :)15:10
jdstrandnp15:12
dougbogra_: and the rest, thanks for the feedback. I’ll let you know what we come up with.15:12
ogra_if you need any help, dont hold back your questions ;)15:12
dougbGreat!15:12
croephait seems like docker is missing from "snap find" on 16.0415:13
ogra_yep15:13
croephahaven't gotten to that one yet?15:13
ogra_yeah, i guess ...15:13
ogra_not sure who does it ...15:13
ogra_lxc and lxd are also missing15:14
didrockselopio: hey! I don't see other command integration tests in integration_tests/* (apart from the lifecycle ones, but nothing about build and so on…), am I looking at the right directory to add it?15:21
aatchisonHmm, I canna get ubuntu-core to run on the pi 2 or 3 right now...15:24
aatchisonAre there any crazy daily builds or ultimate unstable beta images I could get my hands on? :D15:25
ogra_aatchison, http://people.canonical.com/~mvo/all-snaps/ ... a bit outdated though15:25
ogra_you can also use the ubuntu-device-flash from there to create more recent images15:26
aatchisonawesome! Thanks15:26
ogra_note though that the gadget and kernel stuff is in flux ... so you will likely have to re-flash before we release the first official images15:26
aatchisonThat's quite alright. I'm developing on the edge of chaos as well15:28
ogra_:D15:29
croephaso, in a snapcraft.yaml, is there a way to simply say, "install these apt packages" ?15:29
ogra_yeah, stage-packages15:30
croephacool, thanks15:30
mhall119sergiusens: I'm not the only one who's been bit by https://bugs.launchpad.net/snapcraft/+bug/159083415:37
ubottuLaunchpad bug 1590834 in Snapcraft "cleanbuild leaves abandoned LXC containers" [Undecided,New]15:37
ogra_mhall119, shhh ... dont reveal our secret contracts with seagate to trick people into buying larger disks fast !15:39
mhall119also, is snapd supposed to remove old versions of snaps?15:40
ogra_it does if you snap remove15:40
mhall119but what if I'm just installing new versions?15:40
ogra_it seems to not do it when you manually sideload snaps over and over15:40
mhall119I currently have 5 versions of plank loop-mounted15:40
ogra_right15:40
ogra_i think thats a bug15:40
mhall119ogra_: will it at least do it if you install updates from the store?15:41
ogra_no idea, i know they are all wiped if you snap remove15:41
mhall119yeah, but that's not ideal :)15:41
ogra_i think if you have the store invlved you will always only have two revisions installed15:41
ogra_(ICBW though)15:41
davidcalleWell, first you collect planks, then you build cubes, then houses...15:42
mhall119ogra_: https://bugs.launchpad.net/snapcraft/+bug/1590842 for that one15:42
ubottuLaunchpad bug 1590842 in Snapcraft "snapcrafting eats up disk space /dev/loop" [Undecided,New]15:42
davidcalleOh sorry, it's the snapcraft channel, not minecraft :p15:42
mhall119davidcalle: :-P15:43
sgclarkyeah I have been snapcrafting tons, and I woke up this morning to a very cranky hard drive15:43
ogra_we can probably get you a discount at seagate for a nice little raid array :)15:44
sgclarklol15:44
ogra_:)15:44
sgclarkI am eying a partition I do not use much anymore haha15:44
didrockselopio: I went ahead and added one in the integration_tests/ dir15:47
kyrofasgclark, the bug you just logged-- that's from `snap try`, yes?15:52
sgclarkno, have not heard of snap try15:52
sgclarkthat is snap install15:52
kyrofasgclark, oh *cough* ignore me15:53
sgclarkwhat is snap try?15:53
* sgclark tries snap try next build15:53
kyrofaSo you're just installing the built snaps and finding that they stick around forever essentially?15:53
sgclarkyes15:53
sgclarkremove does indeed clear that all up, I am starting to get me disk space back lol15:54
kyrofasgclark, `snap try` will let you run directly out of the snap/ directory15:54
sgclarkah ok15:54
kyrofasgclark, but it's not perfect yet-- if you `snap try` something and then `snapcraft clean` it up, snapd barfs all over you15:54
sgclarkoh haha15:54
kyrofasgclark, snapd will automatically clean that up soon, but for now, be aware: if `snap try`ing, `snap remove` it before `snapcraft clean`ing15:55
sgclarkwould not be my first barf, but noted :)15:55
sgclarkk15:55
kyrofaRegarding the snaps hanging around forever, that surprises me a little. I swear I saw code that only kept three revisions15:55
kyrofaBut maybe that doesn't apply to sideloaded snaps15:56
ogra_kyrofa, well, has that landed in xenial yet ?15:56
kyrofaogra_, snap try?15:56
ogra_the cleanup code15:56
sgclarkoh yeah I am in xenia;15:56
sgclarkxenial*15:56
kyrofaogra_, heh, sorry, which cleanup code? Cleaning up snap try, or cleaning up old revisions?15:56
ogra_old revisions15:57
ogra_:)15:57
sgclarkok all cleaned up lol15:57
kyrofaogra_, I saw it like a month ago, so I'd say yes. But it may have been removed since then :P15:57
ogra_heh, or renamed and nobody knew :)15:57
kyrofaMaybe. I'll check15:58
kyrofaAnyway, sgclark thanks for the report15:59
sgclarknp, happy to help15:59
kyrofaogra_, sgclark sounds like I saw old code that didn't apply anymore. It's planned though. I'm going to reassign the bug to snapd16:04
ogra_yeah, i knew it was planned and i saw it discussed ... but it is definitely still here :)16:04
aatchisonOk. I'm going to dig in as deep as I can here. I want to get my launch pad stuff all set up, including building debs.16:05
kyrofaHey aatchison!16:08
aatchisonhey!16:08
ogra_hmm ... why dont we have a wine plugin yet ...16:15
ogra_having such a thing would open up a completely new world for delivering windows apps to users :)16:16
sgclarkooh indeed16:16
ogra_(but also a can of legal worms most likely )16:16
sgclarklol16:17
sgclarkthere is that16:17
popeyi tried packaging wine itself16:25
popeyit almost works, might play again over the weekend16:26
ogra_yeah, having it as a template to actually bundle apps might be interesting16:31
ogra_you can bundle the actually working wine version then16:31
croephais there an online search for the snappy store?16:41
sergiusensseb128 thanks for those bug reports, really helpful stuff!16:57
seb128sergiusens, yw!16:58
wililupyQuestion: Is there a way to build a kernel snap from a deb package?17:03
=== Aria is now known as Aria|away
=== Aria|away is now known as Aria
=== Aria is now known as Aria22
jdstrandniemeyer: hi! would you mind commenting on https://bugs.launchpad.net/snappy/+bug/1590679/comments/6 ? I don't need it this second but would like to work on it tomorrow19:47
ubottuLaunchpad bug 1590679 in snapd (Ubuntu) "Apps can't own session bus names (unity7 interface)" [High,Confirmed]19:48
niemeyerjdstrand: Will have a look later today19:49
jdstrandawesome, thanks19:49
niemeyerjdstrand: I need to step out now or will miss the window of sun :)19:49
jdstrandget some vitamin D! :)19:49
sergiusenselopio should this work `super(snapcraft.BasePlugin, self).build()` ?19:55
elopiosergiusens: I'm wondering about the arguments of super in there. I suppose you are adding that because you are not in the snapcraft.BasePlugin class ?20:07
elopioanyway, if you are not in the build method, and you can't just call it super().build(), it will probably do weird things. It might work for what you need, but I doubt it's a good idea.20:11
sergiusenselopio I inherited a plugin for most of what it does, but I want to skip the parent's implementation and call the grandparent directly20:12
elopiosuper().super().build()20:16
elopiosergiusens: it's not so good either, you should doubt about your inheritance tree at this moment, because it's not a tree. But should work.20:17
sergiusenselopio so I'll just copy then20:29
josephtsergiusens: if you can modify the parent code you could add a method that invokes the grandparent's build() and nothing else20:38
sergiusensjosepht as super_build() :-)20:46
sergiusensjosepht feels dirty, but I guess that works20:46
sgclarkhi all, I see this quite often http://paste.ubuntu.com/17155796/ and I have network and network-bind plug, what am I missing?20:51
sgclarkmost of our stuff has a newstuff feature for addons and the like20:52
sergiusenselopio kyrofa https://github.com/ubuntu-core/snapcraft/pull/56121:01
sergiusenssgclark that is dbus, right? network-* won't solve that, but jdstrand can21:01
sergiusens:-)21:01
sgclarklol21:02
sgclarkand yes21:02
sgclarkdbus21:02
sergiusenssgclark for now I guess devmode is the fastrack path21:02
sgclarkyeah that works21:02
wililupyHow do I get ethtool and bridge-utils to be native? Should I add an app: section to my yaml to allow me to run these? also does snappy not look for other network devices other than ethx?21:33
wililupyI added a udev rule to the system, but it doesn't seem to be working.21:34
=== eriow is now known as erio
jdstrandsgclark: you need to specify 'plugs: [ network-manager ]' and after install do: sudo snap connect <snapname>:network-manager ubuntu-core:network-manager22:43
sgclarkjdstrand: ok thank you22:44
jdstrandsure thing22:44
jdstrandI'm stepping away now, but I read backscroll22:44
=== wililupy is now known as wililupy|away
=== wililupy|away is now known as wililupy

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!