=== devil is now known as Guest61712 [00:25] Well, I learned that I need to do 'snapcraft assemble' to build the actual .snap, but when I do filesets to copy my binaries from stage/ to snap/ I keep getting an "Operation not Permitted" [00:27] example6: You only need "snapcraft" unless you want the process to end prematurely at some stage. [00:29] example6: I bet "strace -e trace=file -f snapcraft" will show you what you're doing wrong. [00:31] example6: And/or, "snapcraft --debug" [00:35] --debug doesn't seem to be available for me, but the trace showed me that it had been looking for my files in parts/test/install which they never were copied to. I have successfully made a snap now which is pretty much all I need. Thanks @qengho === Aria22 is now known as Aria22|away [01:00] So in my snapcraft.yaml I specified daemon: simple and a command: property hoping that this would be registered as a snappy service and start automatically, but that seems not to be happening. Am I missing something big here? === Guest61712 is now known as devil_ [06:42] kgunn: re [07:50] hello! [07:50] I've snapped a cli-tool [07:50] how can I open the man pages of a snap? [07:58] svij: there's a bug open on this, currently man pages are not supported [07:58] svij: it's also non-obvious how it should behave [07:58] zyga: alright [07:59] svij: e.g. what should be the man page name? $snap.$app [07:59] svij: original? [07:59] svij: should non-command man pages be alloweD? [07:59] svij: etc, ideas welcome, we honestly don't know yet [07:59] zyga: that what I wondered too === Trevinho_ is now known as Trevinho === Aria22|away is now known as Aria === JamesTait is now known as Guest96415 === Guest96415 is now known as JamesTait === Aria is now known as Aria|away === vrruiz_ is now known as rvr [09:35] hi [09:36] if I declare a plug in my snapcraft.yaml which I use directly in the same snap : after installation is the plug supposed to be printed by "snap interfaces" command? [09:36] (because right now it's not :o) [09:45] zyga: man pages> I would say that the name should not be mangled; instead, rely on man-db's existing support for inferring MANPATH based on PATH [09:45] stuff other than section 1/8 is indeed trickier [09:45] ysionneau: what interface is the plug? [09:45] cjwatson: hmm, how does that work? [09:46] cjwatson: $PATH/../man/ or something? [09:46] zyga: basically [09:46] cjwatson: interesting, thanks for this idea! [09:46] zyga: also $element/../share/man [09:50] ysionneau: can you please share your snapcraft.yaml [09:53] zyga: sure! thanks a bunch :) http://pastebin.com/ZK8nRftb [09:59] Hey ! I have some issue with the ubuntu "myapps" : "Core" vs "Personnal". I have .click packages for ubuntu phones, and I am also publishing some snap package. seems click and snap got merged ... [09:59] I mean, the same webpage display release of click and snap, is this normal ? [10:06] ysionneau: looking [10:06] ysionneau: old security is gone [10:06] ysionneau: the plug is parsed and thein ignored [10:06] ysionneau: you cannot run unconfined with old securiry anymore [10:09] JamesTait: ^ slvn you might be able to answer [10:10] somehow, based on the naming, .snap package are added under on the same package of my .clik packages [10:10] is there a way to have snapcraft syntax check my .yamls? [10:10] It actually makes sense! don't know wheter this is wanted or not [10:12] I'm not aware of any merge... it wouldn't really make sense, with the package file formats being different (.deb for clicks, squashfs for snaps). [10:12] also, my click package are targetted to ubuntu phones (ARM), wherease the .snap are Amd64 [10:13] Sounds like a bug to me. [10:14] JamesTait, then my account is a little screwed-up now .. [10:15] JamesTait, do you have some kind of admin account to see what's going on ? [10:15] I confirm that on my dev page, I see under "Overview" both revision of click and snap [10:16] Hmm... I see snaps under my Ubuntu Core tab and clicks under my Ubuntu Personal tab, but there's also a snap package that was shared with me on the Ubuntu Personal tab. So something's not right. [10:17] JamesTait, it's based on the naming, my apps that have the same name are merged when published for the first time [10:18] slvn, can you point me to an example package? [10:19] I have limited access, so won't be able to fix anything, but might be able to shed light on it for those who do. [10:19] JamesTait, https://myapps.developer.ubuntu.com/dev/click-apps/773/ [10:19] a mahjong game [10:20] snap is not published, click is published months ago [10:20] both are merge .. [10:20] 'd === Aria|away is now known as Aria [10:21] slvn, looking into it for you. [10:23] thanks ... [10:24] slvn, OK, there's another user seeing the same thing, so it's not just a problem with your account. [10:25] JamesTait, ok ... [10:28] slvn, we're looking into the root cause - could you file a bug for it in the meantime? https://bugs.launchpad.net/software-center-agent/+filebug [10:32] JamesTait, here it is: https://bugs.launchpad.net/software-center-agent/+bug/1577717 [10:32] Launchpad bug 1577717 in Software Center Agent "Published snap package appears under the list of click packages" [Undecided,New] [10:33] Thanks, slvn, we're on it. [10:33] ok great ! === Aria is now known as Aria|away === Aria|away is now known as Aria === Aria is now known as Aria22 [11:03] jdstrand: https://github.com/ubuntu-core/snappy/pull/1117 [11:03] zyga: how do we run unconfined now? [11:04] --devmode [11:04] ysionneau: http://www.zygoon.pl/2016/04/snap-install-devmode.html [11:12] zyga : ah thanks! [11:26] zyga: ack but it will be a little while [11:26] * jdstrand -> long meeting [11:26] jdstrand: sure [11:28] Hi guys [11:28] I have a problem with an library that i want to use. [11:28] The library does only support Soft float on my raspberry pi 3 [11:29] Is there any possibility to change snappy from Hard float to Soft Float? [11:30] noizer: snappy doesn't care about binaries you run [11:30] noizer: does that library run without snappy? [11:32] zyga: No I tried to install it on a raspberry pi with ubuntu mate. But there I had a problem with hard floating :s [11:33] noizer: can you be more specific? [11:33] zyga: i'm not familiar with hard and soft floating [11:33] noizer: can you pastebin anything? [11:34] zyga: Do you know Nuance the tts egine. They support only there library on ARM processors with soft floating [11:34] noizer: nope [11:34] i doubt it will work [11:34] Good morning [11:34] you might be able to ship a complete armel chroot inside your snap ... perhaps ... [11:35] softfloat means that floating point is emulated, so it should work anywhere (slowly) [11:35] (but you would need to use a dristro that even provides armel ... armel is dead in ubuntu since 9.04 or so) [11:35] though if you want to link to it with a armhf gcc you won't have luck [11:35] zyga, you cant exec armel binaries on armhf systems [11:35] noizer: ask Nuance to rebuild [11:35] ogra_: are you sure? why not? [11:35] yes i'm sure [11:36] ogra_: curious, why is that? [11:36] you can multiarch ... [11:36] ah [11:36] but that means *all* libs [11:36] well, that's okay I was just curious [11:36] right that's exactly what I expected [11:36] it's just a different abi [11:36] and it means you cant use ubuntu [11:36] right, so you *can* execute but you need to bag all the bit you need [11:36] the cpu won't care [11:37] cpu and kernel wont care (if it is a hardfloat capable cpu) ... [11:37] right [11:37] but you need to ship a full chroot inside your snap [11:37] noizer: long story short I'd recommend really asking those folks for a build [11:38] (and all this is 100% theoretical ... i dont think anyone ever actually tesetd this) [11:38] yep [11:38] zyga: We asked for it but it will cost us 250 000 euro for a rebuild with all the features we want [11:38] noizer: for an armhf rebuild? [11:38] wow they are picky :) [11:38] zyga: yes [11:38] wow ... thats like ... a lot of money for 5min of work [11:38] noizer: unless they hand coded that with assembly that's typically "make" on an ubuntu install :/ [11:39] yeah [11:39] * zyga smeslls marketing BS (not noizer's in any way) [11:39] noizer: quick idea [11:39] zyga I don't know how they builded it but yeah it is very expensive to rebuild [11:40] noizer: get a raspberry pi 1 image, put it on your pi2's home directory [11:40] and chroot [11:40] if that works we can snap it [11:40] noizer: that's total BS they just want money :) [11:40] yeah, it is definitely just "rebuild with ubuntu toolchain" [11:40] i.e pull your source tree onto an ubuntu armhf and build it ... [11:40] ogra_: we even have nice cross toolchains packaged [11:41] so they don't even need a board [11:41] yeah [11:41] well [11:41] depends on the depends ;) [11:41] * zyga will start charging $0.25M for his python rebuilds now ;) [11:41] ogra_: yeah true [11:41] (you really wouldnt want to cross build a gui app that uses a lot of libs ... ) [11:41] wxgtk ;) [11:42] zyga how does it works then with the image of rpi 1 [11:42] noizer: pi1 is using an older cpu [11:43] noizer: e.g. a raspian image is compiled for armel [11:44] zyga ok then put it on my rpi3 and compile and install it on that image? [11:46] noizer: compile everything on your pi1 [11:46] noizer: make sure it works there [11:46] noizer: then grab the whole sd card and tarball it [11:46] noizer: then put that tarball on a pi3 [11:46] noizer: unpack it, you may need to tweak some things (bind mount /proc etc) [11:47] noizer: then chroot [11:47] noizer: check that it still works [11:47] noizer: if you get that far we should be able to snap it [11:47] * zyga looks forward to "enterprise" software [11:48] if the above doesnt work you should always be able to use a real container [11:48] lxc or docker ... [11:49] So what will docker do then? [11:49] noizer: don't worry about docker [11:49] noizer: try what I said [11:49] ps Is there not a way to make snappy Soft floating? [11:51] zyga Ok how will it works then with my other software because my software needs to connect with the libaray. [11:52] you would have to ship it as softfloat too ... likely in the snap snap [11:52] *same snap [11:53] (geez ... /me curses freud) [11:53] Damn thats very hard then :s [11:54] (in a year from now the above sentence will be "snap snap, snap snap snap, snap !" .... ) [11:54] noizer: why is that hard? [11:55] noizer: it's not pretty, essentially shiping a foreign distro in a snap [11:55] noizer: but since the CPU itself allows this it would not be much different from running raspbian natively [11:56] noizer: I guess it depends on what you want? prove that it's possible for a demo? use it "in production" [11:56] yeah, not m,uch different from running i386 chroots on amd64 [11:56] yeah [11:57] * zyga curses timezones [11:57] is UOS starting in two hours from now? [11:59] zyga, indeed [11:59] thanks kyrofa [12:00] zyga, plenary opening in two hours, sessions start in three [12:05] Hey ogra_ I've been investigating the ROS failure on xenial-- the one that was due to locale settings. On Ubuntu Core, at least the image I have, LANG=C.UTF-8. However, on Xenial LANG=en_US.UTF-8. ROS runs fine with C.UTF-8 but errors out with en_US.UTF-8 (like this: http://pastebin.ubuntu.com/16200846/ ) [12:06] ogra_, is that just a difference between ubuntu core and the desktop? [12:06] zyga Ok I will try it tomorrow because then I got my rpi1 with me [12:07] noizer: good luck [12:07] zyga If i have some troubles can you help me out then? [12:07] kyrofa, we ship no locales at all on the image ... [12:07] noizer: i'll be attending UOS but I can try [12:07] UOS? what does that mean? [12:07] noizer, ubuntu online summit [12:08] heh [12:08] noizer, http://summit.ubuntu.com/ [12:08] I just tried to install a snap [12:08] sudo snap -i ... [12:08] usually the place weher we do planning for the next release ... [12:08] old habits die hard [12:08] fix that 1 [12:08] ! [12:08] (by adding -i ;) ) [12:08] ogra_: maybe I'll implement -i as a hidden command [12:08] also printing "we feel your pain" ;-) [12:08] yeah :) [12:11] ogra_, that explains the C then, I suppose. Right? [12:11] right, we ship whatever libc includes by default ... which is C and C.UTF-8 [12:12] there is no additional locale handling in the rootfs ... you have to do that inside the snap itself if needed [12:13] ogra_, right, I have the opposite problem-- the locale on the xenial desktop is busting me. So I guess I should just set C.UTF-8 in my snap, huh? [12:13] (we also dont ship keymaps or fonts that support UTF8 ) [12:13] I don't know why it's not working though, which is frustrating [12:13] kyrofa, yeah [12:13] Stupid boost and its cryptic errors [12:15] morning [12:15] Morning sergiusens :) [12:17] * zyga triaged https://bugs.launchpad.net/snappy/+bug/1577472 [12:17] Launchpad bug 1577472 in Snappy "The remapped $HOME directory shows as read-only to applications running in a snap" [Undecided,Incomplete] [12:18] ogra_: btw, do you perhaps know what compells gnome-terminal (or shell running inside it) to interpret, e.g. alt+l as ł (on my locale) [12:18] ogra_: I'm asking because it seems to stop as soon as I run a snap [12:18] (not all snaps, but hello world seems to be affected) [12:18] hopefully all snaps :) [12:18] not all snaps :) [12:18] oh ? [12:19] ogra_: build this https://bugs.launchpad.net/snappy/+bug/1577472 [12:19] Launchpad bug 1577472 in Snappy "The remapped $HOME directory shows as read-only to applications running in a snap" [Undecided,Incomplete] [12:19] ogra_: (snapcraft.yaml inline) [12:19] ogra_: that snap still works! [12:19] as in I get ł [12:19] we explicitly do not chip any locale support, keymaps or console fonts [12:19] (that would likely easily triple the size of the rootfs ) [12:19] ogra_: but how does it work, gnome-terminal is from the classic ubuntu side [12:19] ogra_: so it has the fonts [12:19] ogra_: I don't know how input handling works [12:20] but not the locale info [12:20] but I suspect it's also on the teminal side [12:20] locale, right I get how locale works [12:20] we only support C.UTF-8 [12:20] but it doesn't affect keyboard input [12:20] it affects the representation of the key code [12:21] hmm? how does that work? I suspect that the shell puts the tty into raw mode [12:21] but what happens next? [12:21] and how is that affected by snappy [12:21] (I'm trying to understand why it doesn't work in hello-world but works in the small example I made) [12:21] http://bazaar.launchpad.net/~ogra/+junk/nethack/view/head:/snapcraft.yaml [12:21] have a look at that [12:22] I see locales there [12:22] if you want your snap to have support for more than C.UTF-8, you have to ship this set of packages [12:22] I don't think that answers my question [12:22] I'm specifically asking about how input handling works [12:22] and why one snap behaves differently than another one [12:22] the snap I made has busybox-static [12:22] a keycode is sent ... it gets processed and a char is printed :P [12:23] hmmm [12:23] right [12:23] I see [12:23] processed, that's where locales go in [12:23] if your font doesnt have the char, it cant be printed (and you get little squares) [12:23] I guess that busybox just accepts and echoes everything that's not a special control character clearly [12:23] and bash is is doing it "properly" and hence I get nothing [12:23] (properly == through locale) [12:24] right [12:24] thanks! [12:24] that makes sense [12:24] I forgot about raw mode [12:24] console echo can be deceiving :) [12:24] if you ship locales and console-setup-linux you should be able to get around that [12:25] nah, I was just curious how it works [12:25] I don't really need it for anything now [12:25] I'd love if someone made locale that's tiny [12:25] lol [12:25] and is not shipping translation [12:25] translations* [12:25] tiny as in ~50Kb max [12:25] locale and tiny dont really fit into the same sentence [12:25] what's in locale anyway? [12:26] what's the big part? [12:26] (is it just glibc doing crazy correct huge thing or is it an intrinsict problem of locale data) [12:26] (i mean, the locale itself perhaps ... but you need all tghe surroundings like termcap/curses ... fonts etc etc ) [12:26] fonts = not really [12:26] (not on classic) [12:26] not in webapps [12:26] termcap = not in webapps [12:27] just ship the locales package [12:27] and outside, man just ship one for xterm and ignore the rest :P we have two termcap packages, one normal and one kitchen-sink one [12:27] I see a billion charmaps [12:28] perhaps 90% of them are useless today [12:28] or 100%-1 [12:28] man what a load of garbage :) [12:28] and the actual locale definitions should be easily under 50KB compiled [12:29] even the charmaps are tiny [12:29] (obsolete but small) [12:29] though locales get some processing [12:29] (which is also super slow) on install time [12:30] do you know what that does? [12:30] it creates the binaries [12:30] from the locale definitions [12:30] does that have to run at install time? [12:30] (simply calls locale-gen i think) [12:31] can we compile all locales on snap build time? [12:31] * zyga reading the script now [12:31] if you want to use the locales, they have to be up to date against whats on the system, yes [12:31] just shell, no perl :) [12:31] against what's on the system? what does that mean? [12:31] are they self contained or not? [12:32] if they were self contained you would have to generate them at install time ;) [12:32] so what do they need from the system on install time? [12:32] * zyga reads the script [12:32] have a look under /usr/share/locale [12:33] I see just .mo files [12:33] anything I'm missing [12:33] mo files are built at compile time [12:33] I don't suspect locale-gen needs gettext to run [12:33] and locales are built from the mo files [12:34] !? [12:34] but they contain keymaps [12:34] how is that related to translations [12:34] LC_MESSAGES is part of your locale [12:34] keymaps and charmaps [12:34] yes but the question is: why do we need to generate anything on install time [12:35] to be in sync with the binaries on the system [12:35] I don't understand, in sync with what [12:35] (better ask infinity for details) [12:35] buit afaik there is no way to ship "small" locales pre-created [12:35] if I update, say, the translation catalogue for something, do I need to rebuild locale data? [12:36] yes [12:36] do you know why? [12:36] out prob is really that we do not enforce C.UTF-8 ebverywhere yet [12:37] that's not a solution to apps wanting to have locale support really [12:37] you dont really want country specifric locales, but you want full UTF-8 support [12:37] which a LOCALE=C default doesnt give you [12:37] I'm trying to understand how locale works today [12:37] I know that [12:37] I disagree about country specific locale, it depends on an app [12:37] but half of snappy uses C ... the other half uses C.UTF-8 [12:38] hmm? do we set locale to C anywhere explicitly? [12:38] we're not consistent yet ... i.e. the launcher needs to enforce C.UTF-8 [12:38] I'm still puzzled by what you said earlier: [12:38] no [12:38] C is the fallback [12:38] zyga: we even have a bug about the ł issue: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1576411 [12:38] Launchpad bug 1576411 in snapd (Ubuntu) "UTF-8 is not very well supported inside snaps" [High,Triaged] [12:38] zyga if I update, say, the translation catalogue for something, do I need to rebuild locale data? [12:38] if nothing is set [12:38] ogra_ yes [12:38] mvo, yeah, i just commented on that :) [12:38] right, I saw that bug [12:39] zyga, the issue is that we need to eliminate the places where C is still used [12:39] aha, nice [12:39] sorry,I looked at this yesterday haven't seen all the followups :) [12:39] ogra_: I still want to understand locale better [12:39] zyga, infinity is your man :) [12:39] thanks! [12:40] * zyga thinks this is a nice moment to take a lunch break === JanC is now known as Guest52941 === JanC_ is now known as JanC [12:59] kyrofa I have one for you https://bugs.launchpad.net/snapcraft/+bug/1577750 [12:59] Launchpad bug 1577750 in Snapcraft "Search for libraries for 16.10 cause a build failure" [Critical,In progress] [12:59] kyrofa better yet https://github.com/ubuntu-core/snapcraft/pull/496 [12:59] sergiusens, ah! [13:03] kyrofa yeah, ah describes it perfectly ;-) [13:12] sergiusens, I may have updated my comment as you were replying. But shouldn't the exclusion list be for the target rather than the host? [13:18] zyga: hey, so from y'day discussing with jamie, looks like my interface is not "connecting" .... i added autoconnect true, but didn't seem to help [13:18] thots? [13:20] kgunn: that's expected, the problem here is that auto-connect is only affecting the OS snap [13:21] dholbach: ping [13:21] kgunn: see http://www.zygoon.pl/2016/04/anatomy-of-snappy-interface.html (the 2nd to last header) [13:21] kgunn: it will not connect anything to a slot on the mir snap, we need to discss how this should work before we enable it [13:26] zyga: @will connect anything...you mean that expresses a mir plug in their yaml right? i would've thought that would be the prevention, e.g. manual review for anyone wanting the mir-server slot [13:26] kgunn: connect will connect anything compatible [13:26] kgunn: that's still a TBD, how we want this to work, it's related to assertions as well [13:27] kgunn: I think you should focus on getting the interface to work for mir proper and for mir client apps and we'll iterate on connection policy [13:29] zyga: ok, i'll migrate to a connected slot today.... that should keep me busy :) [13:29] i need to clean up client yaml too [13:29] kgunn: cool, ask me anything if you are blocked [13:35] dholbach: do you want me to prepare anything about interfaces? [13:35] dholbach: or should I just join various sessions and answer questions/talk [13:40] kyrofa yes, but we need to implement the `release` tag in snapcraft.yaml to know what we are targetting ;-) [13:40] sergiusens, okay, same page then [13:40] sergiusens, so for now we're assuming the same release as host? [13:40] kyrofa yeah :-) I want to play ball as if yakkety did not exist yet though [13:41] kyrofa yup [13:41] kyrofa and cleanbuild always assumes xenial [13:41] sergiusens, +1 [13:42] kyrofa we are xenial centric for now; I don't think we want to start supporting building from yakkety just yet [13:42] sergiusens, I agree, seems like a safe assumption [13:43] sergiusens, problems occur when targeting a release older than host. libc symbols and whatnot [13:43] ogra_ you are missing on the "other" network. Are you off today? [13:43] sergiusens, brunching :) [13:44] ogra_ and you have a game to watch today I guess ;-) [13:44] jdstrand: https://github.com/ubuntu-core/snappy/pull/1118 (for later) [13:45] sergiusens, bayern atletico ? yeah, i watched the first one ... wasnt that exciting though [13:50] zyga, feel free to join any of them - for the interfaces session, I guess niemeyer and you can start talking about interfaces generally and then we can move on to questions, workflow, etc. [13:50] sergiusens, elopio https://github.com/ubuntu-core/snapcraft/pull/497 [13:50] great, that's a plan then [13:50] dholbach: Heya [13:50] hey niemeyer [13:50] dholbach: Can we move the two core sessions we have at 15UTC to 17UTC? [13:51] http://summit.ubuntu.com/uos-1605/2016-05-03/ is the schedule for today :)= [13:51] :-) [13:51] dholbach: I think the 17UTC slot is open on that track on both days [13:51] hohum [13:51] we announced the schedule already, so some might have planned their days according to this [13:51] 17 UTC today is the lunch slot [13:51] and the 15 UTC session today is about python3 [13:52] so led by somebody in the foundations team [13:53] zyga: read_paths / write_paths still exists ? [13:53] ysionneau: no it does not [13:53] ysionneau: that was a part of old-security [13:54] what is the modern way? [13:54] ysionneau: to come up with a new interface [13:54] ysionneau: what do you need access to? [13:54] niemeyer, ^ did you see my reply? [13:55] dholbach: Okay, sounds good, thanks [13:55] ok maybe let me copy paste all the warnings I get (in --devmode) zyga [13:55] niemeyer, cool [13:55] ysionneau: please do! [13:56] zyga: http://paste.ubuntu.com/16201687/ [13:56] ysionneau: ah, /dev/shm, we're looking into making that easier [13:56] ysionneau: currently you can access /dev/shm but just in weird locations [13:57] yeah I've seen the mailing list posts [14:00] kyrofa https://github.com/ubuntu-core/snapcraft/pull/498 [14:00] kyrofa about locale, I have ideas :-) [14:00] sergiusens, good deal. Should we hold off on that catkin PR, then? [14:01] * zyga tunes into UOS [14:02] kyrofa just until standup which is when UOS ends :-) [14:03] sergiusens, sounds good [14:12] is there somewhere an snapcraft.yaml-example (up-to-date) which shows how to request a syscall permission?! [14:16] pmp that is not possible anymore, now it is required to do it through interfaces (no surprises for end users). Talk to zyga or jdstrand (or attend the UOS session about it today!) [14:16] pmp: o/ [14:16] personally I am hit by it a bit too as I can't easily get things out of the way [14:20] UOS sessions today: http://summit.ubuntu.com/uos-1605/2016-05-03/ [14:21] pmp: which system call are you missing? [14:26] send - for a test I removed all plugs-sections of my apps - now added network [14:27] pmp: send for a test? can you elaborate on that? [14:27] the missing syscall was 'test' (289 on arm) [14:27] not test - 'send' [14:28] plugging my app to network fixed [14:28] pmp: ah, cool :) [14:28] pmp: so you don't need any interfaces beyond network? [14:28] zyga: not for the moment [14:28] pmp: cheers, good luck :) [14:31] sergiusens, elopio https://github.com/ubuntu-core/snapcraft/pull/450 has been rebased [14:37] zyga: well, I just got another syscall missing 241, which is sched_setaffinity [14:39] pmp you can start out by logging a bug and tagging it like https://bugs.launchpad.net/snappy/+bugs?field.tag=snapd-interface [14:41] sergiusens: where (in snappy) is the mapping done between syscalls and interfaces? [14:41] pmp in https://github.com/ubuntu-core/snappy [14:41] exact location I would need to check for [14:42] oh, top level interfaces in there [14:42] zyga short question what OS should i run on the rpi1 for the soft-float problem [14:43] noizer: rasbian should be easiest to work with [14:43] noizer: the default pi os [14:43] ok will it be automatically soft float? [14:43] because i dont know mutch of floating etc [14:44] may it be the latest rasbian? [14:44] noizer: all of pi1 is like that [14:44] noizer: yes, any version will work [14:45] zyga ok [14:45] maybe for good understanding [14:45] zyga i just need to build an application for the soft floating [14:45] on rpi1 [14:45] noizer: https://wiki.debian.org/ArmHardFloatPort (for some back-story) [14:46] what should i do then? [14:47] noizer: install rasbian, build your app there [14:47] noizer: test your app [14:47] noizer: look at the list I gave eaarlier, ask questions if you get stuck [14:48] zyga: then i need to chroot and build it in a snap? [14:49] noizer: then you need to take that whole rasbian install and stick it in your home directory on a pi3 system runnning ubuntu 16 series [14:49] noizer: then we can see if it works there if you chroor inside [14:49] noizer: we can look at snapping that, if it works, at the very end [14:49] Ok [14:50] hopefully will it work [14:50] (or pi2, I don't know if pi3 works yet) [14:50] ogra_: does pi3 work btw? [14:50] with the pi2 image [14:51] I can start first with the pi2 [14:51] zyga, yes ... though i'd suggest to build your own image using the pi3 gadget [14:51] ogra_: ah, nice, let me try that [14:51] i will roll back the pi2 one to pi2 only very soon [14:52] I recall mvo did some changes to gadget support [14:52] wonder if that affects ip3 [14:52] which would leave you with an unbootable image [14:52] ogra_: oooh ok [14:52] pi3 [14:52] the pi2 and 3 gadgets are identical ... apart from uboot.bin [14:52] so as long as the pi2 one works, the pi3 one will too [14:55] ogra_: well the pi2 still behaves "not as before" - terminal via uart still doesn't work and the red-led is behaving strangly [14:55] pmp, yes, on my TODO [14:56] but it works [14:56] http://people.canonical.com/~ogra/snappy/all-snaps/canonical-pi2_3.3_all.snap [14:56] I mean snap is working nicely - ideal for my tests [14:56] feel free to help testing this ;) [14:56] it seems interfaces like network and network-bind are "builtin" in github/ubuntu-core/snappy . But I have other interfaces when I do "snap interfaces", I guess those are defined by ubuntu-core? Where is ubuntu-core code repo? [14:56] ysionneau: all of those are coming from snappy [14:56] (thats my pending upload for the gadget snap that should restore the old UART behaviour [14:57] ysionneau: I can show you where it is in the code if you want [14:57] ) [14:57] ysionneau: the core snap could, but is not currently, defining any interfaces [14:57] ysionneau: in the snappy source tree look at snap/implicit.go [14:57] ysionneau: all of the interfaces are defined in interfaces/builtin/ [14:58] so far I looked at https://github.com/ubuntu-core/snappy/tree/5324816c114757ed1b8641a63a84d6bd3a6edb66/interfaces/builtin [14:58] ok lemme have a look at implicit.go :) [14:58] thx [14:58] ysionneau: there's also my post that describes a bit about how interfaces look like: http://www.zygoon.pl/2016/04/anatomy-of-snappy-interface.html [14:58] ah I see. [14:59] zyga: oh, I didn't see this one, did you post it on the ML? [14:59] ogra_: I'd love to get more insights, but it is hard to find the bits and pieces - how to build a u-d-f for example, how to make a gadget-snap for rpi? Is there something available which might help? [14:59] ysionneau: actually no [14:59] ysionneau: I have a biiig one after this, just need a moment to finish some last bits [15:00] pmp, not really ... we are working on a porting guide soon [15:00] awesome! [15:00] something that snappy really lack right now is documentation, and it's really cool to see that it is coming up those days :) [15:00] (the prob is that it will be completely re-defined what a gadget snap is ... so we have to wait til that definition stands) [15:01] ogra_: I suspect we'll need to decide on gadget/assertions transition next week [15:01] yes [15:02] thats my expectation [15:02] (that we come out of the week and know how kernel and gadget will look like) [15:07] l [15:10] is there a possibility to create an interface on my system, which actually provides more syscalls or other protected things via a snap? [15:10] pmp: yes but you will have to contribute that interface to snappy to actually be able to distribute your snap in any way [15:11] pmp: you cannot do that with a 3rd party snap [15:11] pmp: all interfaces are defined in snappy source code [15:11] pmp: and this is the basis of security of the whole architecture (along with reviews in the store when restricted interfaces are used) [15:15] zyga: how will this work with a branded store? Where we will most likely need customized interfaces. [15:16] pmp: that's an excellent question for the sprint [15:16] pmp: wrote it down now [15:17] zyga: thank you [15:17] pmp: I think it would be good to know some extra details, can you share more with me in private? === shadeslayer_ is now known as shadeslayer [15:19] zyga: no problem, via mail it will be easier [15:19] pmp: do you know how to contact me? [15:19] zyga: I have your address [15:37] jdstrand: add https://bugs.launchpad.net/snappy/+bug/1577471 to your TODO (To read) list please [15:37] Launchpad bug 1577471 in Snappy "Snap applications cannot access the user's normal XDG directories" [Undecided,Confirmed] [15:39] zyga: yes, though we discussed that before-- niemeyer asserted that snaps should access ~/snap/name/version and not all those. that said, I'll read and comment in the bug a bit later [15:40] zyga: so it is that, pr 1117 and 1118 that you need? [15:40] jdstrand: yes though the purpose of the home interface is to let them access other files [15:40] jdstrand: anyway, thanks :) [15:40] other non-hidden files [15:40] but sure, we can discuss in the bug [15:40] I mean we can do whatever, I just want to make sure we are doing what we agreed to [15:41] jdstrand: I reviewed the seccomp argument filtering branch btw [15:41] jdstrand: I was wondering if we should do that in u-c-l, it feels like apparmor_parser like problem where we don't have to parse text in a setuid executable [15:43] hey folks, what's a good place to document my snap? i.e. people install it, then how do they learn more about how it works? is there a discoverable place for a README or something? [15:44] zyga: it has to parse it, it sets up the seccomp sandbox [15:44] roadmr: not at the moment, is that a desktop snap, a cli snap, a service? [15:44] jdstrand: no, it has to setup the sandbox, doesn't mean that has to parse text :) [15:45] zyga: it installs a ssh server listening on port 8022 (see, I'd like to at least document the port) [15:45] jdstrand: we could parse it into a binary format that is far easier to load === chihchun is now known as chihchun_afk [15:45] zyga: how else is it going to setup the seccomp sandbox? [15:45] roadmr: we don't have anything that would support that today [15:45] jdstrand: the same way, just read the description from the binary file [15:45] zyga: so I'd say it's a service. I can always put a "ssh to port 8022 and poke around" in the description :) [15:45] zyga: then we are parsing binary in a setuid executable [15:45] zyga: ok, gotcha... I'll find a workaround :) thanks! [15:45] jdstrand: yes, that's far easier to validate [15:46] jdstrand: load a header, load a bunch of structures, look at the data for sanity checking [15:46] zyga: the kernel doesn't have an interface like apparmor for loading a binary blob [15:46] jdstrand: yes but that can all be local to u-c-l [15:46] jdstrand: the binary interface [15:46] ehh [15:46] I think there are bigger fish to fry [15:46] jdstrand: e,g, we could even exec the parser and read from it, after dropping root [15:46] jdstrand: sure, I just wanted to point that out [15:47] * jdstrand notes that the parsing is happening after dropping root [15:47] jdstrand: it feels like something that will grow and get more complicated [15:47] oh [15:47] I didn't notice that! sorry for that then [15:47] granted, it isn't permanently dropped due to nnp (which is unfortunate, but the state of things atm [15:47] ) [15:47] nnp? [15:47] NO_NEW_PRIVS [15:48] there is a comment in the code if you want to know more about it [15:48] I see [15:48] thanks [15:48] but, seccomp is quite limited-- there isn't terribly much more we can do [15:48] can I build my snap for e.g. arm or arm64 on an x86_64 host? [15:49] jdstrand: is the reason we're adding seccomp argument filtering because how apparmor and seccomp differ as to when they are inspected? [15:49] roadmr: use launchpad [15:49] roadmr: otherwise probably not [15:49] zyga: oh yay! I'll look into it. Not a big deal, really, it's a toy snap [15:49] zyga: we are adding it for things like setpriority [15:50] apparmor cannot inspect the arguments but seccomp can, right/ [15:50] zyga: with setpriority there are values that are ok (eg, >0) but other values that are not [15:50] zyga: thanks for your help, I know you're busy, much appreciated :) [15:50] * roadmr goes for nooms [15:50] zyga: apparmor doesn't do syscall filtering or inspection at this time [15:51] apparmor uses the LSM [15:51] jdstrand: right, thanks for hand holding me with all my questions :-) [15:52] and the LSM hooks, which don't support syscall filtering (that is what seccomp is for). apparmor may, one day, allow setting a seccomp filter as part of its policy syntax (and therefore all the seccomp stuff could be removed from the launcher), but that is all future work (unprioritized) [16:01] How do I set the logging level when using the snapcraft commands? [16:11] elopio what's our status on adt for the "other" arches? [16:13] sergiusens: IS doesn't want to give us the access to the regions with other arches. We'll have to try again to use jenkaas, which is probably not ready for all the features we need. [16:14] my hope is that they'll give us access while jenkaas is ready for us. Waiting for reply... [16:15] elopio right, but all our tests error out in the archive's adt run, so wondering if there is an easy fix there [16:16] sergiusens: without access to the same machine adt is running, I can only guess at fixes. Which means we'll know if they worked only when you put the new version in proposed. [16:17] pitti: is there a way I can get the same armhf container autopkgtests are using? [16:17] elopio fair answer :-) [16:18] elopio as a follow up, that was about pivoting on arches, we should also add adt for yakkety if possible in our tests [16:19] sergiusens: that one is easy, I added it to my TODO. Do you want it run in every PR? [16:19] elopio yes please, we need to ensure we keep compatibility both ways (ensure APIs we choose work on both) [16:21] elopio if possible enable that ASAP :-) Already going down the third dput that fails on infra ;-) [16:26] sergiusens: on it... [16:30] elopio: sure, just use adt-build-{lxc,lxd}, those are exactly what production uses [16:31] oh, almost [16:31] we apply this --setup-command on every test: [16:31] ed -i "s/ports.ubuntu.com/ftpmaster.internal/; s/ubuntu-ports/ubuntu/" /etc/apt/sources.list `ls /etc/apt/sources.list.d/*.list 2>/dev/null || true`; ln -s /dev/null /etc/systemd/system/bluetooth.service [16:31] elopio: sorry, of course you don't need the apt source mangling to ftpmaster.internal, that only works in the DC [16:32] elopio: but you might want the ln -s /dev/null /etc/systemd/system/bluetooth.service, some tests fail otherwise [16:32] (apt-get install bluez fails in a container) [16:35] pitti: thanks, OD!I'll try soon. [16:35] ignore the OD, it's hard to type these days. [16:39] pitti do you know if python apt is broken in the archives? I am seeing lots of this in adt now http://paste.ubuntu.com/16204372/ [16:39] well maybe not python apt could be something else [16:40] sergiusens: eek; haven't seen this yet, but this actually looks like apt itself (libapt) [16:41] pitti so the path forward is I should wait for a tentative fix there and then click on "rerun"? [16:41] sergiusens: where did you see this? [16:41] pitti https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-yakkety/yakkety/amd64/s/snapcraft/20160503_064449@/log.gz [16:42] pitti we use python apt where what fails are seen (only on y) [16:42] sergiusens: oh, this isn't new -- http://autopkgtest.ubuntu.com/packages/s/snapcraft/yakkety/amd64/ history reaches back to all of yakkety indeed [16:44] pitti I haven't seen this on xenial though (which gets adt runs on every code drop) [16:44] in the process of adding yakkety now [16:44] right, xenial seems fine [16:45] but I have no idea what is going on given the archive is rather new I think infra problems but I may be totally off track [16:47] Is there a way of browsing the currently available snaps? [16:48] mvo can I ask you being the apt expert? [16:48] mvo maybe I can expand that to "software package" delivery expert ;-) [16:49] sergiusens: kyrofa: after Sergio's suggestion, this one is ready to go: https://github.com/ubuntu-core/snapcraft/pull/481 [16:50] elopio I am afraid of running any of this in yakkety now given the above breakage :-P === kissiel-afk is now known as kissiel [16:55] Hello. Implementation question, may be someone did this before. So snap has access to /dev/shm/snap/snap-name/snap-revision. How do I make shm_open use that location? I see that that shm_open takes name that starts with `/` and it should be single `/` according to docs. [16:57] sergiusens: well, this now seems stable enough. I can work on the yakkety run and I'm almost confident this one won't suddenly break :) [16:58] so, feel free to leave it in the queue. [16:58] elopio just want to get the apt issue solve first [16:58] sborovkov: excellent question, let me look [16:59] sborovkov: ah, sorry shm_open is not the same as /dev/shm [16:59] zyga: is not it used for creating shared memory anyways [16:59] sborovkov: AFAIR the memory allocated with dev_shm is not visiable in the filesystem [17:00] zyga the man page seems to illustrate it otherwise [17:00] sborovkov: for /dev/shm/stuff, I'm not sure but AFAIR it is just a tmpfs so you can just open files there [17:00] * zyga reads [17:00] shm_open(const char *name, ...) where name is of the form of a path [17:01] sergiusens: yes, but I'm not sure that is an actual file, I'm almost sure it's not, though I could be wrong [17:01] zyga maybe correct, but I guess if you use shm_open you avoid this apparmor problem [17:01] sergiusens: how do you avoid this problem? [17:01] sergiusens: right, this is a different system call [17:01] zyga I am just going by the chromium source I read earlier where they don't use shm_open and create a file in /dev/shm instead due to the fact the shm_open is sort of limited on OS X [17:01] sergiusens: though AFAIR shm_open is terrible and discouraged [17:01] sergiusens: as there'es no good value for name [17:02] argh, webkit's using it. Oh well. [17:02] sborovkov you should be able to just open("/run/shm/$SNAP/$REVISION") [17:02] sergiusens: right, because then the name is at least somewhat meaningful and you can control permissions to the file and what not, I'm not sure how it works on osx (/dev/shm) [17:03] sborovkov but yeah, you'd need to patch webkit; is it of the form "org.chromium.Chromium.XXX"? [17:03] that's my current blocker issue today fwiw [17:03] sborovkov: if it's easy to patch, do it [17:03] sergiusens: sorry, what do you mean about the form "..."? [17:03] sborovkov: we're definitely going to change what is allowed (to make it more liberal) though jdstrand knows the details [17:04] zyga it really isn't which is why I wanted my proposal to mount in a new namespace to fly :-) [17:04] sergiusens: I think that's a sensible idea [17:04] zyga jdstrand and about pulseaudio, if hardlinking is supported, I'd just hard link into that path created by the launcher ;-) [17:04] sergiusens: a fork bomb snap would still work so I would not worry much about how shm quotas should work now [17:05] sergiusens: I'm not familiar with pulseaudio issues [17:05] but if pulseaudio requires accessing shared memory, I'd say the architecture for pulseaudio is somewhat broken as well ;-) [17:05] sergiusens: why? [17:05] sergiusens: it use buffers to share between clients [17:05] zyga look at my email exchange with jamie ;-) [17:05] sergiusens: where is the excchange? [17:06] zyga yeah, but I could write to other locations and inject into other apps, right? [17:06] zyga mailing list of course, don't you read email anymore? ;-) [17:06] sergiusens: nah, I'm just not fully up to my inbox zero goal :) [17:06] zyga: sergiusens: so hm can you recommend what calls I should use to replace shm_open with. What's the recommended way (did not deal with lol level IPC for a long time) [17:07] sergiusens: I moved 500 emails out of the way today [17:07] sborovkov: one sec [17:07] sborovkov I cannot recommend anything, I am blocked ;-) [17:10] so I just checked [17:17] zyga: Hmm. From stackoverflow: It just happens that GLIBC places all shared memory objects in /dev/shm or /var/run/shm by prepending the path to the object name and calling open() on the resulting name. That won't create subdirectories though I guess. [17:17] yeah [17:17] I just made a demo snap [17:17] one sec let me publish this [17:20] I may have a nice solution [17:20] for all apps [17:20] give me 10 more minutes, ok [17:21] s/nice/hackybutworking/ [17:24] zyga: sure, thanks for assistance :-) [17:29] sergiusens, zyga and sborovkov: the detail zyga is referring to for making it more liberal is to drop SNAP_REVISION and just use /run/shm/$SNAP/... [17:29] as for dealing with chromium-- still thinking that through [17:30] sergiusens: note, your proposal is not to mount in a new namespace. it is to bind mount (there is a big technological difference) [17:31] jdstrand you are most likely right :-) [17:41] zyga: alright, I gotta go now, I will ask you tomorrow about your solution then [17:43] almost done :) [17:45] ha [17:45] works [17:45] now for the grand finale [17:45] let it work with any precompiled app :) [17:45] * zyga loves C [17:59] hiya === charles_ is now known as charles [18:11] jdstrand: quick question [18:11] shoot [18:12] jdstrand: I made shm_open work magically [18:12] jdstrand: as a LD_PRELOAD or link-time .o [18:12] jdstrand: but it seems that apps cannot actually create /dev/shm/$SNAP_NAME/$SNAP_REVISION today :) [18:12] jdstrand: it feels like the launcher should do that [18:12] no [18:12] jdstrand: do you agree? [18:12] let me double check [18:12] thank you [18:13] sergiusens: ^^ if this is fixed I can give you a part that fixes anything [18:13] sergiusens: using shm_open [18:13] but I think that is right (like with ~/snap/name/version, it was the launcher's job to do that [18:13] but, we can fix that [18:13] jdstrand: rigth, that's my feeling [18:13] zyga it doesn't use shm_open (chromium, I told you exactly the opposite) [18:13] sergiusens: oh, I'm sorry what does it use then? [18:13] zyga open [18:13] sergiusens: ah, directly?! [18:13] boo :) [18:14] well, better than nothing :) [18:14] I'll share my stuff after this session [18:14] zyga: so, I'm ok with having these rules: [18:15] /{dev,run}/shm/snap/@{SNAP_NAME}/ rw, [18:15] /{dev,run}/shm/snap/@{SNAP_NAME}/** mrwlkix, [18:15] zyga: but something will still need to create /{dev,run}/shm/snap [18:16] we could do: [18:16] /{dev,run}/shm/snap/@{SNAP_NAME}/ r, [18:16] and have the launcher create /{dev,run}/shm/snap/@{SNAP_NAME} [18:16] jdstrand: /dev/shm/snap/$SNAP_NAME or /dev/shm/$SNAP_NAME [18:16] +1 [18:16] jdstrand: I'll work on this [18:16] zyga: ok [18:16] jdstrand: how soon can we release a launcher that does /snapname/snaprevision [18:17] jdstrand: this would work with new snaps (using my trick) without a release of snappy proper [18:17] zyga jdstrand https://chromium.googlesource.com/chromium/src.git/+/master/base/files/file_util_posix.cc#157 and https://chromium.googlesource.com/chromium/src.git/+/master/base/files/file_util_posix.cc#144 [18:17] zyga so mkstemp [18:18] sergiusens: glibc has a way to customize shm_open [18:18] sergiusens: so too bad it's not used here [18:18] sergiusens: this will have to be patched :/ [18:18] anyway, one problem at a time [18:18] sergiusens: thanks for sharing this [18:19] zyga it is not that simple though [18:19] zyga: if we are going to sru that, I'd like to have the seccomp arg filtering as part of that sru to cut down on sru red-tape [18:19] zyga as this code base is spread out in many projects and many projects use their own variant build/fork [18:19] jdstrand: we should get the blank-ish check though [18:19] as more and more things will be released [18:19] jdstrand: but for now I agree [18:19] tyhicks: do you have a feeling for when the seccomp arg filtering will be reviewed? [18:20] zyga: yes (and I requested that for the launcher) [18:20] well, I asked that someone else ask for it [18:20] I think that happened [18:21] jdstrand: hopefully by the end of this week [18:22] jdstrand: is that soon enough? [18:22] tyhicks: cool, thanks [18:34] jdstrand: maj 03 20:34:13 zyga-thinkpad-w510 kernel: audit: type=1400 audit(1462300453.710:78): apparmor="DENIED" operation="mknod" profile="snap.shm-open-demo.demo-builtin" name="/dev/shm/shm-open-demo/100001/demo" pid=8044 comm="demo-builtin" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000 [18:34] jdstrand: should this be denied today? [18:38] ah, I see /dev/shm/snap/ [18:38] sorry for bugging you :) [18:42] https://github.com/zyga/snappy-runtime-helper/blob/master/snappy.c [18:42] jdstrand: ^ I'll hack u-c-l and snappy to do what you suggested earlier [18:47] zyga: /dev/shm/shm-open-demo/100001/demo should be denied today. I forgot /dev/shm/*snap*/ [18:47] yep, I noticed that :) [18:47] ah, yes you did :) [18:47] jdstrand: I patched it to have /snap/ there too [18:48] jdstrand: one thing I realized is that the launcher doesn't know $SNAP_NAME or $SNAP_REVISION today [18:48] jdstrand: (it might just use getenv but feels wrong, I'd really just want to know $SNAP_NAME and act on that [18:48] jdstrand: (to mkdir bits) [18:49] jdstrand: ah, it seems it does use environment variables, so I guess that's not an issue [18:49] though that feels wrong :) [18:50] zyga create a part, put it on the wiki [18:50] sergiusens: good idea [19:26] Computer: "cannot get discharge macaroon from store" Me: "Oh, right. Of course" [19:27] * zyga still doesn't know what discarge there means [19:28] My new band name is DISCHARGE MACAROÖN. [19:31] qengho: could you please check if there was maybe a typo in the username/password? [19:31] qengho: and yeah, the error message needs some love [19:33] Just rename it to 'boom!'... Has about the same amount of info, but is funnier === gene_ is now known as gblanchard4_ [19:59] Can you expose multiple commands in the snapcraft.yaml? [20:00] yes gblanchard4_ [20:00] Sure. New sections. [20:00] it is a a dict [20:02] I was making a snap in one place. I disconnected. Resumed at home. Now, running the snap says "Bad system call [20:02] ". I can't think of any other change than the network in use. [20:02] I know that sounds crazy. [20:04] That is, I moved my laptop from one place to another. Same machine. The "wget" run in my snap package fails now with "Bad system call". [20:05] I haven't updated snap deb in the last week or so. [20:06] Could it be some problem with the seccomp filter not being fully un-installed or something, between "snap remove/install" runs? [20:07] qengho: probably one of the bugs in 2.0.2 [20:07] qengho: I hope we release 2.0.3 soon (today?) [20:08] qengho: also there's a known bug in 2.0.2 when you install a snap a few times (during development) [20:09] zyga: I think I've been careful to remove first. I think that avoids it. [20:10] qengho: Thanks, I will give it a try! [20:10] yes [20:24] Next question: Can I find out what syscall failed? [20:26] qengho: sysdig can probably drill down to answer that for you. [20:26] qengho dmesg | grep [20:26] qengho scmp_sys_resolver against sig [20:26] you'd need dkms and root access to the machine for sysdig; however. csysdig is the curses frontend, switch to the system call view. [20:27] sergiusens: I only see apparmor lines, no seccomp. [20:27] then drill down to failed system calls and look which processes are unhappy [20:27] qengho are you maybe looking at old logs then? [20:27] fresh out of "dmesg" [20:27] or you may have been hit by kernel rate limiting [20:28] Eh, no. [20:28] qengho ph plain "Bad system call", maybe binary from a different arch? [20:28] s/from/for/ [20:28] sergiusens, qengho: note bug #1567597. if you are using --devmode there is no logging of seccomp violations [20:28] bug 1567597 in Snappy "implement 'complain mode' in seccomp for developer mode with snaps" [Medium,Confirmed] https://launchpad.net/bugs/1567597 [20:29] sergiusens: I built it here, no special flags or compiler. [20:29] jdstrand: Not using devmode. [20:29] ok [20:29] hmm [20:30] jdstrand: is there a way to get a core file from a crashing app? [20:30] using pulse in snappy (even with --devmode) crashes all the stuff I try [20:30] I think I can make it go somewhere with proc core pattern. [20:30] zyga ulimit -c unlimited [20:30] (pulseaudio) [20:30] thanks! [20:30] I got a game working [20:30] Oh. [20:30] though without sound for now :) [20:31] got it :-) [20:31] I swear, this started its "Bad system call" when I moved locations. [20:32] I'm renaming package to see what happens. [20:33] hmm [20:33] #0 __strcpy_sse2 () at ../sysdeps/x86_64/multiarch/../strcpy.S:60 [20:33] #1 0x00007fc06ed8d4ce in __strcmp_sse2 () at ../sysdeps/x86_64/multiarch/../strcmp.S:1987 [20:33] zyga: Athlon? [20:33] no :) [20:33] core i7 [20:34] same binary works outside [20:34] (this is scummvm) [20:34] ah, I was wondering. Interesting. [20:34] I suspect a null pointer somewhere [20:34] zyga: I don't know. I do know mvo had gdb, etc working in snaps at one point [20:34] I'll build scummvm from source with debug [20:35] jdstrand: hmm, you just gave me an idea :) [20:35] actually [20:35] my idea is to go to sleep for a change [20:36] so, I started looking at https://developer.ubuntu.com/en/snappy/build-apps/get-started/, but apt tells me "E: Unable to locate package snappy-tools" - what am I looking for instead? [20:36] Is there an https server available as a snap? [20:39] zyga: I like that idea :) [20:39] (and here I am, replying to email) [20:39] Hi every one. I need help packaging an app. My app is packaged and installed. But the app does not start. It onlly throws "XmbTextListToTextProperty result code -2" in the console. Is a python qml app. [20:39] I want to put snappy ubuntu core on my raspberry pi 2. but at https://developer.ubuntu.com/en/snappy/start/raspberry-pi-2/ I see instructions for 15.04. Should I ignore that and use e.g. http://cdimage.ubuntu.com/ubuntu/releases/16.04/release/ubuntu-16.04-preinstalled-server-armhf+raspi2.img.xz ? [20:44] I forgot to tell exactly the problem. The app does not appears. I have no gui :( [20:45] nealmcb: I don't think there are any good rpi images right now. [20:46] qengho: i.e. 15.04 is the latest good one? Or even it isn't good? [20:47] and what is the story for the raspberry pi 3? [20:47] nealmcb: 16.04 could be good, theoretically, but I don't think any current image is. Just a fluke today. [20:48] what sort of fluke today? === blr_ is now known as blr [20:49] nealmcb: I installed snappy (as opposed to 16.04 server) on my pi2 last night just fine [20:49] nealmcb: ah qengho makes an interesting point [20:49] josharenson: which image? The one I pointed to? [20:50] nealmcb: I think flexiondotorg was working on various pi images, but I don't think there's any ubuntu-core images that I'm aware of for xenial at the moment. [20:50] kgunn: I read your bug report for slot connect. are you at least able to manually connect the permanent slot side? [20:50] nealmcb: No its a 15.04 image [20:50] I know snapd has one available [20:50] nealmcb: ubuntu-15.04-snappy-armhf-raspi2.img.xz [20:50] kgunn: or is it basically not being added until a connection with a client? [20:50] (for xenial) [20:51] Kamilion: xenial core images are not finished yet [20:52] Kamilion: I think we will offer developer preview images soon but I think this will only take shape next week [20:52] There are experimental ones for all arches but you will have to wipe them soon [20:52] so then what's ubuntu-core 16.04+20160419.20-55 ? [20:52] ah, okay [20:52] Kamilion: where did you get it from? [20:52] thanks, ogra_ [20:53] so it isn't rally worth releasing them until they are upgradeabl [20:53] e [20:53] zyga: snapd? [20:53] Kamilion: that's the core snap [20:53] Kamilion: that's not the whole image, the whole image has a kernel and a gadget [20:53] ah [20:53] Kamilion: we're still working on those parts [20:53] gotcha [20:53] Kamilion: on 16.04 you are using the kernel from the classic ubuntu [20:53] yes, I am [20:54] http://people.canonical.com/~mvo/all-snaps/ [20:54] Kamilion: on a board like the raspberry pi 2 you would need a complete snap-based image and those will be available in a few weeks from now [20:54] and only the pi2 and 3's CPU will be supported, ARM7 yadda yadda [20:54] right now we only have previews that may need to be re-flashed entirely sometimes [20:54] there are the experimental ones... But you will have to re-flash... [20:55] no pi1, that's for rasbian to deal with, basically. (as far as I can tell) [20:55] pi3 will get a community supported image, like the bbb [20:55] are the images going to be available before the first point release of xenial in juneish? [20:56] pi2 will be officially supporte [20:56] oh, I've got a BBB, I should give that a shot. [20:56] Kamilion: juneish? [20:56] around 16.04.1 [20:56] Kamilion: anyway, I think we will have images "in a few weeks" [20:56] I guess [20:56] so weeks, not months [20:56] 16.04.1 is released after 16.10 [20:56] well, 8weeks are two months :) [20:56] last I heard from #ubuntu-release during the 20th to 25th when I was paying attention, the first point release was supposed to be june [20:56] ogra_: hush ;) [20:56] zyga huh? [20:57] ogra_: still I hope this will be less than two months :) [20:57] ogra_: just kidding, sorry [20:57] .1 will definitelyvrelease before 16.10 [20:57] July, I think. [20:57] unless the release schedule got totally changed [20:57] Kamilion: perhaps I remember incorrectly but 14.04.1 was done after 14.10 [20:57] yeah [20:57] anyway, sorry, I may be wrong here [20:57] should be in july [20:58] and I guess stablebsnapoy will be broad the same time [20:58] zyga: yes, that was the case, 14.xx's point releases were far between [20:58] (and it containled LTS enablement packages) [20:58] stable snappy [20:58] I think 16.04 is getting more rapid updates [20:58] ah, I wasn't aware of that [20:58] thanks! [20:58] or at least an early point release to deal with some post-release problems [20:58] .1 is always early [20:58] like the llvm-3.8 issues [20:58] usually hew comez with .2 [20:58] hwe [20:58] god !!!! [20:59] the auto correction is killing me [20:59] [20:59] wow, fun, ZNC with a bunch of clients, just like me. heh. [20:59] Great - thanks folks! [21:00] jdstrand: well, i just cleaned up my client project...and was working on pushing aroud the i/f to be "connected" slot vs permanent [21:01] kgunn: how do you setup your VM, perhaps I can reproduce your setup and aid you somehow? [21:01] zyga: https://developer.ubuntu.com/en/snappy/guides/mir-snaps/ [21:01] ogra_, what's the procedure to flash de Dragonboard ? [21:02] thanks for attempting, and let me know if you have questions [21:02] kgunn: huh, that's nothing special? [21:03] kgunn: does qemu work? [21:03] kgunn: I should be able to run this with regular devtools setup with a simple tweak [21:03] yeah, i hadn't tried with any other vm's...so it might be fine [21:03] edsiper: just uncompress and dd to an sd card ... flick the SD switch on the bottom of the board and you should be good to go [21:04] kgunn: which vm software are you using there libvirt uses kvm inside? [21:05] kgunn: anyway, I'll check that tomorrow, I suspect this can be x10 easier and faster with devtools-based setup and ephemeral VMs it is using [21:05] zyga: info says hypervisor:kvm emulator:/usr/bin/kvm-spice [21:05] that's great then [21:05] ogra_, is this one functional ? http://people.canonical.com/~mvo/all-snaps/dragon-all-snap.img.xz [21:05] will work just as well with qemu :-) [21:05] great [21:05] kgunn: I'll ping you tomorrow, for now I have to look after my kids [21:06] should be, yes ... you will need to create a wlan0 file etc [21:06] o/ enjoy zyga [21:06] (to get ssh access) [21:21] before: https://pastebin.canonical.com/155727/ after: https://pastebin.canonical.com/155726/ === tsimonq2alt is now known as tsimonq2 [22:08] * zyga has a real backtrace [22:08] https://paste.gnome.org/pp7ej1hyn [22:11] sergiusens: do you have any hints on stage-packages and -dbg packages for symbols [22:11] sergiusens: should I build libsdl myself and just overwrite the bits in snap/ manually for hacking (like I did with scummvm executable) [22:11] sergiusens: or is the a better magic way to get non-stripped libraries [22:13] Are underscores and periods not allowed in the YAML? i.e. in the apps section [22:16] gblanchard4: they are not allowed [22:17] gblanchard4: juse use dashes, most apps don't use dots and we use them internally so they are reserved [22:20] zyga: Okay, thanks for the information. I was trying to figure out why my yaml failed validation. [22:21] gblanchard4: snapcraft should also check that, I think [22:22] zyga: I am trying to port some python based bioinformatics software to alleviate dependency hell. I was trying to make it as seamless as possible. Most of the scripts use the underscore convention i.e. print_config.py [22:22] gblanchard4: remember how snap apps are exposed [22:23] gblanchard4: in general each app is named: $snap.$app (e.g. biosoftware.something) [22:23] gblanchard4: when you have many scripts you can improve their names based on this knowledge [22:23] gblanchard4: you can run print_config.py from a command called print-config [22:24] gblanchard4: the command name is not the same as the file / command it runs [22:24] zyga: Thats a great point! [22:25] gblanchard4: also note that if the app name is the same as snap name we don't do foo.foo, the resulting executable is just "foo" [22:25] gblanchard4: so if there's any "main" program in your snap that would be the way to expose it [22:27] zyga: Ha, I learned that the hard way by accident. It's really a collection of python scripts, no "main". [22:27] gblanchard4: are they CLI tools? [22:27] zyga: yes [22:31] zyga: I use a lot of python based CLI tools. The are currently all in separate virtualenvs, but many rely on more than just python (usually some R packages too). I think snaps are a great idea to help me keep everything separate. [22:53] https://paste.gnome.org/piq8y6ony [22:53] definitely pulseaudio related [22:53] the crash is in #2 0x00007f0a75f17fe6 in PULSE_SetCaption (this=0x22b3460, str=0x0) at ./src/audio/pulse/SDL_pulseaudio.c:394 [22:55] Oh man, no "source:" for merely downloading a file? Ugh. [22:55] the root cause is null pointer coming from SDL_WM_GetCaption(&title, NULL); [22:55] which smells X related [22:57] ha [22:57] found the root cause :) [22:57] heh /proc related (obviously) [23:06] and also a bug in sdl1.2 [23:06] just last build before EOD [23:24] woot [23:24] I have a working snap for flight of the amazon queen [23:24] sergiusens: I fixed a bug in sdl that probably (99%) affects each SDL game [23:24] resulting in a crash [23:29] I have a question about running a Java Swing application deployed via snap: https://askubuntu.com/questions/764496/developing-a-snap-package-for-a-project-using-java-swing [23:29] namely, it doesn't run [23:29] ZenHarbinger: hey, I replied to your question [23:30] ZenHarbinger: can you pastebin snap interfaces please [23:30] you mean the output? [23:30] from snap interfaces? [23:31] Yes. [23:31] I listed it at the link: [23:31] ah, I see now [23:32] can you look at syslog and pastebin the DENIED lines [23:32] I suspect this is getpeername or something like that I fixed this for 2.0.3 already [23:32] but let's see [23:32] "snap justlikeapportcollect [23:35] ZenHarbinger: just pastebin the whole syslog if you don't know what to look for [23:35] http://pastebin.com/incCe8d0 [23:36] sorry, had to run it [23:37] ZenHarbinger: https://bugs.launchpad.net/snappy/+bug/1574526 [23:37] Launchpad bug 1574526 in Snappy "x11 plug doesn't allow getsockname, breaks xeyes" [High,Fix committed] [23:37] this is already fixed [23:37] awesome, so just wait? ok. [23:37] (Note, not "Fix released") [23:37] mvo will release 2.0.3 [23:38] then you will need to reinstall (or disconnect and reconnect x11) the snap [23:38] and it should work [23:38] Great! Thanks guys! [23:40] :-) [23:41] ZenHarbinger: (please update the question on ask ubuntu if you can) [23:46] sergiusens: https://bugs.launchpad.net/ubuntu/+source/libsdl1.2/+bug/1577986 [23:46] Launchpad bug 1577986 in libsdl1.2 (Ubuntu) "SDL 1.2 crashes on snappy, breaks scummvm" [Undecided,New] [23:50] zyga: Do we have a list of "tentpole" apps that we expect to be able to snap as a prerequisite for declaring v2 released? [23:50] qengho: v2 of what? [23:51] qengho: snapd 2.0.2 was released on the 21st or something close to that [23:51] Well, whatever we release as snappy. Not "2", but "come, all, snappy is ready for you". The number is not important. [23:51] qengho: ah, I see [23:51] qengho: sprint topic [23:51] Ah. [23:51] qengho: I don't have any lists yet though I actually proposed we run with one :) [23:52] Agreed. [23:52] qengho: for desktop apps and some unspefied use cases for devices [23:52] If you want one that's ambitious and not quite crazy, I will upload my "Kodi" snap branch. [23:53] zyga: Go offline already! :) [23:54] qengho: desktop will see ongoing progress, I'd say that the idea is we will release new interfaces (and updated interfaces) each fortnight to remove blockers from snapping some high-profle apps [23:54] qengho: but also remember that some desktop things are very hard because everything is closely coupled [23:54] Don't I know it. [23:54] qengho: so I don't know if we'll succeed quickly [23:54] (with kodi :) [23:54] anyway, afk :) [23:54] good night [23:54] Good night. [23:54] (I said that three times already)