/srv/irclogs.ubuntu.com/2018/08/21/#snappy.txt

=== wgrant_ is now known as wgrant
mupBug #1760252 changed: starting slack crashes xwayland on 18.04 <bionic> <xorg-server (Ubuntu):New> <https://launchpad.net/bugs/1760252>01:33
mupPR snapd#5690 opened: Add an error code for Polkit auth cancels <Created by robert-ancell> <https://github.com/snapcore/snapd/pull/5690>03:05
mborzeckimorning05:09
mborzeckimvo: hey05:42
mborzeckimvo: easy win https://github.com/snapcore/snapd/pull/568705:42
mupPR #5687: cmd/snap-confine: switch to validation of SNAP_INSTANCE_NAME <Parallel installs> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5687>05:42
mborzeckimvo: hey, you probably missed that, https://github.com/snapcore/snapd/pull/5687 is an easy win, same as https://github.com/snapcore/snapd/pull/568405:50
mupPR #5687: cmd/snap-confine: switch to validation of SNAP_INSTANCE_NAME <Parallel installs> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5687>05:50
mupPR #5684: cmd/snap: create snap user directory when running parallel installed snaps <Parallel installs> <Simple> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5684>05:50
mvomborzecki: yeah, missed that, looking. thank you05:53
zygagood morning!05:53
* zyga tries to shift to 6AM wake-ups05:54
zyganot there yet05:54
zygabut slowly :)05:54
mvozyga: good morning05:54
zygaI'll make coffee and join you guys shortly05:54
mborzeckizyga: hey05:54
mborzeckizyga: you're still 2h behind the schedule :P05:54
mupPR snapd#5687 closed: cmd/snap-confine: switch to validation of SNAP_INSTANCE_NAME <Parallel installs> <Created by bboozzoo> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5687>05:57
mvomborzecki: 5684 waits for john, no?05:57
mborzeckimvo: yay, thanks05:57
mborzeckimvo: yes, i pinged him and pawel yday05:57
mborzeckifeels good to be back at the proper screen05:58
=== mborzeck1 is now known as mborzecki
zyga:-)06:24
zygaYeah but I’m shifting06:25
zygaWhen I woke up today I felt like it’s autumn ready06:26
zygaIs it OK to say I already miss the summer?06:27
zygaMy plan for today is to talk with Paweł about the system snap06:28
zygaAnd to finish off the two remaining PR I have open06:29
zygaAnd then work and user mounts06:29
zygamvo: When do you plan to release the next point release?06:29
mborzeckizyga: https://github.com/snapcore/snapd/compare/master...bboozzoo:bboozzoo/parallel-install-snap-namespace-mapping i'd love to hear your thoughts06:30
mborzeckizyga: also need to look info why /snap/foo is mounted rw06:31
zygaI’ll check it out very soon but just as an observation snap foo cannot be a mount point, because there’s nothing out there is just a directory06:32
mborzeckizyga: rbind & ro are a no go (you added that comment?), guess it's not much of a problem for /snao/foo_bar -> /snap/foo06:52
zygare06:53
zygamborzecki: looking06:54
=== pstolowski|afk is now known as pstolowski
pstolowskimornings07:10
mvozyga: I have no plans yet for a point release. what do we need in it?07:23
zygasome things are tagged with 2.3507:23
mvozyga: we can do in a week after the real release07:23
zygaand 2.35.0 is in the release page07:23
mvozyga: aha, let me check07:23
zygaso I assumed you would do another one07:23
zygais 2.35 out?07:23
zygaor am I just mistaken about the assumption07:23
mvozyga: I thought I had moved them to .3607:23
mvozyga: its in beta now07:23
zygaah, that must be it then07:23
mvozyga: https://github.com/snapcore/snapd/pulls?q=is%3Aopen+is%3Apr+milestone%3A2.3507:24
mvozyga: but we can do a point release i fneeded07:24
zygaah, ok07:24
zyga:)07:24
mborzeckizyga: mount profiles for test-snapd-layout{,_foo} https://paste.ubuntu.com/p/JvmWd88tKp/ unfortunately the _foo one explodes on startup https://paste.ubuntu.com/p/8ZYtzf7sgG/07:42
zygahttps://www.irccloud.com/pastebin/d39eugoc/07:43
zygamborzecki: that's "expected", aka known issue07:44
zygamborzecki: rm the symlink on your host to fix it07:44
zygamborzecki: that's the "trespassing" bug that I was trying to fix for many months now07:44
zygamborzecki: it manifests itself as dangling symlinks and empty files in /etc07:45
mborzeckizyga: ok, removing files made it go away07:46
mupPR snapcraft#2220 opened: schema: allow license field <Created by mvo5> <https://github.com/snapcore/snapcraft/pull/2220>08:04
alexlarssonzyga: hey, do you know if there is any work going on to backport the new xdg-desktop-portal releases (in particular, 1.0) to bionic?08:12
alexlarssonzyga: I'm considering whether to add it to the bionic flatpak ppa08:13
mupPR snapd#5691 opened: spdx: allow Other-Open-Source <Simple> <Created by mvo5> <https://github.com/snapcore/snapd/pull/5691>08:24
seb128jamesh, ^ you might know?08:24
jameshalexlarsson: we want to backport xdg-desktop-portal to xenial.  I think it might make that backport 1.0, and push it to bionic, assuming there aren't compat issues08:26
alexlarssonjamesh: Should be no compat issues08:26
alexlarssonI have x-d-p 1.0 for xenial in the flatpak ppa, but historically i didn't add it to bionic, because it had 0.11 already08:27
zygawhee, thank you alexlarsson and jamesh :)08:27
jameshalexlarsson: I'll talk about it with Ken08:27
mborzeckizyga: parallel installs + layouts spread test running now08:34
zygacool08:35
alexlarssonjamesh: cool08:35
=== chihchun_afk is now known as chihchun
zygamborzecki: any luck?08:44
mborzeckizyga: heh, stopped at the trespassing thing, fixed the test to cleanup /etc/demo* stuff and retrying now08:46
zygakk08:47
zygaonce it passes (if it does) look around, as I said it's more about just ensuring the outcome makes sense than looking at the boolean pass/fail value08:47
mupBug #1533899 changed: Add support for proxies <canonical-is> <proxy> <webdm> <cloud-init:New> <Snap Layer:Fix Released by stub> <Snapcraft:Invalid> <Snappy:Fix Released> <snapweb:Invalid> <snapd (Ubuntu):Fix Released> <snapd (Ubuntu Trusty):Fix Released> <https://launchpad.net/bugs/1533899>08:47
mborzeckizyga: yeah, modified it a bit to write different content to locations and added some steps to verify if the things look ok from the outside08:48
mborzeckizyga: once https://github.com/snapcore/snapd/pull/5670 i'll be able to open a PR with mapping changes along with a spread test08:48
mupPR #5670: daemon, overlord/snapstate: set instance name when installing from snap file <Parallel installs> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5670>08:48
mborzeckihm actually most of the spread tests, there's one that depends on https://github.com/snapcore/snapd/pull/561408:49
mupPR #5614: interfaces: parallel instances support, extend unit tests <Parallel installs> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5614>08:49
Chipacazyga: next time you're feeling smug about your mac, have you looked at the uname implementation for darwin vs the one for linux08:58
zygammm, nope/08:58
zygawhat's the difference?08:59
Chipacazyga: https://github.com/golang/sys/blob/master/unix/syscall_darwin.go#L368 vs https://github.com/golang/sys/blob/master/unix/zsyscall_linux_amd64.go#L137808:59
Chipacazyga: the darwin one is five syscalls and a loop08:59
zygainteresting, I knew apple did some unusual things with their sys call layers09:02
zyganotably for compatibility at the extreme09:02
zygaand also flexibility09:02
zygasome system calls don't have numbers09:03
zygaonly names09:03
zygaand to call them you literally have to pass the string to the kernel09:03
zygathen again apple sys calls are executed differently due to (last time I looked at 32bit systems) 4/4 split09:03
zygawhere the whole address space flips (except for a tiny page that has the flip code and arg buffers)09:03
zygaChipaca: but yeah, cool stuff :)09:04
zygaand apparently it doesn't matter (marketshare :)09:04
Chipacazyga: :-)09:04
Chipacawhat does userd use SIGUSR1 for?09:11
Chipacamorphis: do you remember?09:11
=== chihchun is now known as chihchun_afk
mupPR core#93 opened: hooks: unwind /etc/alternatives <Created by mvo5> <https://github.com/snapcore/core/pull/93>09:15
mborzeckizyga: that's the test currently https://paste.ubuntu.com/p/KfNJC6tJV2/09:23
zygamborzecki: looking09:25
zygamborzecki: what I would look for in this test is something that verifies that both instances don't step on each other's data09:26
mborzeckizyga: that's towards the end09:26
zygammm, I don't see that09:27
mborzeckizyga: lines 85+, unless you have something else in mind09:27
zygamborzecki: I mean that one snap should say "snap-a" and the instance snap should say "snap-b"09:28
zygathey should both write09:28
zygaand only after that we should verify the data seen by both09:28
zygaso that it's not "snap-a" in all the places (or snap-b in all the places)09:28
mborzeckizyga: that's exactly what's there09:29
zygahmm?09:29
zygabut you write foo-1, 2, 3 for _both_09:29
zygaso how can you check that09:29
mborzeckizyga: $name foo-1 ..09:29
zygaeither I don't see it or the pastebin is wrong :D09:29
zygaaaah09:29
zyga$name :D09:29
=== chihchun_afk is now known as chihchun
zygaI didn't notice that at a ll09:29
zyga++09:29
zygait's good :)09:29
mborzeckiheh :)09:29
zygathank you09:29
mborzeckizyga: ok, i'll add it to the tests and integration branches, and deal with that change in mount spec that you suggested layer09:31
mborzeckihave to deal with UpdateMany() now09:31
mvozyga: do you know what (bind) mounts /var/lib/extrausers in snap-confine - git grep extrausers is very quiet for me09:33
zygalet me think09:33
zygaI don't think that's us09:33
zygaisn't that the test setup?09:33
zygaor core boot process?09:33
zyga(us as in the cli tools)09:34
mvozyga: snap run --shell test-snapd-tools.echo gives me a valid /var/lib/extrausers inside the mount namespace09:34
mvozyga: so I assume that is us doing it09:34
zygaok, let me look deeper09:34
zygaprobably my memory is just rusty09:34
zygaah09:35
zygaI know09:35
zygajust let me check to be 100% sure09:35
zygayep09:35
zygait's the LXD quirk09:35
zygawe have a "quirk" system in snap-confine that we only used after a particular release of snap-confine broke lxd09:35
zygawe make /var/lib/lxd (which is not in the base snap)09:36
zygaand we bind mount the host's version there09:36
zygato do that we construct an (older implementation of) a writable mimic over /var/lib09:36
zygaI would like to disable that code but perhaps hard to ensure it's not a backwards incompatible change now09:36
mvozyga: and this runs only if core is the base? not core18 ? or how is that decided?09:36
zyga(and we could tie that code to the lxd interface perhaps)09:36
zygait runs on all classic systems for sure09:36
zygalet me look09:36
zygayes09:37
mvozyga: aha, ok09:37
zygasc_setup_quirks is called if distro is SC_DISTRO_CLASSIC09:37
zygabut I would like to drop that, really09:37
zygait pollutes the mount table with stuff for one snap but runs for all the snaps09:37
zygaand it's very very very likely to be unused now09:37
zygaand it can move to an interface (for sure)09:38
mvozyga: hm, something else is going on - I see this on !classic, on uc1609:38
zygathough all such transitions are non-trivial because we have no mechanism to update in-place the09:38
zygaoh09:38
zygamaybe there's a bug in core / classic classification on uc1609:38
mvozyga: could be, not super important right now, I was mostly looking why core18 was not displaying a username on core18 devices inside the mount namespace09:39
zygamvo: what's the /etc/os-release file you see?09:39
mvozyga: https://paste.ubuntu.com/p/XkFW7hYYTX/09:40
zygaID=ubuntu-core09:40
mvozyga: silly question - in sc_mount_config what does "normal mode" mean?09:41
zyganormal mode is the preferred mode of operation where pivot root happens09:41
zygathe exceptional mode is only on core16 when we don't do that09:41
zyga(for compatibility reasons)09:41
zygathe exceptional mode is called "legacy mode"09:42
mvozyga: do we have two normal modes? on in the struct and one global?09:42
zyganope09:42
zyganormal == used on classic, used on core 18 +09:43
zygalegacy == used only on core1609:43
zygabrb, coffee09:43
mvozyga: thank you09:43
mvozyga: enjoy coffee, I will dig a bit around myself09:43
mupPR snapd#5683 opened: overlord/patch: support for sublevel patches <Created by stolowski> <https://github.com/snapcore/snapd/pull/5683>09:44
zygamvo: back10:04
zygaI was getting coffee making lessons actually (unexpectedly)10:04
zygamvo: I can spin up a core16 VM and check as well if you want10:04
mborzeckineed to go to the car shop, will work from there, bbiab10:05
zygakk10:05
zygamvo: you can also get a trace with SNAP_CONFINE_DEBUG=yes10:06
zygaperhaps that will shed some light as to what is going on10:07
mvozyga: ok10:08
zygamvo: if you pastebin that I will gladly look10:08
zygamvo: just remember that on 2nd run it will use the persisted namespace10:09
zygaso you may want to discard it before collecting the log10:09
mvozyga: https://paste.ubuntu.com/p/mTqsSKSfTz/10:10
mupPR snapd#5692 opened: snap-confine: map /var/lib/extrausers into snaps mount-namespace <Created by mvo5> <https://github.com/snapcore/snapd/pull/5692>10:10
mvozyga: oh, what was the command again to discard it?10:10
mvozyga: ^- the PR above is the actual problem I want to fix :)10:10
mvozyga: this is a bit of a side-issue10:10
zygamvo: /usr/lib/snapd/snap-discard-ns $SNAP_NAME10:10
mvozyga: https://paste.ubuntu.com/p/26bb6N4mVQ/10:11
zygamvo: if you use SNAP_DEBUG=1 you will also get snap-update-ns feedback10:12
zygamvo: hmm10:12
zygamvo: so this says nothing happened really pretty much10:12
mvozyga: https://paste.ubuntu.com/p/FtqGCYzTnT/ <- with SNAPD_DEBUG=110:15
mwhudsonniemeyer: https://github.com/snapcore/snapd/blob/master/overlord/configstate/configcore/corecfg.go#L119-L125 <- means that snap set core proxy.http doesn't do anything on non-core, right?10:25
mvomwhudson: correct10:25
mwhudsonmvo: context https://bugs.launchpad.net/snapcraft/+bug/153389910:26
mupBug #1533899: Add support for proxies <canonical-is> <proxy> <webdm> <cloud-init:New> <Snap Layer:Fix Released by stub> <Snapcraft:Invalid> <Snappy:Fix Released> <snapweb:Invalid> <snapd (Ubuntu):Fix Released> <snapd (Ubuntu Trusty):Fix Released> <https://launchpad.net/bugs/1533899>10:26
mvomwhudson: aha, I see. this is about respecting it in snapd internally?10:27
mwhudsonmvo: i don't know10:27
mvomwhudson: yeah, I think thats missing but should be simple, let me have a poke10:27
Chipacamwhudson: proxy on classic can be set via /etc/environment, can't it?10:28
mwhudsonmvo: there is a tension core-aka-system-config vs core-aka-snapd-config10:28
mwhudsonmvo: which i guess you are fixing in series 18 :)10:28
mwhudsonChipaca: that works about as well or badly as any other way of setting it, yes10:28
Chipacamwhudson: also to keep things interesting, there's http proxying, and there's snap store proxy10:29
mvomwhudson, Chipaca my gut feeling is that on core device we edit /etc/environment and thats fine. on classic we don't but we should still lookup if the config was set and respect it10:29
zygabrb10:29
Chipacasparkieg`: the link to documentation from https://forum.snapcraft.io/t/announcing-snap-store-proxy-beta/4666 is broken10:30
mwhudsoni think snapd.service still says EnvironmentFile=/etc/environment?10:30
Chipacamwhudson: yup10:30
mwhudsonanyway, i wouldn't want people to think that saying snap set core proxy.http=.. does anything at all on classic now, because it doesn't10:30
mwhudsonmaybe it should but i don't have an opinion on that :)10:31
Chipacamvo: mwhudson: on classic, setting the proxy via unity-control-center edits /etc/environment10:31
mvoChipaca: yeah, thats fine10:31
ChipacaI'm lost about what the bug is about tbh10:31
Chipacadescription just talks about core10:31
mvoChipaca: I was mostly thinking that we should do somehting on classic. either error if you try to set it on classic *or* respect it for snapd only10:31
mvoChipaca: yeah, its not entirely clear to me either but there is confusion and it seems the above (either error or support it) should fix the confusion10:32
mvomwhudson: ^- does this make sense?10:32
Chipacamvo: hold on10:32
mwhudsonChipaca: should probably do something to do with environment.d(7) nowadays? don't really care though10:33
Chipacamvo: "snap set system proxy.store=xyzzy" works on classic, doesn't it?10:33
Chipacamwhudson: environment.d wasn't in <18 afaik10:33
mwhudsonoh wait that's only user sessions?10:33
mwhudsonyeah all this is fairly new10:33
niemeyermvo: Don't we use the proxy internally?10:33
mvomwhudson: this is not read by pam, right? so things like ssh will not use it(?)10:33
Chipacamwhudson: so yeah nah10:33
mvoniemeyer: I think we did not add support for this, I can look into making this happen should be easy but iirc we did not do it yet10:34
Chipacamvo: erroring on the ones we don't support would be good yes10:34
mvomwhudson: I whish pam_env would support it, I looked at this briefly but iirc there were some complications (beside it being pam)10:34
mwhudsonmvo: something extra fun iirc here is that go's ProxyFromEnvironment looks at the environment *once*10:35
mvoChipaca: yeah, lets see if niemeyer prefers support or error10:35
mvomwhudson: heh, fun indeed :)10:35
mwhudsoni spent a while trying for subiquity to find a way of providing a proxy to snapd that didn't involve restarting it and failed10:35
niemeyerFor some reason I assumed we were already using it for internal purposes at least.. just not changing the whole system configuration when !core10:36
Chipacamvo: wait, that onClassic check means we don't support proxy.store on classic either10:36
mvomwhudson: hm, you should talk to use more :)10:36
niemeyerChipaca: Yeah, this is busted10:36
mwhudsonmvo: probably10:36
mvomwhudson: I mean, we can/should honor it internally10:36
mvoChipaca: is it? this is just used internally, no?10:36
Chipacamvo: which is 'this'?10:36
mwhudsoni should also not rush to complete features before deadlines i guess10:37
mvoChipaca: let me look at the code before I make more statements :)10:37
Chipacamvo: ok :-)10:37
mvoChipaca: what I mean is that iirc we allow setting proxy.store10:37
mvoChipaca: and it is store in the internal configuration state10:37
mvoChipaca: and we honor it inside our code10:37
Chipacamwhudson: turns out deadlines are really only slightly-upset-lines10:37
niemeyerChipaca: Ah, except we do it seems10:37
mvoChipaca: *but* I have not looked at this10:37
mvoChipaca: I mean, this is just memory10:37
* Chipaca tries10:38
Chipacahmm, proxy.store does do _something_ (it complains about a missing assertion at least)10:39
Chipacaproxy.http does not, though10:39
mvoChipaca: yeah, thats my understanding10:39
mvoChipaca: let me do a quick PR that errors and then I do a not-so-quick PR that honors it internally10:39
mwhudsonlooks like all snap set core proxy.store does is validate the args10:40
mvoniemeyer: ^- sounds reasonable?10:40
mwhudsonon any system10:40
Chipacabah10:40
Chipacai dunno10:40
Chipacavalidation happens, but handling does not ?10:40
mwhudsonlooks like it10:40
mvoChipaca: we don't need to handle it at this level, do weß10:40
mvos/ß/?/10:40
* Chipaca gives up10:40
* mwhudson gets back to ordering groceries (why the laptop is open at 22:40)10:40
* Chipaca goes shopping10:40
Chipacamwhudson: a solid plan10:40
mwhudsonha10:40
mvoChipaca: I mean - for http.proxy we need to modify the filesystem but proxy.store is only used internally and does not need any external actions iirc10:41
niemeyerfunc ProxyStore(st *state.State) (*asserts.Store, error) {10:41
niemeyer        tr := config.NewTransaction(st)10:41
niemeyer        var proxyStore string10:41
niemeyer        err := tr.GetMaybe("core", "proxy.store", &proxyStore)10:41
niemeyerThe fact we don't do anything at set time but validation doesn't mean it's unused10:41
mvo+110:41
niemeyerI assumed the same was being done for proxy, at least for internal purposes10:42
niemeyerWe just shouldn't fiddle with the whole system when snapd is not on a core system10:42
niemeyerBut respecting the variable seems reasonable10:42
niemeyerI mean, if people don't want snapd to have a proxy, just don't set it10:42
mvoniemeyer: yeah, I think we are in agreement, I have a look at this10:43
niemeyermvo: The question is what's the easiest way to make sure all requests are proxied10:43
niemeyermvo: It may well be to take the proxy configuration and set the environment variable10:43
niemeyerBoth when we start, and when someone changes the conifg10:44
niemeyerOtherwise we'll need to tune every single *http.Client10:44
mvoniemeyer: yeah, this is straightforward, we need to double check that golang actually reads the env anew every time10:44
niemeyermvo: +1.. I assume it does, but needs confirmation indeed10:44
mwhudsoner no it doesn't10:45
mwhudsonthat's what i was saying above10:45
mvomwhudson: hm, hm, thats unfortunate10:46
ograjust make people stop using that ancient classic thing ;) core for everyone !10:46
mvoniemeyer: the good news is that we have httputils:NewHTTPClient so hopefully a single point where we need to inject this10:47
mwhudsonmvo: hmmm maybe i am wrong, or maybe this has changed in golang now10:47
mvomwhudson: I was just looking at 1.1010:48
mvomwhudson: but then we still build with 1.6 :(10:48
mwhudsonah no net/http's ProxyFromEnvironment still has a sync.once10:49
niemeyermvo: Ah, sweet! I didn't realize we had already consolidated that, great10:49
mvoniemeyer: its a bit of a layering problem still because we use that in e.g. "snap download" so we need access to the state10:50
mvoniemeyer: we could of course cheat and set an (internal) env var snapd_http_proxy etc10:50
niemeyermvo: I think we need to fix snap download to be more typical10:50
niemeyermvo: Meanwhile, we might just ask for the config in the command maybe?10:51
niemeyermvo: I mean, the configuration is readable from the API10:51
mvoniemeyer: great idea10:51
mwhudsonaah ok you can call golang.org/x/net/httpproxy.FromEnvironment() to make a new thing from the current environment10:54
mwhudson(thanks to rog, it seems010:56
mwhudson)10:56
mvomwhudson: this will work in 1.6?10:58
mwhudsonmvo: no idea10:58
mwhudsonmvo: suspect not :/10:58
mwhudsonmvo: do you have a plan for getting off 1.6?10:59
mwhudsonjuju-core uploads in xenial build golang first...10:59
mvomwhudson: I hard foundations will support 1.10 in xenial :P10:59
mvomwhudson: yeah, we might need to do the same, I'm not looking forward to it11:00
mwhudsonmvo: i just do what the security team tells me to do11:00
mvomwhudson: heh, sure I understand the issue(s)11:00
mwhudson(which is why juju does what it does!)11:00
mvomwhudson: it makes me wonder (again) if we should make the snapd in the deb just a small shim that downloads the snapd *snap* which we then can build in whatever way we want11:00
* mwhudson reaches for his boostraps only to find he's already standing on them11:01
mwhudsonmvo: something about the current setup certainly smells bad11:03
mwhudsonmvo: something something prepare-image classic something11:03
mvomwhudson: I'm missing something here, what about prepare-image classic ?11:04
* mvo might be a bit slow due to lack of lunch11:04
mwhudsonmvo: heh i'm skipping ahead in ways that probably don't make sense11:04
mwhudsonmvo: we already support including snaps in all the images we make11:05
mwhudsonor will11:05
mwhudsonwhy shouldn't the snapd snap be one of them?11:05
mvomwhudson: \o/ I like that thinking!11:06
mwhudsonwell because it's snapd that processes the seed.yaml11:06
mvomwhudson: sillly bootstraps11:06
mwhudsonso you need something to at least partly process it at image build time11:06
mwhudson--> prepare image for classic11:06
mvomwhudson: yeah, we would just need to extract the snapd binary and when it starts and finds a valid seed env it will DTRT (i.e. seed itself, restart itself, seed the rest)11:07
mvomwhudson: so that is actually pretty simple11:07
mwhudsonand then you can use the go snap to build snapd :)11:08
mvomwhudson: \\o//11:08
mvomwhudson: I will think about this over lunch11:09
mwhudsonmvo: i'm at least somewhat procastinating about ordering groceries, please don't let me disturb your day too much11:10
Chipacaum, sorry if i got distracted and worked on the same thing you've been working11:10
Chipacawithout reading all the backlog :-)11:11
Chipacai can confirm proxy.store works on classic11:11
* Chipaca hates having to set up proxy for a quick check like this11:12
* Chipaca now wonders if he's stuck with the proxy asserts forever11:12
mupPR snapd#5693 opened: overlord/snapstate: verify SnapState name matches instance key <Parallel installs> <Simple> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5693>11:12
* Chipaca further wonders why he didn't do it in a vm11:12
zygaChipaca: setting proxy on classic blows up fuses in your CPU *forever*11:13
mborzeckipedronis: i'm wondering if a change like #5693 would be useful (actually makes my life easier in the tests)11:13
mupPR #5693: overlord/snapstate: verify SnapState name matches instance key <Parallel installs> <Simple> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5693>11:13
Chipacazyga: 'proxy' is not  settable, so neener neener11:13
ograjdstrand, already around ?11:17
Chipacamborzecki: which was the pr you asked me to review?11:31
mborzeckiChipaca: https://github.com/snapcore/snapd/pull/567011:34
mborzeckiChipaca: thanks!11:34
mupPR #5670: daemon, overlord/snapstate: set instance name when installing from snap file <Parallel installs> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5670>11:34
pedronismborzecki: it's a bit problematic because some buggy code in a corner doesn't undo the current op, it kills snapd11:40
pedronisbut making Set return an error is a huge change11:40
mborzeckipedronis: yeah, that's what i'm afraid of, either way it's no good :/11:41
pedronismborzecki: otoh I don't think we have a ton of non-test places using Set11:41
pedronisyou might just do it one level up or have a wrapping helper11:42
mborzeckipedronis: the reason i added it is that in the tests it's easy to do .Set(.., "foo_bar", ..) and forget to set InstanceKey in SnapState11:42
mborzeckipedronis: MustSet?11:42
pedronisI see, for tests11:43
pedronisthat is a big change too11:43
mborzeckipedronis: ok, let me drop it for now11:43
mupPR snapd#5693 closed: overlord/snapstate: verify SnapState name matches instance key <Parallel installs> <Simple> <Created by bboozzoo> <Closed by bboozzoo> <https://github.com/snapcore/snapd/pull/5693>11:45
pedronismborzecki: an approach would be some kind of global flag we set in tests11:51
mborzeckipedronis: right, that would work, i saw some test only flags/ifs inside the code, so the precedent is set11:52
Facuhi all!11:54
Facumay it be that snap is restarting my lxd? I have this in my /var/log/syslog: http://linkode.org/#UkaWdFxuTwqJTFFc3UqLW511:54
Facuin that log, snap is telling that some of my snaps have no update available, but for lxd it doesn't say that, and some seconds later lxd is stopped11:55
mborzeckizyga: hah, layout test recovery has to be improved little, it leaves garbage behind, jut had tests/main/layout fail because tests/main/parallel-install-layout left the /etc/* symlinks11:56
zygamborzecki: yeah, that's the (existing) bug I mentioned11:57
mborzeckimhm11:57
mborzeckizyga: the trespassing thing, something i could help you with?11:58
zygayes, I have a branch that we need to go back to11:58
zygaI got stuck on the precise algorithm there (after loads of attempts)11:58
zygawe can talk about that today11:58
mborzeckizyga: i remember the reviewing some checkers for this11:58
zygayeah, a lot of the preceding helpers landed but the "meat" did not11:59
mborzeckisounds familiar :)11:59
pedronismvo: I saw you updated the roadmap, there is still some mistyped "topic"   in the 2.34 bits12:05
=== pstolowski is now known as pstolowski|lunch
mupPR snapd#5694 opened: tests/main/layout: cleanup after the test <Simple> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5694>12:12
mborzeckizyga: ^^12:12
zygayeah, +112:13
zygaodd - we had that before12:13
zygamust have been lost in some PR12:13
zygaI remember that all of the trespassing PRs (the full blown versions that didn't land) removed that part12:14
mborzeckiyeah, btw. cachio__ tracking of tests that executed before came in handy :)12:14
ackkhi, I'm trynig to implement a configure hook for a snap, but I get "snapctl: not found" when I run "snapctl get <something>" in the hook script12:15
cachio__mborzecki, :)12:15
ackkdo I need special permissions for the snap to do that?12:15
ograFacu, better start a forum thread ... (see channel topic)12:16
Facuogra, ack, thanks12:18
mupPR snapd#5684 closed: cmd/snap: create snap user directory when running parallel installed snaps <Parallel installs> <Simple> <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/5684>12:29
zygamvo: any luck?12:30
GargoyleHi all. All my snaps have stopped working - is this likely to be related to giving kernel 4.18 a spin (I can't think of anything else I have done). "snap list" shows them all, but none of them work. lxd, discord, postman. It's as though they are just not on the system.12:31
zygaGargoyle: hey, can you provide some more details? what does snap version show?12:33
mvopedronis: thanks, will fix the ypos12:33
mvopedronis: *cough* typos12:33
pedronismvo: not the most important thing but I see them :)12:33
mvozyga: no luck, lunch and tea and then12:34
zygak12:34
mvopedronis: yeah, thanks for noticing!12:34
mvoChipaca: did you work on the http-proxy stuff? or just store proxy?12:34
Chipacamvo: I just set up postgres and the store proxy to get the assertions and see if it actually worked (it did)12:34
mvoChipaca: great12:35
Chipacamvo: I also set http-proxy and confirmed it did not work12:35
mvoChipaca: thanks for doing this!12:35
mvoChipaca: I am looking into making http-proxy actually work12:35
Gargoylezyga: https://paste.ubuntu.com/p/qFcJvTKx5Z/, I've also tried "snap remove postman" and "snap install postman" which seemed to run the installation fine, but can't launch "postman" from gnome or command line.12:35
Chipacamvo: if in classic, and it's set, it overrides environ?12:35
zygaGargoyle: how did you install the 4.18 kernel?12:35
mvoChipaca: I would assume so, going from most generic to most specific12:35
zygaperhaps there's an issue with that kernel and snap confinement12:36
Chipacamvo: can I bother you for a +1/-1 on #5689 ?12:36
Chipacamvo: (you already looked at it)12:36
mupPR #5689: many: move Uname to osutil, for more DRY and easier porting <Created by chipaca> <https://github.com/snapcore/snapd/pull/5689>12:36
Gargoylezyga: From the .deb files on http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.18.3/12:36
zygaI see12:36
mvoChipaca: we could also warn12:36
zygaGargoyle: I can give that a spin12:36
mvoChipaca: sure, looking12:36
Chipacamvo: thanks12:36
mvoChipaca: you stole all the comments ;) or it would be approved already12:37
Chipacamvo: I put 'em back :-D12:37
* mvo stops being silly and looks at the code12:37
Gargoylezyga: Cool. I had nvidia drivers and virtualbox installed, so I removed those first and re-installed later. Everything else seems to be working a-ok.12:38
zygaGargoyle: do you have any apparmor denials?12:38
zygawhat does snap debug sandbox-features # shows12:38
zyga(apparmor denials can be checked with: dmesg | grep DENIED12:39
Chipacamvo: \o/12:39
mupPR snapd#5689 closed: many: move Uname to osutil, for more DRY and easier porting <Created by chipaca> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5689>12:39
Gargoylezyga: https://paste.ubuntu.com/p/z6xX3vwGKT/12:40
GargoyleSnap core denied... that's probably not good!? :/12:41
mupPR snapd#5695 opened: osutil/sys: small tweaks to let it build on darwin <Created by chipaca> <https://github.com/snapcore/snapd/pull/5695>12:41
zygammm12:41
zygaGargoyle: I think I've seen this, it looked like a bug in the latest kernel12:42
zygajdstrand, jjohansen1: ^ do you guys remember if the ptrace(read) issue turned out to be a kernel bug?12:42
mvozyga: hm, we have no notion of "optional" things to mount into a mount namespace right now? i.e. if /var/lib/extrausers exists, mount otherswise no error?12:44
mvozyga: mind if I add it?12:44
zygamvo: we do now (almost, just needs an ack from jdstrand)12:44
zygamvo: look athttps://github.com/snapcore/snapd/pull/530712:44
mupPR #5307: cmd,interfaces,tests: add /mnt to removable-media interface <Created by zyga> <https://github.com/snapcore/snapd/pull/5307>12:44
zygaonce that lands we can use this feature12:44
* zyga goes and fixes garbage in that PR12:46
zygabrb12:48
mvozyga: cool, I will base my PR on yours then12:49
mupPR snapd#5696 opened: interfaces/builtin/opengl.go: add additional cuda bits to opengl <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/5696>12:51
Gargoylebrb, reboot (reverting to 4.15)12:58
=== pstolowski|lunch is now known as pstolowski
morphisChipaca: hm, let me have a look13:00
morphisChipaca: no, sure. I don't see any reason for it to use SIGUSR113:01
Gargoylezyga: All working fine again back on 4.15.13:01
Chipacamorphis: ok, thank you13:01
zygaGargoyle: ack13:02
zygamvo: ack13:02
mborzeckistore hiccup?13:06
mupPR snapd#5690 closed: Add an error code for Polkit auth cancels <Created by robert-ancell> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5690>13:23
zygamvo: do you know more about the details of the core18 mount issue that cachio mentioned?13:24
sergiusensChipaca: does the latest snapd in beta now default to setting the snaps in /var/lib/snapd/snaps to 600?13:27
Chipacasergiusens: yes13:28
sergiusensChipaca: this unfortunately breaks snap install snapcraft ....; mkdir project; cd project; snapcraft init; /snap/bin/snapcraft cleanbuild13:28
Chipacasergiusens: <3 you're using beta!13:29
sergiusensChipaca: not me... I got burned by beta already :-P13:29
Chipacasergiusens: boo :-(13:29
sergiusensnot on my main machine at least, I rely on too many snaps to get my work done that if anything breaks I would need to use my cellphone until I bring back my computer from backup13:30
sergiusensChipaca: how many snaps do you rely on for day to day work ;-)13:30
mborzeckidamn, was looking for bugs in snapstate.refreshCandidate(), found i'm not setting parallel-instances feature flag13:30
popeyi too have been burned this morning by this13:31
popeyshould I refresh core to stable, or something else?13:33
Chipacasergiusens: ~5 :-)13:34
sergiusensChipaca: my only installed browser and code editor are from snaps :-)13:34
popeyevery application i have open is a snap13:35
Chipacasergiusens: popey: you're awesome13:37
jdstrandzyga (cc mvo and Gargoyle): it was a kernel *fix*13:44
zygajdstrand: I see, is it upstream now?13:44
jdstrandGargoyle: if you update to snapd 2.35, it will work13:45
Gargoyleahh. OK. Thanks.13:45
jdstrandzyga: is what upstream? the kernel fix? yes, it is in 4.18. there is a fix for this in snapd 2.35 already. there is additional work to only add the trace rule conditionally, but that needs kernel upstreaming (but is not a problem for snapd, it is just hardening)13:46
zygaok13:47
jdstrandhttps://forum.snapcraft.io/t/snaps-are-not-working-with-linux-kernel-v4-18-rc/6708/313:47
mborzeckigoing to pick up the car, bbl13:55
Chipacahttps://www.reddit.com/r/Ubuntu/comments/992mcd/help_snaps_are_using_all_my_data/ fwiw14:15
* Chipaca pushes a "EAT MORE DATA" PR14:15
pstolowskiso, re system snap name - hotplug needs to know where to attach hotplug slots to; there needs to be one authoritative helper that does return snapinfo for the system i think. what kind of logic do we need for that, should these slots live on "snapd" snap if available?14:32
Chipacasergiusens: so, about files being 0600, what can we do?14:35
Chipacasergiusens: you were there when we decided to do this :-)14:35
sergiusensChipaca: the alternatives are: break everything, wait on the release until we add logic for this or revert the change14:36
sergiusensChipaca: yes, but the when was not decided :-)14:36
sergiusensChipaca: I was also there when we decided on the first version of epochs, it lives in snapcraft to this date ;-)14:36
Chipacasergiusens: it really sounds like you're asking for a waterfall process with deliverables and stuff which ain't gonna happen14:37
Chipaca:-)14:37
Chipacasergiusens: hold on14:37
Chipacasergiusens: this came about because, in _some_ situations, files were already 060014:37
sergiusensyes, the ones with x14:37
Chipacasergiusens: so you already have a workaround for those?14:38
sergiusensso, snaps with no assertions14:38
sergiusensyes, if the revision starts with x, sudo comes into play14:38
Chipacaah14:38
Chipacasergiusens: given the alternatives, we need to involve mvo and niemeyer14:39
zygapstolowski: I'm going for lunch now, sorry; took a break to sync with family14:39
=== chihchun is now known as chihchun_afk
Chipacasergiusens: so, a proposal14:43
Chipacasergiusens: as a temp fix, make it always use sudo for that step (I'd like to see how it uses sudo, just in case)14:44
Chipacasergiusens: then, maybe in 2.36 we can add something that lets you stream the snapfile given some constraints14:45
Chipacasergiusens: how does that sound?14:45
sergiusensChipaca: all the new code is already resilient, it is this old stuff, which everyone uses that will break14:46
sergiusensrequesting sudo for non corner case will suck though14:46
Chipacasergiusens: what's the code that does this?14:48
sergiusensChipaca: it still begs the question, will you wait until that makes it into general availability?14:48
Chipacasergiusens: I am not the one that decides that14:48
Chipacaah, found the code14:49
sergiusensChipaca: https://github.com/snapcore/snapcraft/blob/master/snapcraft/internal/lxd/_containerbuild.py#L34514:50
Chipacahmm14:53
Chipacasergiusens: when I run snapcraft from master things just worked14:53
Chipacasergiusens: what's the snap doing differently?14:53
sergiusensChipaca: injection is when running from the snapcraft snap14:53
Chipacaah, i guess that's common.is_snap() == False and the other path14:53
Chipacasergiusens: unrelated question about this code14:54
Chipacasergiusens: I see the watch for auto-refresh, but i don't see the refresh.hold; is that done?14:54
sergiusensChipaca: for the new code14:56
mborzeckire14:57
Chipacamborzecki: wb14:57
sergiusensChipaca: https://github.com/snapcore/snapcraft/blob/master/snapcraft/internal/build_providers/_snap.py#L26314:57
Chipacamborzecki: do you remember if we check metered for the catalog refresh?14:57
sergiusensI asked you to look at the PR 2 weeks ago :-)14:57
mborzeckiChipaca: we probably don't14:58
Chipacasergiusens: does it still need a look?14:59
sergiusensit is already in master, but yeah, a look never hurts14:59
Chipacasergiusens: but the _containerbuild.py does not do/use that/14:59
Chipaca?14:59
mupPR snapd#5670 closed: daemon, overlord/snapstate: set instance name when installing from snap file <Parallel installs> <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/5670>14:59
sergiusensChipaca: it does not, I can point release that in the future15:00
cachiomvo, should I run sru for 2.35 after beta validation?15:01
Chipacamvo: note sergiusens says we might want to hold off on 2.35 until snapcraft is ready for it15:02
Chipacasergiusens: getting back to containerbuild, why would using sudo suck that much?15:03
mvocachio: yeah, that wouldbe great. is it accepted into -proposed yet? if not we need to ask apw to have a look if snapd can go into -proposed15:04
sergiusensChipaca: because it previously was not requested, that's all15:04
mvoChipaca: oh, tell me more please15:04
sergiusensChipaca: I will work on a fix15:04
Chipacamvo: the 0600 snaps means 'snapcraft cleanbuild' fails for snapped snapcraft15:04
mvook, when does snapcraft plan to push the update?15:05
Chipacamvo: we were still discussing what to do about it15:05
sergiusensmvo: we need to write a fix first15:05
mvosergiusens: heh, ok15:05
Chipacamvo: I flagged you and niemeyer above, but it's just been the two of us15:05
mvosergiusens: sorry, i missed that15:05
mvosergiusens: this sounds like its a couple of days away? with qa and pushing a new release and all that?15:05
Chipacamvo: the easy fix sucks for users15:06
mvoyeah15:06
mvosudo is not great15:06
Chipacato be clear, it was already using sudo before, just in more cornery-cases (sideloaded files were already 0600)15:06
sergiusensmvo: provided that I have been running adt to push a new snapcraft for a week and just did dput I am not so confident15:06
sergiusensbut yeah, as soon as possible15:07
Chipacamvo: and then the question is, what can snapd do to make it better15:07
cachiomvo, sure, I'll try to promote to candidate 2.35 today and then I'll start with thtat15:07
niemeyersergiusens, Chipaca: How about using download?15:07
mvosergiusens: I share the adt pain15:08
mvosergiusens: but yeah, that sounds unfortuante, maybe we need to remove this change on our side and re-add on 2.3615:08
mvocachio: thank you!15:08
Gargoylejdstrand: Will 2.35 be made available via standard packages for 18.04, or do you have to add a ppa to get the latest version?15:08
sergiusensniemeyer: I will try download first, it will remove the possibility to inject the currently sideloaded snap (if it existed) but would solve the greater use case15:09
niemeyersergiusens: Not necessarily15:09
niemeyersergiusens: But possibly, at least for now15:10
niemeyersergiusens: I really hope we can stop special casing the "snap download" command.. it's only caused us pain15:10
niemeyersergiusens: When that happens, we can make "snap download" pick up content from the cache.. that's already done for internal operations15:11
sergiusensniemeyer: oh, I am not asking for that :-)15:11
niemeyersergiusens: Right, I'm the one suggesting it...15:11
sergiusensniemeyer: 👍15:12
sergiusensI will work on a fix and get a review from Chipaca15:12
ChipacaI'll make sure to forget to review it15:12
zygaPharaoh_Atem: hey15:12
zygaPharaoh_Atem: I think we need your help15:12
=== JanC_ is now known as JanC
=== chihchun_afk is now known as chihchun
mupPR snapd#5413 closed: tests: purge packages installed by accounts, calendar, and contacts interface tests <Created by jhenstridge> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/5413>15:56
mupPR snapd#5697 opened: overlord/snapstate: fix UpdateMany() to work with parallel instances <Parallel installs> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5697>16:01
mborzeckipedronis: ^^16:01
pedronismborzecki: thanks, I will look at it tomorrow16:02
mborzeckipedronis: great, thank you!16:02
=== pstolowski is now known as pstolowski|afk
jdstrandGargoyle: it will be made available to 18.04, but since you are on Ubuntu, you can simply do: sudo snap refresh core --beta16:15
zyganiemeyer: hey, could you please refresh spread the snap to the current release please?16:31
Chipacaniemeyer: i'm missing something wrt patch sublevels i'm afraid16:32
Chipacaniemeyer: if a user refreshes from pre-sublevels to a revno with sublevels, and then goes back, what makes the sublevel patch run again when they come back back?16:33
ograwhee !16:38
ograi actually managed to get my wmx gui session into a confined state !16:38
pedronisChipaca: we need a breaking patch to introduce them? :/16:39
Chipacaogra: does your gui have a red button that says 'exec' on it16:40
ograjdstrand, i'd appreciate if you could unleash wmx-kiosk-session in the snap store ... its another Xwayland snap that uses the loopback x11 setup (similar to xdmcp-client) and got stuck in review16:40
pedronisChipaca: or maybe not breaking, but a release that just reset them on start16:40
Chipacapedronis: we could also edit the patchlevel on exit16:41
Chipacapedronis: i mean, on downgrade, it's  snapd doing the downgrade16:41
pedronisbut we don't easily know the patchlevel of the old thing16:42
ograChipaca, https://imgur.com/a/HuXpmJh16:42
ograno red16:42
Chipacaogra: http://okcancel.com/comic/4.html16:42
ogra(but i could add some red ... :) )16:42
ogralol ... i love the kill -9 in green :)16:43
=== chihchun is now known as chihchun_afk
mvoChipaca: an early sniff test of https://github.com/snapcore/snapd/compare/master...mvo5:use-proxy-conf?expand=1 would be great, I will expand and add tests, also ideas where the proxy handler should life would be great (maybe the place is ok)16:58
mvoChipaca: hey, disconnected, sorry. did you get my earlier message17:06
Chipacamvo: I got it but I hadn't seen it17:07
Chipacamvo: looking now17:07
mvoChipaca: thanks, no worris17:09
Chipacamvo: that looks nice17:10
mvoChipaca: yeah, I'm not sure where proxyHelper should live but beside that it just needs some polish and should be good to go17:10
Chipacamvo: ttfn! see you tuesday!17:26
jdstrandogra: ok17:26
niemeyerchihchun_afk: Reviewed the PR>. not sure if it clarifies your question17:26
niemeyerchihchun_afk: Sorry.. wrong nick17:27
ograpopey, now confined and shipping all basic x11 apps in the snap https://imgur.com/a/s47MQOw17:28
ogra(though you can indeed not use "snap run" anymore with that)17:28
ogra(unless you explicitly switch to --devmode)17:28
Pharaoh_Atemzyga: wut, what?17:38
zygaPharaoh_Atem: there are some selinux issues with socket activation of services installed from snaps17:38
zygaPharaoh_Atem: do you have some time to look into that?17:38
Pharaoh_Atemnot right now17:38
niemeyersergiusens: What happened here:17:38
Pharaoh_AtemI'm really compressed and I'm trying to squeeze time to update snapd right now17:39
niemeyerhttps://www.irccloud.com/pastebin/dPnQNNkp/output.txt17:39
Pharaoh_Atemzyga: I suspect that this is the consequence of not generating policies here17:39
niemeyersergiusens: This snap get command doesn't make much sense...17:39
Pharaoh_Atemthe socket path used isn't covered in the domain of snappy run applications and services17:39
niemeyersergiusens: This was the snapcraft.yaml I've been using since I started packing spread as a snap17:39
zygaPharaoh_Atem: mmm17:39
Pharaoh_Atembecause properly packaged lxd works fine17:40
niemeyersergiusens: The plugin can't be much simpler than this:17:40
Pharaoh_Atemas the SELinux policy for container runtimes already supports LXD when built and installed normally17:40
niemeyerhttps://www.irccloud.com/pastebin/CltIdxY9/17:40
niemeyerSorry, I mean the part17:40
Pharaoh_Atemthe fact that no one upstream is interested in bringing LXD to Fedora as a native package is beside the point, though17:40
zygaPharaoh_Atem: is there something that needs to happen in the snapd policy or is this something to correct in the main policy?17:41
Pharaoh_Atemzyga: I'm not sure17:41
Pharaoh_Atemdo we have a strict rule about where sockets are created for snapped services?17:41
sergiusensniemeyer: that does indeed look correct, we have not made any changes as of late to any of this.17:41
Pharaoh_Atemand the other question, how do we enforce the label being set?17:41
zygaPharaoh_Atem: I don't know17:42
niemeyersergiusens: Weird.. I wonder what's going on.. the command there makes little sense17:42
Pharaoh_Atemzyga: without answers to these things, this is going to be very hard17:42
niemeyer2.41 shows the same error17:42
zygamm17:42
sergiusensniemeyer: can you point me to the full repo?17:43
niemeyersergiusens: https://github.com/snapcore/spread/17:43
niemeyersergiusens: Woah17:50
niemeyersergiusens: There's apparently a serious bug there.. It seems to be getting the local source instead of checking out the remote package17:51
sergiusensniemeyer: paste.ubuntu.com/p/DTK8DxVXZ6/ the problem is related the fact that source is implicit and defaults to "." (I have made it explicit in that diff). It is one of the things I wanted to bring up as a requirement with the move to bases. The next entry is since the source is not in a fully qualified import path,we need a way to know where it lives. If we removed the implicit source, your snapcraft.yaml will work collocated in there17:51
niemeyersergiusens: This snapcraft.yaml worked...17:52
niemeyersergiusens: Which means something changed in a breaking way17:52
sergiusensniemeyer: that implicit source has been there for over two years, so the only thing I can think of is that it was collocated with the source just recently17:52
niemeyersergiusens: Well, maybe I'm just crazy then, and it has been doing something other than what I assumed since forever17:53
niemeyerWhich is a real possibility17:53
sergiusensthis is on my list of things to fix without breaking the older plugins for a while now17:53
sergiusensfwiw, I do not like this behavior of implicit source17:54
niemeyersergiusens: I can see how it's nice when that's what you want, on something simple17:54
niemeyersergiusens: But this particular case makes it error prone because we _seem_ to request a particular URL, but not really17:55
sergiusensniemeyer: but it leads to confusing things like this, we have also had the same comment from people using npm and yarn17:55
niemeyerYeah17:56
sergiusensniemeyer: I'll write up a proposal on the forum for the behavior and send your way17:58
niemeyersergiusens: Thanks!18:02
zygasuccess! spread works for me again18:08
zygaman, I need to figure out why now18:08
niemeyerzyga: You got it18:08
niemeyerspread, that is18:08
niemeyerpstolowski|afk: And you got a review for the patch sublevel PR, but you're rightfully out of here already18:09
niemeyerAs should I be18:09
niemeyerIn fact, here I go.. o/18:10
zyganiemeyer: thank you! I'll give it a try after this run18:14
zyganiemeyer: I was trying to get locally built copy to work18:14
zygamvo: hey, still around\18:15
zygamvo: I just wanted to comment about the extrausers topic18:16
zygamvo: if you are around, I'd love to share that thought that I had during the standup18:16
mispphey all, a question if i may. is it possible to define which g++ and which qt5 version is used when building snaps?18:18
zygamispp: I believe that you can craft a makefile and define CC and CXX and just use that18:19
zygamispp: snaps are not opinionated and snapcraft allows for a lot of flexibility18:19
misppwell, i can build snap on my own box with ubuntu 18.04, works perfectly18:19
zygamispp: you just need enough of the dependencies to use that compiler18:20
misppbut now i'm trying to set up build.snapcraft.io18:20
misppto pull directly from github18:20
misppand it fails probalby because of the same reason why "snapcraft cleanbuild" fails - too old g++/qt518:20
zygamispp: because on your 18.04 machine you are using your local tools for building; snapcraft builder uses a virtual machine or a container with ubuntu 16.04 there18:20
zygamispp: as a simple answer you will be able to use core18 instead of core16 (aka core) to use the more recent toolchain18:21
misppalright, googling18:22
zygamispp: please try core18 instead, I personally haven't used snapcraft for building apps against core18 (I use hand-crafted tools because we are building things before the other tools are ready),18:22
zygamispp: try just adding "base: core18"18:22
zygamispp: I don't know if that is supported end-to-end18:22
zygamispp: but that declaration conveys multiple things: that the application will run against a ubuntu 18.04-based runtime18:23
zygaand that the application should be _built_ against such environment as well18:23
misppthanks for the concerns, but this is still development what i'm trying18:24
misppso even if it doesnt work, no harm done18:24
ogranote though that nothing binds you to any ubuntu release thoug, you can craft a snapcraft.yaml that even builds a toolchain, compiler and Qt from soucre if you want18:25
misppi'm not that skilled that i can pull this off, so i'd rather try core18 if it works18:25
misppwhere can i find this in docu?18:26
popeyogra: nice!18:26
ogra(it surely is a lot effort and will massively increase build time, but snapcraft is flexible enough that you can build all bits you want to ship from source)18:26
zygamispp: not sure, sorry, being on the front lines is not doesn't give me the right perspective18:27
zygamispp: just put "base: core18" into your snapcraft yaml and build that18:28
zygaI'm going for a bike ride while it's not pitch black18:28
zygabbl18:28
mvozyga: I'm around18:29
mupPR snapd#5695 closed: osutil/sys: small tweaks to let it build on darwin <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/5695>18:45
mupPR snapd#5698 opened: osutil: reorg and stub out things to get it building on darwin <Created by chipaca> <https://github.com/snapcore/snapd/pull/5698>18:46
misppcore18 doesnt work, still uses old toolchain18:54
misppalso ... error: cannot find app "goat" in "goat"19:06
misppi guess apps part was missing19:09
mupPR snapd#5699 opened: overlord,store: support proxy settings internally too <Created by mvo5> <https://github.com/snapcore/snapd/pull/5699>19:28
misppcannot perform readlinkat() on the mount namespace file descriptor of the init process: Permission denied19:30
misppwhat's this about?19:30
=== kirkland is now known as Guest25977
=== chihchun_afk is now known as chihchun
zygare20:28
zygamispp: are you on 4.18?20:28
zygamispp: I believe this is one of the bugs that is fixed in mainline / snapd 2.3520:28
=== AdmWiggin is now known as tianon
=== cjwatson_ is now known as cjwatson
kyrofazyga, snapd supports automatically starting snap apps on login, right? Do we have docs for that?22:10
kyrofaAll I see is https://forum.snapcraft.io/t/how-to-autostart-a-snap-of-a-desktop-application/2449/33, which pretty much tells me nothing22:11

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