/srv/irclogs.ubuntu.com/2017/08/10/#snappy.txt

mupPR snapcraft#1470 closed: catkin plugin: default to release build <bug> <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1470>00:51
jaggzsnap install /tmp/meshlab-cYdtAIYBmTS1b7L2q8yrMdpAZ38qLv6Q_4.snap01:58
jaggz- Copy snap "meshlab" data (cannot copy "/var/snap/meshlab/4" to "/var/snap/meshlab/4": failed to copy all: "cp: cannot stat '/var/snap/meshlab/4': No such file or directory" (1))01:58
jaggzanyone know what that's about?  the dir exists.  I also intermittently get a core error01:59
jaggz...01:59
jaggz# snap refresh core01:59
jaggzerror: cannot perform the following tasks:01:59
jaggz- Setup snap "core" (2601) security profiles (cannot setup mount for snap "core": cannot update mount namespace of snap "core": cannot update preserved namespace of snap "core": fork/exec /usr/lib/snapd/snap-update-ns: no such file or directory)01:59
mupPR snapd#3701 opened: tests: fix interfaces-cups-control test <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/3701>02:05
PhoenixMageHow jailed are snaps? They seem to log to the root /var/log03:33
PhoenixMageie, I now have samba.log files in /var/log after installing the samba snap I am working on03:34
mupPR snapd#3702 opened: interfaces: add missing test for camera interface <Created by adglkh> <https://github.com/snapcore/snapd/pull/3702>04:24
mupPR snapd#3703 opened: interfaces: improve and tweak bunch of interfaces test cases <Created by adglkh> <https://github.com/snapcore/snapd/pull/3703>05:26
PhoenixMageWhat is the correct way to create required directories for a snap?05:43
PhoenixMageie, /etc if it doesnt exist?05:43
PhoenixMageHooks?05:43
mupPR snapd#3704 opened: interfaces: convert lxd to common iface <Created by adglkh> <https://github.com/snapcore/snapd/pull/3704>07:52
zyga-susegood morning07:54
zyga-susemvo: how are we doing?07:57
mupPR snapd#3657 closed: daemon, client, cmd/snap: implement snap start/stop/restart <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/3657>07:57
Chipacawoooooooooooooo07:57
zyga-susehey Chipaca, feels good to have the merge go in :)07:58
Chipacayes08:00
mvohey zyga-suse08:02
mwhudsonzyga-suse: o/08:05
zyga-susehey hey08:06
zyga-suseI have one important bug to check and then I'd like to release suse and arch packages08:07
zyga-susesome perspective form appimage developers: https://github.com/AppImage/AppImageKit/wiki/Desktop-Linux-Platform-Issues08:14
mupPR snapd#3705 opened: interfaces: convert lxd_support to common iface <Created by adglkh> <https://github.com/snapcore/snapd/pull/3705>08:14
mvozyga-suse: can you check if rc9 builds?08:14
zyga-susemvo: sure, where?08:15
mvozyga-suse: suse, arch08:15
zyga-susewith pleasure08:16
zyga-susedo you have tarballs?08:16
zyga-suseI'll build master locally but it would help to have rc tarballs08:16
mvozyga-suse: I can prepare one, otherwise in the ppa08:16
zyga-suse(do you still make them manually?)08:16
zyga-susefor various reasons it is easier if they are on github (various tools can pull them like in debian)08:17
mvozyga-suse: https://launchpad.net/~snappy-dev/+archive/ubuntu/image/+files/snapd_2.27~rc9.tar.xz08:17
mvozyga-suse: aha, ok08:17
zyga-suseok08:17
zyga-susethis is fine08:17
mvozyga-suse: ok, thank you. I have a script that creates them now08:17
zyga-suseawesome, it would be good to commit that to the tree at some point08:18
mupPR snapd#3700 closed: tests: fix for  upgrade test on fedora <Created by sergiocazzolato> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3700>08:18
mupPR snapd#3706 opened: asserts,overlord/devicestate: support predefined assertions that don't establish foundational trust <Created by pedronis> <https://github.com/snapcore/snapd/pull/3706>08:19
mwhudsonzyga-suse: so what's the debian update waiting on?08:28
zyga-susemwhudson: not sure, I didn't look at debian seriously for too long :/08:28
zyga-susemwhudson: I think we want 2.27 across the stack08:28
mwhudsonzyga-suse: ok08:28
mwhudsonzyga-suse: on the dependency side08:30
mwhudsonzyga-suse: we can leave the i18n commented out for now i guess08:30
zyga-suseI think that's acceptable08:31
mwhudsonzyga-suse: i need to find a sponsor to upload golang-go-flags-dev08:31
zyga-suseis the patch extensive?08:31
zyga-suseoh, I assumed you are a DD08:31
mwhudsonno08:31
mwhudsonzyga-suse: not yet :)08:31
mwhudsoni am in the process08:31
zyga-susegreat :)08:31
mvomwhudson: let me know, I can help08:31
mwhudsonthe x/net fork can be avoiding by simply not running that test in the build?08:32
mwhudsonmvo: https://anonscm.debian.org/cgit/pkg-go/packages/golang-go-flags.git/08:32
mwhudsonoh wait08:33
mvomwhudson: if you create something that I just need to sign/dput, that would be best for me08:33
* zyga-suse iterates on the opensuse package08:34
zyga-susesome things failed on 2.25 still, but perhaps just racy tests08:34
zyga-suseI'll focus on 2.2708:34
mwhudsonmvo: ack08:35
zyga-susemvo: the tarball has different name and internal directory name than the one before08:36
zyga-susenot complaining but pointing out that we should perhaps use snapd-$version on the inside08:37
zyga-suseand pick whatever fixed on the outside08:37
mvozyga-suse: meh, yes08:37
mvozyga-suse: part of the problem is the debian build tools, but I don't want to make excuses08:37
mvozyga-suse: I look into it08:37
zyga-susedebian build tools?08:37
mvozyga-suse: the tarball is generated from the git repo, I will see what I can do with git-buildpackage08:37
zyga-suseok08:38
mwhudsonzyga-suse, mvo: and we thing we can use upstream instead of github.com/mvo5/libseccomp-golang for debian?08:41
zyga-suseI'd love to08:41
zyga-susemvo: is that under golang CLA?08:41
* zyga-suse needs to refresh some patches08:44
zyga-susewell08:44
zyga-susepackaging 01008:44
zyga-suse101 even :P08:44
mwhudsonmvo: i've made something for you to upload but i'm going to test build it before i give you the link :)08:45
ikeyzyga-suse, what are the chances of getting core snap to ship libselinux?08:46
zyga-suseikey: hey08:46
ikeyheya08:46
zyga-suseikey: I saw your comments08:46
zyga-suseikey: I need to look into it08:46
mvomwhudson: yeah, upstream libseccomp-golang should be fine, all I did there was adjust for trusty08:46
zyga-suseikey: it feels more like a bug in the app than something that really really should be in the core08:46
mvomwhudson: our trusty libseccomp is heavily backported08:46
ikeyzyga-suse, well its all over the place08:47
zyga-suseikey: but I want to look at it for real before making any calls08:47
mwhudsonokidoke08:47
ikeycore's own Things use libselinux08:47
ikeylike gio-querymodules:08:47
ikeyand other bits08:47
ikeyit would seem core isn't as clean and self contained as it thinks it is08:47
zyga-suseikey: I see ./lib/x86_64-linux-gnu/libselinux.so.108:47
zyga-suse(that's relative to core itself)08:48
ikeyis it possible this is some derpy side effect of not having rexec?08:48
ikey*re-exec08:48
zyga-suseno, probably a bug somewhere else08:48
ikeyok08:48
zyga-suselook at dirs/dirs.go08:48
zyga-suseI think you may need to say that on solus you use lib64 to keep distro binaries08:48
ikeyim loath to including libselinux in solus because, well, it infects stuff08:48
mwhudsonmvo: http://people.canonical.com/~mwh/golang-go-flags-dev/08:48
zyga-suse(AFAIR snapd is there08:48
zyga-suseas are other relevant parts)08:49
ikeyah so multiarch vs multilib08:49
ikeycurious, ty08:49
zyga-suseikey: you should never have to include anything in the distribution to make a given snap work08:49
ikeythat was my thought08:49
zyga-susesnaps don't see anything from the host really (not libraries)08:49
zyga-suseikey: do you know how it roughly works at runtime?08:49
zyga-suseikey: as a big approximation: the *base* snap (e.g. core but other bases are in progress) is used as the root filesystem08:50
zyga-suseikey: some things like /dev, /proc and /sys are "normal" (dev may be empty-ish, depending on confinement)08:50
zyga-suseikey: some things from the host are overlaid (e.g. parts of /etc)08:50
ikeyright08:50
zyga-suseikey: /home and /root are shared but $HOME is changed08:50
zyga-suseikey: the real host root filesysystem is in /var/lib/snapd/hostfs08:51
zyga-suseikey: (with certain things unmounted, like sysfs and dev because it confuses apps08:51
zyga-suseikey: there's a long tail of small tweaks08:51
ikeyaye08:51
zyga-suseikey: but the main point is: the host distribution is not used for runtime libraries or executables08:51
ikeywell thats the theory08:52
zyga-suseno, we really don't use them, what do you mean?08:52
ikeywell at this point its not completely using the core snap either08:52
zyga-suseyep, something is not right yet08:52
zyga-susebut I bet this is packaging issue08:53
zyga-suseif you want I can install solus and help you out08:53
ikeyyou'll forgive me for saying but i dont quite see *how* it would be a packaging issue08:53
zyga-suseI'm working on opensuse and arch but then I can try out solus :)08:53
ikeywhen it looks more like the helper scripts are invoked host side08:53
ikeyand not containerised08:53
zyga-susecan you please run the hello snap after setting SNAP_CONFINE_DEBUG=yes08:54
ikeysetting where, /etc/environment?08:54
zyga-suseikey: oh, one important point: if a snap uses 'classic confinement' then none of what I just said is true08:54
ikeysure08:54
zyga-suseikey: just export it in your shell08:54
zyga-suseclassic confinement is a different beast08:54
ikeyyeah thats more at the appimage end of the spectrum08:55
zyga-susemvo: this is still breaking: [  622s] FAIL: overlord_test.go:360: overlordSuite.TestEnsureLoopPrune08:55
ikeyhttps://hastebin.com/ixovewisig.sql08:55
mvozyga-suse: breaking where?08:56
zyga-susemvo: the unit test fails randomly08:56
zyga-susemvo: run it 1000 times and see the failure rate08:56
mvook08:57
zyga-suseikey: this worked, can you try with a more complex snap next? what did you try to use before?08:57
ikeybrackets went boom08:57
ikeybut thats classic08:57
zyga-suseikey: brackets is a classic snap :/08:57
zyga-suseso classic confinement uses different things08:57
ikeyyer08:57
zyga-suseand what must be happening is that the snap itself is broken08:58
zyga-suseclassic confinement is defined as follows:08:58
ikeya large number of them are broken*08:58
Chipacapedronis: o/08:58
zyga-susethere is no file-system redirection08:58
zyga-susethe core snap is in a well-known spot08:58
zyga-suseas is the snap itself08:58
zyga-susethose resources are guaranteed08:58
ikeysure but wouldnt you also alter LD_LIBRARY_PATH to factor in core runtime?08:58
ikeybefore executing the snap08:58
zyga-suseother resources MAY be used but the snap author must do that with sanity08:58
zyga-suseikey: no, because that's snaps responsibility, some snaps are built in a way that this is not a factor08:59
zyga-suseeg.08:59
zyga-susetry python008:59
ikeyeh08:59
zyga-suseand look at the binary itself08:59
zyga-suseand at how it is linked08:59
ikeyyeah im gonna have to disagree there08:59
zyga-susethe fact is that many snap with classic confinement are built in as sloppy way08:59
ikeyso even with LD_LIBRARY_PATH, rpath is going to work fine08:59
zyga-suseikey: I can tell you why we're not setting LD_LIBRARY_PATH08:59
zyga-suseikey: because that breaks classic snaps that do certain things08:59
zyga-susethere's no silver bullet here,08:59
zyga-susesnaps using classic confinement *may* run apps from the host distribution09:00
zyga-suseand then setting this would break that09:00
zyga-suseI would argue that brackets is just done incorrectly and assumes to run on a ubuntu-ish system too much09:00
ikeyright but its not *just* brackets that fails09:00
ikeyits the scratch setup scripts in core09:00
ikeyi.e. update icon cache, schemas, etc09:00
zyga-susescratch setup scripts?09:00
ikeyidk what you call them :P09:00
zyga-susewe don't have *any* scripts09:01
zyga-suseso whatever you are describing comes from the snap itself09:01
zyga-suseunfortunately classic confinement snaps are always going to be a hit-and-miss because when it runs on the developer's machine it doesn't mean it will run elsewhere for sure, like strictly confined snaps do09:01
ikeyall the GUI snaps do seem to invoke gtk-update-icon-cache-3.0 (which doesnt exist) and there are some spam-debug lines about schemas, etc09:01
zyga-suseikey: that must be a common bug in those snaps then, I'm sure it can be addressed09:02
zyga-suse(note that core doesn't ship any of that)09:02
zyga-susemany snaps use a common helper09:02
zyga-suseand if the helper has a bug we just need to fix it in one place and the next revision of those snaps will improve09:02
ikeynon-classic:09:03
ikey(assuming duckmarines is non classic)09:03
zyga-susesnap info foo09:03
ikey/snap/duckmarines/9/usr/lib/x86_64-linux-gnu/glib-2.0/gio-querymodules: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory09:03
zyga-susethis will tell you09:03
ikeyDEBUG: confinement:  non-classic09:03
zyga-susewhen you install a snap you have to say --classic09:03
zyga-susemm, that's more interesting, let me see09:04
ikeyit does eventually flop (no doubt due to missing apparmor)09:04
ikey[1]    5959 invalid system call  snap run duckmarines09:04
ikeybut im more interested in the library fail first09:04
zyga-suseikey: invalid system call == it was killed by seccomp09:04
zyga-susecan you look at your journalctl/dmesg and look for seccomp09:04
zyga-suseI wonder what killed it09:04
zyga-suseare you on x86 or x86_64 system?09:04
ikeyx86_6409:05
zyga-suseok09:05
zyga-suse(there were some socket/socketcall bugs on 32bit intel systems009:05
zyga-susebecause kernel changed09:05
ikeynot seeing errors in either. odd.09:05
pedronisChipaca: hi09:05
zyga-suseikey: interesting, I just ran duckmarines on opensuse and it worked, no messages about missing libselinux.so.109:05
ikeycan you verify if you have a host-side libselinux?09:06
zyga-suselet me see what's going on deeper09:06
zyga-suseikey: again, host side libselinux is not accessible in any normal way09:06
ikeysure09:06
ikeybut can you? :P09:06
zyga-suseyes, checking anyway :-)09:06
ikeyim seeing this:09:06
ikey17/08/10 10:02:33.232761 taskrunner.go:367: DEBUG: Running task 298 on Do: Mount09:06
ikeyled to reset devices.list on /system.slice: Invalid argument09:06
zyga-suseikey: hmmm, can you do "snap changes"09:07
ikeyhttps://hastebin.com/eramororan.sql09:07
Chipacapedronis: i hate that i can't get aliases from the app info :-)09:07
pedronisChipaca: they are not part of the snap anymore09:08
Chipacapedronis: i know09:08
zyga-suse2    Error   2017-08-09T18:51:45Z  2017-08-09T18:51:54Z  Install "hello-world" snap09:08
zyga-susecan you do "snap change 2"09:08
pedronisChipaca: anyway you should probably build whatever you build close to where we build the alias symlinks no?09:08
pedronisso it shouldn't be your problem09:08
zyga-suseikey: I have libselinux.so.1 but it is in /lib which is not shared09:08
ikeyhave you verified that with LD_DEBUG=libs?09:09
pedronisChipaca: I don't know what you did for other apps, but isn't something you can take care of in backend or wrappers ?09:09
zyga-suseikey: let's try (though I bet it cannot be that simply because we pivot_root and ther host /lib is gone)09:09
zyga-suseikey: one more tip09:09
Chipacapedronis: i was trying to do it in wrappers, but wrappers doesn't have them09:09
zyga-suseikey: snap run --shell snapname.appname09:09
pedronisChipaca: s/other apps/normal app entry points/09:09
zyga-suseikey: this drops you in a shell09:09
Chipacapedronis: so i've got to do it in backend09:09
ikeyaite09:09
zyga-susewhere you can run stuff with same environment and other magic09:10
Chipacapedronis: (the "normal" app entry points are done in wrappers)09:10
zyga-suseuseful for debugging09:10
pedronisChipaca: backend has stuff both for normal entrypoints and aliases so yes, seems a reasonable place09:10
pedroniscrosscutting concerns and everything considering09:10
ikeythe --shell looks an awful lot like my host system09:10
zyga-suseikey: look at /proc/mountinfo09:11
zyga-suseikey: aaaah09:11
zyga-suseI know what's the problem09:11
zyga-susemaaan09:11
zyga-suseso obscure09:11
zyga-suse:D09:11
zyga-susesorry, it's my fault entirely09:11
zyga-susego to cmd/snap-confine09:11
mvomwhudson: many thanks, uploaded, waiting for the confirmation mail09:11
pedronisChipaca: it seems simple, I'm probably missing something, because we do tell backend about what aliases we want to make very precisely09:12
zyga-suseikey: sorry, go to cmd/libsnap-confine-private and fix classic.c09:12
Chipacapedronis: and, to make things more interesting, UpdateAliases doesn't clean up on error09:12
zyga-suseikey: super obscure because most distros are derivatives so we didn't notice09:12
ikeybool is_running_on_classic_distribution()09:12
ikeyo_O09:12
Chipacapedronis: </rant>09:12
Chipacapedronis: :-)09:12
zyga-suseikey: snapd knows this via other means but currently it doesn't say to snap-confine "you are on a classic distro"09:12
mwhudsonmvo: you uploaded it to ubuntu :)09:12
mvopedronis: quick question -  I want to add auto-download/install of misisng bases (and also of missing content-provider snaps). do you think snapstate is the right place?09:12
ikeyand what does "classic distro" mean?09:12
zyga-suseikey: snapd can run in a "core" distro where everything is a snap09:13
mvomwhudson: yes and to debian09:13
zyga-suseikey: like ubuntu-core09:13
mvomwhudson: for good measure ;)09:13
mwhudsonmvo: ah ok09:13
pedronismvo: yes09:13
mwhudsonRejected:09:13
mwhudsonUnable to find distroseries: unstable09:13
mvomwhudson: no, sorry, the initial upload was a mistake09:13
zyga-suseikey: the kernel is a snap, the whole host filesystem is a snap, etc09:13
ikeywait so right now snapd is acting like its on ubuntu core?09:13
mwhudsonmvo: ok:)09:13
PhoenixMageso close yet so far away to getting samba running as a snap09:13
mvopedronis: great, I will move forward with that09:13
zyga-suseikey: and in that mode, we don't have the mount namespace changes since the main namespace is the core snap already09:13
ikeyxD09:13
zyga-suseikey: that is actually going away as we introduce bases09:13
ikeygotcha09:13
PhoenixMageldb: unable to stat module //lib/samba/ldb : No such file or directory buit the dir is populated with the modules09:13
pedronismvo: remember that auto-refresh doesn't even go through api anymore for example09:13
zyga-suseikey: but it is a pretty obscure part of snapd :)09:13
mvomwhudson: happens all the time to me, I need to write me something that refuses to upload debian distor names to ubuntu09:13
zyga-suseikey: sorry and thank you for finding it09:13
ikeyawkward ikey with his not-derivative-ness09:13
ikeythanks bud09:13
mvopedronis: yes, good point09:13
zyga-suseikey: that should fix a loooot of things :)09:13
ikeyyeah im sure lol09:14
pedronismvo: so there's probably not even another option atm09:14
mwhudsonmvo: i have this desire to write a wrapper for dput that does a whole bunch of validation09:14
ikeyalright lemme rebase my patch and make it all solusy09:14
mwhudsonmvo: like, if the target is a ppa and the version doesn't have "~ppa" in --> DENIED09:14
zyga-susethank you :)09:14
* zyga-suse adds that to his mental porting list09:14
zyga-susemvo: that test fails all the time, let me investigate09:15
mvomwhudson: I would give you an extra hug for such a wrapper09:15
zyga-susemwhudson: I have a desire for a debian dev tool that is not a wrapper over wrappers over perl but ... well09:15
* zyga-suse sings along09:15
mwhudsonzyga-suse: there are go libraries for all this stuff :)09:15
mwhudsonbut tbh i find the perl ones easier to use09:16
zyga-susego-debhelper?09:16
zyga-suse;-)09:16
mwhudsonpault.ag/Debian/something09:16
zyga-susefair enough, at some point the amount of ducktape exceeds critical mass and we get a black hole of packaging09:16
mwhudsonyou think that hasn't happened already? :)09:18
* zyga-suse grabs some coffee while deps are pulled09:18
mvozyga-suse: I'm preparing 2.27 now, should I also update the packaging/suse snapd.spec file?09:20
zyga-susemvo: perhaps-ish, in which way?09:20
mvozyga-suse: bump version number, add changelog09:21
zyga-susemvo: please, I'll do the rest09:21
mvozyga-suse: this is what I currently do on fedora too09:21
mvozyga-suse: ok09:21
zyga-suseI will probably have more patches that I merge back to master09:21
zyga-susemvo: I'm worried about that test failure though09:21
zyga-suseI'm running it now09:21
mvozyga-suse: the prune one?09:21
zyga-suseyes09:21
zyga-susemvo: (there's also arch, if you have one vm handy)09:21
zyga-susemvo: I merged arch packaging back09:22
mvoI think we had it for a long time, no regression09:22
mvozyga-suse: I have no vm but I can upadate version and changelog there too09:22
zyga-susemvo: I think we fixed a while ago09:22
zyga-susemvo: not sure if there's a changelog, look if anything seems obviously stale there09:22
zyga-susemvo: I'll update arch as soon as I'm done with opensuse09:22
mvozyga-suse: what does "Release: 2" in the suse spec file mean?09:23
zyga-susemvo: it's -2 in debian-speak09:23
zyga-susereset that to 1 if the upstream version is bumped09:23
mvozyga-suse: aha, so I set it back to -1 ?09:23
zyga-suseprecisely :)09:23
mvota09:23
mvozyga-suse: there is no changelog in the suse spec file so that update is easy :)09:23
zyga-susemvo: suse changelogs are in separate files09:24
zyga-susesnapd.changes09:24
* zyga-suse sings along 09:24
mvozyga-suse: fun09:24
zyga-suseso many ways to do everything09:24
zyga-susemvo: I suspect both suse and arch will carry small patches09:24
zyga-susemvo: but that is fine09:24
zyga-suselet's get the 2.27 elephant out of the door09:24
zyga-susemvo: I plan to test your /snap symlink support patch in arch and add that to the release09:25
zyga-susepedronis: remember the prune test that failed?09:25
* mwhudson stares at the upstream packaging/ubuntu-16.04 and the one from debian's 2.21-209:25
zyga-susepedronis: either something changed or our fix was wrong because it just always fails on opensuse tumbleweed for me09:25
pedroniszyga-suse: I don't know09:26
mvozyga-suse: yeah, I have no arch packaging in the 2.27 branch so I will ignore that for now09:26
pedronisalways seems strange though09:26
mvomwhudson: is it very different?09:26
zyga-susehttps://paste.gnome.org/p0rrl0u4j09:26
zyga-susepedronis: can you have a look if that rings a bell?09:26
pedronisI mean it seems unrelated to details of the test09:26
mwhudsonmvo: no, not really09:26
zyga-susemvo: well, yes09:26
zyga-susemvo: vendorized vs not09:26
mwhudsonzyga-suse: that part is easy :)09:26
zyga-susepedronis: ah, that I agree with09:26
mvomwhudson: if you think it makes sense we can put the debian packaging into upstream git as well09:27
pedroniszyga-suse: nothing obvious comes to mind09:27
zyga-susepedronis: let me dig, then09:27
mvozyga-suse: what format is supported in snapd.changes? or is that just free form?09:28
zyga-susemvo: "osc vc" format09:28
* mvo googles09:28
zyga-suseone sec09:28
zyga-susehttps://paste.gnome.org/pz2dhm3qz09:29
zyga-susemvo: that's my latest entry09:29
zyga-suse(still WIP)09:29
zyga-suseentries are delimited by those dashes09:29
pedroniszyga-suse: also remember we fixed one but I think there's another one to fix, that we never got to09:29
mwhudsonmvo: yeah that might make sense09:29
zyga-susepedronis: yes but this is the one we fixed AFAIK09:29
mvozyga-suse: mostly wondering about nesting09:29
zyga-susemvo: not sure09:30
mvomwhudson: let me know if I can help, otherwise I will welcome a PR :)09:30
zyga-susepedronis: this is confirmed by git blame: 59472d24b309:30
pedronisanyway always seems weird09:30
zyga-suseikey: does it work better now/09:31
zyga-suseikey: I'm really surprised even "hello" worked :)09:31
zyga-susemaybe because it is a shell script09:31
ikeyzyga-suse, so09:32
ikeydone some initial porting09:32
ikeythere are more odd assumptions09:32
ikey/run/media is locked to MERGED_USR09:32
ikeythat shouldn't be the case09:32
ikey/run/media is just modern-systemd-fhs-udev-udisks09:32
ikeyand shouldn't rely on the MERGED_USR assumption09:33
ikeyadditionally.. why is /usr/src required?09:33
ikeythis makes little sense to me ..09:33
zyga-suseikey: some snaps have permissions to build and load a kernel module and they require access to the kernel source, if you have some on the machine09:33
ikeywoa. no09:33
ikeythats wrong :P09:33
zyga-suseikey: this is specifically for some bleeding edge observing/monitoring tools09:34
ikeyso how do I turn off all kernel related functionality in snapd?09:34
zyga-suseikey: that's not wrong, that's a permission that is controlled by snapd09:34
ikeybelieve me snapd isnt going to be able to deal with solus kernels09:34
ikeyhell GRUB barely can09:34
zyga-suseikey: this is all controlled by interfaces, unsafe interfaces are not allowed unless there's an assertion saying that a given snap from a given developer is trusted to do something specific09:34
zyga-suseikey: e.g. we allow docker and lxd to do a lot of stuff to function09:34
ikeyyeah i want to disable this at the distribution level09:35
zyga-suseikey: because no meaningful way to confine them exists09:35
ikeykernel modules on solus should come only from our repositories09:35
ikeyour kernels dont work like ubuntu kernels09:35
zyga-suseikey: note that snaps won't be able to load those modules09:35
zyga-suseikey: /usr/src is so that they can build them09:35
zyga-suseikey: loading is controlled with seccomp and snapd interfaces09:35
zyga-suseikey: that's fine, not all systems must support all interfaces09:36
ikeyyou'll see what i mean here about kernels: https://hastebin.com/ulureceful.go09:36
ikeyi could potentially include an empty /usr/src (no owner) directory in the snapd pkg09:37
ikeywhich might mitigate that bit09:37
zyga-suseikey: I think we just want to make that non-mandatory09:37
zyga-suseikey: it's better09:37
zyga-suseikey: and we are doing some of that for base snaps09:37
ikeygotcha09:37
zyga-suseikey: where you can create an app that runs on top of really empty filesystem, with except for things like /snap to mount the actual code09:38
ikeyah09:38
ikeynice09:38
zyga-suseikey: so you could eventually make snaps that use solus as a base09:38
zyga-suseikey: and they still work on fedora/debian/opensuse09:38
ikeyyeah i can definitely see use cases for that09:38
zyga-suseikey: (mvo is leading that work)09:39
ikeyfair play :]09:39
zyga-suseindeed!09:39
zyga-suseikey: if you are interested in the security aspect I really encourage you to look at interfaces/09:39
zyga-suseikey: all snaps get the same confinement by default09:39
zyga-suseikey: and if you want to change that confinement you need to use one of the interfaces09:39
zyga-suseikey: interfaces are like contracts between two parties09:39
zyga-suseikey: and interfaces are not just permissions09:39
ikeyright09:40
zyga-suseikey: they come in pairs, a plug and a slot that may be connected09:40
ikeysorta like protocols09:40
ikeygotcha09:40
ikey[Package] Including empty directory: /usr/src09:40
* ikey cheated09:40
zyga-suseikey: simple things like "I want to create sockets and connect to the network" are so common that the slot is offered by the core snap implicitly09:40
ikeyright09:40
zyga-suseikey: but slots and plugs are really numerous, e.g. a slot representing a serial port09:40
zyga-suseikey: on the dell gateway device there are a few of those09:41
zyga-suseikey: and if you install a snap that does something over a serial port09:41
zyga-suseikey: and connect it to the one you want (e.g. the "2nd serial port from the left"09:41
zyga-suseikey: only *then* will that snap get permissions to talk to *that* particular device09:41
zyga-suseikey: that's the general idea09:41
zyga-suseikey: interface defines the "way to communicate"09:41
zyga-suseikey: be it a file path, system call, or lots of complex rules09:42
zyga-suseikey: each interface can control many aspects of the system sandbox: seccomp, apparmor, kernel modules, udev tagging, dbus bus permissions, etc09:42
ikeygotcha09:42
ikeymakes sense09:42
zyga-suseikey: interfaces are merged into snapd and audited for secuirty09:42
zyga-suseikey: snaps can use powerful interfaces after having an assertion that say we trust them to do this09:43
ikeyaye09:43
zyga-suseikey: "powerful" interfaces are those that may break out of confinement (e.g. docker) or those that may expose user data or other privacy aspects09:43
zyga-susethat's about the rough idea09:43
ikeyok well progress09:44
zyga-suseikey: if you have any security questions I'd love to know :-)09:44
ikeyno library issues09:44
zyga-suse\o/09:44
ikeyNo schema files found: doing nothing.09:44
ikey[1]    2094 invalid system call  snap run duckmarines09:44
zyga-suseikey: that syscall is worrying09:44
zyga-susecan you look at system logs and see if you see any audit messageS?09:44
zyga-suse(unless audit is off on solus)09:44
ikeyaudit is off because systemd broke it09:44
zyga-susehmm?09:44
ikeyyou'd gain a 50gb ring buffer in a matter of minutes09:45
ikeythey got into a fight09:45
zyga-susedo you see _anything_ in the logs when that message is printed09:45
zyga-susespecifically, which system call it is09:45
ikeynothing related now09:45
zyga-suseas a cheap wokraround you can disable seccomp09:45
zyga-suse--without-seccomp to configiure09:45
zyga-suse*configure09:45
ikeyyeah but that seems nasty :p09:45
zyga-suseindeed09:46
ikeyill see if its kernel specific and try the LTS 4.909:46
zyga-suseikey: my gut feeling says it's related to socket09:46
zyga-suse99% of our issues are there09:46
zyga-susemybe it's a 32bit app running in a 64bit system09:46
zyga-susealso check libseccomp version09:46
zyga-susewe fixed some bugs there and maybe you are still affected09:47
ikeyName                : libseccomp, version: 2.3.2, release: 409:47
* ikey sees https://github.com/seccomp/libseccomp/commit/73d83e45efbe8c31067c97155162f17ca51b743509:48
zyga-suseis that in your version?09:48
ikeynay09:48
zyga-suseaha09:48
ikeyso im gonna take it to git09:48
zyga-susemay be it :)09:48
zyga-suseyeah, we're all pushing the edges here09:48
ikey*unfortunately* you guys forcibly statically link libseccomp :P09:49
=== chihchun_afk is now known as chihchun
zyga-suseworking on snapd over last year we found so many interesting kernel bugs09:49
zyga-suseikey: that's a workaround that I want to fix after 2.2709:49
zyga-suseit's all complex, nothing is perfect09:49
zyga-susewe really want to statically link it in one specific case09:49
zyga-suseI'll flipt the workaround09:50
zyga-suseyou can link it dynamically09:50
ikeys'ok i can just rebuild :p09:50
mwhudsonzyga-suse, mvo: EOD-ing now, hopefully some action tomorrow!09:50
zyga-susemwhudson: thank you, enjoy your evening!09:50
zyga-suseikey: and if you have initial patches for solus please start sending them09:52
mupPR snapd#3707 opened: interfaces: convert io_ports_control to common iface <Created by adglkh> <https://github.com/snapcore/snapd/pull/3707>09:54
* ikey sighs at libseccomp abuse of configure.ac09:59
ikey[1]    1730 invalid system call  snap run duckmarines10:13
ikeypoo.10:13
zyga-suseI think you have to find the number somehow10:15
zyga-suseis that still from snap-confine or from the suckmarines binary alreday?10:16
ikeyidk, from "snap run duckmarines"10:17
ikeyalso, this is new:10:17
ikeyerror: cannot install "brackets": classic confinement is not yet supported on10:17
ikey       your distribution10:17
zyga-suseikey: do you have /snap?10:17
zyga-suseikey: classic confinement relies on this to exist10:18
ikeyno im using /var/lib/snapd/snap10:18
zyga-suseikey: there's a patch from mvo that makes that an actual check, not a hard-coded list10:18
zyga-susethen no classic confinement :/10:18
* ikey patches it.10:18
ikeyor are they all built that way?10:18
zyga-susepatches it how?10:18
ikeyfor /snap/10:18
zyga-susethey *require* /snap10:18
ikeyew10:18
ikeyk.10:18
zyga-susebecause classic confinement doesn't use mount namespaces and other goodies10:18
zyga-suseso it has no other way to say "this is something you can hard-code in your binaries"10:19
ikeyso then classic confinement snaps (like - a whole bunch of them) wont work on most distros?10:19
ikeybecause they're using /var/lib/snapd/snap?10:19
ikeysod that10:19
* ikey switches to /snap10:19
ikeyim not *that* torn up about the FHS10:19
zyga-suseikey: so far they don't work on fedora and arch but I'm not sure if arch will keep it that way10:19
zyga-susefedora is very political about that, but I respect their decision10:19
zyga-suseikey: with a patch proposed by mvo a symlink from /snap to /var/lib/snapd/snap is enough10:20
zyga-suseikey: note that you need to patch both snapd and re-configure snap-confine10:20
zyga-suseikey: when you make this decision10:20
ikeysure but at that point you have /snap anyway10:20
ikeyso might as well use it10:20
zyga-suseikey: yes10:20
ikeysymlink or not10:20
zyga-suseI'd love to standardize /snap as a optional FHS feature one day10:21
zyga-suseikey: (you want to see dirs/dirs.go for the snapd side)10:21
zyga-suseikey: I think /snap is default though, not sure what you changed already10:21
ikeychanged dirs.go10:22
ikeyill change it back10:22
ikeyok so im back to having classic "work"10:25
ikeyim gonna have to bite the bullet probably and package up libselinux and provide the invalid ubuntu-named gtk-update-icon-cache-3.010:25
ikeyand that should "fix" the vast majority of classic snaps10:25
zyga-susethank you!10:25
ikeyand we'll use /snap too10:25
zyga-susewe should also do better checks on classic confinement snaps10:25
zyga-suseto figure out how to make that a bound problem10:25
zyga-susenot a "whack-a-mole"10:26
ikeyaye10:26
zyga-suseikey, sergiusens: hacks on the build tool, snapcraft10:26
ikeyah ok10:26
zyga-susewell, the meta-build swiss-army-knife10:26
ikeyso what you could do is effectively an ABI report on the root and discover missing bits10:26
zyga-suseikey: yeah, I think he is partially doing that today, not sure if at symbol level10:26
ikeyso i wrote a tool while i was at intel to do simple abi reports: https://github.com/clearlinux/abireport10:26
zyga-suseoh, neat10:27
zyga-susesergiusens: ^^ you want to see that10:27
ikeyso in solus it looks like this:10:27
ikeyhttps://dev.solus-project.com/source/libseccomp/browse/master/abi_symbols10:27
ikeyhttps://dev.solus-project.com/source/libseccomp/browse/master/abi_used_libs10:27
zyga-suseneat10:27
zyga-suseI think we can learn from that10:27
ikeybut i figured you could steal the core of abireport (Apache-2.0) to create a new kind of ABI tracker10:27
ikeythat way you can raise warnings when there are missing providers for a used symbol10:28
zyga-suseyeah, I'm sure we can improve a lot in the tooling used so far;10:28
zyga-suseall the new-kind-of-apps projects are a huge community learning exercise10:28
zyga-suseand collective pushing-the-boundary work10:28
ikeyfwiw i found it quite amusing when i saw the initial snap format10:28
ikeygiven how close it is the solus format10:29
zyga-suseyeah?10:29
ikeyhttps://dev.solus-project.com/source/libseccomp/browse/master/package.yml10:29
zyga-susebtw, I'm not familiar with solus packages10:29
zyga-susecan you tell me more about them10:29
ikeythat there is the build file for libseccomp10:29
zyga-suseha10:29
zyga-suseinteresting10:29
ikeywe focus on automation and correctness10:29
zyga-susedid you see snapcraft.yaml?10:29
zyga-susethe one thing I love snapcraft did10:29
mvoikey: nice, this looks way better than the spec files10:29
zyga-suseis to separate parts10:29
ikeyso that actually splits into libseccomp and libseccomp-devel10:29
ikey(and libseccomp-dbginfo)10:29
zyga-suseso that you can have one snap with two elements inside10:29
zyga-suseone, say, written in C with typical build-install code10:30
ikeyif you add emul32: yes you'll get libseccomp-32bit and libseccomp-32bit-dbginfo and libseccomp-32bit-devel10:30
zyga-suseand one written in something totally different, say python,10:30
zyga-suseand the logic is per-part10:30
zyga-suseso things compose more easily10:30
ikeyyeah units is nice to have10:30
ikeythe package.yml has some tricks up its sleeve like patterns10:30
ikeywhich dynamically constructs a subpackage based on a path math10:30
zyga-suseikey: did you see http://build.snapcraft.io/ ?10:30
ikeys/mat/match/10:31
ikeyfailsed.10:31
ikeyyeah its pretty10:31
ikeyvs https://build.solus-project.com/10:31
ikeyxD10:31
zyga-suseikey: nice, I wrote something like that for debian a while back but it was not well received10:31
ikeyyeaah Debian *enjoys* having hard packaging10:31
ikeyvery extreme example: https://dev.solus-project.com/source/libreoffice/browse/master/package.yml10:31
ikeyid sooner do that than debian/control and debian/*.install ...10:32
ikey:p10:32
ikey(the format also supports profile guided optimisation and test suites fwiw)10:32
zyga-susehttps://pypi.python.org/pypi/dh_splitpackage/0.2.310:32
zyga-susecuriously the links to launchpad are dead10:32
ikey"without pulling your hair out" lol10:33
zyga-susebut the tarball is there10:33
ikeypersonally i find the linux world focuses too much on packages and package managers and superiority of these glorified tarballs (giftwraped, I guess)10:33
ikeyi like to focus on features, scalability, delivery, cadence..10:34
zyga-suseah10:34
zyga-susefound it10:34
zyga-susehttp://bazaar.launchpad.net/~zyga/dh-splitpackage/trunk/view/head:/debian/splitpackage10:34
zyga-suse_ vs -10:34
zyga-suseyes, I agree a lot10:34
ikeyoh cute yaml map10:34
zyga-susenot quite yaml but yeah10:35
ikeyyamlish10:35
zyga-susewow, I even wrote a man page10:35
zyga-susehttp://bazaar.launchpad.net/~zyga/dh-splitpackage/trunk/view/head:/dh_splitpackage.110:35
ikeycheck you being all dedicated10:35
ikeylol10:35
ikeyoh dude you legit *wrote* a manpage10:35
zyga-suse_yes_ that's what I meant10:35
zyga-susehand made10:35
zyga-suseyes, I was trying to help10:36
zyga-suse(then got ranty responses and lost interest)10:36
ikeyuse ronn10:36
ikeyconvert markdown to manpage :]10:36
zyga-susenice! I was using rst2man later on10:36
zyga-susebut markdown is nicer10:36
ikeyso i can do like https://github.com/solus-project/ypkg/blob/master/man/package.yml.5.md and have it generate to https://github.com/solus-project/ypkg/blob/master/man/package.yml.510:36
ikeyah rst2man is pretty sweet yea10:37
zyga-suseheh10:37
zyga-susereading my own man page I still think dh_splitpackage is a few times better than anything else currently in debian10:37
zyga-susewell10:37
zyga-susethinking about what you said10:37
zyga-suseinclusion patterns could even be included from distro-wide global10:38
ikeyyeah10:38
zyga-suseso there would be less repetition10:38
zyga-susewell :)10:38
ikeyso you set distro policy from the outset10:38
zyga-suseI like how snaps don't have that problem10:38
zyga-suseyep10:38
ikeybut the key is to allow extending the pattern10:38
zyga-susesnaps are not perfect10:38
zyga-susebut at least we let people make and ship apps without reading holy books of packaging10:38
ikeyso you can see the default solus patterning here: https://github.com/solus-project/ypkg/blob/master/ypkg2/packages.py#L14110:38
ikeyand in almost all cases it does the right thing ™10:39
zyga-susenice10:39
zyga-suseyep10:39
ikeyuntil cmake is a dick and decides to use /usr/lib10:39
ikeyfor both 32-bit and 64-bit10:39
zyga-susewell10:39
ikeythats cmake for ya.10:39
ikeylol10:39
zyga-suselinux distros are a dick10:39
zyga-susewe love to diverge10:39
ikeytrue10:39
ikeywell tbf you all went down the multiarch route :P10:39
ikeyi wanted pure 64bit10:39
ikeybut nope, steam, skype, wine ....10:39
zyga-susemultiarch is great for arm cross compiling (and not just arm)10:39
zyga-susethough TBH fat binaries would have been better10:40
ikeyyeah10:40
zyga-susewell :)10:40
ikeywell, i got the whole "gah why you no use multiarch" thing a while back10:40
zyga-suseit's good to find others that share one's view10:40
ikeyand its like, well, solus is only 64-bit native10:40
ikeyso it makes not much sense :p10:40
zyga-suseI think multiarch is more than that10:40
ikeyso instead we explicitly have lib64 and lib3210:40
zyga-suse32/64 biarch is easier10:40
ikeyand we split packages based on that10:40
zyga-susemultiarch is is a nice general concept10:40
ikeyi.e. automatic -32bit -32bit-dbginfo -32bit-devel10:40
zyga-susethough again, fat binaries are just better still10:41
zyga-susebecause it doesn't have this problem of where-is-$foo10:41
ikeydont think we'll ever "win" all the time we focus on vanilla ELF10:41
zyga-suseand even executables are >1 arch10:41
zyga-suseheh10:41
zyga-suseyes but note one thing:10:41
zyga-susein "linux" we often "specify" things in a text file standing on plain apache somewhere10:41
zyga-suseand now it's the holly spec10:41
ikeywe also need to lose this fixation on mutux provider names in the filesystem10:42
ikey"i am /usr/lib/someLIB"10:42
* ikey shoots nvidia10:42
zyga-suseso elf spec could be extended arbitrarily if people agree10:42
ikeyyeah10:42
zyga-suseok, less rantin10:42
ikeylol10:42
zyga-suseI need to debug this test failure :)10:42
ikeyyeah i should likely sort out apparmor in our 4.1210:42
zyga-suseand move on to update arch packaging for the release10:42
zyga-suse(no-more-patches, woot :)10:42
ikeynoice10:42
zyga-suse4.13 is better10:43
ikey4.13 is also unstable10:43
zyga-suseubuntu still has many patches that are not upstream and 4.13 will have them10:43
zyga-suse*hopefully all*10:43
ikeywe offer "-lts" and "-current" in solus10:43
zyga-suseif you want to enable this LSM you want to take the few that didn't make it in 4.1210:43
ikey-lts = gkh's branch10:43
zyga-suseaha10:43
zyga-suse-lts-apparmor would be nice :)10:43
ikeyand -current = mostly-stableish10:43
zyga-susefor snapd at least, that would give you full confinement10:43
ikeyi.e. not rc and not mainline10:43
zyga-susethose are just in security/apparmor10:43
ikeywell im gonna backport the apparmor stuff ofr our linux-current10:44
zyga-suseand you could perhaps even cherry pick those that land upstream10:44
ikeybecause having lsm specific kernels would seem silly10:44
zyga-suseaha, sounds good10:44
zyga-suseI can point you to the tree that has those10:44
ikeywould love em10:44
zyga-susejjohansen1: ^10:44
ikeyi know 4.12 will be significantly easier to do than the 4.910:44
zyga-suseikey, jjohansen1 is working on upstreaming all of the apparmor changes10:44
ikeyv nice10:44
zyga-suseyes :)10:44
ikeyand ideally i want like-for-like confinement between solus and ubuntu10:45
zyga-suseikey: since they are so self contained it should be easy to get a version for nearly any kernel that's not 3.x I heard10:45
ikeyso people get the "full" snap experience10:45
zyga-suse*yes*10:45
ikeynot "hm but my distro said no"10:45
zyga-susethank you for caring about that!10:45
ikeyeh its for the users - dont wanna screw em over10:45
zyga-susesnapd can tell you what it thinks about confinement via "snap debug"10:46
zyga-suse(I forgot the sub-command)10:46
zyga-susebut this is in 2.27 only10:46
zyga-suseso wait for the tarball for that :)10:46
ikeylolk10:46
zyga-suseit looks at the kernel securityfs and checks if all the features are on10:46
ikeyah10:46
ikeyok thats handy10:46
zyga-suseok, I'll get back to bugfixing10:47
zyga-suseplease ping me if you find something odd to investigate10:47
zyga-suseone thing that *is* going to suck initially is opengl support10:48
zyga-susethat's a few months away from being sane10:48
zyga-susecurrent approach is a stop-gap10:48
ikeyyeah10:48
zyga-suse(for ! FOSS drivers)10:48
ikeyi might use the nvidia-arch option and see if that works10:48
zyga-suseintel should be ok though it could be better supported in snapd as well10:48
ikeyits *similar* to ours (but we symlinks it)10:48
zyga-suseI'd rather not, it's a gross hack10:49
zyga-susemixes userspace with snaps10:49
ikey/usr/lib64/libGL.so.1: symbolic link to /usr/lib64/glx-provider/nvidia/libGL.so.384.5910:49
zyga-susesome of the common extension snap work will allow us to do this10:49
ikeybit messy and in time i think ill replace that with ld.so.conf trickery10:49
zyga-suse(e.g. theme snaps will lead the way)10:49
ikeyyeah theme snaps..10:49
ikeypeople dislike lack of integration :p10:49
zyga-susethose are 1st priority for this cycle10:49
zyga-suseportal support, themes and a few other integration improvements10:50
ikey(especially now flatpak has them :P)10:50
zyga-suseyep :)10:50
zyga-susethat too :D10:50
zyga-suseI think our approach will be similar actually10:50
* zyga-suse would love to have alexander here to talk details10:50
ikeyheh10:51
ikeyright well i need to go make myself look half human for the rest of the day10:51
ikeybbiab10:51
mupPR snapd#3707 closed: interfaces: convert io_ports_control to common iface <Created by adglkh> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3707>11:02
mupPR snapd#3708 opened: interfaces: convert two hardware_random interfaces to common iface <Created by adglkh> <https://github.com/snapcore/snapd/pull/3708>11:11
ikeyzyga-suse, got a strace for running duckmarines: https://hastebin.com/akeviquqoc.erl if you wanna check later11:18
zyga-suseaha11:19
zyga-suseinteresting11:19
zyga-suseso this is socket using AF_NETLINK11:19
zyga-susewe have netling mediation in the tree now11:19
* zyga-suse looks11:19
zyga-susethis would be under netlink-observe I think11:20
zyga-suseok two more things11:20
zyga-susewhat does "snap version" say?11:20
ikeysnap    2.26.14+git1302.gd1e575152.dirty11:20
ikeysnapd   2.26.14+git1302.gd1e575152.dirty11:20
zyga-suseand did you install this snap before you got other parts in place, perhaps the security profiles are out of date11:20
zyga-susehmm hmm11:20
zyga-susecan you look at /var/lib/snapd/seccomp/11:20
ikeyonly has bpf11:20
zyga-suseand look for the human-readable profile for this app (seccomp profiles are per-app)11:21
zyga-suseand if you can pastebin the plain text one11:21
zyga-suse(those are compiled with snap-seccomp btw)11:21
ikeyhttps://hastebin.com/aqizajecat.pl11:21
ikeysoo11:23
ikeylooks like AF_NETLINK is needed and not whitelisted11:23
ikeyor am i reading this wrong..11:23
zyga-susesocket AF_NETLINK - NETLINK_ROUTE11:25
zyga-suseaah11:25
zyga-suseit wants a different type11:25
zyga-susecurious11:26
ikeyyeah mines off chasing NETLINK_KOBJECT_UEVENT11:26
zyga-suseyes11:26
zyga-suseone sec11:26
zyga-susecan you check which interfaces are conneccted?11:27
zyga-susethis one should be granted by pulseaudio interface11:27
ikeyhttps://hastebin.com/cuqawagitu.rb11:27
zyga-suseoookay11:28
zyga-suselet me look11:28
zyga-susevery curious11:28
zyga-suseah, my bad11:28
zyga-susepulseaudio doesn't grant that for plugs11:28
zyga-suseso .. still a mystery11:28
ikeylol11:28
* sergiusens wonders when we will start seeing zyga-solus11:29
ikeypost-solus-release :p11:29
zyga-suseyes, likely11:30
zyga-susenothing like hands-on11:30
Son_Gokumorning all11:30
zyga-suseikey: which revision of that snap are you on?11:31
zyga-suseI'm on 911:31
ikeyalso 911:31
zyga-suseok, so I need to boot ubuntu to check11:31
ikeyon ubuntu isn apparmor going to mediate the remaining network calls?11:31
zyga-susebut my working theory is that you kit a seccomp kill because the app is normally not even going to try something after getting an apparmor denial11:31
zyga-suseright11:31
zyga-susethis will fix itself when seccomp can return errors as well11:32
ikeyheh11:32
zyga-susethis work is AFAIK done upstream now)11:32
zyga-suseor when you will get apparmor11:32
zyga-susenot sure if I'm right though11:32
zyga-suseikey: one suggestion11:32
zyga-susecan you refresh that snap with --devmode11:32
ikeysure11:32
zyga-susethis will put seccomp into no-op mode11:32
zyga-suseand it _should_ at least show that it works11:32
* zyga-suse looks at his profiles on suse11:32
zyga-suseah, still on 2.25 here so no good comparison11:33
ikeyok so its definitely trying to start11:33
ikeylibGL error: No matching fbConfigs or visuals found11:33
ikeylibGL error: failed to load driver: swrast11:33
ikeythis is fine11:33
ikeyit cant find my nvidia11:33
* ikey expected as much11:33
ikeybut its gotten along a lot further11:33
zyga-susethe lethal seccomp is a workaround for lack of a kernel feature where we log stuff _and_ we don't kill11:33
zyga-susedid you enable any of the nvidia hacks/workarounds?11:34
zyga-suse(in snap-confine)11:34
ikeynah ill try the arch nvidia one and see if that works at all11:34
zyga-suseok11:34
zyga-susenot sure if it will but let's see11:34
zyga-susesorry about that, nvidia support is really hit-and-miss11:34
ikeyyeah im used to that dw11:34
zyga-suseI would love to know how that works on an intel box11:36
zyga-susemvo: does this make any sense to you? https://travis-ci.org/snapcore/snapd/builds/262982604?utm_source=github_status&utm_medium=notification11:36
* zyga-suse notices ogra's huge gadget PR11:37
ogra_zyga-suse, same as the pi one just adjusted confiigs for pi211:37
zyga-suseikey: if you are familiar with the nvidia driver I could use some input11:37
zyga-suseyep11:37
ogra_*same as the pi311:37
ikeycannot mount tmpfs at /tmp/snap.rootfs_JHOwxl/var/lib/snapd/lib/gl: No such file or directory11:37
zyga-suseikey: on how I want to make that work in snaps11:37
* ikey blows a rasberry at confinement11:37
zyga-suseyou need an empty directory there11:38
ogra_:)11:38
zyga-susein /var/lib/snapd/lib/gl11:38
ikeyoh dude11:38
ikeygame works11:38
ikeyi mean the music is banging too11:38
zyga-susewooooot11:38
zyga-suse :D11:38
zyga-susehahaha11:38
zyga-susethat's so great11:38
zyga-susepics or it didn't happen :D11:39
zyga-susebetter yet11:39
zyga-susetweet a pic11:39
* ikey doesn't control the solus twitter anymore :p11:39
ikeyhttps://ibin.co/3WOU2Mq91dSg.png11:39
zyga-susewat?11:39
zyga-susewho does?11:39
ikeyjosh does11:39
ikeyhe does social thingies11:40
ikeyi control the G+11:40
zyga-suseohhh, I'd love to see those bash prompts for git integration11:40
ikeyand most tweets are reposts of that11:40
ogra_post it there then !11:40
ikeylol11:40
ikeys/bash/zsh/11:40
ikey:p11:40
zyga-suse(things you learn from random images :D11:40
zyga-suseaha11:40
zyga-suseyou may be interested in *very* cool tab completion11:40
ikeyfwiw classic snap last night: https://plus.google.com/+Solus-Project/posts/BN5p1arv3Fs11:40
zyga-susesnapd can do tab completion for snaps inside their confinement11:40
zyga-suseand we probably miss something for zsh intergration11:41
zyga-suseChipaca can tell you all about this11:41
ogra_a lot i think11:41
ikeyaye11:41
zyga-suseso you could tab-tab a command from a snap11:41
zyga-suseand the completer runs confined11:41
ikeynice11:41
ikeyalright so it looks like the remaining "main ticket item" really now is to chuck apparmor into the kernel11:42
ikeyand then see if that fixes !devmode11:42
zyga-suseyep11:42
ikey(gonna need it anyway)11:42
zyga-suseand please send your patches back11:42
zyga-suseI think we can do a 2.27.1 after we collect patches from distributions11:43
ikeyyeah will do11:43
zyga-suseI may need one for opensuse apparently11:43
zyga-suseat least to fix this damn unit test11:43
ikeythe patch is actually really basic right now11:43
zyga-suseI bet it is bleeding edge golang in tumbleweed11:43
ikeyhttps://hastebin.com/jotepamoki.bash - but i dont wanna send it in yet due to the disabling of apparmor11:43
zyga-suseyeah, I hoped it would be easy but I just want them merged :)11:43
ikeyand you might not like mkversion change :P11:44
zyga-susesuper nice11:44
zyga-suseyep11:44
zyga-suseread it11:44
zyga-suseI think it's fine11:44
ikeyypkg sets $version as the package.yml key11:44
zyga-suseyou can just call mkversion with an argument11:44
ikeyand it means autogen then just works11:44
zyga-susebut no strong opinions11:44
ikeywe use %autogen macro11:44
ikeywhich takes arguments too11:44
ikeyso in autogen.sh i modified solus) to take $@11:44
ikeymeaning that autogen.sh/mkversion.sh/configure all play nicely in a single chain11:45
zyga-suseahh, I see11:45
zyga-susecool :)11:45
ikeycheers for all the help so far, very much appreciated11:45
zyga-susepleasure :)11:46
* ogra_ sighs about the flashplugin update he gets ... 11:48
ogra_thats the only package i'd really love to see as classic snap one day :)11:49
pstolowskipedronis, hey, re your comment about having a "run-hook[refresh]" helper, are you suggesting a test-side only helper, or making "run-hook" tasks have different kinds?11:56
pedronispstolowski: only in the tests11:57
pstolowskipedronis, ok good11:57
pedronismake the helper that lists kinds etc11:57
pedronisproduce that11:57
pstolowskipedronis, because the latter would be problematic11:57
pedronis*helpers11:57
pedronispstolowski: understood11:57
pstolowskithanks11:58
mupPR snapcraft#1474 opened: kbuild plugin: use ARCH from environment if set <Created by kalikiana> <https://github.com/snapcore/snapcraft/pull/1474>12:01
kalikianaondra: ^^12:02
ondrakalikiana do you have build of snapcraft with that change,so I can test it?12:04
ondrakalikiana not sure if this would work, as we are build on arm64 and kernel is arm64, but we need arch arm12:06
Chipacai'm off to lunch12:06
mvosergiusens: so "app-constrains" instead of "wrappers"? happy to change that12:06
abeatomvo, hey, is current core edge really built from master or is it a re-spin of 2.27?12:09
mvoabeato: today its 2.27 sorry for that, when a release is immanent edge is sometimes not really edge12:10
mvoabeato: I expect things to be normal by this evening12:10
zyga-suseedge is not what it seems to be on days like that12:10
abeatomvo, ack, nw12:10
abeatoyeah, I suspected that... :)12:10
mvocachio: hey, good morning! any last minute concerns aobut 2.27, otherwise I'm going to upload 2.27-final in a wee bit :)12:11
sergiusensmvo: well I am thinking, you didn't start a forum post to discuss this ;-)12:12
ikeyzyga-suse, should i be setting DEFAULT_SECURITY_APPARMOR=y ?12:12
ikeyright now its DEFAULT_SECURITY_DAC12:12
mvosergiusens: doing that as we speak12:12
sergiusensmvo: for example, `no-environment` might be the better keyword, or when we kill our wrappers and just shove stuff in `env`, would that still be ok for your use case?12:13
zyga-suseikey: mmmmm, I don't know, tyhicks or jdstrand can say12:13
zyga-suse(please help out)12:13
mvosergiusens: absolutely, my use case is that I don't want #!/bin/sh (as my base snap does not have it ;)12:13
zyga-suseikey: ^ mvo works on a test base snap that ships *nothing* :-) so apps execute in a very very empty place12:14
ikeyah cool12:14
sergiusensmvo: right, then `no-environment` might be the better fit as the wrapper is just an implementation detail12:14
mvosergiusens: sure, works for me, I create a forum topic just to make sure that gustavo is aware and can weight in12:15
sergiusensmvo: would be nice to see `command`s of the style of the ones you see `snapcraft.yaml` allowed in `snap.yaml` and we are golden :-)12:15
sergiusensmvo: perfect12:15
sergiusensI'll add my comments12:15
zyga-susesergiusens: what is the difference today?12:16
zyga-susesergiusens: that they run via shell?12:16
mvosergiusens: created and mentioned you12:17
sergiusenszyga-suse: in snapcraft you can do: `env PATH=$SNAP/bin my-command $SOME_VAR` in snap.yaml you cannot specify variables12:18
zyga-susesergiusens: right12:18
zyga-susesergiusens: but you can specify ... environment12:18
sergiusensand I know jdstrand explained the why's to me, but I just wish it were allowed12:18
zyga-susewhat you said above needs to be handled by /bin/sh12:19
zyga-suseaha12:19
sergiusenszyga-suse: you can, but some commands require something like this: `command: my-command --work-dir $SNAP_USER_DATA`12:19
zyga-susearguable we _could_ expand $SNAP_ variables12:19
zyga-susearguably*12:19
sergiusensfwiw, the wrappers are mvo's invention ;-)12:20
mvosergiusens: really?12:20
* mvo can't remember12:20
zyga-susewhaat? :-D12:20
zyga-suseI won't say who complains about wrappers the most :D12:20
mvolol12:20
mvoI always thought it was the other mike12:20
* ikey & compiling linux-current...12:20
sergiusensmvo: ah mterry  in the middle of a bunch of your commits `git diff ac2a535d52a04d9ec848026d52c19d1471bbbe39^ ac2a535d52a04d9ec848026d52c19d1471bbbe39`12:24
sergiusensyou made the sell for it on the Snappy Clinics though12:24
mvosergiusens: heh, thats quite possible12:24
mvosergiusens: the bad old days :)12:24
sergiusenszyga-suse: mvo the only reason we didn't move to `env` yet is due to the way environment was originally implemented, and that is mvo's invention ;-) We need env stacking to make it easy and dictionaries don't make that easy12:28
zyga-susesergiusens: do you know about the merge-keys feature in yaml?12:28
zyga-suse(not sure if related but I was surprised today)12:28
zyga-susehttp://yaml.org/type/merge.html12:28
sergiusenszyga-suse: yes12:29
sergiusensit makes the yaml look horrible, but some people like it ;-)12:29
mvosergiusens: I'm still not so sure if it was my invention but my memory is sometimes flaky so I will not fight over it ;)12:29
ikeyDoes apparmor require CONFIG_AUDITSYSCALL ?12:39
ikey(and thus, snap)12:39
* zyga-suse doesn't know12:39
zyga-suseagain that would be something that jdstrand or jjohansen1 can answer12:40
zyga-suseikey: I know this is not a good answer but you could cross-check with what the ubuntu config is12:40
ikeycuz CONFIG_AUDITSYSCALL is notoriously slow12:40
* zyga-suse is melting here12:41
ikeyanyone able to zgrep CONFIG_AUDITSYSCALL /proc/config.gz..?12:41
ikey(on buntu)12:41
* zyga-suse boots12:42
zyga-suseone sec12:42
ikeyta12:42
ikeyi know consolekit used to require it - but like nobody uses that now12:42
zyga-ubuntuikey: zyga@fyke:~$ cat /boot/config-4.10.0-30-generic  | pastebinit12:43
zyga-ubuntuhttp://paste.ubuntu.com/25283420/12:43
mupPR snapcraft#1473 closed: catkin plugin: rosinstall-files is a pull property <bug> <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1473>12:43
ikeyouch you have it on12:43
mupPR snapd#3708 closed: interfaces: convert two hardware_random interfaces to common iface <Created by adglkh> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3708>12:48
zyga-susepedronis: around?12:48
pedroniszyga-suse: yes12:49
zyga-susehttps://paste.gnome.org/pqyailbdz12:49
zyga-suseI changed the prune function to log why things happen12:49
zyga-suseit seems change 1 should *not* be pruned12:49
zyga-suse(according to the test)12:49
zyga-susemy mind has melted today so I'm not sure if this is just still racy12:50
zyga-suseor is something else at play12:50
zyga-suseor maybe some scheduling or golang parts are different here12:51
pedronissorry, I cannot really context switch to this atm12:51
zyga-suseOK12:51
* zyga-suse keeps digging12:51
ikeythere we go, officially snowing in hell12:53
ikeyhttps://dev.solus-project.com/R3571:19e256059de04cae4f98d22f71ec0eb36ac02e1312:53
zyga-ubuntuzyga@fyke:~$ cat /boot/config-4.10.0-30-generic  | pastebinit12:53
zyga-ubuntuhttp://paste.ubuntu.com/25283420/12:53
zyga-ubuntuer, sorry12:53
zyga-ubuntuwooot :)12:54
ikeyxD12:54
zyga-ubuntumay I tweet about this :)12:54
zyga-ubuntuor would you rather12:54
ikeynah go ahead12:54
kalikianaondra: You don't need to build it, you can run it from source. Although I could make you a snap if you rather wait for it to build... I tested with this https://github.com/kubiko/dragonboard-gadget/pull/112:54
mupPR kubiko/dragonboard-gadget#1: Use upstream kbuild plugin <Created by kalikiana> <https://github.com/kubiko/dragonboard-gadget/pull/1>12:54
ikeycan link direct to the commit too as it shows the canonical.com patchwork12:54
ikeyyknow, brownie points n all12:54
ikeyi have a suspicion this audit change will fix some old bugs and expose some new ones, but we'll see once i have the nv ko rebuilds in..12:56
ondrakalikiana now I'm even more curious how you determine to use arm12:56
ondrakalikiana and cross compiling also working?12:57
zyga-ubuntuikey: this will be very interesting indeed, I wonder what results you'll get12:57
kalikianaondra: I don't. See the PR description :-)12:57
kalikianaIt works the same way as CROSS_COMPILE now12:58
ondrakalikiana I'm checking your changes to dragonboard, and this looks so clean, just wondering how it works that it knows to use arm ARCH12:58
ondrakalikiana have you  tested native build on arm64?12:58
ondrakalikiana so when you cross compile, do you tell if to cross compile for arm64?12:58
kalikianaondra: "ARCH=arm snapcraft --target-arch=arm64" is what I tested12:59
ondrakalikiana aha :)12:59
ogra_crazy stuff12:59
ondrakalikiana OK that would probably fail then when build in launchpad13:00
ondrakalikiana as you can't really defined there env variable, unless I don't know about it13:00
ogra_why would you cross build in lp ?13:00
ondraogra_ there you native build13:00
ogra_right13:00
ondraogra_ but that means you gonna end up with arm64 ARCH13:00
ondraogra_ which will fail13:01
ogra_anything wrong with that ?13:01
ogra_why ?13:01
ondraogra_ you have so bad memory :D13:01
ogra_it is only uboot13:01
kalikianaondra: So Launchpad is native? Or Cross-compiling?13:01
kalikianaI assumed native13:01
ogra_yeah, lp is native13:01
ondraogra_ remember, uboot for dragonboard fails unless you use arm64 toolchain, but defined arm ARCH13:01
ogra_but i remember there was this odd mkimage thing13:02
ondrakalikiana LP is native13:02
ondraogra_ I don't know is this is specific to dragonboard or to arm6413:03
ondraogra_ but for dragonboard I had to use this crazy combo to make it build13:03
ogra_yeah, i remember now13:03
ogra_though i think the dragonboard still boots fine if you just use armhf ... iirc the prob was that you need to use this mkimage call13:04
kalikianaogra_: it actually won't build because there's no config in arch for it13:05
ondraogra_ but it won't compile13:05
kalikianaAlthough I wonder, can that be fixed?13:05
ondraogra_ only way to build is arm64 toolchain  + arm ARCH13:05
ondraand building arm64 architecture on  armhf seems even more broken, let alone it won't build anyway13:06
* ikey makes a one-of-them-g+ posts13:06
zyga-ubuntuikey: :-)13:26
zyga-ubuntuikey: note that you may still be missing some more specific apparmor patches but I'll wait for a reply from jjohansen1 which is doing this work13:31
zyga-ubuntuikey: I'm sure he can look at your config and tree and say if anything is missing13:31
ikeysure13:31
ikeyive taken them from your kernel.ubuntu.com backports tree13:31
zyga-ubuntuaha, that's good then13:31
zyga-ubuntuI *think* all of them are in the xenial tree but xenial uses older kernel and I'm not a real kernel dev13:32
zyga-ubuntuso not sure :)13:32
ikeyack13:32
=== chihchun is now known as chihchun_afk
mvozyga-suse, zyga-ubuntu, zyga-*: if you type "mount|grep disk" what do you se?13:52
jdstrandroadmr: hey, can you sync r896 just whenever13:52
roadmrjdstrand: totally13:53
jdstrandroadmr: thanks :)13:54
zyga-ubuntumvo: checking13:56
zyga-ubuntumvo: note that I suspect I mounted them by clicking on them13:56
zyga-ubuntumvo: oh wow13:56
zyga-ubuntuthis is interesting13:56
zyga-ubuntuzyga@fyke:~/snapd$ mount | grep disk13:56
zyga-ubuntu/var/lib/snapd/snaps/core_2445.snap (deleted) on /media/zyga/disk type squashfs (ro,nosuid,nodev,relatime,uhelper=udisks2)13:56
zyga-ubuntu/var/lib/snapd/snaps/core_2462.snap (deleted) on /media/zyga/disk1 type squashfs (ro,nosuid,nodev,relatime,uhelper=udisks2)13:56
zyga-ubuntucheck this out13:56
mvozyga-ubuntu: aha! and snap list --all ? does it show those?13:57
zyga-ubuntucore                            16-2.27            2610  canonical       core13:57
zyga-ubuntucore                            16-2.27            2604  canonical       core,disabled13:57
zyga-ubuntucore                            16-2.27            2601  canonical       core,disabled13:57
zyga-ubuntuChipaca: btw, snap list --all chokes on broken snaps to the point where it doesn't show *any* snaps13:57
zyga-ubuntumvo: as I said, I was hopping channels13:58
Chipacazyga-ubuntu: what sort of broken snap?13:58
zyga-ubuntuChipaca: I had a few snaps I 'snap try'ied13:59
mvozyga-ubuntu: interessting13:59
zyga-ubuntuChipaca: to check specific encyptfs behavior13:59
mvozyga-ubuntu: so these are really not on disk anymore?13:59
zyga-ubuntu(those snaps were on a fs my user cannot access)13:59
zyga-ubuntumvo: yes13:59
mvozyga-ubuntu: context is core not try :)13:59
zyga-ubuntumm?14:00
zyga-ubuntumvo, Chipaca: those broken snaps were there for months14:00
zyga-ubuntuand I never noticed any problem14:00
zyga-ubuntubecause I wasn't runnin list --all14:00
Chipacazyga-ubuntu: sudo curl -N -0 -s --unix-socket /run/snapd.socket http:/v2/snaps | pastebinit14:00
zyga-ubuntuChipaca: I had to remove them so this will now work14:01
zyga-ubuntuzyga@fyke:~/snapd$ snap list --all14:01
zyga-ubuntuerror: cannot list snaps: cannot list local snaps! cannot find installed snap "test-snapd-overmount" at revision x114:01
zyga-ubuntuyour command is still doing stuff14:01
zyga-ubuntutimed out14:01
zyga-ubuntuChipaca: I got:14:02
zyga-ubuntuBłąd połączenia z serwerem: [Errno socket error] The read operation timed out14:02
zyga-ubunturan again and got14:02
zyga-ubuntuhttp://paste.ubuntu.com/25283709/14:02
Chipacazyga-ubuntu: ok, get me snapd logs then14:02
zyga-ubuntuaaah14:02
zyga-ubuntusie 10 14:43:40 fyke systemd[1]: snapd.service: Service hold-off time over, scheduling restart.14:02
zyga-ubuntumvo: ^ remember this14:02
zyga-ubuntusie 10 14:43:40 fyke systemd[1]: Stopped Snappy daemon.14:03
zyga-ubuntusie 10 14:43:40 fyke systemd[1]: Started Snappy daemon.14:03
mupPR snapd#3709 opened: release: snapd 2.27 release <Created by mvo5> <https://github.com/snapcore/snapd/pull/3709>14:03
zyga-ubuntuwe had this before14:03
zyga-ubuntuthe sd-notify bug14:03
zyga-ubunturight?14:03
Chipacai sometimes agree with those logs: *fyke* systemd14:03
zyga-ubuntusnapd restarts periodically14:03
mvozyga-ubuntu: yes, we had this before - where do you see it?14:03
zyga-ubuntuon fyke, apparently, on my dev system running14:04
Chipacazyga-ubuntu: what did you have before that? a traceback or anything?14:04
zyga-ubuntusnap    2.27~rc914:04
zyga-ubuntusnapd   2.27~rc914:04
zyga-ubuntuChipaca: nope14:04
zyga-ubuntuChipaca: let me get you the full log14:04
mvozyga-ubuntu: what version of snapd do you have installed as the deb?14:04
zyga-ubuntuhttp://paste.ubuntu.com/25283724/14:04
zyga-ubuntu2.2514:04
mvozyga-ubuntu: so this can happen if you have a snapd deb with "type=notify" in the deb but re-exec runs a version that does not support type=notify. but your case is the other way aroudn afact14:05
Chipacaout of curiosity, what's doing all those individual GETs?14:05
zyga-ubuntumvo: I don't have Type=notify in snapd.service14:06
zyga-ubuntuChipaca: not me14:06
Chipacazyga-ubuntu: i suspect gnome-software14:07
Chipacazyga-ubuntu: because of the icons14:07
zyga-ubuntumaybe14:07
mvozyga-ubuntu: how often do you see this message?14:08
zyga-ubuntumvo: according to the log I pasted, just a few times now14:08
zyga-ubuntubut I did hit the window a moment ago14:08
zyga-ubuntuwhen I was doing the queries for chipaca14:08
zyga-ubuntumaybe snapd panicked14:08
zyga-ubuntuwhile I had those broken snaps installed14:08
zyga-ubuntuand I ran list --all14:08
Chipacazyga-ubuntu: you'd see the panic in the logs14:08
ikey ✓  ufee1dead@ironhide  ~  dmesg|grep -i armor14:09
ikey[    0.026751] AppArmor: AppArmor initialized14:09
ikeyheh14:09
zyga-ubuntuikey: nice :D14:09
zyga-ubuntumvo: out of curiosity, jump between beta and candidate14:11
zyga-ubuntudo it a few times and see what happens14:11
mvozyga-ubuntu: will do in a bit, just in the middle of releasing 2.27 :)14:12
* ogra_ does that multipple times a day ... but only on ubuntu core14:12
ogra_-p14:12
* zyga-ubuntu thinks about lunch14:15
pstolowskizyga-ubuntu, thinking about it rarely helps ;)14:15
* zyga-ubuntu eats stuff :D14:20
ondrakalikiana was thinking, without over complicating kbuild plugin, best thing would be if one can define env variable for each part build14:22
ondrakalikiana this could be quite handy feature and it'd probably solve lot of additional hacking14:22
ondrakalikiana and we could do it way, that whenever we are passing env variables, like for cross compiling, we could preference those defined in snapcract.yaml14:23
* zyga-ubuntu suspends this laptop to work on one less computer at a time14:32
zyga-suseikey: about your post earlier, I think having a common market and ease-of-deployment *is* a compelling reason for developers to target linux14:38
zyga-suseikey: so indirectly, initiatives like snaps help to achieve that14:38
ikeyhaving a shop is all well good provided you put the shop on a busy street and sell things people want14:52
ikeyzyga-suse,15:00
ikeysnap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks15:00
ikey(built it with libapparmor)15:00
zyga-suseaaah15:01
zyga-suseyeah15:01
zyga-suseok, so now you need to install the apparmor profile for snap-confine15:01
zyga-suseit should have been built15:01
zyga-susesnap-confine.apparmor15:01
ikeyah ok15:01
ikeywhere does he go15:01
zyga-suseon debian this goes to /etc/apparmor.d/15:01
ikeyew.15:02
ikeyso much ew.15:02
zyga-suseas usr.lib.snapd.snap-confine15:02
ikeythats blatant misuse of /etc15:02
ikey:P15:02
zyga-susejust encode the path in the name15:02
ikeyyknow im going to send you patches to fix apparmor right?15:02
ikeylol15:02
zyga-susewell, in theory because this is something you can edit15:02
ikeySolus is on a mission to ban use of /etc/15:02
ikeyyeah ive heard that theory a lot..15:02
ikeylol15:02
zyga-suseikey: yes, I saw that, that *is* a good thing15:02
ikeyill figure out bzr during next week i think15:02
zyga-suseI don't know if apparmor supports stuff like /lib/apparmor.d15:02
ikeyand work out the stateless approach15:02
ikeyfor now ill use /etc/ and cry later15:02
zyga-susefor that I bet you want to work on jdstrand and other apparmor upstreams15:03
ikey/etc/apparmor.d/usr.lib64.snapd.snap-confine15:03
ikeyits there..15:03
zyga-suseyep15:03
mvozyga-suse: meh, looks like opensuse in the tests is fragile, e.g. timeout errors15:03
mvozyga-suse: on the download servers15:03
zyga-susemake sure the stuff inside matches the path15:03
ikeysoo i guess the next question is how do i make it go15:03
ikeyxD15:03
zyga-suseikey: the first few lines show which file is being confined15:04
zyga-suseikey: apparmor_parser -r /path/to/that/file15:04
zyga-susethat will load it15:04
zyga-suseand you can try running now15:04
* ikey fixes up apparmor pkg15:04
ikeyim guessing there is a systemd unit to load this cruft on boot15:04
zyga-susemvo: download servers?15:04
zyga-suseikey: yes, not a systemd unit buy old style script15:04
zyga-suseit's a part of userspace apparmor tools15:04
zyga-suse(it's convoluted)15:04
ikeyo15:04
ikey[Package] Including empty directory: /var/lib/apparmor15:05
* ikey sobs into a bucket15:05
ogra_"old style" ... tsk ...15:05
mvozyga-suse: yeah, I retrigger and see what happens, I got a timeout from zyper in project prepare for opensuse15:05
zyga-suseoh15:05
zyga-suseinteresting15:05
zyga-susemaybe our base image is very old15:05
zyga-suseand we get lots of updates15:06
ikeyWarning: unable to find a suitable fs in /proc/mounts, is it mounted?15:06
ikeyUse --subdomainfs to override.15:06
ikeywut15:06
zyga-susedid you mount apparmorfs?15:06
ikeyidk how it works lol15:06
zyga-susein /sys/kernel/security/apparmor15:06
ikeyshould i assume i now need to build systemd with apparmor?15:06
zyga-suseikey: I'd have a look at apparmor packaging in debian and in opensuse15:06
zyga-suseikey: no, it's not mandatory15:07
ikeyhuh ok /sys/kernel/security/apparmor does exist15:10
zyga-susemmm, maybe something else is missing, I'm sorry I don't know that error15:10
zyga-suseon tumbleweed I see securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 015:11
ogra_pedronis, did you want to drop the timestamp checking of the system-user assertion or do i mis-remember that ? (regarding bug 1679739)15:11
mupBug #1679739: System-User Assertions and the system time <Snappy:New> <https://launchpad.net/bugs/1679739>15:11
mupPR snapd#3710 opened: many: allow and support serials signed by the 'generic' authority instead of the brand <Created by pedronis> <https://github.com/snapcore/snapd/pull/3710>15:12
ikeysecurityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 015:13
ikeytmpfs /dev/shm tmpfs rw 0 015:13
ikeyer random 2line paste15:13
ikeybut yeah, its definitely mounted15:13
ikeythe failed call is     aa_kernel_interface_new(&kernel_interface, features, apparmorfs) == -1) {15:14
tyhicksikey: can you strace apparmor_parser and see if there's a failing syscall inside of aa_kernel_interface_new()?15:15
ikeyyea poking that now15:15
zyga-susetyhicks: hey :)15:15
tyhickshey zyga-suse :)15:16
ikeyopen("/etc/apparmor.d/usr.lib64.snapd.snap-confine", O_RDONLY|O_DIRECTORY|O_CLOEXEC) = -1 ENOTDIR (Not a directory)15:16
tyhicksthat's not likely the issue15:17
tyhickscan you paste the entire strace somewhere so I can look?15:17
ikeyhttps://hastebin.com/fimogokola.erl15:17
tyhicksthanks15:18
tyhickswhat's the full apparmor_parser command that you're using?15:18
ikeythe one zyga-suse gave me: sudo /sbin/apparmor_parser -f /etc/apparmor.d15:18
ikeyer15:18
ikeywith the filename*15:18
ikeysudo /sbin/apparmor_parser -f /etc/apparmor.d/usr.lib64.snapd.snap-confine15:19
ikeyis -f wrong by any chance?15:19
tyhicksyes15:19
tyhicks-f is wrong15:19
ikeyxD15:19
tyhicksso the failing open() was the issue :)15:19
ikeylol yeah15:19
ikeyso -a or -r ?15:19
tyhicksI think you want -r instead of -f15:19
ikeyta15:19
ikeyCould not open 'tunables/global'15:20
ikeypfft15:20
* ikey adds profiles to pkg15:20
ikey/usr/lib64/snapd/snap-confine: error while loading shared libraries: libudev.so.1: failed to map segment from shared object15:21
ikeyxD15:21
* ikey goes to look at the confine file15:21
zyga-suseikey: aha15:21
zyga-suseikey: you may want to update paths in that file15:22
ikeyits all multiarched up15:22
zyga-suseyep15:22
zyga-susesorry15:22
zyga-susebut thank you for leading the way15:22
ikeyheh15:22
zyga-suseI'll gladly take patches to imporve this15:22
ikeyso we have @{multiarch}15:23
ikeyis there anything like $LIB from ld?15:23
ikeyfwiw this kinda demonstrates the sandboxing is working15:23
ikeylol15:23
zyga-susesome things are variables expanded by apparmor15:23
zyga-suseindeed :)15:23
zyga-susebut I don't know, I rarely look at the global includes15:23
ikeyok15:23
ikey@{multiarch}=*-linux-gnu*15:25
nothalikey: No such command!15:25
ikeyhrm ok15:25
ikey..lol15:25
ikeygold15:25
ikeycannot create symbolic link /tmp/snap.rootfs_BPPk5I/var/lib/snapd/lib/gl/libEGL.so -> /var/lib/snapd/hostfs/usr/lib64/libEGL.so.1: Permission denied15:33
zyga-suseoh15:35
zyga-susethat's nvidia arch support15:35
zyga-susesince it was never tested under confinement you need to allow that symlink15:35
ikeyok how do i do that15:36
ikeylol15:36
ikey"    /tmp/snap.rootfs_*/var/lib/snapd/lib/gl/ w," mebbe?15:37
zyga-susethe synax is like15:37
jaggz- Copy snap "meshlab" data (cannot copy "/var/snap/meshlab/4" to "/var/snap/meshlab/4": failed to copy all: "cp: cannot stat '/var/snap/meshlab/4': No such file or directory" (1))15:38
ikeyneeded a * at the end..15:38
ikeyok now we make progress:15:38
ikeycannot change profile for the next exec call: No such file or directory15:38
ikeylol15:38
jaggzwhat's that about?  I'm trying to install a snap from a file15:38
zyga-suse path/to/file w,15:38
zyga-susetyhicks: ^ symlinks?15:38
zyga-susetyhicks: do I rememeber this correctly?15:38
zyga-susejaggz: that's something for Chipaca15:39
Chipacame? :-)15:39
zyga-suseikey: that is /proc/$PID/attr AFAIR15:39
ikeyopen("/proc/24260/attr/exec", O_WRONLY) = 315:39
ikeywrite(3, "exec snap.duckmarines.duckmarine"..., 33) = -1 ENOENT (No such file or directory)15:39
zyga-suseikey: this is how apparmor profile changes are applied15:39
zyga-suseright15:39
Chipacajaggz: but i was just about to say: could you ls -l /var/snap/meshalb for me?15:39
zyga-suseaha15:39
zyga-susemaybe snap.duckmarines.duckmarine is not a generated profile15:39
zyga-suseprobably because snapd didn't generate a profile15:39
tyhickszyga-suse: sorry, what specifically about symlinks are you asking? I don't see it in the scrollback15:39
ikeyhm15:39
zyga-suseand probably because you are missing a patch so it determined that apparmor support is incomplete15:40
zyga-suse(lots of probably)15:40
ikeyright15:40
ikeysnap debug confinement yields partial15:40
zyga-susetyhicks: I forgot the syntax for symlinks in apparmor15:40
zyga-suseikey: so something is missing15:40
ikeyyeah15:40
ikeybut i fixed the library issue and libGL write issue15:40
zyga-suseikey: or not compiled in or misisng15:40
tyhickszyga-suse: you have to give permission to the symlink target since that's what apparmor mediates on15:40
mupIssue snapcraft#1475 opened: rust plugin recording <design-required> <Created by sergiusens> <https://github.com/snapcore/snapcraft/issue/1475>15:40
zyga-susewe look at /sys/kernel/security/apparmor/features15:41
ikeythis bit worked for the arch confinement:15:41
ikey    /tmp/snap.rootfs_*/var/lib/snapd/lib/gl/* w,15:41
zyga-susetyhicks: thank you15:41
ikeythough in truth it should likely be more strict and catch .so* only15:41
zyga-suseikey: this is fine, you need more patches to get snapd to flip from "partial" to "strict"15:41
ikeyaye15:41
ikeyso more kernel work15:41
ikeywell we made great headway15:42
ikeyto the point that snapd-confine itself is happy through apparmor15:42
ikeynow it just needs to execute this damn duck marines15:42
ikeytelling ya, it best be a good game after all this :p15:42
Chipacaikey: http://i.imgur.com/eTic1wS.jpg15:43
zyga-suse:D15:43
jaggzChipaca, http://paste.debian.net/980792/15:44
ikeyChipaca, lol15:44
jaggzthat's /var/snap/meshlab15:45
Chipacajaggz: sigh, ok that's strange. How and what were you trying to install, and what version is your snapd?15:45
jaggzChipaca, Trying to install meshlab.  snapd debian package is 2.21.  Meshlab's snap I downloaded from https://uappexplorer.com/snap/ubuntu/meshlab15:46
jaggzI also have received, intermittently, snap core errors15:46
Chipacajaggz: why not "snap install meshlab"?15:46
Chipacajaggz: what do the errors say?15:47
jaggzhrm.. that says it's already installed15:47
jaggz- Setup snap "core" (2601) security profiles (cannot setup mount for snap "core": cannot update mount namespace of snap "core": cannot update preserved namespace of snap "core": fork/exec /usr/lib/snapd/snap-update-ns: no such file or directory)15:47
Chipacajaggz: the ls output agrees that it's installed15:47
jaggzthat was from a snap refresh core15:47
Chipacajaggz: ok, "snap version" output please?15:48
Chipacazyga-suse: ^ snap-update-ns error for you15:48
zyga-suseChipaca: aha15:48
jaggzrunning /snap/bin/meshlab sits there.. strace -f shows: [pid 31791] execve("/snap/core/current/usr/bin/snap", ["/snap/bin/meshlab"], [/* 83 vars */] <unfinished ...>15:48
zyga-susejaggz: ok, two questions15:48
zyga-susejaggz: what is snap version15:48
zyga-susejaggz: I understand you are on 2.21 but snapd pulls in updates15:49
jaggzooh.. hold.. can't kill this program..15:49
zyga-susejaggz: so I would expect that to be 2.26.14 actually15:49
Chipacajaggz: you need to kill the strace explicitly (e.g. killall -9 strace)15:50
jaggzis it safe to kill -9 the running /snap/bin/meshlab?  (which is a symlink to /usr/bin/snap, as I figure you know)15:50
Chipacajaggz: it should be yes15:50
Chipacajaggz: I don't know what meshlab does :-)15:50
jaggzokay.. yeah.. had to -9 the strace itself15:51
Chipacajaggz: can you "snap install hello-world" and see if that works reasonably?15:51
jaggzyeah, not an issue with meshlab itself -- it's software that lets you work on 3d point clouds and meshes15:51
jaggzbtw: snap    2.27~rc415:51
jaggzsnapd   2.27~rc415:51
zyga-suseaha15:52
zyga-suseok15:52
zyga-suseso far so good15:52
zyga-suseok15:52
jaggzsnap install hello-world says something about climate change15:52
jaggz(kidding.. it's running)15:52
zyga-susesudo snap-discard-ns core15:52
jaggzone line.. it's installed15:52
zyga-suseer15:52
ikeyright cheers again all - much appreciated, looking forward to torturing you again tomorrow hopefully for the last time :D15:52
zyga-susesudo /usr/lib/snapd/snap-discard-ns core15:52
zyga-suseI think that will fix it for you15:52
Chipacajaggz: now e.g. hello-world.env should work15:52
zyga-suseikey: with pleasure :)15:52
jaggzzyga-suse, nice clean.. no output.. returns to prompt.  :)15:53
* ikey is off to fix his van and have dinner + wine and such niceties15:53
Chipacammm, dinner15:53
Chipacareminds me i have a train to catch for dinner15:53
Chipaca5 minutes more15:53
ikeymost people have enough trouble catching a chicken for dinner15:53
ikeylet alone a train...15:53
* ikey grins and walks out slowly15:53
jaggzChipaca, it does.  what's hello-world.env do?  just a plain dump of environment to see what's in it?15:53
Chipacaikey: what can i say, i'm feeling peckish15:54
ikey:P15:54
Chipacajaggz: yes15:54
jaggzikey, what's wrong with the van?15:54
=== ikey is now known as ikey|afk
ikey|afkjaggz, battery is stone dead15:54
jaggzikey|afk,15:54
jaggzikey|afk, your fault, or possibly alternator?15:54
ikey|afkpicked up another one couple days back, €80 -_-15:54
ogra_ikey|afk, perhaps Chipaca can borrow you his train after dinner ?15:54
jaggzwell.. if you know how to fix it.. no need to talk  good luck :)15:54
ikey|afkpartially my fault partially old van that i bought a while back15:54
ikey|afk2005 van15:55
jaggzI had to replace my alternator a while ago.. 1994 van :)15:55
ikey|afkand its been lined up a couple weeks15:55
ikey|afknot starting each day15:55
ikey|afkstuck it on the jumps, went fine, cold start, *pfft*15:55
jaggzI leave mine for a month at a time or more.. but it's an older one and doesn't have computers sucking away at power all the time.. or whatever cars do nowadays15:55
jaggzokay.. so.. meshlab15:55
mupIssue snapcraft#1476 opened: foreign arch and sources setup for `build-packages` <design-required> <Created by sergiusens> <https://github.com/snapcore/snapcraft/issue/1476>15:55
mupIssue snapcraft#1477 opened: multi-arch build packages <Created by sergiusens> <https://github.com/snapcore/snapcraft/issue/1477>15:55
mupPR snapcraft#1388 closed: beta <Created by snappy-m-o> <Closed by snappy-m-o> <https://github.com/snapcore/snapcraft/pull/1388>15:55
mupPR snapcraft#1395 closed: [WIP] python plugin: track the python packages installed during build <Created by elopio> <Closed by elopio> <https://github.com/snapcore/snapcraft/pull/1395>15:55
Chipacajaggz: ok, so hello-world works, and with zyga's command you should no longer see the nasty ns-update thing ,so now we just need to figure out why the mesh thing isn't working15:56
Chipacajaggz: as i don't know what it would do if it worked, i can only say maybe you need to connect interfaces to it for something? maybe there are "audit" lines in your syslog to help you figure that one out15:56
Chipacaand now i must run15:56
Chipacajaggz: if you get stuck, open a forum topic on this, so we can debug it asynchronously15:57
jaggzikey|afk, in case you ever need help.. ##electronics is a nice broad-topic channel with some really knowledgeable people.15:57
jaggzChipaca, if it works I'll get a window up :)15:57
jaggzneed to do some searches on it.. it sits there, after some errors.. http://paste.debian.net/980795/15:58
Chipacalet me try it15:59
Chipacajaggz: that looks like the snap needs work15:59
zyga-susejaggz: which GPU do you have?15:59
jaggznvidia 970.  a post here says to reinstall the nvidia drivers15:59
jaggzI'm in debian, but this is for ubuntu: https://askubuntu.com/questions/451221/how-do-i-install-the-nvidia-driver-for-a-geforce-gt-630/451248#45124816:00
Chipacaah, my game computer has that card, i can try it tonight16:00
zyga-susejaggz: may be missing nvidia support :/16:00
zyga-susesorry16:00
zyga-susemissing support in snapd that is16:01
* ogra_ wonders why GL snaps work just fine on his nvidia desktop 16:01
ogra_(never had probs after the very initial issue with the leftover stale dirs from old nvidia driver packages)16:02
zyga-suseogra_: magic and complexity across distros16:02
ogra_ah, yeah, non-ubuntu is indeed different16:02
ogra_meshlab works fine here btw ... (on an intel based laptop though)16:02
jaggzI'm checking out the first errors too -- I jumped to the final one with libGL16:03
mupPR snapd#3706 closed: asserts,overlord/devicestate: support predefined assertions that don't establish foundational trust <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/3706>16:03
jaggzthe first being a gtk thing: Gtk-Message: Failed to load module "gail"16:03
ogra_the gtk stuff is pretty normal i think16:03
jaggzogra_, what distribution?16:04
ogra_ubuntu indeed :)16:04
ogra_but that shouldnt matter at alll16:04
jaggzyeah.. probably shouldn't.16:04
ogra_note that the snap seems to initially create its config on first start16:05
ogra_which takes a while16:05
ogra_(so be patient)16:05
jaggzwith external outside packages (like nvidia's), who knows though16:05
kalikianaondra: Maybe we should discuss it in the forum, and see if it makes sense for other plugins as well16:05
jaggzogra_, do you get the gtk errors?16:05
ondrakalikiana was thinking same16:05
ogra_jaggz, yes, the older versions of the gnome/gtk desktop helper had them16:06
ogra_(i think they are fixed nowadays ... but the maintainer would have to re-build the snap to have it pick that up)16:06
kalikianaondra: I just took a look at the konfig options, wondering if that's another possibility, but it seems like uboot's arm handling a little bit... special16:06
jaggzhttp://paste.debian.net/980796/  I was just testing "snap remove meshlab" btw16:06
ogra_kalikiana, pfft ... uboot was there first .... it is *everyone elses* arm handling thats broken :P16:07
ogra_(indeed :) )16:07
jaggzgot those core errors again16:07
ogra_jaggz, your snapd installation seems seriously messed up16:07
ogra_what did "snap version" say ?16:08
jaggzI don't have much in it.. I don't mind removing it and doing a clean install..16:08
jaggz2.27~rc416:08
ogra_the full utput ...16:08
ogra_*out16:08
jaggzseries  1616:08
jaggzdebian  916:08
jaggzkernel  4.9.0-3-amd6416:08
ogra_and snap as well as snapd show as 2.27~rc4 ?16:09
ogra_(smells like your core snap is on the edge channel for some reason)16:09
ogra_ogra@styx:~$ snap version16:10
ogra_snap    2.26.1416:10
ogra_snapd   2.26.1416:10
ogra_series  1616:10
ogra_ubuntu  16.0416:10
ogra_kernel  4.4.0-83-generic16:10
jaggzyeah.. sorry.. didn't paste them for that purpose16:10
ondrakalikiana yeah it's a bit special16:10
jaggzhmm.. I'm in debian testing16:10
ogra_this should be what you see on anything tracking the stable channel atm16:10
ogra_jaggz, your distro shoulldnt matter at all ... thats all internally managed by snapd16:10
ogra_via the core snap16:11
jaggzoh I'm at stretch16:11
ogra_snap info core|grep tracking16:11
ogra_that should tell you what core snap you have16:11
jaggzbeta16:11
ogra_aha16:11
ogra_(why did you move it to beta ? )16:11
jaggzI'm too unknowledgeable to have done that :)16:11
ogra_snap refresh core --stable16:11
ogra_that would get you back onto stable ... though i guess you are again hitting the namespace error now16:12
jaggznamespace error?16:12
jaggzit's working on the refresh, btw16:12
ogra_yes, the stuff you pasted above16:12
jaggzyeah.. :(16:13
jaggzwhy's there no snap-update-ns16:14
ogra_popey, FYI https://code.launchpad.net/~ogra/+snap/linux-generic-allwinner ... (if that ever builds, it will have the nanopi air support in it ... but we'll need a dedicated gadget for that board too)16:14
jaggzdoesn't look like it's a part of the debian package16:17
popeyogra_: ooh! Exciting!16:19
popeyogra_: once it does, will you make a new image for it?16:20
ogra_popey, yep16:25
ogra_popey, but i cant test it indeed ... so all up to you16:25
popeysuh-weeeet16:25
popeylook forward to that16:26
popeygot some ideas for things to do with that silly device16:26
zyga-susejaggz: snap-update-ns is not in 2.21 package16:46
zyga-suseit should be used from the core snap16:46
zyga-susebut something seems broken there16:46
jaggz:/16:49
jaggzzyga-suse, thanks :)16:49
kalikianaondra: ogra_ https://forum.snapcraft.io/t/custom-environment-variables-for-kbuild-and-other-plugins/163916:50
=== chihchun_afk is now known as chihchun
ogra_kalikiana, well, i dont use kbuild anywhere (i find it way to opaque for porters)16:51
ogra_kalikiana, i'd rather have a way to use an arch tag for build-packages :)16:52
ogra_(like stage-packages provide)16:52
kalikianaogra_: You mean as in libfoobar:arm64?16:52
ogra_kalikiana, that would really help with something like https://github.com/snapcore/pi3-gadget/blob/master/snapcraft.yaml (see the cross gcc check there)16:52
ogra_kalikiana, yeah16:53
kalikianaogra_: So that's for multi-arch, right? Not really the same problem?16:53
ogra_my gadgets usually already work fine for cross ... but i always need to tell the user to install the cross compiler manually (or have a sudo call in the snapcraft.yaml to apt install it)16:54
ogra_kalikiana, not multi arch, gadgets are usually single arch target but multiple arches for building16:54
ogra_reverse-multiarch i guess :)16:55
popeyogra_: https://code.launchpad.net/~ogra/+snap/linux-generic-allwinner it built!16:55
popey(can you tell I'm excited)16:55
kalikianaogra_: When I say multi-arch I mean if you need to install armhf packages on an amd64 host - but I'm not clear on what exactly your use case is16:55
ogra_popey, great ... i'll roll a new gadget for it16:55
ogra_kalikiana, well, i dont install armhf packages ... look at the snapcraft.yaml above line 20-2416:56
ogra_kalikiana, i install a package that doesnt exist on armhf when building on x8616:56
ogra_that snapcraft.yaml works fine natively ... but spills an error telling you to install one additional amd64 package (teh cross compiler) when building on != armhf16:57
kalikianaogra_: But this says you need the arm gcc. That's normally in gcc-arm-linux-gnueabihf - so that's not multi-arch, it's actually a native package16:58
ogra_kalikiana, since that package does not exist on armhf i can not just put it into build-packages without breaking the native build ... so on amd64 installs i'd like to be build-packages selective16:58
ogra_kalikiana, gcc-arm-linux-gnueabihf is an amd64-only package16:58
ogra_(it is only available on x8616:59
ogra_)16:59
ogra_it is a cross compiler built only on non-armhf ...  and not available at all on armhf17:00
ogra_(else i'd just list it in build-packages and the corss build would just magically work without any fiddling)17:00
ogra_kalikiana, but yes, essentially all i'd like is support for:17:02
kalikianaogra_: Oh. So the problem is you need a different package depending on the architecture17:02
ogra_gcc-arm-linux-gnueabihfgcc-arm-linux-gnueabihf17:02
ogra_bah17:02
ogra_build-packages:17:02
ogra_  - foobar [amd64]17:02
ogra_something like this17:02
ogra_which is supported in stage-packages but not in build-packages17:02
ogra_kalikiana, yep, exactly17:02
ogra_(super hard to explain :) )17:03
Pharaoh_Atemmvo: running through a scratch build of 2.27: https://koji.fedoraproject.org/koji/taskinfo?taskID=2115068817:03
ogra_kalikiana, note that all other uboot builds use this way, not kabuild17:04
ogra_*kbuild17:04
ogra_kbuild support in u-boot is very rare and very new and only a few new arches support it yet17:04
Pharaoh_Atemgah17:04
kalikianaogra_: So you want something like "on" for build-packages17:05
ogra_yeh!17:05
Pharaoh_Atemmongodb ftbfs with new boost 1.64 :(17:05
ogra_yeah!17:05
Pharaoh_Atemand it's blocking snapd :(17:05
ogra_Pharaoh_Atem, huh ? how can mongodb block snapd ?17:05
kalikianaogra_: I didn't actually realize this doesn't exist, I never need it  - would you mind opening a forum topic for this?17:05
ogra_not at all ...17:06
* ogra_ writes17:06
kalikianaGrand, thanks!17:06
Pharaoh_Atemogra_: mongodb go driver -> mongodb-libs -> mongodb17:06
ogra_ah17:06
Pharaoh_AtemI guess I'm going to fix mongodb (ugh)17:07
=== JanC is now known as Guest25300
=== JanC_ is now known as JanC
cachioniemeyer, I think we need one more worker for fedora17:10
cachiotoday 2 builds failed at least becasue of fedora jobs didn't finish17:10
cachioniemeyer, is it ok if I move from 2 to 3?17:11
niemeyercachio: Ah, probably then17:11
niemeyercachio: What was the time delta between fedora finishing and the previous one?17:11
cachioniemeyer, well fedora did not finish17:12
ogra_kalikiana, https://forum.snapcraft.io/t/support-on-in-build-packages/164117:12
niemeyercachio: Question still stands17:13
cachioniemeyer, from the last disk removed until the job exceeded time is 15 minutes17:13
cachioand still 46 tasks were missing17:13
niemeyercachio: Yeah, definitely sounds like a case for another worker17:13
cachioniemeyer, also I think we need to try to speed up how the rmp is built17:14
cachioniemeyer, the .rpm it is taking about 5 minutes more than the .deb17:15
=== chihchun is now known as chihchun_afk
mvoPharaoh_Atem: yay! build looks unhappy but failure looks unrelated (something about liboost?)17:19
mupPR snapd#3711 opened: tests: adding new worker for fedora <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/3711>17:20
=== nacc_ is now known as nacc
Pharaoh_Atemmvo: mongodb isn't rebuilt against new boost17:29
Pharaoh_Atemand since snapd requires mongodb through requiring the go mongo driver17:30
Pharaoh_Atemit looks like mongodb unit tests are failing on s390x (*sighs*17:30
ogra_how weird, given that snapd doesnt use anything from mongodb17:31
ogra_(or does it ?)17:31
pedroniswe  gopkg.in/mgo.v2/bson  (not sure how that relates to mongo itself on distros though)17:34
pedronis*we use17:36
ogra_ah17:36
mupPR snapcraft#1427 closed: Add cx_Freeze options targeting bin/snapcraft <Created by alextnewman> <Closed by alextnewman> <https://github.com/snapcore/snapcraft/pull/1427>18:02
niemeyercachio: 5 minutes sounds pretty bad indeed18:24
cachioniemeyer, yes, i'll research a bit more18:59
mupPR snapcraft#1478 opened: Add cx_Freeze options targeting bin/snapcraft <Created by alextnewman> <https://github.com/snapcore/snapcraft/pull/1478>19:14
arm1eI would like to learn how to prodouce snap packages and have successfully followed the helo world example on snapcraft but I dont know where to look next to help me compile a snap for an application. Examples I have seen have lots of flags that I dont understand that are not in the snapcraft example. Can anyone point me in the right direction please19:17
arm1e*hello19:18
arm1enot helo19:18
mupPR snapd#3712 opened: overlord,store: send model assertion when setting up device sessions <Created by matiasb> <https://github.com/snapcore/snapd/pull/3712>19:28
kyrofaarm1e, hey there!19:59
kyrofaSorry for the delay, I had my face buried in a fajita. You still around?19:59
bdmurrayIs there somebody interested in doing the SRU verification of snapd in -proposed? Its been there for a bit.20:04
pedroniscachio: I'm seeing often failures like this one:  https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-xenial-snappy-dev-image/xenial/i386/s/snapd/20170810_183543_f1d6a@/log.gz   are we not waiting properly for the fakestore to be started or ther is something else going on20:06
cachiopedronis, ok, I'll take a look20:08
cachiopedronis, It appeared today20:08
pedronisor maybe we don't stop the service20:13
pedroniscachio: yes, I don't remember seeing this at least for a while, anyway it seems the reason we get reds here and there now20:13
cachiopedronis, yes, I am running a set of tests to try to reproduce the error20:14
cachioI'll keep up updated with the result20:15
pedronisthank you20:15
cachioyaw20:16
ogra_popey, if you upgrade your kernel to linux-generic-allwinner rev 2 and run: sudo fw_setenv fdt_file sun8i-h3-nanopi-neo-air.dtb ... and reboot ... i wonder if the wlan works :)20:31
arm1ekyrofa: yup still here20:46
kyrofaarm1e, I'm happy to help point you in the right direction. Is there something particular you're trying to snap up?20:47
arm1ewould like to snap gnucash as I have a friend who wants to switch to solus (who are adding snap support)  but it will not be added to their repos as some of the dependencies are old20:53
=== nacc is now known as Guest76500
=== nacc_ is now known as nacc
popeyogra_: that'll be triicky given the machine has no network20:57
ogra_popey, huh ? wired didnt work ?20:57
popeyit has no wired connector20:57
ogra_oh !20:57
ogra_i thought it had both20:57
popeythis is why i'm so keen for wifi to work :D20:58
ogra_yeah, understood ... ok, then it needs a full image ... i'll give you something tomorrow20:58
popeymagic, ta20:59
mwhudsonmorning21:18
kyrofaGood morning mwhudson, welcome21:20
kyrofaarm1e, what is that written in?21:41
popeyarm1e: kyrofa https://forum.snapcraft.io/t/call-for-comments-testing-gnucash/148021:42
popeyjacob has worked on it, maybe you can work on it together?21:42
kyrofapopey, how handy, thank you!21:42
mwhudsonok maybe i have working debian packaging for 2.2721:46
mwhudsonprobably not but it's worth trying the build now at least :)21:46
mwhudsonoh wait did 2.27 actually get released?21:47
kyrofamwhudson, it's tagged anyway21:50
mwhudsonand it was uploaded to artful21:50
mwhudsonand even built!21:50
kyrofamwhudson, your day is starting off strong21:52
mwhudsonand it failed it's autopkgtest on i38621:52
kyrofaAw21:52
mwhudsonwhoa hasn't passed there in a while21:53
mwhudsonhttp://autopkgtest.ubuntu.com/packages/s/snapd/artful/i38621:53
mwhudson- Download snap "core" (2465) from channel "candidate" (received an unexpected http response code (416) when trying to download https://068ed04f23.site.internapcdn.net/download-snap/99T7MUlRhtI3U0QFgl5mXXESAiSwt776_2465.snap?t=2017-08-10T17:00:00Z&h=359a718c18b7c126e3302dce1d720f2333d87dec)21:53
mwhudsonpff21:53
* mwhudson bounces on the retry button21:53
kyrofaSounds like https://forum.snapcraft.io/t/download-failure-416/1637/321:58
mwhudsonomg my debian package built22:06
mwhudsonslangasek: https://anonscm.debian.org/git/collab-maint/snapd.git/log/?h=debian-2.27 <- mostly complete package of snapd for debian if you're interested22:17
mwhudsonslangasek: the git history is a mess (do we care? i could clean it up) and the changelog needs work (not sure what we should do there, bring in all the upstream changelog entries?)22:18
mwhudsonslangasek: but it works22:18
mwhudsonslangasek: do you have an opinion on using pristine-tar for this package?22:18
mwhudsonslangasek: s/works/builds/22:18
slangasekmwhudson: pristine-tar applies only if the package is non-native, do we have that here?  and is there an actual upstream tarball for us to import?22:19
slangasekgit history> if it inherits from the previous package history, that's what I care about most22:19
mwhudsonslangasek: the package is non-native in debian yes22:19
slangasekright, but still not in Ubuntu though it should be, bah22:20
mwhudsonslangasek: i based it on the tarball from github https://anonscm.debian.org/git/collab-maint/snapd.git/log/?h=debian-2.2722:20
* mwhudson blinks22:20
mwhudsonslangasek: https://github.com/snapcore/snapd/archive/2.27.tar.gz22:20
mwhudsonslangasek: in a sense the non-obvious canonicity of the tarball seems an argument in favour of pristine-tar for debian ... makes it clear what i used22:21
mwhudson(even if not where i got it from)(22:21
mwhudsonslangasek: the git history is based on the previous packaging history yes22:21
mwhudsonit just has "oh crap i forgot a bit" commits in22:21
mwhudsonand some dubious merging22:22
slangasekthat doesn't bother me ;)22:22
mwhudsonok22:22
mwhudsonslangasek: http://paste.ubuntu.com/25286402/ <- this is what the debian patch ends up being22:23
=== ppisati is now known as ppisati_afk
mwhudsonwhich all seems ok enough to me22:25
mwhudsonneed to ITP that gettext package but that doesn't need to block the update22:25
mwhudsonok afk for a bit22:28
arm1ekyrofa: Any help in learning how to compile snaps. I have no idea how to check for deps. Willing to read, but would prefer to practise22:35
naccarm1e: what do you mean "check for deps"?22:35
arm1edependencies22:35
arm1eIs there a good way to convert packages in the repos into snaps?22:36
naccarm1e: right, i know what deps are -- i don't know what you mean by check for them?22:36
naccarm1e: not really (that i know of)22:36
naccarm1e: i mean, a classic snap is the easiest way, but you still have to write the snapcraft.yaml22:36
slangasekmwhudson: how does a missing ITP not block the update?22:37
arm1enacc: Sure. I just got really confused after completing the hello-world snap locally then looking at the yaml files from other snaps which have a lot of other info from plugins etc. It seems a big jump22:38
arm1eEspecially when you have never packaged before22:38
naccarm1e: well, right, i think hello-world is just to get you familiar with the commands and some basic syntax22:39
slangasekmwhudson: and do those go dep path changes make their way back upstream?22:39
arm1eI want to learn how to do it but everywhere just does really simple syntax and nowhere really teaches you22:39
naccarm1e: it doesn't, imo, make much sense to package something you're not familiar with. Do you have an application you care about?22:39
arm1enacc: Not particularly. I would like to get gnucash working but that looks like a major ball-ache22:40
naccarm1e: i would imagine for a classic snap of a given application that builds as a .deb, you could add all it's build-deps to build-packages, all the binary package's runtime deps to stage-packages and then try and build it normally (that is, if one of the existing plugins works). If they don't, you might need to write your own plugin to build22:42
arm1esee, I dont fully understand the difference between build / runtime deps and how you know which plugins should be used.22:44
naccarm1e: do you understand the difference between build and runtime?22:44
arm1ebuild is to compile and runtime is to actually use the app, right?22:45
naccarm1e: right22:45
naccarm1e: those are distinct environments, so they can have different dependencies22:45
naccarm1e: in other words, what you need to build something is not necesarily what you need to run it and v.v22:46
arm1eokay.22:46
arm1enacc: So how do you choose the plugin?22:47
naccarm1e: by knowing how the code is built (what tool)22:47
arm1eHow do you know that? Is it in the source tarball?22:48
naccarm1e: you look and see? I'm not sure how to answer it22:48
naccit feels like a tautology: to build something, you have to know how to build it22:49
arm1enacc: Where can I learn this?22:49
naccarm1e: depending on the specific project, it might be the language (e.g., python or go) or it might be a specific build-tool (e.g. autotools)22:50
naccarm1e: where can you learn what exactly? build something, I mean, that's the whole point22:50
arm1enacc: What I mean is how can I tell if something is built in python etc?22:51
naccarm1e: it's not built in python, it's written in python22:51
naccarm1e: it's built by the python plugin by snapcraft22:51
arm1eI see, what I mean is how can I tell from the source what the language is22:51
naccarm1e: you either know, because you're familiar with it, or you read documentation or you use `file` or ... i'm sure there are other ways22:53
arm1eRight, I would like to make a snap for get_iplayer22:54
naccarm1e: link to source?22:55
arm1ehttps://github.com/get-iplayer/get_iplayer22:55
naccarm1e: looks to be perl22:57
arm1eyup. What do I do about the deps, how will I know if they are in the base system of the snap as usually packages pull from the repos of the host system, but is it different for snap packages?22:58
naccarm1e: how would you "build it22:59
naccsorry, hit enter too fast22:59
naccarm1e: how would you "build it" if you weren't thinking about snaps?22:59
arm1erun the configure, check for deps if missing and add them via apt. once configured, make23:00
arm1eonly learnt that today, so may be wrong23:01
naccright, so you add those deps to your snapcraft.yaml as build-packages23:01
arm1ejust list the names?23:01
naccarm1e: see the online documentation for the syntax23:02
arm1ewhat I mean is, once I have them listed, how do I know if the snap package will be able to find them?23:04
naccarm1e: you try to build?23:08
naccarm1e: what do you mean find them?23:08
arm1eMight be wrong but when you normally build, your deps only matter to you if they are not already on your system, if not the build fails, so you apt-get to install them then retry. When you download a snap, doesnt the new system require these deps to be installed too?23:10
naccarm1e: isntalling a snap != building a snap23:11
naccarm1e: and i feel like you're jumping several steps23:11
arm1eright23:11
arm1esorry23:11
naccarm1e: 1) building a snap is done with snapcraft (or using snapcraft.io)23:11
nacc*build.snapcraft.io23:11
arm1egotcha23:11
arm1econtinue :)23:11
naccarm1e: in that case, it's done in a special environment that generates the squashfs image (which is what a snap is)23:11
naccarm1e: you don't build the snap again anywhere else23:11
arm1eright, my bad23:11
arm1esorry23:12
naccarm1e: installing a snap is done via the store (or locally with --dangerous) and snaps contain all their dependencies23:12
arm1eso you would only need to have the runtime deps23:12
nacc(or should)23:12
nacca confined snap does not have access to the system by default, so it won't run without its dependencies in the snap as well23:12
nacca classic snap may work (if the dependencies happen to be installed) but won't otherwise -- and there's not a way to tie (currently) a snap to deb dependencies. So you should include them in your snap (IMO)23:13
arm1eso how do you ensure these dependencies are in the snap?23:13
arm1eDoes it pull them from the system I am building on?23:14
naccarm1e: you put them there? either via stage-packages (explicitly), or via the plugin (depending on the plugin)23:14
naccarm1e: well, again, you build in a special enviornment, so it uses the ones in that environment, yes23:14
arm1eokay, so stage-packages are the explicit dependencies for a snap to install / run on another system23:15
naccarm1e: i feel like maybe you should read the snapcraft.io pages a bit? https://tutorials.ubuntu.com/tutorial/create-your-first-snap?_ga=2.140231089.346536776.1502406151-840062186.1488838724#023:15
naccor that tutorial, maybe23:15
naccarm1e: i'm pretty sure all of this on the website23:15
naccarm1e: stage-packges are the list of packages you want to stage in the snap (see the website for definitino of stage)23:15
arm1eYes. I will read them again tomorrow and try to get it to sink in. BTW there is no perl plugin so that makes it more difficult, right?23:15
naccarm1e: and to be clear "install a snap" has no dependencies, it's just a squashfs image that gets mounted somehwere23:16
naccarm1e: running the snap is the only thing that has dependencies on user's systems (which should all be included in the snap)23:16
arm1enacc: sorry, I mean run a snap23:16
arm1eI am with you23:16
naccarm1e: might be, yes, but it seems like some users have made one, which you can copy, and it's not clear you need it in this case (if there's a makefile)23:16
mwhudsonslangasek: because the functionality requiring that package is removed in debian for now23:17
slangasekmwhudson: ah ok23:17
slangasekright, those would be the i18n bits of the patch23:18
mwhudsonyep23:18
mwhudson-"github.com/cheggaaa/pb"23:18
mwhudson+"gopkg.in/cheggaaa/pb.v1"23:18
arm1enacc: Will have a look in the morning. Thanks for your help. Time for bed23:18
naccarm1e: gl!23:18
mwhudson^ that path change should probably go upstream23:18
mwhudsonor the debian packaging should be changed to the other path, i'm not sure what upstream considers canonical currently23:18
mwhudsonthe seccomp stuff is needed for trusty support upstream23:19
mwhudsonso that remains necessary delta23:19
mwhudsonfor another 2 years i guess...23:19
slangasekmwhudson: snapd ESM23:35
slangasek:)23:35
mwhudsonslangasek: shutup23:51
slangasekmwhudson: it's ok, ESM is security only!23:51
mwhudsonslangasek: so what should debian's debian/changelog contain?23:52
mwhudsondo i copy over the new entries from packaging/ubuntu-16.04/changelog and slap something debian specific on the top?23:52
mwhudsonhmm E: snapd: statically-linked-binary usr/lib/snapd/system-shutdown23:53
mupPR snapcraft#1471 closed: catkin plugin: support passing args to cmake <bug> <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1471>23:56

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