/srv/irclogs.ubuntu.com/2017/01/19/#snappy.txt

mupPR snapcraft#1044 closed: tests: use python2 to check the CLA <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1044>01:58
mupPR snapcraft#1032 closed: Use more secure temporary directory for parser runs <Created by josepht> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1032>02:01
=== madprops_ is now known as madbot
=== StoneTable is now known as aisrael
=== mup_ is now known as mup
=== tedg__ is now known as tedg_
=== madbot is now known as madprops
=== dobey_ is now known as dobey
mupBug #1657633 opened: console-conf shows the previous IP address after reconfiguration <Snappy:New> <https://launchpad.net/bugs/1657633>03:26
=== chihchun_afk is now known as chihchun
GcodeHelp08:51
Gcodei want to learn python, for ethic hacking and sockts08:52
=== faenil_ is now known as faenil
=== faenil is now known as faenil_
morphisogra_: is https://code.launchpad.net/~snappy-dev/core-snap/trunk the right place to look for the core snap?09:29
ogra_morphis, yep09:30
ogra_morphis, what do you need ?09:31
morphisogra_: we're close to add a configure hook to the core snap, so just checking where the source for it is :-)09:31
ogra_oh09:31
ogra_the backend needs to go into some deb ... probably ubuntu-core-config09:32
ogra_from the image PPA09:32
morphisogra_: so what assembles the core snap then?09:34
ogra_live-build09:34
ogra_(with livecd-rootfs holding the config and possible hacks)09:34
morphisand how can we get the meta/hooks/configure script added09:35
ogra_hmm, you want to put the whole of it there ? uncludion the binaries you need ?09:37
ogra_*uncluding09:37
ogra_bah09:37
ogra_*including09:37
morphisogra_: it will be a simple bash script09:37
ogra_ah, k09:37
ogra_yeah, that might be fine09:37
morphiswe just need one option to enable/disable sshd09:37
mupPR snapd#2660 closed: cmd: fix typo (thanks to jdstrand!) <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2660>09:37
ogra_morphis, that will need more i guess09:38
* ogra_ tries to touch /etc/ssh/sshd_not_to_be_run on a running system 09:39
ogra_ah, no, seems fine, it is writable09:39
morphis:-)09:39
morphisogra_: I guess that the configure hook within the core snap should have rights to do anything or is it run inside a confined environment too?09:40
ogra_i thought we had only made individual files writable in that dir ... then you are fine just add or remove the file (and stop/start with systemctl)09:40
ogra_morphis, how would it if the file is in the squashfs ?09:40
ogra_it cant physically write to it then09:40
morphisthat is true09:41
ogra_but here we're fine, all of /etc/ssh is writable so you can just touch and remove it as you need09:41
morphisgood09:41
morphisogra_: so where is ubuntu-core-conf these days, still a single deb package sitting in the ppa or is a there a repository for it?09:42
ogra_i dont think there is a repo09:42
ogra_just grab the source deb from the ppa, make your changes and give it to someone who can upload09:43
morphisogra_: aye09:45
ogra_:)09:45
ogra_morphis, you probably want to add some checks that a user exists and has a local password to not make it possible that the admin completely locks out himself09:46
ogra_you are quite screwed if you disable ssh and have no local console access either09:46
morphisyeah09:47
morphisogra_: what do we have to change in livecd-rootfs then?09:47
ogra_nothing, meta/hooks/configure should be fine unless you need additional stuff from the image itself09:48
morphisso meta/hooks/configure inside ubuntu-core-conf, correct?09:48
ogra_hmm09:49
ogra_well, livecd-rootfs might work too ... i'm not sure if the build will respect an existing /meta dir inside the chroot though, might be that snapcraft ignores it09:50
morphisogra_: so you're using snapcraft to build the final snap?09:51
ogra_or that we actually delete it ... need to check the code ... there was something about old /meta09:51
Kaleomvo, the ubuntu-core to core transition patch will be part of the next snapd release?09:51
ogra_morphis, http://bazaar.launchpad.net/~snappy-dev/core-snap/trunk/view/head:/Makefile ... line 26 :/09:52
* ogra_ goes to check the bug, perhaps we can drop that nowadays09:53
morphis:-)09:53
mvoKaleo: that is the goal, you can test the ppa that I gave to pat the other day if you want, I think the transition code is ok, I'm currently working on robustness and some warts but I think the core (no pun intended) is ok, so if you tst it I would appreciate results09:53
morphisogra_: I will tell whoever will add the configure hook from our team to check with you first :-)09:53
Kaleomvo, superb09:53
Kaleomvo, I already manually migrated unfortunately09:53
mupPR snapd#2549 closed: cmd/snap-confine: add shutdown helper <Created by chipaca> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2549>09:54
ogra_morphis, iirc the issue was that snapcraft didnt create anything in meta/ if the dir already existed ... so i'm not sure we can actually use that09:55
morphisogra_: you could use a new part in snapcraft.yaml with the dump plug09:55
ogra_we need to try what happens i fear09:55
morphiss/plug/plugin/09:55
Kaleomvo, is there any way for a single snap to be installable in either classic or devmode confinement?09:55
morphisthen we don't have to maintain the hook inside ubuntu-core-conf at all09:55
ogra_well, feel free to try it ... we can do tests in edge, that is what it is for ;)09:56
morphisgood09:56
ogra_in any case that line from the Makefile will likely need to go09:56
mupPR snapd#2449 closed: overlord/patch: patch to flag in the state required snaps from model <Blocked> <Created by pedronis> <Closed by pedronis> <https://github.com/snapcore/snapd/pull/2449>09:56
mupPR snapd#2650 closed: also include system-shutdown helper in snapd.install <Created by chipaca> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2650>09:56
mvoKaleo: I think there is no way  for a single snap to be installable in either classic or devmode confinement. but Chipaca might have ideas here09:59
Kaleomvo, thanks09:59
Chipacai'm not sure i understand the question09:59
KaleoChipaca, let's say I have an app snapped up10:00
ogra_you can only install them in pairs ?10:00
ogra_:P10:00
KaleoChipaca, and I'd like to be able to install it forcing either classic confinement or devmode confinement10:00
KaleoChipaca, why? because IIUC you cannot install an app with classic confinement in an all snaps image, right?10:01
ogra_yeah10:01
ChipacaKaleo, there isn't a way to do that today10:02
Kaleoogra_, Chipaca, mvo: at the core of the issue, think about how you would go about snapping gnome-terminal10:03
Kaleowith the goal to make it one day work fine in an all snaps image10:03
KaleoChipaca, right, to do that, you can use classic confinement10:03
KaleoChipaca, ok10:03
ogra_make it use a gazillion interfaces ?10:04
ChipacaKaleo, in general however that's not something that makes sense10:04
Chipacai mean, installing a classic snap on an all-snaps image10:04
Chipacaclassic snap means it needs all the accoutrements of a classic system10:05
Kaleoogra_, right10:05
KaleoChipaca, yeah, I'd like to install it confined, ie. override the classic confinement10:05
Chipacawhich are not present in all-snaps10:05
KaleoChipaca, so let me explain10:05
KaleoChipaca, the main reason you want to use classic confinement for a terminal is to have / be /10:05
KaleoChipaca, and let the user of terminal have access to all commands available on the base system10:06
ogra_which is probably not such a good idea in an all-snaps image anyway10:06
ogra_(have / be / )10:06
Kaleoogra_, it depends if you envision say desktop users using an all snaps version of ubuntu or not10:06
ogra_well, 96% of / will be readonly10:07
Kaleoogra_, readonly is good10:07
Kaleoogra_, it's not about writing on /10:07
Kaleoogra_, it's about reading10:07
ogra_and for the other 4% you want no user to touch the majority of it since it is managed via the system tools internally10:07
Kaleoogra_, yep, I don't want anyone to write10:08
ogra_so changing stuff underneath might break things badly10:08
Kaleoogra_, no writes10:08
Kaleoogra_, readonly /10:08
pedronisbut with classic you can write there assuming you have sudo10:08
Kaleopedronis, yes10:08
Kaleopedronis, and that's a side effect I don't care for10:08
ogra_i guess for that you could special case the apparmor rules10:08
ogra_and have manual approval for that one package10:09
Kaleoogra_, pedronis, what I just need for a terminal is / to be /10:09
Kaleowithout / being writable10:09
ogra_indeed thats a major security issue10:09
pedronisI really think that if the end goal is working on all-snaps, is better to start thinking what you need there10:09
ogra_since you can see what other processes do10:09
ChipacaKaleo, on all-snaps / is already /10:10
ogra_Chipaca, but you cant look at all of it10:10
ogra_i guess that is what he wants10:10
ogra_which defeats security ... kind of10:11
pedronisso it's a bit of ther reverse problem, on classic / is not / unless classic10:11
ChipacaKaleo, there's nothing stopping you from installing an 'strict' snap with --classic btw10:12
ogra_Chipaca, on an all-snaps image ?10:13
Chipacano, on classic10:13
ogra_oh, you mean the other way around10:13
ogra_yeah, ignore me ... coin took a bit to drop :P10:13
morphisChipaca: for installation but I guess for running apps from it there is as from what I've heard from zyga10:13
Chipacazyga, ^?10:15
Chipacamorphis, it's possible we've got bugs there :-)10:16
ChipacaI know of at least one10:16
KaleoChipaca, oh my god10:16
KaleoChipaca, how come I did not realise that10:16
KaleoChipaca, / is / with all snaps10:16
KaleoChipaca, " there's nothing stopping you from installing an 'strict' snap with --classic btw"10:16
KaleoChipaca, I was testing that just now10:16
mupPR snapd#2417 closed: interfaces/builtin: add uhid interface <Created by bergotorino> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2417>10:16
KaleoChipaca, http://pastebin.ubuntu.com/23827096/10:17
ChipacaKaleo, it's a devmode snap, devmode+classic won't work10:17
Chipacanote i said strict10:17
KaleoChipaca, yep10:17
Chipacak10:18
KaleoChipaca, though I need it to be devmode on all snaps because?10:18
ogra_yeah, devmode wont buy you much if you want to use the store and snap find to find it10:18
Kaleoogra_, you mean devmode makes it non visible in the store?10:18
ogra_devmode cant go to the stable channel ...10:18
mupPR snapd#2546 closed: overlord: use a ticker for the pruning <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2546>10:18
Chipacacan't go to any stable-grade channel even10:18
ogra_yeah10:19
Kaleook10:19
ChipacaKaleo, you sure you need it devmode in all-snaps?10:19
Kaleomaybe not10:19
KaleoI need to think that through10:19
Kaleolet's imagine that I don't10:19
ChipacaKaleo, look at the things the htop snap uses10:20
Kaleo1) is there a way to upload a strictly confined snap and have it be installed with --classic on classic automatically?10:20
ogra_well, that only accesses parts of proc10:20
Kaleo2) is there a programmatic way to detect what confinement we are under?10:20
ChipacaKaleo, (1), no10:20
ChipacaKaleo, (2), no10:20
Chipaca(2) should be easy to implement iffen jdstrand thinks it's a good idea (i'm not too sure it is)10:21
Chipaca(1) is a bad idea10:21
Kaleo(2) I'm not sure I will need it10:21
Kaleo(1) right, but then I need some other tool10:21
Kaleo(1) cause people really need / to be / for their terminal on a classic ubuntu10:21
ogra_2 -> grep snap_core /proc/cmdline ...10:21
Kaleoogra_, nice10:22
ogra_the prob is that you might not be able to access that10:22
ogra_(at least not before manually connecting an interface ... so you wont be able to automate)10:22
Chipacatoday you can10:22
ogra_Chipaca, from a strict snap ?10:23
Chipacayes10:23
ogra_oh10:23
ogra_i thought most of /proc was blocked by default10:23
Chipacaless is blocked than we want10:23
ogra_except for /proc/self/10:23
Chipacabecause of issues10:23
ogra_ah10:23
mupPR snapd#2661 opened: tests: skip on untrusted keys <Created by fgimenez> <https://github.com/snapcore/snapd/pull/2661>10:23
Chipacaso i wouldn't count on it without checking with people that know more than me10:23
ogra_yeah10:24
timpis this the correct channel to ask questions about snapcraft?10:24
ogra_i'm pretty sure long term we dont want that10:24
ogra_timp, try asking one and you will see ;)10:24
timpthe store tells me for my snap: desktop interfaces (unity7) specified without meta/gui/*.desktop. Please provide a desktop file via setup/gui/*.desktop if using snapcraft or meta/gui/*.desktop otherwise. It should reference one of the 'apps' from your snapcraft/snap.yaml. lint-snap-v2_meta_gui_desktop10:24
KaleoChipaca, I switched the snap to strict then installed it with snap install --classic --dangerous ubuntu-terminal-app_0.11_amd64.snap10:24
KaleoChipaca, it looks like / is not /10:24
KaleoChipaca, even though it installation went fine10:25
timpin which step is this desktop file checked? I wonder if I need to have this desktop file available for the first step, or it can be there later. My snap is built from downloaded debs that already include desktop files10:25
KaleoChipaca, checking10:25
ChipacaKaleo, in what sense is / not /? (not saying you're wrong, but wondering)10:25
KaleoChipaca, as in the / inside the snap environment is not the same filesystem as the / outside10:25
KaleoChipaca, double checking now10:25
Chipacatimp, it needs to be there in prime/ as far as i know10:26
Chipacazyga, you here?10:26
KaleoChipaca, right, for example the contents of /bin are different inside of the snap and outside10:27
timpChipaca: okay, thanks10:27
ChipacaKaleo, but confinement lets you do pretty much everything?10:27
KaleoChipaca, checking10:27
ChipacaKaleo, probably just something we need to do10:27
KaleoChipaca, (I think so)10:27
Chipaca(that's what i checked, that confinement seemed to be as expected)10:28
pedronisKaleo: / is / doesn't mean we don't bind mount thing on top10:28
Kaleopedronis, agreed10:28
Kaleopedronis, but there is _less_ stuff10:28
Chipacapedronis, yeah, but classic means don't do as much of that10:28
Chipacai think?10:28
Chipacapaging dr zyga10:28
zygahey10:29
pedronisChipaca: we do less, but I think it still defeats the goal, though there is probably some way out of that10:29
zygasorry, I don't get notifications for IRC10:29
Kaleopedronis, knowing that when the same snap was built with confinement: classic instead of confinement: strict, there was way more content accessible10:29
Kaleopedronis, even though both were installed with --classic10:29
* zyga still needs to make a system that takes stuff from irssi on one VM and pushes it somewhere (say a lava lamp)10:29
zygaso how can I help?10:29
Chipacazyga, installing a strict snap with --classic10:30
Chipacazyga, the mounts seem to be wrong10:30
Kaleozyga, let's take it from the core of the issue: trying to have a terminal (say gnome-terminal) snapped and still useful on both classic ubuntu and all snaps ubuntu10:30
Kaleook :)10:30
mupPR snapd#2662 opened: interfaces: network-manager: allow rw access to /etc/netplan <Created by morphis> <https://github.com/snapcore/snapd/pull/2662>10:30
Kaleozyga, strict snap with --classic: / seems to be the core snap, not the / of the classic ubuntu10:31
zygastrict snap with classic is meaningless10:34
zygait will never work10:34
zygaas strict snaps are not built in a way that allows them to run in classic10:34
Kaleozyga, ok10:34
Kaleozyga, that's clear then10:34
zygaKaleo: FYI, you cannot reuse binary packages easily for classic confinement snaps10:34
Chipacazyga, we should block it then :-)10:34
zygaKaleo: IMHO everything should be rebuilt10:34
Kaleozyga, so back to the core of the matter:  trying to have a terminal (say gnome-terminal) snapped and still useful on both classic ubuntu and all snaps ubuntu10:34
Kaleozyga, Chipaca, or maybe we could publish 2 versions of a snap?10:35
Kaleozyga, Chipaca, one classic and one strict10:35
Chipacathis is an all-snaps ubuntu that presumably has X somehow?10:35
Kaleozyga, Chipaca, would the store allow that?10:35
KaleoChipaca, yeah10:35
KaleoChipaca, or MIR10:35
ChipacaMIR I buy :-)10:35
ChipacaKaleo, with different names, sure10:36
KaleoChipaca, or whatever, just a display and a keyboard :;)10:36
KaleoChipaca, ideally with the same name :)10:36
KaleoChipaca, different name, I guess it's just a matter of having 2 entirely separate "snaps"10:36
Chipacaniemeyer, you here?10:36
KaleoChipaca, it's unpractical from a source code perspective: having 2 snapcraft.yaml10:36
KaleoChipaca, and not as nice for the user10:37
zygaKaleo: the core version would need to snap the whole display stack (or use interfaces)10:39
zygaKaleo: how do you expect to use it?10:39
zygaKaleo: FYI, on core I think there's no good way to ship a terminal emulator that would be useful for developers10:40
ChipacaKaleo, i've pinged niemeyer so we can think about how we *want* this to be10:40
Kaleozyga, I would rather imagine it would uses interfaces (such as unity8)10:40
zygaKaleo: interfaces give you permissions10:40
zygaKaleo: what about all the runtime libraries, gtk, mir10:40
ChipacaKaleo, as to how things are, today, i'm afraid it's two separate snaps (and i'm not sure you'll get what you expect/want even then)10:40
Kaleozyga, right10:40
zygaKaleo: content interface is not supported for snaps using classic confinement10:40
zygaKaleo: I think the issue at hand is this:10:40
zygaKaleo: you can make a perfect strictly-confined terminal emulator10:41
Kaleozyga, that's indeed another issue I bumped into (I have a big snap atm)10:41
zygaKaleo: but to be useful it must be allowed to run an unconfined shell10:41
zygaKaleo: otherwise this is somewhat pointless10:41
Kaleozyga, yeah10:41
zygaKaleo: AFAIK gnome-terminal has a daemon process and is tied to the session bus10:41
zygaKaleo: all this makes it a lot more complicated10:41
Kaleozyga, you need to be able to do something as far as launching gnome-calculator from said terminal10:41
niemeyero/10:42
Kaleozyga, yeah, let's take a simpler terminal to think about it10:42
Kaleozyga, ubuntu-terminal :)10:42
zygaKaleo: launching one snap from another is forbidden and there's no interface for that yet10:42
Chipacarunning one snap's apps from another snap's app was not supported last time i checked10:42
zyga(and there's a kernel bug that prevents this right now)10:42
Chipacazyga, have we done the legwork to support swapping profiles like that?10:42
zygaChipaca: swapping apparmor profile is easy10:43
niemeyerYeah, it's not10:43
niemeyersupported, that is10:43
zygaChipaca: there are other things at play and they are broken (the reassociate-fix branch as all the details)10:43
zygaterminal emulators are like desktop environments10:43
zygathey run various apps10:43
Chipacazyga, crazy to the head?10:43
zygathey feel like having super-powers10:43
Chipacaah, that also10:43
niemeyerThere are reasonable paths for us to support that, but not there yet10:43
zygayeah10:43
Kaleozyga, Chipaca, so right now, we can do the following: have 2 separate snaps, one classic, one confined; the classic one can be useful on classic and the confined one will be somewhat of limited usefulness10:44
timpany ideas why for the ubuntu-ui-toolkit-examples snap, I only have the options to release it to beta and edge? No candidate or stable10:44
Chipacatimp, it's devmode?10:44
Kaleo- but better than no terminal in an all snaps image10:44
timpChipaca: right.... thanks :)10:45
zygaKaleo: where do you expect to run the confined snap today?10:45
zygaKaleo: on classic desktop or on something like raspberry pi?10:45
Kaleozyga, the confined snap, on a desktop type device for which we might have an all snaps image; which I don't know we have10:45
zygaKaleo: the classic snap would be an interesting thing to try anyway10:45
Kaleozyga, the classic snap already works10:46
zygaKaleo: just to see how hard it would be to take a complex real-world codebase and build it for classic10:46
zygaKaleo: please do that regardless and work with sergio and kyrofa to make them aware of feedback10:46
Kaleozyga, I switched ubuntu-terminal to classic (from devmode) and it works10:46
zygaKaleo: how did you build the classic snap? did you try it on 14.04? (I suspect it doesn't work  there)10:46
Kaleozyga, tried on 16.0410:46
zygaKaleo: building and testing on 16.04 is somewhat tricky as you may build a broken snap that will only work on 16.0410:47
Kaleozyga, I kept all the stage-packages as they were when confined10:47
Kaleozyga, so I would expect that the right libs are there in the snap and linked10:47
zygaKaleo: building classic snaps with stage packages is wrong10:47
zygaKaleo: sadly the only sane way is to build from source10:47
zyga(this is why it is hard)10:48
Kaleozyga, even to prevent breakages?10:48
Kaleozyga, I don't understand whyh10:48
Kaleo-h10:48
zygaKaleo: do you want to?10:48
zyga:-)10:48
Kaleoto understand? :)10:48
Kaleosure10:48
zygaKaleo: because that snap transparently relies on your ubuntu system, for a correct snap it should only rely on /snap/core/current and /snap/$SNAP_NAME/current10:48
Kaleozyga, yeah so you might forget snap-packages or might forget to change some paths10:49
zygaKaleo: at almost every detail, from the dynamic linker, dynamic libraries, helper executables and data files10:49
zygaKaleo: if you ever move away from 16.04 it will stop working10:49
zygaKaleo: no, it's not "some paths"10:49
Kaleozyga, but since I made the snap work in devmode10:49
zygaKaleo: prebuilt packages will not work10:49
zygaKaleo: you *must* built it from source and snapcraft must support classic confinement in each plugin you use10:49
Kaleozyga, then I don't understand the point of classic snaps10:50
zygaKaleo: that's the unfortunate reality; I would encourate you to check this on kde or on 14.04 kde for a "good test"10:50
zygaKaleo: the point is as you thought it to be a moment ago10:50
zygaKaleo: but the technical reality is that they cannot be built from binary packages10:50
Kaleozyga, which you said is not reality10:50
Kaleozyga, so no point :)$10:51
zygaKaleo: no, the point is to have no confinement in the way10:51
Kaleozyga, I see10:51
zygaKaleo: you can bring in gcc as a classic snap10:51
zygaKaleo: git, vim10:51
Kaleozyga, ok10:51
zygaKaleo: gedit as well, but you must build from source10:51
zygaKaleo: and all the build bits must do what is required (magic in snapcraft or hand-holding)10:51
zygaKaleo: e.g. I've built a python0 snap as a classic confinement snap10:51
zygaKaleo: look at the build system:10:51
zygahttps://github.com/snapcore/snapd/pull/2581/files10:51
mupPR snapd#2581: debian: remove trusty specific bits <Created by mvo5> <https://github.com/snapcore/snapd/pull/2581>10:51
zygaI bet you this will work on any system under the sun10:52
Kaleozyga, so, for right now, I can test the snap on more systems, and publish it only if it works ok; and even then work on a way to make terminals useful when fully confined?10:52
zygaKaleo: but I had to do stuff manually as snapcraft doesn't support everything yet: https://github.com/zyga/python0/blob/master/python0.Makefile#L1010:52
zygaKaleo: not sure which snap you mean, you said you have a few10:52
Kaleozyga, ubuntu-terminal10:53
zygaKaleo: (one problem at a time please, I'm somewhat distracted doing a few things already)10:53
Kaleozyga, ubuntu-terminal-app10:53
Kaleozyga, it's only the one thing we are talking about10:53
Kaleozyga, making snapped terminals useful10:53
Kaleozyga, starting with ubuntu-terminal-app10:53
zygaKaleo: do you want a confined or classic snap10:54
Kaleozyga, since you said classic snaps are basically unreliable, it cannot be classic in the long ruin10:54
Kaleo-i10:54
Kaleozyga, so confined10:54
zygaKaleo: no, I didn't say that: I said that you must build classic snaps from source and do it correctly, they are 100% reliable then10:54
Kaleozyga, lol10:55
zygaKaleo: ok, confined10:55
Kaleozyga, I mean unreliable for actual end users10:55
Kaleozyga, (actual end users don't compile their software)10:55
zygaKaleo: again, I didn't say that10:55
zygaKaleo: actual users don't build snaps either10:55
Kaleozyga, so I don't understand10:55
zygaKaleo: as long as the snap is built correctly it will be reliable10:55
zygaKaleo: ok10:55
mupPR snapd#2663 opened: run "go test -i" before go test itself <Created by chipaca> <https://github.com/snapcore/snapd/pull/2663>10:56
zygaKaleo: fact of life: building classic snaps from binary packages is incorrect10:56
Kaleozyga, "build classic snaps from source" means what?10:56
zygaKaleo: fact of life: snacpraft doesn't support building everything magically yet10:56
zygaKaleo: well, you build the .c files and the .cpp files10:56
zygaKaleo: you cannot download debs and copy them over10:56
Kaleozyga, of the software? or of the software and all its dependencies?10:56
zygaKaleo: that's what I mean by "build it from source"10:56
zygaKaleo: all of it10:56
Kaleozyga, of all the deps, I see10:56
niemeyerzyga: For the record, the jury is still out on this one10:56
zygaKaleo: everything you hope to see in your snap10:56
niemeyerzyga: There's no agreement that building from binary packages is incorrect..10:57
niemeyerzyga: So "fact of life" seems a bit harsh10:57
zyganiemeyer: I'll agree when I see a viable way that works; the only think I can think of are binary editing hacks10:57
Kaleoniemeyer, zyga, ok, so I can start classic with binary packages dependencies, test on a few systems, if it works, publish that as a _first_ step?10:57
zyganiemeyer: you'd have to alter all the hardcoded paths, all the elf parts to look at the new places10:57
zygaKaleo: sure, don't take what I say as "this is wrong and you cannot publish your snap"10:58
zygaKaleo: I'm just saying that it may not be what you expected10:58
Kaleozyga, ok10:58
niemeyerzyga: You can agree or not.. that's not the point.. let's just not purport such ideas as being settled on stone when they are actually just being released and we're still learning to use them ourselves10:58
Kaleoniemeyer, ok10:58
zygaok, so "using binary packages for snaps using classic confinement is strongly discouraged" is more accurate10:58
niemeyerzyga: Classic snaps were supposed to make things easier.. if we can't use binary packages and it's completely non-intuitive, classic snaps are pointless..10:59
Kaleozyga, so step 2, figuring out a way for confined terminals to be more useful10:59
zyganiemeyer: well, that I agree with entirely10:59
niemeyerzyga: So we should do some more research and see how/if we can make them reach their actual goal10:59
zyganiemeyer: though the pointless bit is perhaps too strong, they have a point but their utility is limited10:59
Kaleozyga, _very_ limited ;)10:59
niemeyerzyga: No, really.. the only reason we worked on this at all is to provide a smooth entrance into confinement10:59
zyganiemeyer: IMHO with my technical knowledge it is super hard if you expect them to work outside of ubuntu 16.04; I can tell you all the technical details why I believe this to be the case11:00
Kaleozyga, that'd be really great to have a little write up with the details?11:00
niemeyerzyga: If it's _harder_ to build a classic snap than a strict one, I'd argue to kill classic snaps11:00
Kaleoniemeyer, +1 unless it can be fixed11:00
zygaok, let's discuss that at the standup11:00
Kaleozyga, so step 2, figuring out a way for confined terminals to be more useful11:00
zygaI'd rather not kill them yet, the only hard part is the building part and I'd say that for some classes of software this is not hard; for some classes it is but killing it now would feel premature11:01
zygaKaleo: that one is more easy, it feels like an interface11:01
niemeyerKaleo: Yeah, I wouldn't mind looking into a potential interface for that11:01
zygaKaleo: that lets you run shells unconfined11:01
niemeyerzyga: Yes, we shouldn't kill them yet, we should make them sane11:01
zygaKaleo: the details can be ironed out but this feels well-defined and doable quickly11:01
zyganiemeyer: I think the difficulty is now on the snapcraft side;11:01
niemeyerzyga: Asking people to build everything from source when they don't do that for strict snaps isn't reasonable11:02
zyganiemeyer: there's little we can do in snapd IMHO11:02
Kaleoniemeyer, zyga, right, the main thing I noticed is needed: / inside the terminal snap being the actual / of the classic system11:02
zyganiemeyer: well, maybe11:02
niemeyerzyga: Yeah, we should talk to Sergio about these details11:02
zyga+111:02
Kaleoniemeyer, zyga, can that be an interface?11:02
zygaKaleo: perhaps11:02
niemeyerKaleo: Yes, it can.. not sure if it should yet, but it can11:02
niemeyerKaleo: It's a pretty different mode of operation, so an interface is a bit misleading11:03
zygaKaleo: we don't have support to let a confined snap run a process that is both unconfined and uses the normal filesystem11:03
Kaleoniemeyer, right11:03
zygaKaleo: it would be a combination of an interface (I can run bash unconfined) and a helper that returns to the normal filesystem IMHO11:03
zygathe interface is very easy11:03
zygathe helper is easy but would require some C code11:04
Kaleoniemeyer, zyga, another tricky thing I encountered was that inside the shell of the terminal, the environment variables are those of the terminal snap, including things that disturb operations, instead of being the environment variables of say the parent process that started the terminal11:04
zygaso technically gnome-terminal would run "snap-escape-ns /bin/bash" (names tentative)11:04
zygaKaleo: can you give us some examples of which variables are problematic?11:05
Kaleozyga, yes11:05
Kaleozyga, all the SNAP_* variables11:05
niemeyerKaleo: It's both, actually11:05
Kaleozyga, and all the environment variables set by the "desktop helper"11:05
zygaKaleo: hmm11:05
KaleoGDK_PIXBUF_MODULEDIR, GIO_MODULE_DIR, etc.11:05
niemeyerKaleo: env vars do get into the process11:05
Kaleoniemeyer, zyga, right now I have a piece of code that reset the environment to be the same as the parent process of the terminal11:06
Kaleo+s11:06
zygaKaleo: I believe that (at least for some of those) the snap-escape-ns could dothat11:07
Kaleozyga, interesting11:08
zygaKaleo: but it would not know to reset things you just mentioned, like GDK11:08
zygaKaleo: for those I believe the terminal should be patched to run the shell process without those11:08
zygaKaleo: (as this is internal implemnetation detail of the snap)11:08
zyga*implementation11:09
Kaleozyga, it is true that it's technically the terminal setting those vars11:09
Kaleozyga, even though the code that does that is from snapcraft-desktop-helpers11:10
Kaleozyga, the main issue with asking the terminal to reset these variables is that we will be asking all terminal packagers/developers to do the same11:10
zygaKaleo: do you see another way to do this?11:11
Kaleozyga, the way I do it today11:11
zygaKaleo: you could run the terminal to run a shell11:11
zygaKaleo: but the shell would be another helper wrapper11:11
zygaKaleo: that would undo all the stuff and run the escape tool11:11
Kaleozyga, right11:11
Kaleozyga, 1) we could make that code common11:11
Kaleozyga, but it's not simple because that specific unsetting of variables depends on what kind of desktop helper you used (for example a qt or a gtk one)11:12
Kaleozyga, or 2) we could have that code be more generic like I do today: copy the environment from the parent process of the terminal11:12
Kaleozyga, or 3) we could make it somehow possible for the terminal to not fork the shells itself11:13
Kaleozyga, but have the parent process do that for the terminal11:13
zygaKaleo: yes but that should live with the helper, I'd rather not mix snapd-the-system and particular-snap boundaries, otherwise things will get out of sync and break11:13
zygaKaleo: (for 1)11:13
Kaleozyga, right, that's true11:13
zygaKaleo: FYI: I'm very glad you are pushing the boundary11:14
Kaleozyga,  1) something in the helper to unset in a non generic way11:14
Kaleozyga, :)11:14
zygaKaleo: as niemeyer said, the point of classic snaps is to make things easy11:14
Kaleozyga, 2) something generic to reset the variables that could live in snapd11:14
zygaKaleo: I'm sorry if you regarded my earlier comments as harsh, that was not my intention (this is just the side effect of working on afew things at the same time)11:14
Kaleozyga, don't worry11:15
zygaKaleo: I think we should meet with sergio and kyrofa_ to discuss how to make building snaps easier11:15
Kaleozyga, classic snaps you mean?11:15
zygaKaleo: snaps using classic confinement11:15
Kaleoyep11:15
zyga(this naming super confusing because we have the actual "classic" snap and we have "classic" distributions as well)11:15
Kaleozyga, or 3) some kind of facility where the terminal can ask for a binary to be exec11:16
Kaleozyga, indeed11:16
Kaleozyga, I think 3) would be fantastic actually, cleaner somehow, more widely useful11:17
zygaKaleo: can you explain 3 more?11:17
Kaleozyga, so let me get some code to be concret11:17
Kaleoe11:17
zygasure11:19
zygaKaleo: can I ask you do move to rocket11:22
zygaKaleo: I get notifications there11:22
zygaKaleo: and diconnets are less of a problem11:22
pachuloelopio: ping11:22
zygahttps://rocket.ubuntu.com/channel/snapcraft11:22
zygaKaleo: ^^11:22
Kaleozyga, sure11:23
Kaleozyga, we can even hangout11:23
KaleoI mean video chat11:23
zygaKaleo: rocket could be better for kyle and sergio to catch up with the discussion11:23
zyga(and also lighter on my bandwidth)11:23
Son_Gokusergiusens, I hope you didn't mean to say you broke symlink handling of deb sources in the snapcraft 2.25 release notes11:54
Son_Goku"deb sources are now being handled with python-debian which does incorrecly handle symlinks."11:55
* Son_Goku sighs11:55
Son_Gokupython-debian is a new dep?11:55
Son_Goku:(11:58
Son_GokuGit is evil, moving files around causes the history of the file to not show up anymore :(11:59
Son_Gokukyrofa_, though I do like the refactor you've done to sources11:59
Son_Gokuit's much easier to figure out and compare sources now12:00
Son_Goku:/12:00
Son_Gokuthough I feel like I should add my name to the license header of the Rpm source files...12:00
Son_Gokusince the git history no longer shows it anymore :(12:00
kalikianaThat's good practice anyway, although not stricyl required so long as you can track down the author via git12:02
kalikianaUnless all commits were rebased by somebody else without your name that is12:03
Son_Gokuyep12:04
Son_Gokuthat pretty much happened12:05
Son_Gokuwell, sort of12:05
Son_Gokubecause the original file is deleted, it no longer shows up in Git history12:05
Son_GokuCanonical did not write any of the Rpm stuff, I did...12:05
Son_Gokubut it's one of those PRs that some people really don't like12:05
Son_Gokukalikiana, it also looks like the blob history is gone too12:06
Son_Gokuso much for Git's object blob tracking12:06
kalikianaSon_Goku: How are you checking it? If that's really what happened it seems very wrong12:06
Son_Gokugit blame on the Rpm files12:07
Son_Gokugit blame is supposed use the object blob tracking12:07
Son_Gokuso that even if you moved stuff around, it should be tracked properly12:07
Son_Gokubut it doesn't seem to work :(12:07
flexiondotorgwillcooke Perhaps useful for asterisk? http://snapcraft.io/docs/build-snaps/scriptlets12:14
kalikianaHmm it says Kyle as the author here12:14
sergiusenskalikiana, vbecause e moved the stuff around12:15
zygaSon_Goku: --follow12:16
zygaSon_Goku: it's not default12:16
zygaSon_Goku: git log --follow12:16
zyga(hi btw)12:16
Son_Gokuhello12:16
Son_Gokuin retrospect, I should have added my name onto the original file12:17
kalikianaSon_Goku: git blame -C seems to try harder12:17
Son_Gokuhmm12:17
Son_GokuI did put in the test file, but I didn't in the implementation file12:18
Son_Gokuthat's my bad :(12:18
Son_Gokusergiusens: would it be okay if I added my name to the Rpm source headers in a PR?12:22
sergiusensSon_Goku, if it means that much to you sure; I'd guess it would be easier to start a CONTRIBUTIONS.md if you don't mind that path instead12:23
Son_Gokuhmm12:23
Son_Gokuit's not on the top of my list atm, and I think my local git copy of snapcraft is busted :/12:23
sergiusensSon_Goku, how can that be? we don't change history in master!12:24
sergiusensI hope no one has at least12:24
* Son_Goku shrugs12:24
Son_Gokuit's forcing me to do a merge12:24
Son_Gokuoh, yay12:25
sergiusensSon_Goku, local commits?12:25
Son_Gokuthe blob history works with "git blame -C"12:25
Son_Gokusergiusens: *shrugs*, I reset the HEAD to some random earlier time and it worked12:25
Son_Gokuit's interesting to see how git treats the blobs, though12:26
sergiusensSon_Goku, yeah -C does the trick and we get to see your kanji, hiragana or katagana (not sure which one it is) :-)12:26
Son_GokuKatakana12:26
Son_Gokuthough my original commits didn't have that12:27
Son_Gokuonly my GitHub user has it :)12:27
Son_Gokubecause you squashed the commits, you got that instead :P12:27
Son_GokuGitHub is weird like that12:27
Son_GokuI don't think that happens when you squash commits locally in git...12:27
Son_Gokuanyway...12:28
sergiusensSon_Goku, I am not so much a fan of github in some aspects, but oh well, everyone wants stuff there and not sign up of anything else12:28
Son_Gokusergiusens: I prefer GitLab myself12:28
Son_Gokumy personal projects are all over on GitLab instead of GitHub12:28
sergiusensright, well it needs something to base the squash out of12:28
Son_GokuI moved it there two years ago12:28
zygaI don't think how git behaves is related to either hosting solution12:28
Son_Gokusergiusens: though honestly the most compelling reason for picking GitLab vs something like Gogs or Gitea is the awesome CI capabilities12:29
Son_Gokuit has first class support for flexible CI built in, and a great API for integrating external CI providers12:29
Son_Gokuand has an excellent model for representing CI with internal and external things at once12:30
Son_Gokusee for example: https://gitlab.com/osslugaru/lugaru/blob/master/.gitlab-ci.yml and https://gitlab.com/osslugaru/lugaru/commit/b9a46d8e2b7e7e22c706e7dd3734f31015db4408/pipelines12:31
Son_Gokuthe only weak part of GitLab is git :P12:32
Son_Goku(of course, that's just because I prefer Mercurial)12:32
sergiusenslol12:32
sergiusenseverything has ups and downs12:33
Son_Gokuyeah, of course12:33
Son_Gokuthere are weaknesses to GitLab, of course12:33
Son_Gokuthe most annoying thing is that uploading binaries doesn't work if it's larger than 10MB12:33
Son_Gokuwhich also includes source tarballs12:34
Son_Gokubut it's been easier to engage with GitLab about issues than it has with GitHub about the same things12:34
=== hikiko is now known as hikiko|ln
mupPR snapcraft#1055 closed: store: proper error colors for login failures <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1055>12:41
mupPR snapd#2586 closed: daemon: make 201 and 202 responses have a Location header as per doc <Created by chipaca> <Closed by chipaca> <https://github.com/snapcore/snapd/pull/2586>12:46
=== jdstrand_ is now known as jdstrand
=== chihchun is now known as chihchun_afk
jdstrandKaleo: there is a somewhat ugly way to figure out what confinement you are under: try to read a file that is readable with classic but not in strict13:18
=== chihchun_afk is now known as chihchun
Kaleojdstrand, smart13:20
Kaleojdstrand, thax13:20
Kaleothanks13:20
zygamaybe we should add a variable like SNAP_CONFINEMENT=13:20
mupPR snapcraft#1056 closed: schema: print allowed length for length failures <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1056>13:20
jdstrandogra_, Chipaca, Kaleo: @{PROC}/cmdline is allowed by default and I don't think we'd remove that one (it isn't problematic). there are a few other /proc accesses I'd like to be limited, but we need kernel side apparmor variables for that (which are planned, but not for the short term)13:21
jdstrandtimp: your snap needs to simply have meta/gui/*.desktop. snapcraft provides a way to make that happen13:22
Kaleozyga, jdstrand, note that I don't think I'll need that anymore given the discussion afterwards13:22
jdstrandsergiusens: did snapcraft change how it does desktop files? I may need to update the review tools message for that13:22
Kaleojdstrand, timp, I read in the snapcraft release email today that there is a new way to provide the desktop file13:22
jdstrandKaleo: so, I may have confused what you meant by 'classic'. if you want to see if you are on a classic system, ogra_'s method of checking /proc/cmdline will work. if you want to know if the snap uses 'confinement: classic', you can use the file access method I mentioned13:24
Kaleojdstrand, yeah, I meant confinement of the snap13:25
Kaleojdstrand, but don't worry, I won't be needing this13:25
ogra_yeah, the cmdline is only useful to find out if you are on an all-snap system13:25
ogra_iirc that was the context i mentioned it in13:25
mupPR snapd#2663 closed: speed up unit test run by doing "go test -i" before go test itself <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/2663>13:28
oSoMoNI’m getting a warning from the store automated review when using the new "desktop" key in snapcraft.yaml:13:33
oSoMoNunknown fields for app 'webbrowser-app': 'desktop' lint-snap-v2_apps_unknown (webbrowser-app)13:33
oSoMoNI’m guessing because the field gets copied to meta/snap.yaml13:34
oSoMoNnot sure whether the field should not be copied, or whether the review tools need an update?13:34
sergiusensoSoMoN, I fixed that already and will be in 2.2613:35
sergiusensoSoMoN, https://github.com/snapcore/snapcraft/pull/105313:36
mupPR snapcraft#1053: meta: ensure snap.yaml is desktop free <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1053>13:36
=== hikiko|ln is now known as hikiko
oSoMoNsergiusens, thanks, that’s something that I had overlooked indeed13:37
oSoMoNsergiusens, do you know who can approve my snap upload in the store, the warning appears to be blocking13:37
=== ben_r_ is now known as ben_r
jdstrandsergiusens: is 2.26 an emergency release? should the review tools change? at this point, they can't be changed probably until monday on prod, but maybe I could get them to do it sooner13:40
jdstrandsergiusens: wrt desktop and snapcraft. is setup/gui/*.desktop still supported? should I start recommending desktop: usr/share/applications/my-app.desktop?13:42
jdstrandsergiusens: ah, I see from the email it is still supported13:42
jdstrandI'm not going to fix the tools to mention the new method until 2.26 is released since that will only create store approval friction13:43
mupPR snapd#2664 opened: cmd: move seccomp cleanup functionto seccomp-support <Created by zyga> <https://github.com/snapcore/snapd/pull/2664>13:46
=== Elleo_ is now known as Elleo
sergiusensjdstrand, we are going to be moving `setup` stuff into `snap` in the future though and deprecate `setup`, this will consolidate most assets13:55
sergiusensjdstrand, I can cut a new snapcraft release tomorrow, I'll check, but my trusty QA guy is on holidays !!13:56
=== chihchun is now known as chihchun_afk
oSoMoNjdstrand, can you approve my last 3 webbrowser-app snap uploads? the review tools are warning about the desktop key in snap.yaml, afaik this is harmless but I can’t publish14:03
jdstrandoSoMoN: yes. note you could also use the previous method until 2.26 is out ^14:04
oSoMoNjdstrand, I know, but I’ve been eagerly awaiting for that new feature to avoid having to ship a copy of the generated desktop file in setup/gui, so now that I’ve removed it I’m reluctant to adding it back14:06
mupBug #1657751 opened: 'snap info' doesn't show price of snap <Snappy:New> <https://launchpad.net/bugs/1657751>14:06
mupBug #1657752 opened: 'snap find' doesn't tell me the price of a snap I have bought <Snappy:New> <https://launchpad.net/bugs/1657752>14:09
jdstrandoSoMoN: approved14:09
oSoMoNjdstrand, thanks!14:09
ogra_mterry, FYI .. https://git.launchpad.net/mir-kiosk/commit/?id=7c8c501b67bb9ca2059838947b8eab918779fd36 ... seems it simply hasn't landed in any deb yet (mir-kiosk is built from source directly) ... thats bug 1656164 ... so unity8-session cant work yet it seems14:11
mupBug #1656164: Black screen with Raspberry Pi 3 VC4 Mesa driver <black-screen> <Mir:Fix Committed by albaguirre> <https://launchpad.net/bugs/1656164>14:11
mterryogra_: ok cool.  So we could also workaround it...  is there an urgency to it working for ya?14:13
ogra_mterry, no urgency, just a personal desire to show off unity on the pi ;)14:14
mterry:)14:14
timptim@XPS-13-9350:~/src/snaps/ubuntu-ui-toolkit-examples$ ubuntu-ui-toolkit-examples.jokes14:26
timpQGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.14:26
timpfile:///snap/ubuntu-ui-toolkit-examples/x1/usr/lib/x86_64-linux-gnu/qt5/examples/ubuntu-ui-toolkit/examples/jokes/jokes.qml:20 plugin cannot be loaded for module "QtMultimedia": Cannot load library /snap/ubuntu-ui-toolkit-examples/x1/ubuntu-app-platform/usr/lib/x86_64-linux-gnu/qt5/qml/QtMultimedia/libdeclarative_multimedia.so: (libpulsecommon-8.0.so: cannot open shared object file: No such file or directory)14:26
timpkalikiana: do you think the pulse libs should be in the examples snap, or part of the platform snap?14:27
timphmm, looks like it tries to get it from the platform snap.14:27
kalikianatimp: Since pulse is considered the standard for audio, intuitively I think it could be in the platform snap. Virtually anything that plays audio can use it14:28
kalikianaTho you might have a core image w/o pulse, if you do have audio it would be pulse14:29
timpubuntu-app-platform/22/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-8.0.so14:29
timpit is there.. but maybe somehow cannot be found.14:29
kalikianaAh, so it's probably a dependency of QtMultimedia already14:29
zygathe pulseaudio subdirectory is not on search path14:29
timpzyga: right. Should I fix that in the app snap or the platform snap?14:30
* zyga is not sure14:30
zygacan you fix it in the platform snap?14:30
ogra_if platform ships it ...14:30
kalikianatimp: In the launcher I should think14:30
kalikianaThe platform snap can't set the path14:30
kalikianaUntil some day it becomes possible to set env vars, that is14:31
zygabtw14:31
zygais there a card tracking that14:31
zygawe are so able to do that now for ages14:31
zygafeels like a disconnected dot somewhere14:31
zygaand missing docs and tests14:31
timpkalikiana: so you'd say in desktop-launch? I don't see it here https://github.com/ubuntu/snapcraft-desktop-helpers14:35
timpah it is created from other files14:36
kalikianatimp: Yep, that's the one I mean14:37
timpthis looks like a good place to add it https://github.com/ubuntu/snapcraft-desktop-helpers/blob/master/qt/launcher-specific14:37
timpkalikiana, zyga: https://github.com/ubuntu/snapcraft-desktop-helpers/issues/3714:43
zygathanks14:45
timphmm, maybe there is a PR already to fix it https://github.com/ubuntu/snapcraft-desktop-helpers/pull/2514:46
mupPR ubuntu/snapcraft-desktop-helpers#25: Add pulseaudio to the LD_LIBARY_PATH of the platform snap <Created by tjyrinki> <https://github.com/ubuntu/snapcraft-desktop-helpers/pull/25>14:46
kalikianaYeah, looks to be discussing the same issue14:50
mupPR snapd#2665 opened: cmd: more build system cleanups and a small fix <Created by zyga> <https://github.com/snapcore/snapd/pull/2665>14:58
=== JanC_ is now known as JanC
=== chihchun_afk is now known as chihchun
jdstrandcprov (cc, nessita): I know we talked about this before and I think it is a TODO, but it would be great if the reviewer could click on something to see the snap yaml. with all the kde snaps coming in (which is great), I have to download each one, extract the yaml and find the dbus name so I can update the snap declaration16:03
cprovjdstrand: right, we talked about it and I haven't proposed anything.16:05
jdstrandcprov: do you need a bug? if so, where to file it?16:05
cprovjdstrand: yes, please, https://bugs.launchpad.net/software-center-agent16:07
mupPR snapcraft#1057 opened: godeps plugin: support for go-packages <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1057>16:09
jdstrandcprov: bug #165781216:12
mupBug #1657812: please provide snap.yaml to reviewer <Software Center Agent:New> <https://launchpad.net/bugs/1657812>16:12
cprovjdstrand: thanks, quick shortcut until it's released `curl -s -H 'X-Ubuntu-Series: 16' https://search.apps.ubuntu.com/api/v1/snaps/details/<SNAP-NAME> | jq '.snap_yaml_raw' | xargs echo -e`16:14
cprovjdstrand: only works for public snaps on stable channel.16:15
jdstrandcprov, pedronis (cc nessita, ratliff_, tyhicks): fyi, I also just filed bug #1657816 and bug #165782516:30
mupBug #1657816: please provide way to see LP group memberships for publisher <Software Center Agent:New> <https://launchpad.net/bugs/1657816>16:30
mupBug #1657825: please add mechanism to enforce trusted LP builds for snaps <Software Center Agent:New> <https://launchpad.net/bugs/1657825>16:30
jdstrandcprov: and thanks for the curl command! /me adds to his repertoire16:30
jdstrandof course, it doesn't work on any of the 3 snaps I am looking at now :P16:33
cprovjdstrand: let me try, which ones ?16:35
jdstrandcprov: none are released16:36
jdstrandso not in stable channel16:36
cprovjdstrand: yes, only their publisher can see them ... let me work on the review UI quickly.16:37
jdstrandcprov: thanks!16:37
jdstrandmhall119: fyi, apachelogger uploaded several kde snaps that used the dbus interface. I granted the snap declaration and they passed review, but he needs to release them16:39
=== chihchun is now known as chihchun_afk
=== ratliff_ is now known as ratliff
mhall119jdstrand: ack, thanks17:22
mcphailkyrofa_: hi - is there a bug tracker for the nextcloud snap? I don't think the ".well-known" DAV redirects are being triggered by the .htaccess file17:30
kyrofa_mcphail, https://github.com/nextcloud/nextcloud-snap17:30
mcphailkyrofa_: thanks17:30
kyrofa_mcphail, that bug has been logged, though I'm not quite sure how to fix it17:30
kyrofa_mcphail, since Let's Encrypt uses that path as well17:30
kyrofa_And they both go through Apache17:31
mcphailkyrofa_: does the .htaccess get read at all? It _should_ work ok17:31
kyrofa_mcphail, yeah it does, though it's read-only17:32
mcphailthat should be fine, I think17:32
mcphailit seems to match my self-installed version17:32
kyrofa_I just need time to sit down and poke at it. But time is in short supply at the moment17:33
mcphailkyrofa_: :) - I'll try to compare to my setup over the weekend17:33
kyrofa_mcphail, yeah any help is appreciated :)17:34
kyrofa_Thank you!17:34
mcphailkyrofa_: I'm fairly sure the <Directory "${SNAP_DATA}/certs/certbot/.well-known"> stanza in your httpd.conf must have a role to play here. I'll need to have a poke around to see how let'sencrypt has been implemented in the snap. Hmm...17:56
kyrofa_mcphail, indeed17:57
kyrofa_mcphail, if I understand the .htaccess well enough, it looks like it won't attempt to redirect an acme challenge17:59
kyrofa_That just needs to get sent to a directory18:00
mcphailkyrofa_: I'm wondering if the acme challenge should be added (whith the specific .well-known/acme-challenge/{token}) path to the htaccess file instead of redireccting all of .well-known (as apache.conf does now)18:00
mcphailThe redirect in apache.conf is too greedy at present18:01
kyrofa_Indeed, when it was written I didn't even realize nextcloud cared about .well-known, heh18:01
mcphail:)18:01
kyrofa_When that bug was logged I was like "Wha... ?"18:01
kyrofa_Modifying the .htaccess in the snap won't scale, though, and I expect it'll fail the integrity check as well18:02
mcphailMight be OK to change the Alias in the conf file18:02
kyrofa_Yeah the conf is fair game18:03
mcphailOK, I'll play around when I get a chance over the weekend. Cheers for the pointer!18:03
kyrofa_Any time!18:03
=== faenil_ is now known as faenil
=== jkridner_ is now known as jkridner
BeatoWhen trying to install a snap it fails with this error - https://paste.ee/r/F7XfL18:44
Beatoany ideas?18:44
ogra_Beato, is this on ubuntu ?18:48
BeatoYes18:48
ogra_xenial ? (16.04)18:48
BeatoYes18:48
BeatoIt is a OpenVZ based VPS though, so maybe it's that18:49
ogra_ah18:49
ogra_uname -a ?18:49
BeatoLinux PC 2.6.32-042stab120.16 #1 SMP Tue Dec 13 20:58:28 MSK 2016 x86_64 x86_64 x86_64 GNU/Linux18:49
ogra_lol18:49
ogra_yeah, that wont ever work with snaps18:49
ogra_get a kernel thats not antique ...18:50
BeatoOpenVZ18:50
BeatoNot my call18:50
zygaBeato: hmm, wow, interesting combination; I'm afraid snapd and systemd require a more recent kernel18:50
ogra_it is really interesting that 16.04 runs at all18:51
popey(arguably not actually Ubuntu)18:51
ogra_(you will probasbly hit very interesting issdues with such a setup)18:51
ogra_definitely nothing you should use any production services on18:52
zygaBeato: which provider are you using?18:52
Beatohttps://openvz.org/Download/template/precreated kek18:52
Beatozyga: http://woothosting.com/18:53
popeyI recommend http://bitfolk.com/ :)18:53
popey(tell them I sent you) :D18:54
ogra_"Award-winning network that keeps your business ALIVE" ... since 300 years with the same kernel :P18:54
ogra_zombyism galore ...18:54
BeatoThat's an OpenVZ thing though. Pretty much all cheap VPS run OpenVZ 6 and they use a custom 2.6 kernel with a lot of stuff backported (that's why I can run systemd for example)18:54
popeyyeah18:55
ogra_well18:55
zygaBeato: interesting18:55
popeyBitfolk uses Xen, which means my vps is running 4.4.0-57-generic18:55
* ogra_ remembers a friend telling him "running doesnt necessarily mean working" ... 18:55
ogra_i guess that applies here18:56
zygaBeato: snapd depends on some recent kernel features so it will be quite hard to even install and run hello-world there18:56
ogra_not only snapd though18:56
BeatoYeah, Xen, KVM, VMWare and HyperX allow you to load your own kernel so you can just update manually18:56
zygaBeato: I'm afraid there's no better advice than try something that runs genuine xenial kernel18:56
ogra_i'd be surprised if that ubuntu actually fully behaves18:56
popeysorry about that18:56
Beatoogra_: it does though. Like I said, OpenVZ has backported a lot of the features.18:56
Beatopopey: Cheers, was just curious. I'll just install the app manually then.18:57
zygaBeato: if it did you would not have that problem18:57
zygaBeato: technically, what failed?18:57
BeatoWell not, all I guess ¯\_(ツ)_/¯18:57
ogra_Beato, well, it might seem like it works ... i really wouldnt trust itz18:57
ogra_*it18:57
popeyogra_ has trust issues18:57
* ogra_ has been burned to often 18:57
ogra_and i know how many userspace bits nowadays rely on kernel features "someone" might have forgotten to port18:58
ogra_its really a gambling setup ...18:58
davmor2popey: no he doesn't I have trust issues ogra is just slightly damaged18:59
BeatoWell I do use it as my personal playground, so I don't really care too much.18:59
ogra_fro that it is probably fine19:00
ogra_just dont run anything serious on it19:00
BeatoI wasn't going to, but now... Watch me ;)19:00
ogra_heh19:00
ogra_Beato, well, good luck with it ... but forget about snaps on this19:02
roadmrhello folks! what's the story about running snapd inside an lxc container? right now it doesn't work :(19:06
zygaroadmr: hey, I don't know fully, I think that on recent enough everything there are still some cases that don't work19:30
roadmrzyga: oh but it *should* be working?19:30
zygaroadmr: no19:31
zygaroadmr: AFAIK19:31
roadmrzyga: haha :)19:31
zygajdstrand: ^ correct me if I'm wrong, snapd inside lxd is till a no-go, right?19:31
kyrofa_zyga, does this answer your question? https://www.stgraber.org/2016/12/07/running-snaps-in-lxd-containers/19:46
zygakyrofa_: looking19:51
zygaroadmr: ^^19:51
mhall119zyga: jdstrand: hexchat is in the snap store, but for some reason when you install it the Exec= lines in it's .desktop file are being removed20:21
mhall119http://paste.ubuntu.com/23829632/20:22
mhall119what might be causing that?20:22
mhall119is it because he uses ${SNAP} in the Exec=?20:24
jdstrandmhall119: I don't recall. it has to do with the desktop file rewriting code. I bet if you used bin/hexchat %U it would work20:28
roadmrthanks zyga20:32
oh4running ubuntu 16.04, when trying to run 'sudo snap install canonical-livepatch', it fails with 'error: cannot communicate with server: Post http://localhost/v2/snaps/canonical-livepatch: dial unix /run/snapd.socket: connect: connection refused'20:35
oh4snapd is installed but doesn't want to run. Looking at the status of snapd, I see this:20:35
oh4https://www.irccloud.com/pastebin/v1KfOv5Y/20:36
sergiusensoh4, dmesg|grep DEN20:39
oh4https://www.irccloud.com/pastebin/6IXONJOg/20:39
sergiusensoh4, oh, snapd doeesn't want to start, `journalctl --no-pager -u snapd`20:41
oh4https://www.irccloud.com/pastebin/lkp5OdCw/20:42
mhall119jdstrand: actually, it's probably unhappy about it pointing to a binary inside the snap, rather than the one in /snap/bin/20:45
mhall119jdstrand: I was right, using just Exec=hexchat fixed it21:50
mhall119zyga: sergiusens: ^^ we should give better feedback to the developer on this, rather than silently breaking the .desktop file21:50
sergiusensmhall119, yeah, I logged countless bugs or complaints for the snapd team to fix those silent errors21:55
popeysergiusens: i keep getting errors from snapcraft telling me files are already in the directory when it's staging21:58
popeyit's lying because the files aren't in any other part21:58
popeywhen using the dump plugins mostly21:58
=== Tercus is now known as Terces
mupPR snapd#2579 closed: many: auto-connect plugs and slots symmetrically <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2579>22:55
mupPR snapcraft#1058 opened: Return an error code if an origin is missing a part <Created by josepht> <https://github.com/snapcore/snapcraft/pull/1058>23:03

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