=== tsimonq2alt is now known as tsimonq2 [02:18] PR snapd#1651 opened: More create-user fixes === chihchun_afk is now known as chihchun [03:34] PR snapd#1652 opened: Correct interface connection JSON documentation (used an object inste… [03:54] PR snapd#1653 opened: Correct documentation on refresh action (referred to an old update ac… [04:47] PR snapd#1654 opened: Fix typo mutlipart -> multipart === hikiko_ is now known as hikiko [06:47] PR snapd#1654 closed: Fix typo mutlipart -> multipart [06:50] PR snapd#1652 closed: Correct interface connection JSON documentation (used an object inste… [06:53] good morning [07:08] good morning zyga [07:11] I wonder is there a way to refer to snap paths like $SNAP_DATA from the snapcraft yaml when specifying commands [07:12] I have a forking daemon, and wonder if I could modify it's "command" to include such [07:12] that would allow to avoid a lot of glue-code just to pass the right config file directory [07:12] I have seen in snappy-playpen others used a launcher.sh to pickup the path [07:12] but there could (should?) be a way to do e.g. [07:12] command: usr/local/sbin/ntpd -c $SNAP_DATA/etc/ntpd.conf [07:13] maybe just the right amount of escaping ... [07:13] the given example above resolves to just /etc/ntpd.conf for now [07:29] hmm - just wondered about the ML archives - was the snappy-devel list discontinued for the snapcraft list? [07:30] "Please use https://lists.ubuntu.com/mailman/listinfo/snapcraft instead." [07:30] ah yes, ok [07:34] cpaelzer: hey [07:35] cpaelzer: the command field of each app should be able to resolve environment variables (they are just copied and eventually are resolved by the shell) [07:35] cpaelzer: hmm [07:36] cpaelzer: can you look at the prime directory and see if it is resolved early? My point is that it should be present there verbatim, as you spelled it above [07:36] yeah I just examined the systemd service [07:36] it is just referring to its "usual" warpper [07:36] cpaelzer: and it doesn't contain $SNAP_DATA? [07:36] it does [07:37] so the wrapper is "good" [07:37] let me check all of this for typos and such [07:37] exec "$SNAP/usr/local/sbin/ntpd" -c $SNAP_DATA/etc/ntpd.conf "$@" [07:37] cpaelzer: hmm cna you pastebin the systemd unit? [07:37] sure, just a sec [07:37] systemd http://paste.ubuntu.com/22782806/ wrapper http://paste.ubuntu.com/22782810/ [07:38] uh that is nice [07:38] zyga: I found it [07:38] it is actually an application issie I think [07:38] service snap.ntpsec.ntpd status reports 30780 /snap/ntpsec/x1/usr/local/sbin/ntpd -c /var/snap/ntpsec/x1/etc/ntpd.conf [07:38] so it did resolve [07:38] yes, it looks correct [07:39] I was tricked by seeing that in journal for it "getconfig: Couldn't open : No such file or directory" [07:39] so it is more an app bug to ignore its arg for whatever reason [07:39] Tried building and installing the ubuntu-clock-app example with snapcraft + snap install now. I get the following errors: "libGL error: failed to load driver: swrast" "Unrecognized OpenGL version". [07:39] anyway it was good to go down the snap-systemd unit -> wrapper -> command path at least once [07:39] Should this work with the current version of snapcraft and snap? [07:39] zyga: thanks [07:40] dragly: does the old version from the store work? [07:41] what's the name in the store? [07:41] dragly: ubuntu-calculator-app [07:43] can't find anything with that name in Ubuntu Software nor with apt [07:43] I'm running Ubuntu 16.04 [07:45] the one I tested was from https://github.com/ubuntu/snappy-playpen [07:48] dragly: snap find clock gives me "ubuntu-clock-app" from the store [07:49] trying to install now on my16.40 just to check [07:52] dragly: fetch & install from store worked fine - was your issue that the one from playpen didn't build or install ? [07:52] ah, sorry, I forgot that snap install != apt install [07:53] cpaelzer: it both builds and installs, but when running I get the OpenGL errors [07:53] hi, guys! [07:53] same with the one from "snap install ubuntu-clock-app" [07:54] running the one from store http://paste.ubuntu.com/22783564/ (works) [07:54] Anynews on Ubuntu core and RPI3? [07:54] cpaelzer: doesn't work here, seems to be the same issue as others are reporting: https://askubuntu.com/questions/759647/opengl-error-in-snaps-ubuntu-16-04/760096#760096 [07:55] I had the same issue previously, but thought it was fixed [07:56] I think there is a bug report on it somewhere. Let me see if I can dig it up. [07:57] cpaelzer https://bugs.launchpad.net/snappy/+bug/1574851 [07:57] Bug #1574851: libgl not found on nvidia machines (so far) [07:59] I haven't tried to workaround, but will be distributing an app to others with Nvidia machines, so I'm wondering if there's anything I can do without having to ask the users to copy the nvidia libGL.so to /var/lib/snapd/lib/gl ? [08:05] dragly: can you please try to install "snap-confine ubuntu-core-launcher" from xenial-proposed? that should fix the nvidia problem [08:05] mvo, hey [08:05] mvo: I understand that there are some regressions that are blocking the update out of the SRU proposed pocket, correct? [08:05] hey seb128 [08:06] zyga: yes, however I think those got all resolved by now, I think its good to go now [08:07] mvo: including the one you pinged me about last week, the X11 one? [08:07] mvo, attente, unsure when/where snapd-xdg-open was discussed but I would like to start a discussion about removing the whitelist, filed https://github.com/ubuntu-core/snapd-xdg-open/pull/12 for that but maybe a mailing list would be better? can you do suggestions? [08:07] PR ubuntu-core/snapd-xdg-open#12: don't restrict the urls that are handled [08:08] zyga: yes, this no longer happens with snapd 2.11 and I think its was adt artifcat [08:09] seb128: iirc gustavo suggested to put this in place, he is probably the best one to discuss how to ease/remove it [08:12] mvo: that's good to know, thank you [08:13] mvo, ok, thanks, I'm unsure what we protect against and ideally we are going to want to let apps open the urls they handle, like skype handles x-scheme-handler urls and you are going to want that to work without us having to patch the helper to know about every application on earth [08:13] x-scheme-handler/skype I meant [08:16] mvo: did you get the "add to whitelist" syntax wrong on https://github.com/snapcore/snapd/pull/1651 ? [08:16] PR snapd#1651: More create-user fixes [08:17] mwhudson_: I did, thanks! should be fixed now [08:17] mwhudson_: congratulations to your family :) [08:17] zyga: thanks :) [08:18] mvo: i'm hacking on adding --sudoer and --yaml flags now [08:29] the 'details' link on the test results on my PR isn't working for me [08:29] "162.213.35.179 took too long to respond" [08:32] mwhudson_: on integration tests? [08:32] yeah [08:32] mwhudson_: that's over VPN [08:32] oh [08:32] mwhudson_: aka annoying ylink [08:33] not very community? [08:33] but not too bad for me :) [08:34] ah duh [08:34] zyga, mvo: what does snappy think about rebasing? [08:36] mwhudson_: doesn't like it much [08:36] mwhudson_: merges are more welcome [08:37] zyga: well my PR fails a test [08:37] mwhudson_: merge with master to fix it (if that fixes it) [08:37] zyga: i could rebase and fix the problem, or push a new commit [08:37] it's a real problem :) [08:37] oh, just push a new fixing commit then [08:38] ok [08:38] related [08:38] can i run the integration tests locally easily [08:38] ? [08:38] mwhudson_: sure [08:39] mwhudson_: with the exception of magic version of ubuntu-device-flash you should just be able to run run-tests --integration [08:39] mwhudson_: it's tad slow though [08:39] the u-d-f from http://people.canonical.com/~mvo/all-snaps/16/ should work with this [08:39] mwhudson_: maybe something has changed since I first looked, fgimenez knows this part better than I do [08:39] mwhudson_: so just staick that in your $PATH and you should be ok [08:39] s/staick/stick/ [08:40] ok [08:40] my link is laggy today, downloading some stuff for work later [08:42] Hi, is there a quick way to get out of "error: cannot remove "X": snap "ipe" has changes in progress" limbo [08:42] I already tried to restart snapd but that did not help [08:46] * mwhudson_ lols at the ascii art "crushing failure and despair" [08:47] imexil: can you tell me what does "snap changes" say [08:48] well I cancelled an install with CTRL+C and that's what it is still doing. [08:48] imexil: unlike apt or yum, snapd remembers and retries requests [08:48] mvo: Sorry, I managed to overlook your message earlier. Installed snap-confine ubuntu-core-launcher now. [08:48] zyga: 123 Doing 2016-08-09T08:14:25Z - Install "ipe" snap from file "ipe_7.2.5_amd64.snap [08:48] Now ubuntu-clock-app.clock returns "multiple nvidia drivers detected, this is not supported. errmsg: No such file or directory" [08:48] imexil you just quit the front end, the backend (snapd) is still doing what you asked it to do [08:49] dragly: can you report a bug on snap-confine [08:49] dragly: with all the details you can add [08:49] zyga: so how do I kill the backend? [08:49] dragly: and pastebin "ls -d /usr/lib/nvidia*" please? [08:50] dragly: especially output of /usr/lib/nvidia-[1-9][0-9][0-9] [08:50] imexil: you don't have to [08:50] zyga: Sure! Do you happen to know what returns the error message so that I can try to figure out why it detects multiple versions? [08:50] I get /usr/lib/nvidia/ /usr/lib/nvidia-352/ /usr/lib/nvidia-361/ /usr/lib/nvidia-361-prime/ [08:50] imexil: what do you want toarchive? [08:50] *achieve [08:50] dragly: yes, I wrote that code :/ [08:51] The install on this machine is an upgrade, could that be why I have multiple nvidia versions in that folder? [08:51] zyga: well I can't do anything since it just sits there in limbo for 30 mins or more now [08:51] dragly: can you try rmeomving all except the one you actually want to use [08:51] imexil can you do this: snap abort 123 [08:51] (123 i the identifier of the task) [08:51] s/task/change/ [08:51] zyga, mwhudson_, mvo yep, with the new udf all should be fine to run the remaining integration tests (most of them have been ported to spread) [08:51] you can salso see snap change 123 [08:51] for details [08:51] zyga: Thanks! [08:52] That worked === om26er__ is now known as om26er [08:52] imexil: note that if you had killed snapd it would just restart the next time and resumed the whole activity [08:53] I see. [08:55] i think http://162.213.35.179:8080/job/github-snappy-integration-tests-cloud/4144/console is going to make me very upset with adduser(1) [08:56] zyga: I tried to remove the nvidia-352 with "sudo apt remove nvidia-352" and also checked dpkg --get-selections for any other nvidia packages. However, the folder still remains. I'll remove it manually now, but I suspect the script might need to verify if multiple packages are really installed. [08:56] dragly: what is inside? [08:56] I currently only find libnvidia-fbc.so.1@ libnvidia-wfb.so.1 in the folder [08:56] two dead symlinks to libnvidia-fbc.so.352.63 and libnvidia-wfb.so.352.63 [08:57] dragly: you can use dpkg -S to find which package puts stuff inside that folder [08:57] dragly: yeah, please try to remove them [08:57] uh [08:57] seems like noone is taking responsibility for those files [08:58] how _do_ you add a user to a group with extrausers [08:58] dragly: then they must be created by postinstall scripts [08:59] now I'm back to the "libGL error: failed to load driver: swrast" [09:00] dragly: hmm [09:00] trying to update all packages with xenial-proposed now [09:00] I guess snapd should be updated too? [09:02] dragly: snapd doesn't affect this but sure [09:02] dragly: you can update it [09:02] dragly: I think someone with nvidia hardware of the same / similar era should be able to explore this bug in detail [09:04] can i d/l an ubuntu-core image yet? [09:06] oh, http://people.canonical.com/~mvo/all-snaps/16/ [09:07] zyga: Sure. I would also be happy to explore it further myself. Should any links have automatically been created in /var/lib/snapd/lib/gl/ with the above packages installed? Currently this folder is empty. [09:31] uh does libnss-extrausers just not support supplementary groups at all [09:33] Tried the workaround by copying the files from nvidia-* to /var/lib/snapd/lib/gl, but that didn't work either. [09:51] mvo, so i'm a bit desparate with my kernel snap creation ... whatever i try with u-d-f i can not get any working arm images (funnily kvm works, even if the kernel package isnt built correctly) ... when i mount a pi2 or dragonboard image after dd'ing i end up with: [09:51] ogra@anubis:~/datengrab/images/snappy$ ls /media/ogra/writable/system-data/snap/pi2-kernel/ [09:51] unset [09:52] dragly: re, sorry I was on a call [09:52] dragly: it is a bit magic, you need to read this to understand what is going on [09:52] dragly: http://www.zygoon.pl/2016/08/snap-execution-environment.html [09:53] dragly: the only way to see the actual environment is to experience it at runtime, try the hello world snap or anything that includes bash (I use snapd-hacker-toolbelt snap) [09:53] dragly: then you can see what the /var/lib/snapd/lib/gl folder really contains [09:53] dragly: you should also, after you get familiar with the ideas, look at github.com/snapcore/snap-confine [09:54] dragly: there's src/mount-support-nvidia.c there that does all the nvidia work [09:54] dragly: so please explore that and get in touch when you have some ideas [09:54] ogra_: is this a sideloaded kernel? [09:54] yes [09:54] i didnt want to upload potentially broken ones to the store [09:55] I am running snappy on my RPi2 after a while, seems there is no longer enable-classic command ? Was that removed or is that another way for that ? [09:56] (and currently my kernel build script is broken wrt pi2 so i cant quickly give you something to test) [09:56] ogra_: aha, ok. I think that is the issue, i.e. a bug in that code path [09:56] downloaded from https://people.canonical.com/~mvo/all-snaps/16/ [09:56] ah, phew [09:56] mvo, another thing ... did you ever try to reboot a kvm image 3-4 times ? [09:56] hey ogra_ how are you doing? :-) [09:57] about the 3rd time it wipes the grub variables [09:57] ogra_: magic broken grub thing? [09:57] ogra_: I have a vague idee what it is, I can give you something in maybe 1h or so, just ping me when you have your script ready again [09:57] yeah [09:57] mvo, ok [09:57] om26er: please try "snap install classic" [09:57] ogra_: uh :( does it happen if you randomly reboot in the middle of the boot process? [09:57] ogra_: or normal reboots? [09:57] normal reboots [09:58] fresh install, do the first boot and check you can log in ... reboot ... do that again ... grub dead [09:58] ogra_: ta, I have a look [09:58] i forgot if it is the second or third time ... but it is reliably reproducable [09:58] ta [09:58] * zyga recalls checkbox reboot stress test (just 30 reboots) [09:59] mvo, says snap not found [09:59] yeah, that would have hit it quickly [09:59] om26er: sorry, "sudo snap install --devmode classic" [09:59] om26er, --devmode --edge [09:59] ogra_, does --edge give me yakketty ? [10:00] uh uh is /etc/sudoers.d supposed to be writable? [10:00] mvo, also, if you check the store ... ubuntu-core auto-uploads work ... i talked to jdstrand_ about getting an exception into the review tools to auto-publish (i was hoping it was done today, seems not... i should have turned off auto-build :) ) [10:00] mwhudson_, yes, cloud-init needs to put a file in there [10:01] zyga: Ok, thanks. I'll try to package a bash script and see what I can figure out. [10:01] om26er, no, yakkerty is dead beef ... all channels are xenial ... edge is just the test channel [10:01] oh right [10:01] * mwhudson_ was being dumb [10:02] dragly: you can use my snapd-hacker-toolbelt snap [10:02] dragly: just install it and run snapd-hacker-toolbelt.busybox sh [10:02] dragly: then explore === hikiko is now known as hikiko|ln [10:07] Great! === mwhudson_ is now known as mwhudson [10:33] ogra_: do I have to change any configuration file to enable the pi3 serial console with your image? [10:34] morphis, nope, serial is the default [10:34] hm [10:34] works here ... [10:34] 115200 8n1? [10:34] yeah [10:35] (i just use screen for that: screen /dev/ttyUSB0 115200) [10:36] let me verify my pin connection [10:36] third pin is ground ... [10:36] ogra_: following https://www.element14.com/community/servlet/JiveServlet/previewBody/73950-102-10-339300/pi3_gpio.png?01AD=3qQ4vBf_OyjHCgCsVfVCaOLElbWZscIAIt5xnDSIb_jh1EytwTHJ-Ag&01RI=4BD464EBE91DD68&01NA=na [10:36] yeah [10:39] and https://www.sparkfun.com/products/9873 [10:42] ah, i just use a cable ... [10:45] hm === jibel_ is now known as jibel [10:48] ogra_: works [10:48] my fault [10:48] phew [10:48] PR snapd#1655 opened: integration-tests: look for ubuntu-device-flash on PATH before calling sudo [10:59] ogra_: ok, a manual ifdown/ifup makes ethernet working [11:00] yeah, there is some race that mwhudson filed a bug about (cant find it atm) [11:01] Son_Goku: hey, I cracked the go-xgettext issue [11:05] Son_Goku: I pushed the package to github.com/zyga/snapcore-fedora, just doing local builds in mock to ensure it is good === hikiko|ln is now known as hikiko [11:20] zyga, sweet [11:34] Son_Goku: morning :) === chihchun is now known as chihchun_afk [11:45] Son_Goku: https://bugzilla.redhat.com/show_bug.cgi?id=1359802#c9 [11:45] sergiusens, marking bugs as inclomplete but not asking for and info ? (bug 1608432) [11:45] Bug #1608432: snaps with type: os should allow publishing of .manifest files [11:46] s/and/any/ [11:49] zyga, approved [11:51] Son_Goku: woot, thank you, looking at snap-confine now [11:52] you should go ahead and import go-xgettext and prepare the bodhi things now [11:52] Bodhi has now been activated for F25, too [11:53] yep, I read the mail today [11:53] I see a few things that rpmlint reports on snap-confine, I'll do as you said and then return to snap-confine === DanChapman_ is now known as DanChapman [12:20] * zyga returned from small lunch :-) [12:23] Son_Goku: package requested, focusing on snap-confine now [12:23] ogra_: what are you building the pi3 kernel snap from? is there a snapcraft.yaml? [12:24] Son_Goku: someone finally updated pkgdb code to select rpms by default (instead of the docker images) :-) [12:24] yeah [12:24] that drop down is going to be get really annoying [12:24] especially once we have modules :/ [12:25] and if the snapcraft stuff gets done, snaps too [12:25] I heard about modules last week but I didn't dig into it, what are they? [12:29] zyga, they're some abstract definition of a collection of software that provide a specific capability [12:30] for now, a module is a definition that pulls in a bunch of RPMs and generates a self-contained repository of them [12:30] and when you install a module, it installs all of the repository [12:30] I'm not entirely sure why we're doing this, since (to me) it looks like it's the same thing as the comps groups (composition groups) [12:31] Son_Goku: looks like old package collections [12:31] * Son_Goku shrugs [12:31] https://fedoraproject.org/wiki/Modularity [12:35] morphis, it is the pi2 kernel actually (same thing, just additional FW for the pi3 is needed) [12:36] morphis, this is the (currently still broken) attempt to roll automated kernel snaps https://code.launchpad.net/~ogra/+junk/kernel-test-snap ... https://code.launchpad.net/~ogra/+snap/kernel-test-snap [12:37] the original code for this lives in livecd-rootfs in the live-build/auto/build script [12:38] ogra_ I did reply to that [12:38] ogra_ hmm, didn't make it through :-/ [12:39] Son_Goku: does this look sensible http://pastebin.ubuntu.com/22798002/ [12:39] Son_Goku: I see the setuid bit, the setgroups that is actually desired in this case (I checked with the security team) and the script in /lib/udev/ [12:40] does snap-confine not support using capabilities in-place of setuid? [12:40] Son_Goku: capabilities? [12:40] https://fedoraproject.org/wiki/Features/RemoveSETUID [12:40] Son_Goku: well, I'm not sure [12:41] Son_Goku: let me check [12:41] oh, I see [12:41] cool, let me try [12:41] it *probably* is enough [12:41] though snap-confine still checks for uid == 0 [12:42] I think that check is obsolete when capabilities are in use [12:43] if it supports using file capabilities instead of needing setuid/setgid bits, then you should probably adjust the build system to offer the choice [12:43] both SUSE and Fedora prefer caps over setuid/setgid [12:44] Son_Goku: upstream code doesn't support this yet but it seems easy enough to implement [12:44] cool [12:44] Son_Goku: where are the authoritative caps I can use? [12:45] I see Invalid capability: cap_setuid,cap_dac_override,cap_sys_admin [12:45] +%attr(0755,root,root) %caps(cap_setuid,cap_dac_override,cap_sys_admin) %{_libexecdir}/snap-confine [12:45] I think file caps are documented in the capabilities manpage [12:45] man 7 capabilities [12:45] thanks [12:47] zyga, also, it should be /usr/libexec/snapd [12:47] err [12:47] ... /usr/libexec/snapd/snap-confine [12:47] snap-confine needs to be in a folder in /usr/libexec [12:48] noted, let me change that [12:49] it's essentially the same rule as in debian, except we actually use /usr/libexec for helper programs [12:49] instead of stuffing them into /usr/lib [12:49] honestly don't know why debian hasn't adopted it, especially since it's now part of the FHS spec as an optional component [12:49] libexec is not present in hier anymore [12:49] yes it is [12:49] FHS 3.0 includes it [12:50] drizzt@liara ~ % man hier | grep libexec [12:50] drizzt@liara ~ % [12:50] https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s07.html [12:51] * zyga tries to guess the %caps() syntax [12:51] To accomodate this restriction, it became common practice to use /usr/lib instead. Either practice is now acceptable, but each application must choose one way or the other to organize itself. [12:52] timothy, yes, I know [12:52] hence "optional" [12:52] for example systemd uses /usr/lib/systemd by default :) [12:53] Son_Goku: https://fedoraproject.org/wiki/How_to_create_an_RPM_package talks about %caps(cap_net_admin=pe) FOO.BAR [12:53] Son_Goku: do you know what =pe is for? [12:53] nope [12:53] we're getting into weird stuff now :) [12:53] one sec [12:53] * zyga googles [12:53] dwalsh is online on #fedora-devel [12:53] you could ask him [12:53] yep, let's try that [12:53] where do I report issues with the docs? in tour instructions, to be precise [12:53] he's usually the guy to turn to on these things [12:54] Bug #1611287 opened: provide canonical way to install templates and configuration files into $SNAP_* dirs [12:55] I am trying to create a snap for EDS and I am using "plugin: autotools configflags: [..]". It is running configure with the correct flags. But looks like it is trying to use the configflags as gcc arg as well. [12:55] Which is causing problems [12:55] like that: gcc-5.real: error: unrecognized command line option ‘--sysconfdir=/etc’ [12:55] How I can solve that? [12:56] renatu: i's not an autoconfig configure [12:58] timothy, what you mean? [12:59] renatu: maybe it is a configure script but it is not a real autoconf configure script [13:00] renatu: but a hand-written one [13:04] zyga, timothy, I am using the same flags that I found in debian/rules: DEB_CONFIGURE_EXTRA_FLAGS += [...] [13:04] renatu: as CFLAGS or what? [13:05] I did not see any special case [13:05] this is the full log: http://paste.ubuntu.com/22799750/ [13:06] yes, you are passing configure flags as CFLAGS [13:07] timothy, how I can avoid that? [13:07] what is you yaml file? [13:07] timothy, http://paste.ubuntu.com/22799877/ [13:11] hey guys: anyone know the story here: https://bugs.launchpad.net/snappy/+bug/1611078 installing snaps in containers needs some more tricks? [13:11] Bug #1611078: could not install hello-world snap in lxd container [13:15] cjwatson, do you have an opinion about bug 1608432 ? (specifically about sergiusens' comment) [13:15] Bug #1608432: snaps with type: os should allow publishing of .manifest files === JanC is now known as Guest75507 === JanC_ is now known as JanC [13:18] ogra_: it would make more sense to do it in launchpad-buildd, since that has the build tree right there [13:20] cjwatson, ok, any preference for the location or the naming ? [13:21] (do you want me to sort the full naming scheme and just put it in meta/ so you can just blindly cp *.manifest) [13:21] ogra_: well, could be even simpler [13:21] ogra_: can you just write another file to the same output directory that the .snap is written to? [13:22] ogra_: (it would certainly be best if launchpad-buildd didn't have to have a pile of naming logic in it) [13:22] i can try to, yes (the files already exist i think. live-build hasnt changed in that regard and i dont explicitly remove them) [13:22] Cool if that manifest had a checksum in it too. [13:22] ogra_: launchpad-buildd would have to whitelist the file too [13:22] if entry.endswith(".snap") and not os.path.islink(path): [13:22] self._slave.addWaitingFile(path) [13:23] timothy, systemd was granted an exception back in 2012 in Fedora [13:23] it's not allowed without good reason [13:24] claro [13:24] hmm, i see: [13:24] [2016-08-08 04:33:53] lb_binary_manifest [13:24] P: Begin creating manifest... [13:24] Son_Goku: Debian never adopted /usr/libexec basically because it would have been a ton of work for negligible benefit [13:24] but i dont see the .manifest file anywhere (i thought i had some "ls" in the build to show the output dir) [13:24] i need to check that [13:24] what work? even debhelper still sets it by default [13:25] it's hardly that simple [13:25] the debian maint stuff overrides that explicitly [13:25] lots of little details of hardcoded paths etc. [13:25] and nobody felt it was important [13:26] Is there an official snappy app store? [13:27] a browsable URL? [13:27] fginther, only https://uappexplorer.com/apps?sort=relevance&type=snappy [13:28] ogra_, thanks [13:28] (semi official ... (i.e. even linked from official pages but run by a community member) [13:28] ) [13:28] ogra_: that says is unofficial [13:28] where does it get its data from? API calls to the snap store? [13:29] Ursinha, and it is ... but we link to it from i.e. snapcraft.io because we have no better alternative [13:29] fginther: $ snap find ... [13:29] Ursinha, thus "semi official" :) [13:30] fginther: It reproduces the search queries that "snap find" uses. There's a RESTy API for the store. [13:30] well, snap find wont give you anything if you dont use a query string [13:30] so getting all snaps available is currently impossible via snap find [13:31] ogra_: right [13:31] * Ursinha tcpdumps to find the actual API call [13:31] :) [13:31] lol [13:32] how can you specify the SNAP_USER_DATA in the snapcraft.yaml so that built files can be placed there [13:32] and accessed during runtime [13:33] i dont think you can [13:33] (in snapcraft.yaml at least) [13:33] you can use it in a wrapper script for your binary though [13:33] so the issue is we're building some dll's with dotnet that gets created during build [13:34] but we need to have the lockfile writeable when someone runs our snap and that happens in the same directory as our build [13:35] stokachu: you cannot because that happens at runtime not at build time [13:35] stokachu: just use a wrapper for your apps/services that copy data there if missing [13:35] ok [13:36] stokachu: SNAP_USER_DATA is not a part of the snap [13:36] stokachu: it's not in the squashfs file [13:36] stokachu: so you cannot place anything there at build time [13:36] ok, makes sense [13:37] PR snapcraft#716 opened: Add Waf plugin (LP: #1611335) [13:45] is a new release planned soon? [13:45] hi popey, for compiling mono would you recommend a plugin different than autotools? [13:49] Bug #1611384 opened: Change detection not working, have to "snapcraft clean" between builds when modifying snap contents [13:49] balloons fighting adt and yakkety even as worthless as it is to release to yakkety for us [13:49] same old same old fighting build systems for days [13:49] * sergiusens cannot wait for snapcraft to be released as a snap [13:49] but work needs to happen for that to be viable [13:49] sergiusens, yuck. I'm sorry to hesar that. I know all about [13:50] sergiusens, is it actually worthless for snapcraft ? (i imagine yakket users might want to roll snaps too) [13:50] it likely is useless for snapd [13:51] ogra_ snaps that might or might not work as the base is different [13:52] well, you'd have to add libc to stage-packages for sure [13:52] but the rest should still work i imagine [13:55] o/ [13:56] PR snapd#1656 opened: snap: do not sort the result of `snap find` [13:57] sergiusens: hey, what are your plans to let snapcraft consume RPMs? [13:59] la_juyis: I haven't built any mono things yet, sorry [13:59] popey only builds stereo :) [14:00] don't worry, be snappy ;) [14:00] ! [14:00] I don't want that song in my head [14:00] :) [14:00] LOL [14:01] ok folks - so I did a simple bit of openstack and snapped the nova compute control plane services - that works OK [14:01] going for the harder one now - specifically nova-compute - which will have to interface to libvirt or lxd and openvswitch or [14:01] anyone looked at snapping libvirt yet? [14:02] nova would need to access the local libvirt socket, and allow libvirt to consume qcow2 disk files that its sourced and setup [14:04] jamespage, well, there would have to be an interface that provides libvirt access for your snap [14:05] (you can not access anything outside of your snap without an interface) [14:06] yeah got that bit - so something like 'libvirt-manage' or suchlike [14:06] maybe 'libvirt-control' inline with other interfaces [14:08] dpb1: let it snow, let it snap ;-) [14:08] PR snapd#1657 opened: tests: add udev rules spread test [14:08] PR snapd#1658 opened: partition: fix cleaning of the boot variables on the second good boot [14:10] zyga they are plans; it will happen when I get kyrofa back [14:10] so I can dive into that and not fix all the minor problems everyone runs into [14:11] sergiusens: understood, thanks [14:14] ogra_: the bug about cleaning the boot vars is fixed (well, PR is up) [14:17] ogra_, is there an existing interface that allows a snap to share a directory with other snaps? [14:17] so nova-compute could expose a slot to allow libvirt to access its qcows2's for example [14:19] jamespage: content [14:19] zyga, ta [14:19] jamespage: but it cannot be used to share anything in $SNAP_DATA yet [14:19] jamespage: but AFAIK that is the plan, for now it can only be used to share $SNAP [14:20] jamespage: (or a fraction of $SNAP) [14:20] zyga, it would need to be the writable area that was sshared [14:20] so $SNAP_COMMON I think for this instance [14:20] as the data is not specific to a version of the snap [14:21] jamespage: I see, in both cases it would require new code in snapd [14:21] mvo, great, thanks ! [14:25] * zyga focuses on snap-confine capabilities [14:28] stgraber, do you have a lxd snap yet? [14:29] folks, in the yaml, is there a way to copy a file under multiple names? Something like this ---> http://pastebin.ubuntu.com/22805771/ [14:29] zyga: you'll need to think through using fscaps. the fs needs to support xattrs. snaps are typically built with -no-xattrs. the core snap may or may not be (I don't know), but if it is, the fscaps will be stripped for all snaps [14:30] zyga: s/all snaps/all snap systems/ === jdstrand_ is now known as jdstrand [14:33] jdstrand: this is just for fedora (and perhaps suse) when snap-confine is packaged in the distribution-native format [14:33] jdstrand: I'm trying to wrap my head around https://lwn.net/Articles/528542/ [14:33] PR snapd#1653 closed: docs: fix references to refresh action === matiasb1 is now known as matiasb [14:34] jdstrand: nothing I'm doing is changing snap-confine anywhere else [14:35] jdstrand: and I must say, the way caps work makes me want to shout and run :) [14:35] jdstrand: I will build a test app that shows all capabilities set and see how it behave [14:35] *behaves [14:36] dholbach, thanks for reviewing the mesa-demos snap. I see that it failed for you. What GPU do you have? [14:37] camako, i915 [14:37] in an x220 if that matters [14:39] dholbach, hmm interesting... Also, I'm not sure why this dir doesn't exist in your snap --> /snap/mesa-demos/x1/egl/opengles2 [14:39] do you at least have /snap/mesa-demos/x1 ? [14:40] camako, http://paste.ubuntu.com/22806726/ [14:40] ogra_: so I can easily enough do http://paste.ubuntu.com/22806674/, but let me know first if you manage to get something spitting out the file to the right place === ycheng is now known as ycheng-ark [14:43] dholbach, I think I'm missing egl/gles packages in the snap... I'm assuming the gl apps worked for you (mesa-demos.{gears|teapot})? [14:44] they do! :) [14:44] jamespage: kinda [14:44] jamespage: snap install --edge --devmode lxd [14:44] jamespage: that will work, but we still need to sort out the interface we need and get some bits done on the snapd side (socket activation and group management at least) [14:45] stgraber, ack [14:45] stgraber, 'lxd-control' type or something I guess [14:45] stgraber, just thinking about a nova-compute snap [14:45] :) [14:46] jamespage: yeah, so we'll have a lxd interface which will both allow lxd to do all that it needs and will allow other snaps to connect to it [14:47] jamespage: it's not going to auto-connect for obvious security reasons, so you'll have to install the nova-compute snap, and then use "snap connect" to attach to the lxd interface so you can drive it [14:47] stgraber, I was making that assumption [14:48] good [14:52] PR snapcraft#717 opened: fix checker errors to let runtests.sh pass again [15:10] cjwatson, i can surely get it there (might need some test builds, but effectively it is just the builddir) [15:12] mhall119: do you have a project that fails because of https://github.com/snapcore/snapcraft/pull/688 ? [15:12] PR snapcraft#688: Strip common path prefixes from linkname as well as name when extracting a tarfile [15:12] well, that failed before your patch. [15:12] elopio the arduino thing [15:12] look at his g+ [15:12] PR snapd#1659 opened: wrappers: ensure services have a valid SNAP_USER_DATA dir [15:13] https://github.com/snapcore/snapcraft/pull/657 [15:13] PR snapcraft#657: Add constraints to python2 plugin [15:14] im goign to assume 5 days to complete teh tests is not normal... [15:14] how do i trigger a recheck? [15:16] SamYaple let me check [15:17] SamYaple oh, travis even [15:17] SamYaple can you do a noop commit --amend and push to trigger? travis didn't even assign it a job to retrigger [15:18] okie dokie. will do. ill get it going again [15:21] sergiusens: https://gist.github.com/elopio/a749810edd9a80517b46ace63d45b166 This is the testing for the SRU. [15:22] ppisati: can you give me please the steps you are following to build the kernel snaps? [15:24] elopio: e.g. git clone git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/xenial [15:25] elopio: git checkout master-next (beucase it contains the snapcraft.yaml file) [15:25] elopio: and then execute snapcraft [15:25] elopio: bear in my mind that you need *at least* one patch [15:25] elopio: to cope with the vmlinuz -> kernel.img rename [15:26] elopio: http://paste.ubuntu.com/22810646/ [15:26] this is the snapcraft patch [15:26] with this, it won't boot at all [15:26] nonetheless, it'll hang during the initrd phase ATM, i'm trying to debug why [15:27] thank you! [15:28] i need to compare the snap created using the snapcraft's plugin vs ogra's kernel snap [15:28] ogra's kernel work are ok, snapcraft's kernel plugin hangs @ initrd [15:28] weird [15:28] ogra_: indeed [15:28] ogra_: do you have a kernel snap somewhere that i can use? [15:28] did you try just dumping my initrd into your sanp ? [15:29] ogra_: if i can get my hand on your snap, yes [15:29] i mean, i'll do [15:29] ppisati, i think this pone worked [15:30] ogra_: which one? [15:31] lol [15:31] https://code.launchpad.net/~ogra/+snap/kernel-test-snap/+build/2559 [15:31] k, me tris that [15:31] *tries [15:31] Bug #1611424 opened: Additional "lts" channel or support for upstream series [15:31] sorry, pasted the url into the terminal instead of the irc client :P [15:31] how do i write new interfaces? [15:32] i'm trying alongside ... [15:32] ali1234, zyga had a series of blog posts about that somewhere [15:32] elopio: yes, it was arduino [15:32] mhall119: can I get the link to the snapcraft please? [15:32] i need a bunch of sysfs access [15:33] gpio, backlight, maybe iio [15:33] and i2c-dev [15:33] gpio is in the works [15:33] and spidev [15:33] elopio: https://github.com/ubuntu/snappy-playpen/tree/arduino/arduino [15:33] (and i think i2c as well) [15:33] ty. [15:33] also i need device tree overlays working [15:34] bug 1607447 [15:34] Bug #1607447: Please install device tree overlays [15:34] thats a problem until we can make them fully work in uboot (for which i currently dont have the time) [15:34] just let the blob load them and don't mess with it [15:34] (i know there was upstream work for generic overlay support) [15:35] the overlays are in the pi2-kernel snap [15:35] cool [15:35] is that usable yet? [15:35] but you still need to copy them around manually [15:35] (they have always been there) [15:35] they aren't in the classic image [15:35] ah, classic [15:35] yeah, never touched that :P [15:35] unless they are really well hidden [15:36] under lib/firmware/device-tree [15:37] that is where i drag them from in the snap creation [15:37] ppisati, tested again., that snap boots here [15:38] well that's not very much use. they need to be on the fat partition or the bootloader can't see them [15:38] fgimenez: do we have the hubot deployed somewhere? [15:38] ppisati, that was built using https://code.launchpad.net/~ogra/+junk/kernel-test-snap rev 36 [15:39] ali1234, so you need to copy them there [15:39] not different to the snap image [15:39] that directory doesn't exist on the classic image, what package do they belong to? [15:39] just a different location to copy from [15:39] they shoould be in the linux-image-raspi2 [15:39] they aren't [15:40] or linux-image-$version-raspi2 rather [15:40] well, i pull them from there [15:40] ah! [15:40] ogra_: ok, i installed your vanilla pc-kernel snap [15:40] ogra_: same exact problem upon boot [15:41] how can linux-image install things in /lib/firmware? everything in it needs to be versioned? [15:41] ali1234, http://paste.ubuntu.com/22812010/ [15:41] elopio, not currently, we had it while testing a not landed PR, whith the last wipeouts of the cluster it went away [15:41] thats the code that copies them in livecd-rootfs [15:41] is there a snapcraft whomai command? in other words, what's my login creds? [15:41] ppisati, what u-d-f and what channel do you use ? [15:41] elopio, this should be enough to redeploy it https://github.com/ubuntu-core/snappy-jenkins/pull/164/files [15:41] PR ubuntu-core/snappy-jenkins#164: hubot [15:42] ogra_: i'm using mvo's all-snaps-amd64 img, scp the snap over and installing it [15:42] fgimenez: awesome, thanks. [15:42] balloons no, but that warrants a wishlist bug ;-) [15:42] ppisati, oh ... not sure that works [15:42] sergiusens, ack, filing [15:42] ppisati, i always build a fresh iimage [15:42] sudo ./ubuntu-device-flash core 16 --channel edge --kernel pc-kernel_4.4.0-31_amd64.snap --gadget pc --os ubuntu-core -o test.img [15:42] balloons right now you can check in .local/share/snapcraft if really needed [15:42] with the last u-d-f from mvo's dir [15:43] * ppisati tries to build a new image, can you try to install your pc-kernel snap like a regular snap pkg? [15:43] okay so they are actually in /lib/firmware/4.4.0-1009-raspi2/device-tree/ - ie it is versioned [15:44] ah, right [15:44] * ogra_ is spoiled by the handy find command :) [15:44] sergiusens, I see a headers.yaml and parts.yaml in there. [15:44] ppisati, i can, but i doubt that works correctly [15:44] ppisati, since the magic for the bootloader wont kick in [15:45] sergiusens, I know I asked earlier, but I realized I can't have lp build my snap until the godeps plugin is released. So now I really am curious when it might land :-) [15:47] balloons: yakkety today, xenial as soon as the SRU process is done. [15:48] elopio, can you land the SRU on a one day turnaround? [15:48] do you have an exception to do so? [15:49] ogra_: guess what if i create an img instead of trying to install a new kernel on it? [15:49] balloons: yes. I takes me like a couple of hours to test it, and then it's a matter of finding a free person with permissions. [15:49] it works [15:49] indeed :) [15:49] PR snapd#1660 opened: add vim swap files to gitignore [15:49] i dont think sideloading kernels is actually supported atm ... ask mvo though [15:49] elopio, as soon as it's in proposed, let me know. That's enough to get the lp builders working for me [15:50] balloons: I think you could do a trick to get it earlier. The launchpad page has a ppa textfield, I wonder what happens if you put https://launchpad.net/~snappy-dev/+archive/ubuntu/snapcraft-daily in there. [15:50] the kernel.img patch for snapcraft is still needed, so i'll fill a bug for that [15:50] elopio, hmm. good idea, I'll try [15:50] what should i put in the version field in my snaps? [15:50] the version of the software i am snapping? something else? [15:52] ppisati, that should be tied to "type: kernel" not actually too the kernel plugin though ... (then it helps me too) [15:52] ali1234, whatever you want ... its just a string after all and does not have any effect [15:52] anything at all? [15:52] i think you need something in there, else snapcraft complains [15:53] is the version used for anything? [15:53] but you could put "foobar" in [15:53] no [15:53] like does it have to always be increasing? [15:53] no [15:53] if i make a newer release how does it know? [15:53] the store (or snapd for sideloaded snaps) cares for that via the revision [15:53] in case of sideloading it just is $current_revision+1 ... [15:53] so i can just leave it on version 0 forever? [15:54] in case of store packages the revision gets created at snap upload time [15:54] yeah [15:54] can i make snapcraft automatically fill the version field with something from the build? [15:54] not atm [15:54] okay, 0 it is then [15:54] i think there is work being done that you can use the version from snapcraft.yaml inside your build [15:54] that's not very helpful [15:54] (so the other way around) [15:54] it totally is :) [15:55] elopio, that works for me, ty :-) [15:55] for me at least [15:55] the build knows what version it is [15:55] balloons: cool. Remember to remove it after the release :) [15:55] i.e. building a kernel snap i need the version in certain moments ... today i have to grep snapcraft.yaml for that [15:55] i don't know before i run snapcraft what revision it is going to pull from git... or the repo [15:55] having a var for it is massively helpful here [15:55] right [15:55] in that case it isnt [15:56] as i said, the other way around than what would be helpful for you [15:57] what is the proper syntax for multiline texts in yaml? [15:58] sergiusens: lp1611435 [15:58] bug1611435 [15:58] bah [15:58] nvm found it [15:59] bug 1611435 [15:59] Bug #1611435: kernel plugin: hard link vmlinuz to kernel.img [15:59] :) [16:01] ppisati, just confirming, sideloading my kernel snap in the working image gets me the initrd prompt on reboot [16:06] ogra_: that's the stuff i was hitting today [16:06] yeah [16:06] not sure if it is a bug though [16:07] assertions might make sideloading kernels impossible by design [16:07] (they havent landed yet) [16:07] ogra_: and how do i test a new kernel? from a developer POV [16:07] you have to ask the core team [16:07] you build an image [16:08] probably niemeyer or pedronis can chime in here ... they are the assertion masters and can tell if sideloading kernels will be possible in the future [16:09] (i would assume not, but that you can always build a local image using your local kernel snap instead ... for testing) [16:09] is there a plugin that dumps a text fragment from the yaml into a file? [16:09] like copy except without needing a separate file [16:09] would be handy for the one-line wrappers that literally everything seems to need [16:09] * ogra_ would just use the make plugin and a makefile [16:09] kyrofa, can you take a look at this error lp got trying to build juju using the godeps plugin? https://launchpadlibrarian.net/277983664/buildlog_snap_ubuntu_xenial_amd64_juju_BUILDING.txt.gz [16:10] a makefile is an external file [16:10] balloons, looking now [16:10] balloons, eww [16:11] balloons, I have no clue what that means. Do we have any bzr people around here? [16:11] sergiusens, you're a bzr pro, aren't you? [16:11] ogra_, ppisati: Loading of custom kernel snaps will definitely possible.. we'll probably tweak settings to account for the fact the kernel is unknown, but the system should boot fine [16:11] niemeyer, ok [16:12] ppisati, then it is a bug, please file one [16:12] kyrofa balloons feels like a proxy issue, cjwatson might now better [16:13] balloons, looks like cjwatson and ogra_ may have had a conversation about this already [16:13] it feels like it's something to do with the builder [16:13] kyrofa: no, that was entirely unrelated [16:13] kyrofa, about what exactly ? [16:13] ogra_, ppisati: Note that I'm literally reviewing mvo 's prepare-image *today*, so the fact you even have an image is surprising! ;) [16:14] niemeyer, we have a hacked up u-d-f that mvo provided last week [16:14] (which is supposed to give us everything but model assertions afaik) [16:14] balloons: can you make it use lp:tomb etc. rather than https://launchpad.net/tomb ? [16:14] (with a ton of hardcoding atm) [16:15] ogra_: I know, I'm half-joking.. just pointing out there are obviously missing pieces, and we're working on fundamental parts of that problem still [16:15] :) [16:15] ah, or in fact ogra_ and I did talk about this some days ago I think [16:15] cjwatson, umm, yes I can do that, assuming nothing breaks [16:15] ogra_, cjwatson bug #1606203 [16:15] Bug #1606203: Failed to build of snappy package on Launchpad: Invalid header value 'Basic U05BUEJVSUxELTE4NzAtMTQ2OTQyNjE0ODpjOTJkYzVjOWQ0OTg0ZGE5OWZlNGY1ZjI3ODRhMWJk\nOA==' [16:15] balloons, ^^ [16:15] niemeyer, that is why i summoned you since i wasnt sure it is desired behaviour ;) [16:15] yeah, I remember now [16:15] ogra_: I don't think it gives you everything either, but mvo would know more [16:15] yeah [16:15] it fakes a lot [16:16] so I don't remember whether lp: will actually help [16:16] hmm [16:16] this is basically a bzr bug but there's a not very difficult workaround possible in snapcraft [16:17] by just using git ? :) [16:17] ogra_, hahaha [16:17] oh, hmm [16:17] in this case bzr is being called via godeps, right? [16:17] get those dependencies out of launchpad [16:17] cjwatson, yes [16:17] so unsetting https_proxy would be problematic [16:17] who said out of launchpad? we have git suppor t:P [16:18] *support [16:18] ohh true.. [16:18] :D [16:18] * balloons notes it's building from a git repo on lp [16:18] I don't really know what to do here; maybe somebody has to spend a few days fixing bzr [16:18] you might be able to bribe vila perhaps [16:20] Bug #1611444 opened: Cannot share a namespace between apps in a SNAP [16:21] I'm guessing I can get those maintainers to host outside of bzr. But I suppose we should update the bug report with the latest thoughts === davidcalle|afk is now known as davidcalle [16:34] joc_: one last comment on snapd#1644 and we can merge it [16:34] PR snapd#1644: interfaces/builtin: add gpio interface [16:34] PR snapcraft#714 closed: Release changelog for 2.14 [16:41] ogra_: installing my own kernel snap always gives me : https://paste.ubuntu.com/22818250/ [16:41] is that expected? [16:51] ogra_: sorry, I miss a bit of context here, whats the issue? that sideloading kernels fails currently? I think this is just a bug ("just" ;) [16:52] mvo_, sideloading kernels on amd64 works but leaves you with a broken boot on reboot [16:53] what morphis sees above is presumably the same issue you fixed today and unrelated to what ppisati has [16:53] ogra_, mvo_: so that is expected :-) [16:54] morphis, there was a bug in general with arm kernels that left me with broken images ... mvo_ fixed that one today ... [16:54] ogra_: in snapd or u-d-f? [16:54] snapd [16:55] (but thats the same here ... ) [16:55] :-) [16:55] means building a new core snap with new snapd or do we have daily's already? [16:57] sergiusens: https://github.com/snapcore/snapcraft/pull/657 [16:57] PR snapcraft#657: Add constraints to python2 plugin [16:57] it really doesnt like that PR, tests still havent run [16:58] PR snapd#1657 closed: tests: add udev rules spread test [16:58] PR snapd#1659 closed: wrappers: ensure services have a valid SNAP_USER_DATA dir [16:58] morphis, i dont think the fix was released yet [16:59] ogra_: I really had waiting for things .. [16:59] mvo_: https://people.canonical.com/~mvo/all-snaps/16/ubuntu-device-flash is the latest u-d-f to generate images? [16:59] yep [17:00] morphis: yeah, anything missing or not working? [17:00] mvo_: no, just trying it :-) [17:00] ogra_: you have the cmdline handy you use for the all-snap pi3 image? [17:00] mvo_, do we have a snapd with your fix for the arm kernels yet ? [17:01] ogra_: did this https://bazaar.launchpad.net/~morphis/+junk/pi2-kernel-snap/revision/38 dirty thing to include the wifi firmware now [17:01] udo ../ubuntu-device-flash core 16 --channel edge --kernel pi2-kernel --gadget pi3 --os ubuntu-core -o test.img [17:01] something like that [17:01] heh [17:02] you could just unsquashfs ... cp the files in there and run snapcraft snap squashfs-root [17:02] yeah [17:03] niemeyer: thanks, made the change [17:03] joc_: Just saw it, thanks! [17:03] joc_: Just waiting for tests to go green [17:04] ogra_: getting: cannot use "pi3", must be one of: ["canonical-i386" "canonical-pc" "pc" "canonical-pi2" "pi2" "canonical-dragon" "dragonboard" "beagleblack"] [17:04] looks like my u-d-f version isn't correct [17:05] morphis: hm, i may need to build an update [17:05] weird [17:05] oh [17:06] right, you telegrammed me the fixed version [17:06] ah :-) [17:06] suspected sth like this [17:06] mvo_: you should create a devmode snap with that u-d-f version [17:06] SamYaple travis is just busy this time it seems [17:08] morphis: heh, good idea [17:08] mvo_: if you don't have time let me do that [17:09] but that would semi-solve this situation :-) [17:09] mvo_: if you have a branch somewhere we can build from that [17:10] PR snapd#1405 closed: interfaces: add zigbee-dongle interface [17:13] morphis: excellent idea [17:13] mvo_: so if you want I can cerate a snapcraft.yaml quickly tomorrow morning [17:14] mvo_: https://code.launchpad.net/~mvo/goget-ubuntu-touch/minimal-first-boot-no-prepare-image is the right one? [17:14] morphis: sounds great, if there is no ubuntu-device-flash by tomorrow then that is very welcome [17:14] morphis: sorrect [17:14] morphis: correct [17:15] hm, does it make sense to include manpages in a snap? [17:15] the system-wide man command obviously can't see them [17:17] ahasenack - i dont think so, i would think we want the snaps to be as slim as possible, especially considering the system man command cannot find the shipping manpages [17:17] its extra bits on disk with no use unless you're bundling man with your snap [17:17] yeah [17:20] how do I include some files that "make install" didn't install? using filesets? [17:21] ahasenack, essentially create a new part that uses the same source and use the copy plugin to get them where you want them [17:22] ok, let me try that [17:28] mvo_: ok, created it now [17:28] just one issue: [17:28] simon@nirvana ~/Work/ubuntu/snappy/hwe/ubuntu-device-flash (master*) $ ubuntu-device-flash.run [17:28] Unknown command `/snap/ubuntu-device-flash/x1/bin/ubuntu-device-flash'. Please specify one command of: core, personal, query or touch [17:28] morphis: woah! [17:28] morphis: \o/ [17:28] somehow the flags parser gets sth wrong [17:28] the problem are not the wrapper scripts [17:28] if I take just the binary I get the same problem [17:28] morphis: sounds like its in the code :/ [17:28] $ prime/bin/ubuntu-device-flash [17:28] Unknown command `prime/bin/ubuntu-device-flash'. Please specify one command of: core, personal, query or touch [17:29] morphis: what ubuntu-core snap do you have? the latest from edge? [17:30] mvo_: https://code.launchpad.net/~morphis/+git/ubuntu-device-flash/+ref/master [17:30] mvo_: you mean on my desktop? [17:30] mvo_: fetching the newest now [17:32] mvo_: but that one doesn't fix the "unknown command" problem [17:34] morphis: I have a look after dinner [17:34] mvo_: thanks [17:35] mvo_: same result with a manual: go build -v -a launchpad.net/goget-ubuntu-touch/ubuntu-device-flash [17:35] morphis: it rings a bell, it smeels like a bug in snap-exec, but I'm not sure right now why its happening, this got fixed a while ago [17:35] so im getting a failure attempting to create a directory in $SNAP_DATA [17:35] https://www.irccloud.com/pastebin/8XM5AilK/ [17:35] not sure why since $SNAP_DATA should be writeable [17:36] stokachu, for daemons ... [17:36] (which run as root by default) [17:36] mvo_: possible just an old version of the flags GO lib? [17:36] sergiusens: for the python plugins, requirements.txt and constraints.txt can both be http url addresses rather than files. I can write a quick'n'dirty check to not run it through os.path.join if it begins with http[s]:// , does that seem useful? [17:36] stokachu, do you try to use it for a binary a user runs manually ? [17:36] or do we not want http[s]:// addresses? [17:36] morphis: maybe, if you share your snapcraft.yaml (or create a PR) I will debug [17:37] ogra_: would be nice if the docs mentioned that [17:37] ogra_: yes this is a binary [17:37] * mvo_ dinner [17:37] stokachu, for user invoked binaries you want $SNAP_USER_DATA instead [17:37] * ogra_ takes a bit from mvo_ to check if he actually tastes like dinner [17:38] *bite [17:38] mvo_: https://code.launchpad.net/~morphis/+git/ubuntu-device-flash/+ref/master [17:38] so the frontpage on snapcraft.io doesn't mentioned SNAP_DATA being for daemons only [17:38] stokachu, well, it is under /var/snap... [17:38] mvo_: do you think we're ok with uploading the snap as canonical? [17:38] ogra_: why does that matter if the app is self contained? [17:38] thanks morphis [17:38] or do we want to keep it personal to not make it official? [17:39] morphis: a good question, its probably ok for now and has the advantage that we can collaborate on it easily [17:39] yeah [17:39] stokachu, well, /var is usually not writable for normal users ... [17:39] ogra_: but the app is self contained [17:39] nno matter what the snap does in a subdir there [17:40] lol that is so confusing [17:40] even with confinement the normal filesystem permissions apply [17:40] if the app is self contained why do we care where it is [17:40] is there something special I have to do to set the GOPATH and GOROOT tha ti'm not seeing? http://paste.ubuntu.com/22824346/ - heres my snapcraft.yaml, and it looks pretty straight forward, however my build fails gloriously [17:40] ogra_: so you're saying the app is not fully self contained? [17:40] stokachu, now thats a question for someone from the core snap team :) it could indeed be anywhere (theoretically) [17:41] wht does the confinement have to do with it ? [17:41] if the app is confined why does it matter where the "host" allows you to write data [17:41] if you invoke a snap binary as stokachu, it runs under your system credentials ... if you have permission to write to a dir the binary will too [17:41] hi ogra_: re stokachu's question about SNAP_DATA, I think the distinction wrt SNAP_USER_DATA needs to be clarified in the docs on snapcraft.io - mind if I try to paraphrase you in a bug on that site? [17:41] if you dont, the binary wont either [17:42] mmcc, sure. go ahead [17:42] ogra_: wouldnt i have permission to write to /var in a snap? [17:42] (feel free to just copy/paste the conversation above ) [17:42] isn't it just /var with regards to the snap itself? [17:42] stokachu, try "touch /var/foo.txt" ... what do you get ? [17:43] that fails obviously [17:43] well, and why would a binary you run as stokachu on your machine have any more permissions on /var ? [17:43] why is snap trying to access /var on the host system?? [17:43] (unless it would be suid root) [17:43] rather than within it's confined space [17:44] because it needs to store stuff in some writable space [17:44] for processes that run with high enough permissions variable data goes to /var [17:44] http://paste.ubuntu.com/22824864/ -- here's the build log from my attempt to build with the snapcraft.yaml from above ^ [17:44] for processes that run under user permissions such data usually goes to some place in /hoem/$USER [17:44] *home [17:45] snappy doesnt change that fundamental setup ... [17:46] you cnt write in /snap/$yourapp ... simply because that is a readonly squashfs [17:47] yea i just figured you would keep it all within /snap [17:47] so you need places where your variable data can go ... which is either $HOME/snap/$yourapp for user related data ... or /var/snap/$yourapp for system related data [17:47] and since i biffed on the OG paste, here's a re-paste with all the build log info i was trying to send in teh first place: http://pastebin.ubuntu.com/22825168/ [17:49] PR snapcraft#495 closed: Add in command to list-parts, this could be useful to further enhance… [17:49] lazyPower, perhaps someone with some go background can help you here ... i.e. kyrofa ? [17:50] Sad... I'm known as the guy with the go background? [17:50] Where has my life gone? [17:50] lol [17:51] * ogra_ hugs kyrofa [17:51] * kyrofa hugs ogra_ back [17:51] Okay lazyPower what's going on here... [17:51] kyrofa - we're looking into snapping up kubectl, the kubernetes client side application to communicate with a k8s api server [17:52] kyrofa - i'm not a gopher, but i'll give it a whirl :) I'm not sure if this is due in part to a misconfigured go workspace, or if i need to send some additional love to the snapcraft yaml to get it to properly fetch those godeps [17:53] lazyPower, offhand the yaml looks fine [17:53] Let me look at this project a little closer [17:53] I'm kind of regretting adding perl to my snap, but now I'm curious why this isn't working: http://pastebin.ubuntu.com/22825810/ [17:53] the file seems to be there at the right place [17:54] the only interesting thing maybe is that the 5.22 component of that path is a symlink: [17:54] lrwxrwxrwx 1 root root 6 Mar 13 08:54 /snap/bip/x4/usr/lib/x86_64-linux-gnu/perl/5.22 -> 5.22.1 [17:54] are there issues following symlinks? Maybe something security related? [17:54] ahasenack, heh [17:55] https://code.launchpad.net/~ogra/+junk/ircproxy [17:55] (i havent found the time to port it to series 16 yet ... there is a 15.04 snap in the store) [17:56] ogra_: I'm using this as a learning experiment [17:56] if you want to use perl, you need to bend the module paths and stuff [17:56] why? Because of the symlink? [17:57] or something deeper [17:57] * ogra_ digs ... my very first snap from two years ago actually did that but i dont have a public branch [17:58] lazyPower, sorry, I made the poor choice of working from a remote cabin this week. The power just went off for a few seconds so the router had to reboot :P [17:58] \o/ power issues [17:59] lazyPower, anyway, this looks like it's due to the use of absolute imports, which means you need to use the go-importpath [17:59] if its any consolation, i found that snapcraft fetch would tank my network connection from my VM, so i'm now doing this in the cloud [17:59] Hahaha [17:59] kyrofa - ok, that go-importpath that i have commented in teh yaml doesn't look correct? [17:59] everything i'ms eeing from the dump of errors is referencing k8s.io [18:00] lazyPower, indeed, that's odd eh? [18:00] lazyPower, but yeah, check this out: https://github.com/kubernetes/kubernetes/blob/master/cmd/kubectl/kubectl.go [18:00] lazyPower, so try making go-importpath: k8s.io/kubernetes [18:01] 1 sec, standup, sorry [18:01] lazyPower, no problem, give that a try when you're able and get back to me [18:01] ahasenack, phew, that took some digging http://paste.ubuntu.com/22826676/ [18:02] ahasenack, look at the "start: " line [18:02] nowadays you would prefix perl/ with $SNAP ... but that should give you an idea [18:03] I see [18:03] thanks [18:03] (the perl installation in that snap obviously lived under perl/ ... so "perl/usr/bin/perl -I perl/usr/lib/arm-linux-gnueabihf/perl/5.20.1 -I perl/usr/share/perl/5.20.1" execs the interpreter with the -I paths for modules) [18:04] hmm, i should actually re-vive that snap and finally control my heating with it [18:04] (and replace the 10 year old fhem machine that does it today with a snap based one) [18:12] kyrofa - aha! new errors, much progress, such excitement [18:12] hi folks, simple question - the first body paragraph of snapcraft.io currently describes snaps as "secure, sandboxed, *containerised* applications" -- does anyone else think that saying "containerised" might be confusing for people new to snaps, who might know more about docker/lxd containers? [18:15] Docker doesn't own containerhood. [18:16] The bug in that sentence is the missplled "containerised". [18:16] qengho: "Docker doesn't own containerhood." [18:16] that gave me a good chuckle [18:17] i want to paste that in #docker [18:18] mmcc: saying something is "containerised" is refering to the linux tech behind containers (namespaces) which snappy absoletly does use. [18:18] i agree though, it tends to feel more like packaging than "containers" if you are familiar with docker [18:19] We need a de-brainwashing paragraph, maybe. [18:20] i wont argue with that qengho [18:20] morphis: I can reproduce it, checking but it smells like the binary is broken for some reason, running /snap/ubuntu-device-flash/x1/bin/ubuntu-device-flash directly gives the same error [18:21] SamYaple: thanks - I should've looked further into how the confinement was implemented. I just skimmed some of the snapd core docs, but didn't see references to user namespaces [18:21] qengho isn't containerised correct in the UK? Kind of like color colour? [18:22] sergiusens: Yes, okay in the UK. At least, no one will send you to gaol. [18:22] mmcc: im not sure if user namespaces are actually [18:23] https://www.irccloud.com/pastebin/2EcZeSdH/ [18:23] anyone seen anything similar to ^? [18:23] if i try to load the yaml outside of the snap it loads just fine [18:24] As far as placing a claim on the term 'containerised', I will just say that if you want to describe it that way, it might be best to clarify it in contrast to LXD and docker containers. [18:24] stokachu, any chance that has something to do with locales? [18:24] mmcc: and lxc and rkt? what about openvz? [18:25] mmcc: a comparison page seems useful, but its certainly not a requiremetn everytime you say "container" [18:26] https://www.irccloud.com/pastebin/YylwY9Rq/ [18:26] kyrofa: ^ is my locales inside the snap [18:26] maybe i need to force LC_ALL? [18:27] SamYaple: sure, I wouldn't want to include a big feature comparison matrix in the first paragraph. If the consensus here is that it's not confusing, I won't push it further [18:28] stokachu, I suspect you've hit bug #1576411 [18:28] Bug #1576411: UTF-8 is not very well supported inside snaps [18:28] Which isn't titled all that well [18:28] PR snapcraft#718 opened: Fix bug lp:1586546 allowing setup.py to work on some projects [18:28] stokachu, essentially, the environment in which your snap runs says it wants en_US. The desktop has the en_US locale, but the environment in which the snap runs does not [18:29] ah ok [18:29] stokachu, there are some workarounds on the bug [18:30] yea im going to try those now [18:30] stokachu, in one of my snaps I work around it by setting LC_ALL=C.UTF-8 [18:30] stokachu, but obviously that's a limited "fix"... [18:31] yea im going to start with a wrapper that has that in there [18:31] see if it gets us passed this === faenil_ is now known as faenil [18:36] josepht seems something went wrong with your merge/rebase https://github.com/snapcore/snapcraft/pull/658 [18:36] PR snapcraft#658: parser - Return non-zero code for wiki errors [18:39] sergiusens: argh! I'll fix it. [18:43] PR snapd#1658 closed: partition: fix cleaning of the boot variables on the second good boot [18:43] is there the concept of applying patches or fixes to a source tarball in snappy, before building? [18:45] or running a simple command, that would also work [18:45] kyrofa : I think that sorted me, there's additional work to be don ehere, like not building the whole k8s ecosystem in this snap, but that fully sorted me. Can i ask how you came ot the conclusion thats what i needed to do? [18:47] lazyPower, excellent! [18:48] lazyPower, I knew because of the errors you were getting-- complaining about not being able to find itself, but in a different path [18:48] lazyPower, particularly one that wasn't github was easy to spot [18:51] sergiusens: that PR should be fixed now [18:51] ah ok, so this really is golang internals [18:52] * lazyPower makes a note to read a book on go [18:52] lazyPower, indeed. go directly maps import "foo/bar/baz" to filepath positions: $GOPATH/foo/bar/baz [19:00] PR snapd#1644 closed: interfaces/builtin: add gpio interface [19:00] joc_: ^^^ [19:03] ahasenack: I'm interested as well, did you find anything out? [19:04] kyrofa - any chance we can pass extra env vars during the build? i'm not seeing that outlined in the tour [19:04] no, not yet [19:04] kyrofa - we should be able to pair this down with a WHAT=kubectl, then firing off the go build, and i think that sorts it [19:04] dpb1: so far I'm leaning towards forking the tarball, and shippig the files I need as I need them [19:04] shipping* [19:04] :( [19:05] lazyPower, no, no build environment yet, but it's on the roadmap [19:05] that sounds less than ideal [19:05] maybe "organize" in my case [19:05] a fancy name for "rename" === faenil is now known as faenil_ [19:06] ahasenack, no, no concept of patching yet. But it's pretty easy to create your own local plugin for snapcraft to use if you want to go down that path [19:12] elopio 2.14 is in -proposed https://launchpad.net/ubuntu/+source/snapcraft/2.14 [19:13] sergiusens: ok. I'll it while it syncs in the archive [19:13] *eat :D [19:15] the copy plugin, looks like it doesn't create directories [19:20] ahasenack, it should be. How are you using it? [19:22] kyrofa: I have a conf file at the same directory level as my snapcraft file, I want it to land in etc/squid-deb-proxy/squid-deb-proxy.conf [19:22] ah, let me try something [19:23] ahasenack, try: [19:23] files: [19:23] conf-file: etc/squid-deb-proxy/ [19:23] I suppose that would actually be: [19:23] files: [19:23] squid-deb-proxy.conf: etc/squid-deb-proxy/ [19:23] it worked now, but I might still be doing it wrong [19:24] files: [19:24] squid-deb-proxy.conf: /etc/squid-deb-proxy/squid-deb-proxy.conf [19:24] before I had [19:24] files: [19:24] squid-deb-proxy.conf: /etc/squid-deb-proxy [19:24] and that just created the file under that other name [19:24] maybe because I missed an ending / [19:24] let me try with an ending / [19:26] Is the snappy store down? === wililupy|travel is now known as wililupy [19:31] kyrofa: yea putting LC_ALL=C.UTF-8 in a wrapper fixed the encoding error [19:31] stokachu, good deal. That's annoying, I'm sorry. Please say something on that bug [19:31] will do, thanks [19:33] I'm getting a file not found error at the and of the snapcraft run, yet the file seems to be right where it needs to be [19:33] [Errno 2] No such file or directory: '/usr/sbin/squid' [19:33] http://pastebin.ubuntu.com/22836747/ [19:34] ahasenack, seems it's actually looking in /usr/sbin/squid (on the system) [19:34] yeah, I feared that [19:35] ahasenack, is there a symlink pointing there perhaps? [19:35] here I was trying to use squid as a run-time dependency (stage-packages), instead of building it as part of the snap [19:35] since this snap is really just a set of config files for squid (squid-deb-proxy) [19:35] kyrofa: no, no symlink [19:36] ahasenack, hmm... odd that it's happening in prime, then [19:36] ahasenack, all that happens there is file migration and ldd crawling [19:36] ahasenack, do me a favor and run snapcraft -d [19:36] sure [19:36] ahasenack, so you can get a trace [19:36] * ahasenack cleans first [19:36] No no [19:36] Just the prime would be fine, you don't need to clean completely [19:37] Though it doesn't hurt anything [19:37] yeah, it's quick [19:37] Good deal [19:38] kyrofa: it's during ldd of sorts: http://pastebin.ubuntu.com/22837387/ [19:39] ahasenack, mind if I take a quick look at your yaml? [19:39] not at all [19:39] but keep in mind it's super work in progress, I'm trying things [19:40] building it step by step [19:40] ahasenack, haha, don't worry, I won't judge ;) [19:40] ahasenack, you should see some of mine [19:40] kyrofa: http://pastebin.ubuntu.com/22837563/ [19:40] There it is [19:40] it needs to be a daemon, etc [19:40] ahasenack, your command is specifically trying to call /usr/sbin/squid [19:41] ahasenack, which doesn't exist [19:41] hm [19:41] how do I reference it, should I drop the first /? [19:42] or just let PATH sort it out? [19:42] Sure, try that. Most of the bins are added onto the PATH by snapcraft, but I'm not sure it'll grab the sbin [19:42] sergiusens, should snapcraft add the sbin directories to PATH as well? [19:42] I don't think it does, but should it? [19:43] ahasenack: what I'm doing is to define the command as only foo if foo can be found in the path (in the case /snap/bin) [19:43] kyrofa: dropping the starting / worked [19:44] kyrofa: thx [19:44] ahasenack, good deal, though it might break when you actually run it since it may depend upon cwd [19:44] yeah [19:44] ahasenack, worst case, you ship a shell script that runs $SNAP/usr/sbin/squid [19:45] kyrofa: I will need a shell script anyway I think, because squid needs to create those cache directories when first started on a fresh system [19:45] Ah yes [19:45] kyrofa: something the deb initscript does [19:45] Then do that. And put it in bin [19:45] kyrofa: here I will have to adapt [19:45] Then make your command just call that (it'll be in PATH) [19:45] Bug #1611068 opened: 401 when trying to install hello-world [19:46] ahasenack, I'm still lobbying for an install hook that can be used to setup that initial stuff [19:48] kyrofa: I missed a way to patch or run commands pre-build time (from the top of my huge 1,5 day experience with snappy) [19:48] Bug #1611493 opened: No TTY in snaps. [19:48] but it's an experiment, and I don't want to be biased by the deb packaging world [19:49] which is much harder I think [19:51] Can anyone help me with how to install snapcraft from source? [19:51] I found this url: https://github.com/snapcore/snapcraft/blob/master/HACKING.md [19:52] I ran ./setup.py install without any luck. [19:54] That step failed [19:54] error: The 'requests' distribution was not found and is required by snapcraft [19:55] mbruzek, you can just run it: /bin/snapcraft [19:55] mbruzek, no need to install [19:56] kyrofa: I installed in in a virtual env, and when I run $snapcraft build, I got an error that "yaml" could not be imported [19:56] so pip3 install pyyaml [19:56] then I ran snapcraft build again [19:56] jsonschema was missing [19:57] pip3 install jsonschema [19:57] now I get the following [19:57] http://pastebin.ubuntu.com/22839534/ [20:00] I tried it another way and got an import error on progress bar: http://pastebin.ubuntu.com/22839680/ [20:00] When running it from the github cloned location [20:01] mbruzek - i took the liberty of filing: https://bugs.launchpad.net/snapcraft/+bug/1611498 [20:01] Bug #1611498: snapcraft fails install using virtualenv instructions [20:01] mbruzek: you have python3-progressbar installed? [20:02] stokachu: Yes. I tried to show that in the pastebin [20:02] mbruzek: you aren't running a venv or anything are you? [20:03] stokachu: Yes I was trying to keep this in a virtualenv, following the HACKING.md instructions [20:03] mbruzek: try pip install progressbar2 [20:04] pip3 [20:04] stokachu: Yep, I got past that one now, but ImportError: No module named 'magic' [20:05] hmmmm [20:05] There are a ton of magic packages, not sure which one [20:06] yea hmm [20:06] You know I _already_ did "pip3 install -r requirements" [20:06] mbruzek: try pip3 install pymagic [20:07] stokachu, mbruzek sorry, internet flaked again. Anyway yeah, the setup.py needs some love. We don't typically use it (we just run straight from src) [20:07] Could not find a version that satisfies the requirement pymagic (from versions: ) [20:07] No matching distribution found for pymagic [20:07] How can I install from source? [20:07] mbruzek, you don't need to-- you can run straight from it [20:07] mbruzek, just run the bin/snapcraft executable [20:07] Add it to your PATH if you want [20:07] kyrofa: he's in a venv and missing some modules it seems [20:07] kyrofa maybe, but we will be adding the environment keyword soon [20:08] kyrofa: I __changed__ the code and want to run with some modifications [20:08] mbruzek: oh pip3 install libmagic [20:09] stokachu: That install worked, but still getting the same import error [20:09] ImportError: No module named 'magic' [20:09] mbruzek, I'm not sure where we're missing each other, here :P . If you run bin/snapcraft it'll use your changes [20:09] mbruzek: try python-libmagic and python-magic [20:09] kyrofa: Yep I get that. [20:09] kyrofa: I am running it this way.... [20:09] (matt3) mbruzek@warhorse:~/workspace/snapcraft/kubectl$ ~/workspace/git/snapcraft/bin/snapcraft build [20:10] ~/workspace/git/snapcraft/bin/snapcraft is giving me these import error [20:10] s [20:10] mbruzek: s/and/or [20:10] mbruzek, _not_ in the venv? Just install the stuff in debian/control [20:10] and pollute my development system? [20:11] kyrofa: I thought the beauty of python was we could use virtualenvs [20:11] Plus the HACKING.md file told me to [20:12] mbruzek: maybe it's one of these? :X https://www.irccloud.com/pastebin/Vi90hD8i/ [20:12] stokachu: yeah I found a ton of them when searching too [20:13] which is why I am asking here [20:13] mbruzek, just trying to give some suggestions. Please feel free to develop with whatever setup you desire [20:14] kyrofa: Not trying to be critical, I am just following the instructions [20:14] stokachu: http://pastebin.ubuntu.com/22841208/ the install of the python magic worked, or maybe it did not [20:15] mbruzek: :( [20:16] couldnt we just make a snap out of snapcraft? :) [20:16] stokachu: Wouldn't that be nice [20:16] kyrofa does this ring a bell http://paste.ubuntu.com/22841604/ ? [20:17] sergiusens, sounds like some environment variables aren't being set correctly [20:17] sergiusens, to redirect it [20:18] sergiusens, rosdep init isn't being run with sudo since it should be writing into parts/foo/rosdep or something like that [20:18] kyrofa I did not touch the catkin plugin though [20:18] sergiusens, looking a little closer [20:20] sergiusens, huh... yeah ROSDEP_SOURCE_PATH is set in _Rosdep._run [20:20] sergiusens, from what I've seen so far, I have no explanation why your branch is causing that to be weird [20:21] sergiusens, and you can duplicate locally? [20:25] kyrofa with my branch, yes [20:25] kyrofa the paste is from a local run [20:26] well define local ;-) [20:26] sergiusens, and what you've pushed is up-to-date? [20:26] sergiusens, heh, not adt :P [20:26] kyrofa yes, up2date [20:26] Well, CI-driven, I guess [20:26] sergiusens, okay let me take another pass here... [20:26] kyrofa and working off of a server lately [20:26] sergiusens, yeah [20:27] kyrofa - i don tknow what sorcery you have lead us to, but that bin/snapcraft does do what you claim it does despite my best efforts at being a skeptic [20:27] lazyPower, hahaha [20:28] sergiusens, dude, this makes no sense [20:28] sergiusens, let me try this myself... === faenil_ is now known as faenil [20:32] sergiusens, ... this works for me ... [20:32] sergiusens, that was a pull, right? [20:32] sergiusens, right at the beginning of the pull? [20:33] kyrofa yes, pull indeed [20:33] sergiusens, yeah... it works here [20:33] But you're seeing that in CI as well? [20:34] kyrofa yeah [20:34] sergiusens, x, right? Not y? [20:35] yeah, always X, x-men here [20:35] although I think I am generation y [20:36] :P [20:36] kyrofa so my branch works for you? [20:36] sergiusens, oh... wait I'm stupid [20:37] kyrofa why is that? [20:37] sergiusens, testing again [20:37] not running from the branch? [20:37] sergiusens, maaaybe [20:38] sergiusens, there it is [20:40] kyrofa the solution to the problem? [20:41] official word was we could break this before it spread [20:41] sergiusens: hey, would i need to be part of any specific team to add a part to the wiki? [20:41] but getting everyone on the same page might be worthwhile [20:41] sergiusens, you're far too optimistic. No, but now I can see the breakage at least :P [20:41] cwayne logged in and an ubuntu member I guess [20:41] cwayne if you want to be on the good side of things, don't use subparts [20:42] cwayne https://github.com/snapcore/snapcraft/pull/705 [20:42] PR snapcraft#705: parser - Remove namespacing and subparts [20:42] didn't even know subparts was a thing [20:43] cwayne keep it that way! [20:44] will do :) [20:49] SUBPARTS WAT? [20:52] sergiusens, does this change any of the apt params other than the caching one? [20:52] this python application i'm trying to snap wants to play in "/home/jason/.testrepository" - is there some interface to allow this? or will the application need to be changed to work elsewhere? [20:56] kyrofa there are no apt params changed really [20:57] jhobbs does it repect xdg? [20:58] i don't know [21:00] sergiusens, something is clearing out the rosdep folder in your branch [21:03] sergiusens, I suspect https://github.com/snapcore/snapcraft/pull/677/files#diff-e8d25d56f5ed513cad7c55002a709f32R178 [21:03] PR snapcraft#677: playing with caching [21:03] sergiusens, that directory is used for more than just debs in the case of rosdep [21:04] kyrofa ah, that can be it, let me refine this [21:04] sergiusens, we might be able to change that a bit on the catkin side, too [21:04] sergiusens, but yeah [21:05] I have maybe a basic question, [21:05] kyrofa no, deleting rootdir was an experimental shortcut (well I assumed the directory was private to this, but fine ;-) ) [21:05] but for the app inside the snap, it's not in a chroot, right? [21:06] I mean, /etc/foo for the app is the real /etc/foo in the system where it's running, if referenced like that? [21:06] sergiusens, heh [21:06] ahasenack, indeed [21:06] kyrofa: hm [21:06] kyrofa: that can get interesting in the case of a config file that includes other config files [21:06] using absolute paths [21:07] ahasenack, indeed, absolute paths means it makes some assumptions about how it's packaged [21:07] kyrofa: is the absolute path that begins with /snap "stable", as long as it uses the "current" symlink? Is that a reasonable alternative? [21:08] like /snap/squid-deb-proxy/current/etc/squid-deb-proxy/squid-deb-proxy.conf [21:08] ahasenack, I'm probably not the best person to ask, there. zyga and slangasek probably have some feelings on that matter [21:08] that conf file includes other conf files in that directory, I'm not sure I can use relative paths [21:08] kyrofa: cool, thx [21:09] ahasenack, and these conf files are dynamically generated? Or do you ship them yourself? [21:09] I ship them [21:09] ahasenack, can they accept environment variables? [21:09] doubtful [21:10] maybe in my script that starts the service I could generate them dynamically, if it comes to that [21:10] adjust paths according to some $SNAP_var, then start the service [21:10] sounds overkill at first [21:10] but I'm new here :) [21:10] ahasenack, hmm. Yeah I had to do that for redis, check this out: https://github.com/kyrofa/nextcloud-snap/blob/master/src/redis/scripts/start-redis-server [21:11] SNAP_DATA is the versioned system-wide writable directory, right? [21:11] not the user one, and not the common one that is unversioned [21:11] * ahasenack getting used to these names [21:11] ahasenack, indeed this might be helpful: https://askubuntu.com/questions/762354/where-can-ubuntu-snaps-write-data [21:12] kyrofa: I see you had to do that exactly because it's versioned, so it's kept on upgrades [21:12] and indeed, I will have to do that too, if I want to preserve config files during upgrades [21:12] ahasenack, nah, I did that because I didn't want to write the config file anywhere [21:12] kyrofa: but there is a current symlink in there too [21:12] /var/snap//current [21:13] ahasenack, indeed, that is SNAP_DATA [21:13] hm, no, my SNAP_DATA uses the revision [21:13] export SNAP_DATA="/var/snap/squid-deb-proxy/x3" [21:14] (from the bin script) [21:14] ahasenack, right, current points to the currently active revision [21:14] ahasenack, you shouldn't need to care about that though, no? [21:14] but there is no var with "current" in it [21:14] ahasenack, true. Why do you need that? [21:15] Oh, to write to config files? [21:15] kyrofa: I hope not. I hit this now because (I think) I added squid to the snap by installing the package in stage-packages, instead of building it [21:15] I think when I build it with snapcraft, it will take care to put the config files in the right places, but I'm not there yet [21:15] via ./configure --things I mean [21:16] ahasenack, snapcraft won't put anything in SNAP_DATA and its ilk [21:16] that got me thinking about config files [21:16] hm, not even --sysconfdir=DIR [21:17] so that will be /etc by default [21:17] in my mind, SNAP_DATA would be the place for system-wide configuration files that you want preserved across upgrades, among other things [21:17] stuff that would normally be in /etc [21:18] and SNAP_USER_DATA for files that are usually ~/.something [21:18] because the script generated by snapcraft does export HOME="$SNAP_USER_DATA" [21:19] * ahasenack reads that askubuntu question now [21:20] yeah, that's it [21:20] it just doesn't mention /etc specifically, or system config files in general [21:23] ahasenack, it's impossible for snaps to pollute other snaps, so you can really use those directories for whatever you wish [21:23] ahasenack, but people use them differently, and they're runtime-specific things, so snapcraft doesn't deal with them [21:23] snapcraft just gives you a squashfs image [21:25] ahasenack, kyrofa, zyga: my feeling is that for the cross-distro story, /snap is a bit of a time bomb because it's not in the FHS, it's unrealistic to think it'll be in the FHS before the heat death of the universe, and there have already been examples given of it conflicting with local usage [21:25] slangasek, agreed [21:26] ahasenack, so probably try to avoid if at all possible [21:26] slangasek: so how should I best handle config files? Where should they live? [21:27] ahasenack: I assume they live in the snap and you should locate them relative to the $SNAP_* variables? [21:27] slangasek: that's doable, but SNAP_* has the revision in it, not "current" [21:27] slangasek: am I fine in using "current" instead of the revision? [21:27] I don't have a convenient solution for this for software that has to hard-code a path at build time [21:28] slangasek: yeah, sorry, I'm just looking for best practices [21:28] hmm, I think by definition the running instance is always "current" [21:28] in which case, "yes" that should work :) [21:28] however, current is always a symlink to the revision one [21:28] I just checked the vars set by the /snap/bin/foo wrapper, they have the revisions [21:28] so if you're resolving the variable at runtime, that should also still work? [21:28] slangasek: my specific problem is a config file that includes other config files by absolute path [21:28] ah [21:28] slangasek: yeah, but I will have to regenerate that config then [21:28] everytime I start the service [21:28] I see [21:29] yes, I think "current" is doable there [21:29] unless "current" was stable enough, then I could just use "current" in the path [21:29] but still, I would then have /snap/foo/bar in there, hardcoded... [21:29] not pleasant [21:29] kyrofa just for the kicks, look at distutils.file_util.copy_file ;-) [21:29] is there a way to provide a file by default in /home//snap// ? [21:30] sergiusens, I've seen it, but didn't want to introduce another dependency [21:30] kyrofa could get rid of link_or_copy and is part of the stdlib already [21:31] sergiusens, I seem to remember people saying to avoid distutils for some reason... [21:32] slangasek: kyrofa thanks guys [21:39] Yeah slangasek thanks for jumping in [21:43] Bug #1611526 opened: temp directories not deleted when snap fails to start [21:49] Bug #1611530 opened: can't install devmode snap from store [21:58] noise][: hi! can someone a store pull for review tools r705? fyi, I'm going to have another commit tomorrow morning, but r705 has (among other things) the update to allow the tools to not block uploads of the ubuntu-core snap [21:58] cc ogra_ ^ [21:59] noise][: I guess it is fairly urgent due to auto-uploads [22:14] jdstrand: EOD here, but i'll see if there's anyone that can pick that up [22:16] jdstrand: likely will be tomorrow morning though [22:38] Hi [22:38] IS there any one ? [22:39] please i have an issue [22:39] about snapcrafts [22:43] hiiiiii [22:57] That solved itself. [22:57] kyrofa yes, you should use setuptools, https://docs.python.org/3/library/distutils.html === evanmeag_ is now known as evanmeagher === evanmeagher is now known as evnmar [23:05] Hi please, is there any one i can talk to ? [23:54] PR snapd#1661 opened: Remove documentation on a 'private' flag to /v2/find that doesn't see…