=== Aria22 is now known as Aria22|away [02:17] elopio are you around? [02:40] sergiusens: yup. [02:40] elopio can you look at the last PR comment I made (the tour one) [02:41] elopio and for your branches. It may be late, but I want to land them :-) [02:41] sure, the night is young. [02:43] there's a duplicated line in there :/ [02:50] elopio should we land #551? [03:15] so... 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:41] sergiusens: yes, we can move to the common setup in a different branch. [03:45] hum, the all-snaps servers are not working. [03:52] mhall119: 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] Launchpad bug 1590599 in Snapcraft "snapcraft prerequites are slow to resolve" [Undecided,New] [03:53] I will commit my changegs by the end of my night. Which of course should have been hours ago. [03:53] snappy is addicting as I thought it would be :) [04:35] sgclark: I'm so glad you are enjoying it :) [04:39] :) [05:11] erg nope, still lots of qt4 going across and I am tired! I will sort this out tomorrow. [05:23] On BeagleBone Black, only ttyO0, the console serial, is enabled. How do I enable the other available serial ports in Snappy? === Aria22|away is now known as Aria === Aria is now known as Aria|away === Aria|away is now known as Aria [09:30] mvo, the new dir you added in livecd-rootfs ... is that supposed to become the mountpoint ? [09:30] ogra_: its for zyga [09:30] ogra_: its a confusing name [09:30] ogra_: it should probably be "hostsystem" or something [09:30] why didnt you call it "zygas-dir" then :P [09:30] ogra_: :) [09:31] ah,, k ... other way around then [09:31] yeah, "host" or "hostfs" would be clearer [09:33] ogra_: lets rename it then, i will tell zyga [09:33] sounds good :) [09:33] Hi, 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 suggest [09:36] jennym, there are maven and jdk plugins for snapcraft (i guess you could use the latter) [09:37] there is a "java-hello-world" demo package at https://github.com/ubuntu-core/snapcraft/tree/master/demos, that might be of help [09:38] ogra_, thanks. I am using the ant plugin which works fine for a single source file/single jar file example. [09:44] ogra_, 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:45] and you modified the makefile and build.xml to take that into account ? [09:49] Yes. I also modified the wrapper script. [09:53] didrocks, didnt you package java stuff before ^^^ ? [09:53] * ogra_ didnt [09:55] elopio: 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] jamiebennett: FYI, those are the 3 we need in next snapcraft release ^ [09:55] ogra_: I didn't, what's up? [09:55] didrocks, well, just looking for someone who can help jennym [09:56] hum, classpath and so on, I'm afraid I don't know enough java about this [09:56] didrocks, OK, I presume sergiusens is well aware of these? [09:56] yeah, same here ... [09:56] maybe sergiusens or kyrofa may help (as they wrote the plugin) once around? [09:56] yeah [09:56] jamiebennett: with the above ping (the first PR was from some days ago, the last 2 from this morning) [09:57] didrocks, OK [09:57] jamiebennett: better if you double check as I guess we'll talk about release time and such, I didn't bother him with this yet === _morphis is now known as morphis === hikiko is now known as hikiko|ln [10:52] jamiebennett: FYI, sergiusens is awake (but hiding) ;) first PR merged! [10:52] didrocks, Ah [10:52] :) [11:02] didrocks, he is just sleepwalking [11:02] s/walking/merging/ [11:02] heh [11:02] I guess that's it, inded [11:03] indeed* [11:17] jamiebennett didrocks yes, I always hide in the mornings ;-) [11:19] ;) [11:19] the silent merger! [11:20] didrocks ogra_ I think lool or mvo or mterry wrote those maven and ant plugins fwiw [11:20] didrocks well if it is all good, what noise is there to make :-) [11:20] didrocks, probably with a quiet snoring ;) [11:20] sergiusens: indeed :) keep me posted on the next 2 PR btw [11:21] so that we can get 2.11 with the tour released and done [11:22] didrocks don't worry, if you EOD, we will do what we always do ;-) [11:24] sergiusens: ah nice, seems that it can recreate now the vm (I retried it already this morning, it couldn't) [11:25] * didrocks does the same on the other PR [11:26] didrocks, 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] didrocks yeah, we run out of instances fast, at least the jobs fail fast [11:26] jennym, cool ! [11:26] jennym: excellent! so default are good! :) [11:27] sergiusens: ah, ok, that's the reason [11:27] oh, 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 indeed [11:28] By adding a -cp argument to the java command in the wrapper script I was probably upsetting the previously set classpath. [11:29] I 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:32] hi [11:32] any tips how to fix this apparmor denied access http://www.hastebin.com/unuyijupiy.vhdl ? [11:33] gouchi_, i think popey filed a bug for exactly that [11:34] * ogra_ cant find the number atm [11:37] gouchi_, bug 1589671 [11:37] bug 1589671 in Snappy "apparmor failure on udev with opengl interface" [Undecided,Confirmed] https://launchpad.net/bugs/1589671 [11:37] ogra_: thank you === hikiko|ln is now known as hikiko [11:44] seb128, attente: have you seen anything like this already? https://files.gitter.im/ubuntu/snappy-playpen/9taf/ristretto.png [11:44] that's with https://github.com/ubuntu/snappy-playpen/tree/ristretto/ristretto [11:57] dholbach, seems like fonts missing [11:57] do you have the fontconfig hacks in your wrapper? [11:57] # Font Config [11:57] export FONTCONFIG_PATH=$SNAP/etc/fonts/config.d [11:57] export FONTCONFIG_FILE=$SNAP/etc/fonts/fonts.conf [11:57] seems you have [11:57] any command line error? [11:58] dont you need to generate a font cache too ? [11:58] or am i living in the past [11:59] iirc there used to be a command [11:59] seb128: that was exactly my answer gitter :p [12:00] update-fonts-dir ... [12:00] that was the one [12:00] and -alias [12:02] hmm [12:03] or was it fc-cache [12:05] ogra_, unsure, it works for other gtk and qt apps with no extra update command === vejmarie_ is now known as vejmarie [12:17] lundmar, bug 1566604 [12:17] bug 1566604 in Snappy "the snap command has no autocompletion" [Medium,Triaged] https://launchpad.net/bugs/1566604 [12:19] ogra_: not quite the same issue. [12:20] well, then file a new bug :) [12:20] snap is installed using apt and I assume its completion script is installed the convetional way. [12:20] ogra_, I copied the bits from the galculator snap [12:20] The questions is, how do we support enablement of completion scripts included in snaps? [12:21] question* [12:21] dholbach, right,, and i dont see any font cache generatin in that script ... thats why i mentioned it [12:21] ok [12:21] I've just create the "tio" snap. However, the system does not pick up on the completion script that the snap installs? [12:21] lundmar, ah, you mean /snap/bin binaries ? [12:21] created* [12:22] ogra_: exactly [12:22] well, it works for the binaries in there [12:22] ogra@styx:~$ free [12:22] free freecad.FreeCAD freetype-config [12:23] freecad.FreeCAD is from a snap [12:23] dholbach, do you want me to have a look to the font thing? [12:23] I think that was fixed in your version of the snap [12:23] sure, but the actual app completion is not working because the system only sources the apt installed completion scripts [12:23] I just filed https://github.com/ubuntu/snappy-playpen/issues/46 for this [12:23] (it cant autocomplete options though) [12:23] I'll try to fix it in both snaps [12:24] lundmar, well, file a bug :) === JanC is now known as Guest27912 === JanC_ is now known as JanC [12:24] ogra_: will do .) [12:25] :) [12:25] source /snap/*/current/usr/share/bash-completion/completions/* [12:26] well, i doubt we want it *that* generic [12:26] well, thats the gist of it :) [12:26] rather have snapd bind-mount /snap/*/current/usr/share/bash-completion/completions/ content to some system dir to de-couple it [12:27] i think that goes into the same category as manpages ... iirc jdstrand discussed the security side yesterday somewhere [12:27] (for manpages that is) [12:30] its kind of a layering issue, probably completion scripts or even man pages intalled by system (apt) should take precedence. [12:31] mhall119, nice bug, thank you! [12:31] in 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:37] 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 observation [12:37] does not [12:38] it runs as a container? [12:39] no [12:39] but with the core snap as execution environment [12:40] or s/execution environment/rootfs/ ... however you want to put it :) [12:41] well, I did discover the snap is basically a squashfs so I did learn that haha [12:41] so snaps gets mounted and run by snapd within its own environment. [12:41] got it [12:42] yeah ... and interfaces allow them to talk to the outside world (or to specific acpects of the core snap) [12:42] aspects [12:42] still, the current completion system is outside. So I would figure this case simply requires and exception to the rule [12:44] 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 system [12:44] so this needs very careful crafting [12:44] true [12:46] maybe the solution would be to qualify snaps somehow but that would kind of go against the agility of snaps I guess. [12:50] https://bugs.launchpad.net/snappy/+bug/1590767 [12:50] Launchpad bug 1590767 in Snappy "Support snap installed completion scripts" [Undecided,New] [12:52] good [12:54] since 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:56] container/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 seccomp [12:56] s/doc/docker/ [12:56] basically, we use whatever we can to make things secure :) [12:56] ok, so simple a process with limited resources ^^ [12:56] :) [12:56] simply* [12:58] lundmar: 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 confinement [12:59] lundmar: can you file a bug and add the snapd-interface tag? [12:59] unlike man this isnt easily solvable by having a snapped binary in this case though [12:59] I figure it is kind of the same issue, maybe worse for completion but both are outside the reach of containers [12:59] I can imagine ways to possibly do this [12:59] ogra_: right [12:59] lundmar: yes-- since it is a script [12:59] exactly [13:00] but imagine we had a new executable: snap-completion [13:00] so, how to trust the completion script? [13:00] imagine that runs under a restrictive apparmor profile [13:00] bash is modified to call snap-completion