/srv/irclogs.ubuntu.com/2016/05/23/#snappy.txt

=== devil is now known as Guest63080
=== Guest63080 is now known as devil_
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
zygagood morning08:19
davidcalleMorning zyga08:20
zygadavidcalle: hey :-)08:20
=== vrruiz_ is now known as rvr
OsakaFoocan I access the snappy store from the web?09:58
ogra_there is an API09:59
=== chihchun is now known as chihchun_afk
ogra_but no official webpage .... there is also a community webpage that uses the API at http://uappexplorer.com09:59
ogra_there you can filter for snaps too09:59
OsakaFoooh yeah10:02
OsakaFoothanks10:02
OsakaFoois it possible to run snaps on ubuntu-touch?10:03
ogra_not yet, no10:03
OsakaFoowill that be the future?10:04
ogra_yes10:04
ogra_but that reqquires the phones tofirst switch to 16.04 and a systemd base10:04
OsakaFoonice10:05
=== chihchun_afk is now known as chihchun
=== alex-abreu is now known as alex-abreu|off
bencccan I do hot-code upgrade of a package?12:54
benccI want to package an erlang release12:54
benccerlang let you upgrade the code in a running system12:54
zygabencc: how would that work in practice?12:57
zygabencc: ship a new snap but not restart services?12:57
zygabencc: but instead do *something* (not sure what yet)12:57
bencczyga: in erlang you upload the new version of the code and tell the VM to 'replace' the old code with the new code12:59
benccerlang is smart to not stop running processes (Erlang processes) but use the new version in the next run13:00
bencczyga: nginx let's you update the deb package without restarting the daeomn13:01
bencchow does a normal snap update work?13:02
zygabencc: interesting13:08
zygabencc: seems like lisp image in many ways13:08
zygabencc: currently snapd would restart the servies13:09
zygabencc: but we could think of how to support that13:09
zygabencc: can you please open a bug on launchpad.net/snappy and describe this13:09
sergiusensgood morning everyone!13:09
bencczyga: sure13:10
bencczyga: are there docs on refreshing/upgrading a daemon?13:10
benccI can't find it on google13:10
kyrofaMorning sergiusens!13:10
zygabencc: I think it might be possible but it would be interested to know all the edge cases13:10
bencchow do you upgrade a running webserver like nginx?13:10
benccif hot upgrade is not supported now I'll have to wait for ubuntu 16.10 or later?13:11
zygabencc: right now, we just install a new snap, activate it (make all the systemd units and security bits) and then we stop/start services13:11
zygabencc: but I do see that it would be great if we could, in certain cases, optimize the restart to "reload" that perhaps doesn't kill the processes or induces downtime13:12
zygabencc: perhaps once we have hook support we could do that13:12
zygabencc: a specific hook could be called on upgrade to tell us if services need to be restarted the hard way13:13
benccok13:13
zygabencc: and if not, the hook could do whatever is needed to do a "soft" restart13:13
zygabencc: would that be sensible in this case?13:13
benccI think so13:13
zygagreat, let's please include this conversation in the bug report13:14
zygaThanks!13:14
benccin a deb package I'm using the postinst script13:14
benccIf the erlang server is running, I'm asking it to do hot-code upgrade from the command line13:15
benccif it's not running I'm doing normal installation13:15
niemeyer_jdstrand, tyhicks: Any news on the environ setting issue?13:16
bencczyga: do I need to explain about erlang in the bug report?13:17
benccit seems that it's a general use case. nginx will need the same as erlang app right?13:18
zygabencc: it'd be best13:18
benccok13:18
zygabencc: less assumptions about what the readers will understand about erlang13:18
zygabencc: yes, I think the generic no-downtime support would be an amazing thing to have13:18
jdstrandniemeyer_: tyhicks is looking into it. He'll be online in a bit13:19
zygajdstrand: hey, you may want to start looking at https://code.launchpad.net/~zyga/ubuntu-core-launcher/snap-run13:19
zygajdstrand: right now nothing interesting but I plan to change how snap-run looks on command line13:20
zyga(more than so far)13:20
benccI can use snaps on ubuntu server 16.04. no need for ubuntu core, right?13:20
kyrofabencc, indeed13:20
kyrofa(or desktop)13:20
zygabencc: yes, on any ubuntu really :)13:21
benccnice13:22
niemeyer_zyga: It's a bit tricky to be effective at "start looking" :)13:26
niemeyer_zyga: If you have changes for it, please push them for review as usual and ask jdstrand for a review before landing13:27
niemeyer_zyga: We can do that after moving to GH13:27
niemeyer_zyga: But let's move the pristine code, unchanged13:27
niemeyer_zyga: and have reviews just as usual13:28
bencczyga: https://bugs.launchpad.net/snappy/+bug/158477913:28
ubottuLaunchpad bug 1584779 in Snappy "Upgrade a running snap without restarting it" [Undecided,New]13:28
benccthanks13:28
niemeyer_jdstrand: Thanks.. this is rolling for a while, and I'm wondering if we have an ETA13:28
jdstrandI can't say exactly-- I've not been involved in that. I can say there is an apparmor patch and iirc it was 'almost ready'. tyhicks will be online in 30 minutes or so13:29
zygajdstrand: https://github.com/ubuntu-core/snap-run/pull/1/files13:34
zyganiemeyer_: ack, done right now13:35
=== chihchun is now known as chihchun_afk
niemeyer_jdstrand: Thanks, will catch up with Tyler13:52
niemeyer_jdstrand: When you have a moment, can you have a look at https://github.com/ubuntu-core/snappy/pull/120113:53
zygaslangasek: hey, did you propose a pull request to snappy, for os-release support?13:59
tyhicksniemeyer_: I'm getting very close to having the patchset done to disable env scrubbing14:25
tyhicksniemeyer_: should be done in the first half of this week (and then we'll need an SRU)14:25
niemeyer_tyhicks: Sweet!14:29
zygajdstrand: hey, what does reload/load the profile for ubuntu-core-launcher itself14:29
zygajdstrand: I just realized that is is apparently nothing in the package14:29
zygajdstrand: ah, /etc/apparmor.d/usr.bin.ubuntu-core-launcher is a conffile14:32
zygajdstrand: bummer :)14:32
zygamvo: how do I remove a conffile from a maintainer script with as little pain as I can?14:33
mvozyga: dpkg-maintscript-helper rm_conffile /path/ last-version14:34
zygamvo: thank you14:35
abeatohey, is there any equivalent to the old "snapcraft shell" these days?14:45
ogra_nope14:45
ogra_(you mean "snappy shell" i guess)14:46
ogra_use a classic ubuntu install for now (it will come back)14:46
zygaabeato: if you want I can give you a quick "gimme classic" shell script that works fairly well14:48
zygaabeato: I'm sure we'll get proper classic support later on but this is just something that keeps people going14:49
abeatozyga, that would be great to have :)14:49
zygaabeato: in a moment, just in a meeting14:49
abeato(the script)14:49
abeatosure, thanks14:53
ogra_mvo, so you want the delta shipped *inside* t3eh os snap ? not as a separate tarball ?15:02
mvoogra_: yeah, that was the idea, if its too huge it does not make sense, but lets try it, the nice property of this is that "classic.enable" will work everytime without network15:03
ogra_yeah, neat ! never thought of it that way15:04
slangasekzyga: yes I did, why?15:07
mvoogra_: its also super nice because we don't need to keep the two parts in sync (base-os and delta), its natually in sync. but yeah, if its too huge we need to rethink it but I am keen to try it15:09
ogra_yeah, cant realyl be much15:10
Trevinhojdstrand: hey, can I use strace when not in --dev-mode to check what's wrong?15:23
Trevinhojdstrand: currently I'm getting a bad system call error15:23
zygaslangasek: ah, we were just checking if that's you or someone else15:23
zygaslangasek: thanks for confirming that15:23
zygaabeato: soon :)15:23
zygaabeato: testing now15:23
Trevinhoype=1326 audit(1464016887.003:654): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=16474 comm="strace" exe="/snap/electron-quick-start/100001/usr/bin/strace" sig=31 arch=c000003e syscall=101 compat=0 ip=0x7fec3323356e code=0x015:23
zygajdstrand: how does the ubuntu-core-launcher apparmor profile get compiled and applied on install?15:23
slangasekzyga: ah, heh :)15:24
ogra_Trevinho, run "scmp_sys_resolver 101"15:24
ogra_(on your snappy install)15:24
ogra_that will tell you which syscal was blocked15:25
Trevinhoogra_: that needs devmode though15:25
ogra_scmp_sys_resolver doesnt need dev mode15:25
ogra_and the blocking should be listed in syslog15:25
abeatozyga, ack, nw ;)15:26
Trevinhoogra_:  scmp_sys_resolver 10115:26
Trevinhobash: /usr/bin/scmp_sys_resolver: Permission denied15:26
Trevinhothis is in a bash launched from a script inside snappy15:26
ogra_oh15:26
ogra_i was talking about a bare ssh shell15:26
ogra_(but i assume yiou are on a desktop machine, sorry, that didnt strike me)15:27
Trevinhoyeah, this is runing ain a VM, but yeah15:27
jdstrandTrevinho: you can't run strace from within a snap cause it needs ptrace. you can also install 'snappy-debug' then run 'sudo snappy-debug.security scanlog' and it will resolve the syscall for you15:29
jdstrandor just use scmp_sys_resolver from outside the snap on a device of the same architecture15:29
Trevinhojdstrand: it's ptrace yeah15:29
Trevinhoouch... I'm getting the error snap has changes in progress... And I can't remove it :o15:32
Trevinhowhat's happening15:32
Trevinhoogra_: do you happen to know how to fix that? ^15:37
Trevinho(it's in yakkety)15:37
TrevinhoI can't either use gdb... As syscall 135 (personality) get blocked15:43
sergiusenszyga mind if I create a storeapi project on gh?15:53
sergiusenszyga should I take over https://github.com/ubuntu-core/snapcraft/pull/503 ?16:10
zygasergiusens: not at all, let's do it16:11
zygasergiusens: looking16:11
zygasergiusens: yes, please, I didn't notice that feedback at all, I have a backlog of email to read16:11
zygasergiusens: and thank you!16:11
sergiusenszyga sure thing, ping me if you have any questions16:12
zygasergiusens: thanks16:12
sergiusenszyga well thanks for contributing to snapcraft ;-)16:12
zygajdstrand: quick question: canbus, should we allow it in the network/network-bind interface or should we have a canbus=yes attribute or a dedicated canbus-network canbus-network-bind interfaces or something entirely different?16:12
zygajdstrand: canbus is just a socket FYI16:13
Trevinhomh, jdstrand you remember that electron hang (when unconfined), right... Not sure I'm debugging it well, but here's where it hangs http://paste.ubuntu.com/16635698/ To my eyes it doesn't say much though... As probably it's just stracing the sh launcher16:14
zygajdstrand: though I may have a partial picture: there seem to be two ways to talk to the driver (network iface and character device)16:14
ogra_Trevinho, that broken lib path looks suspicious16:16
ogra_(misses the arch in the triplet)16:16
Trevinhoah mhm16:17
* Trevinho launching the core-laucnher gives me another issue instead http://pastebin.ubuntu.com/16636006/16:20
kyrofaTrevinho, is the launcher suid root?16:21
jdstrandzyga: I'm not familiar with canbus. I see that apparmor supports it as a domain type. (eg, 'network can,'). we only have coarse-grained mediation at this time (ie, the level I just mentioned)16:21
Trevinhokyrofa: not sure... I've just launched what's inside the generated launcher script16:22
zygajdstrand: thanks16:22
Trevinhoah... I'm getting something new now16:23
Trevinhotype=1326 audit(1464020595.183:187): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=30771 comm="electron" exe="/snap/electron-quick-start/100001/lib/node_modules/electron-prebuilt/dist/electron" sig=31 arch=c000003e syscall=141 compat=0 ip=0x7f23a44194a7 code=0x016:23
Trevinho141 = setpriority16:24
jdstrandzyga: reading only so briefly, this feels like a separate interface. 'network' doesn't convey to me 'Controller Area Network', but maybe others disagree. tyhicks, you may have an opinion16:24
sergiusensTrevinho that should be fixed in whatever is supposed to be released soon I've been told16:24
Trevinhosergiusens: ah, nice16:25
jdstrandTrevinho: yes, I was able to get things running. I thought I mentioned that in a bug/card...16:25
Trevinhojdstrand: mh, maybe I'm not in that card/bug :)16:25
sergiusensjdstrand so what do I need to get the chromium/electron bits?16:25
* sergiusens is just back from holidays and trying to catch up with this fast paced world16:25
zygasergiusens: I'm back from not having a weekend and I feel the same :)16:26
ogra_but you had vampires at least !16:26
* zyga enjoys tasty vampires16:27
zygaraw, not well-made16:27
zyga;)16:27
ogra_but with fresh garlic :)16:27
Trevinhosergiusens: ah, I pinged you couple of times too :), as I'd like to discuss how to integrate quilt (or any other tool that might handle the sources before building) in snapcraft...16:27
zygajdstrand: how can I unload an apparmor profile reliably?16:27
jdstrandsergiusens: 4 things are needed: the ldpreload library as detailed in bug #1577514 for shm, seccomp arg filtering in the launcher which is pending review, once that lands, updates to the policy for setpriority and seeing if we can allow @{PROC}/@{pid}/oom_score_adj in the default policy16:27
ubottubug 1577514 in Snappy "Allow out of the box use of chromium based apps" [Undecided,Confirmed] https://launchpad.net/bugs/157751416:27
jdstrandzyga: apparmor_parser -R /path/to/profile16:27
zygajdstrand: ahh, path to profile16:28
zygaI assumed it was the profile name only16:28
zygais it possible to remove a profile by name?16:28
sergiusensTrevinho we actually don't want something that manages patches. It is essentially a forked code base so it is no different16:28
jdstrandthere is another way via the /sys interface that I always forget16:28
zygajdstrand: I'm trying to remove ubuntu-core-launcher profile16:28
sergiusensquilt is really tied to the packaging world16:28
zygajdstrand: after the upgrade to snap-run16:28
Trevinhosergiusens: it's not the same... Sometimes patch stays there forever, while you don't want to upgrade your fork everytime upstream changes things.16:29
zygajdstrand: (and in general, how is the profile updated on package update?)16:29
Trevinhosergiusens: we had some discussion in https://bugs.launchpad.net/snapcraft/+bug/1551716 and there seems to be general consensus to that16:29
ubottuLaunchpad bug 1551716 in Snapcraft "snapcraft does not allow vendor/platform patching of upstream sources (aka: add patch phase to lifecycle)" [Undecided,New]16:29
beowulfsergiusens: i don't python so forgive me, but i think this would be nice for the nodejs plugin https://github.com/ubuntu-core/snapcraft/pull/50916:30
jdstrandzyga: fyi, I have quite a few open PRs for policy updates related to sdoc. you said to ping you, so I'm pinging you16:30
jdstrandhttps://github.com/ubuntu-core/snappy/pull/119316:30
Trevinhosergiusens: I come up with an hackish quilt build plugin, but it requires some yaml code which is not really so nice.16:30
jdstrandactually, maybe it is just that one16:30
jdstrandmeh, I thought I fixed my procmail...16:30
sergiusensbeowulf I get a 404 there16:31
sergiusensbut happy to look16:31
beowulfsergiusens: github is having service hiccups, it's a pr to add node-engine to yaml, allowing the dev to set which node version the package uses16:32
Trevinhosergiusens: what I expect is also to be able to run some kind of tools to refactor the code before building in a dynamic way... sometimes you need to replace strings or names... and Well, having to keep a fork for that is not really the best thing. When you only want the $latest_upstream_code + $local_customization16:33
jdstrandzyga: yeah, nm. I mean, feel free to look at that gsettings one but unping-- the others all made it and just didn't hit my inbox16:35
zygajdstrand: looking at 119316:42
sergiusensTrevinho a patchset you need to maintain is exactly a fork though16:44
sergiusensTrevinho every time you need to update your upstream you need to reapply the patch on top, it is no different that always doing `git rebase master`16:45
Trevinhosergiusens: it is, but it's different we way we manage it... And this would allow to use the same patcheset for both debian-based distro and for snappy pkgs16:46
sergiusensTrevinho running a tool now is completely different than a patchset, right?16:46
sergiusensTrevinho well, then check my comment on the bug ;-) I am not against adding a debian source package as a valid `source` entry, totally for that fwiw16:46
Trevinhosergiusens: well, the thing is that in the current method, we can just launch snapcraft and get the latest source and the current patchest... If that doesn't apply we can redo it16:46
sergiusensTrevinho I really think you are thinking of this from a packager's point of view; we want our snapcraft.yaml's to essentially live upstream somewhere too16:48
sergiusensbeowulf sounds good, we had that in the pipes; one thing we also need to add is choosing to npm in production mode or dev mode (prod being the default).16:49
Trevinhosergiusens: I know it has to be upstream too... Indeed. But I'd love it to be flexible and thus it to adapt to both scencarios, since we can.16:51
beowulfsergiusens: yes, but you can set that via env so i didn't think it was such an issue16:52
beowulfsergiusens: or does that not work with the plugin?16:52
jdstrandzyga: so, with the change to snap-run, all pending MPs need to be migrated?16:54
zygajdstrand: yep16:55
jdstrandtyhicks: actually, I guess this is changing more-- https://github.com/ubuntu-core/snap-run/pull/1/files should ctually reference snapcore and not ubuntu-core16:56
zygajdstrand: I can help if anyone gets stuck16:56
niemeyer_jdstrand: One more for your review requeue: https://github.com/ubuntu-core/snappy/pull/1202/files16:57
sergiusensbeowulf it does. I am thinking more of something like using builders. I am now sort of wanting to introduce the `environment` keyword for parts as we are doing for `apps`17:02
beowulfsergiusens: right, makes sense17:06
josephtsergiusens: have you considered having a part plugin which could pull parts from repos similar to apps sources?17:28
niemeyer_Is Claudio Andre around here?17:56
niemeyer_jdstrand: ping17:58
sergiusensjosepht apps sources?18:08
jdstrandniemeyer_: hey18:09
niemeyer_jdstrand: Heya18:09
niemeyer_jdstrand: Any further points on the pulseaudio interface or do you think we can merge it now without any bad consequences?18:09
niemeyer_jdstrand: Other than the recording issue we debated already18:10
jdstrandI think it is ok so long as we are pursuing that SRU. lemme double check18:10
jdstrandniemeyer_: ok, policy-wise, it's fine as-is. Note that this is still only for 'classic' which I'm not sure is what you intended for it (perhaps that was another PR...)18:13
jdstrand(snap/implicit.go)18:14
jdstrandI think since this is simple file rules, the policy would work for core too18:15
jdstrandand I know the devices guys have a pulseaudio snap towards the bottom of their list (though, that list is getting shorter and shorter)18:16
jdstrandanyway, I'm not saying we should block on that, just adding some context18:16
niemeyer_jdstrand: Yeah, not ideal, but we shouldn't block on being classic only.. that's the only env we have users ATM, so okay for the time being18:18
niemeyer_jdstrand: The opposite is more of a problem (an interface that does _not_ work on classic)18:19
josephtsergiusens: sorry parts sources.  What I'm referring to is for shared parts (i.e. those on the wiki currently)18:19
niemeyer_jdstrand: About that opencl interface, do you know what usually lands on that /etc directory?18:22
niemeyer_jdstrand: Is that hardware specific, or just app config?18:22
niemeyer_jdstrand: I assumed it was hardware-specific, but I was jumping to conclusions too soon18:23
jdstrandniemeyer_: I'm not familiar with opencl. I two may have jumped to comclusions. Looking at the rules, I assumed that debs provided /etc/OpenCL/... and those files configured how binaries worked and that they were in /etc because it is something an admin would normally do18:25
jdstrandtoo*18:26
jdstrandfor example, my laptop doesn't have that directory18:26
zyganiemeyer_: opencl has a stream of packages, some belong in the os snap (or app snap), some in the kernel snap, some of that manifests itself as /etc/OpenCL18:27
zyganiemeyer_: we should really get someone that knows opencl inside out to assist on that one18:27
niemeyer_zyga: Well, we just need some basic info to get unblocked18:49
niemeyer_zyga: As long as we don't do anything silly, it's okay to have a seed interface in18:49
zyganiemeyer_: I agree18:54
zyganiemeyer_: I can ask, I know a canonicaler that knows more18:55
niemeyer_zyga: Sweet, thanks18:55
Saviqsergiusens, ah, just realized - if launched from the dash, I'm getting multiple instances of Tg, but that's probably a unity7 bug (that's why I had more of them running)18:56
niemeyer_jdstrand: Simon responded on #1202, can you please have a look to see if it looks sane now, or if we should unblock it on something else?19:01
niemeyer_jdstrand: Sorry for bothering more than usual today.. we're trying to clean up the long-standing queue19:01
jdstranddone19:09
jdstrandnp19:09
beowulfzyga: hi! do you know any reason why ubuntu-image.sh shouldn't work right now? https://pastebin.canonical.com/157054/19:15
pmpI followed the two threads on the ML regarding kernel builds for raspi2/3 - however I didn't find the answer I'm looking for:19:21
pmpWhere can I find the snap.yaml + the instruction to snap my own kernel/modules for a raspi2 - using the current method?19:22
pmpI know you guys are changing things for the better, but I'd like to get along on my project - too impatient19:23
kyrofapmp have you seen http://blog.sergiusens.org/posts/Snapcrafting-a-kernel/ ?19:25
pmpkyrofa: great. Do you also know where I can find the snapcraft.yaml for raspi2;s kernel currently in use ?19:28
kyrofapmp that I don't know. ogra_ might19:31
pmphow does snapcraft find the right cross-compiler?19:31
kyrofafg19:31
thomisergiusens: Are you back from your holiday? I wonder if you could comment on https://bugs.launchpad.net/click-reviewers-tools/+bug/1582513 please?19:31
ubottuLaunchpad bug 1582513 in Snapcraft "click-reviewers-tools fails on all python3-based snaps" [Undecided,New]19:31
kyrofapmp it has a list of supported architectures19:32
kyrofapmp, https://github.com/ubuntu-core/snapcraft/blob/master/snapcraft/_options.py#L27 for example19:33
pmpkyrofa: great article, answers a lot of questions19:34
kyrofapmp, thank sergiusens :)19:34
pmpsergiusens: thanks ;-019:34
pmpIt'll be nice to have an overview somewhere of all the blog-articles done by you guys.19:35
pmpOr announce everyone of them on the mailing list in addition19:35
zygabeowulf: hey19:37
zygabeowulf: looking19:37
zygabeowulf: not really.. is that most up-to-date version?19:38
zygabeowulf: maybe store changed on us in some way19:38
beowulfzyga: should be, let me check ...19:38
zygabeowulf: (in any case, you will be happy to know the real ubuntu-image is being written, should be usable in around a week)19:38
beowulfzyga: great :)19:39
beowulfzyga: yes, it's the latest with the 5s sleep19:39
zygabeowulf: no root, faster implementation, etc etc19:39
zygabeowulf: but still depends on working store ;)19:39
zygabeowulf: though it will have an offline more19:39
zygabeowulf: lots of goodies19:40
zygabeowulf: building one myself for 'pc'19:41
zygabeowulf: so far builds fine19:41
zygabeowulf: can you check syslog19:42
zygabeowulf: I bet your kernel oops'ed19:42
zygabeowulf: reboot and re-run19:42
zygabeowulf: new ubuntu-image won't rely on any kernel feaatures so it should never crash like that19:42
beowulfzyga: sorry, i have wasted your time, i keep forgetting this doesn't work in a container :(19:44
beowulfzyga: i'm in a xenial container, it works when i'm on the host (i already knew this, sorry!)19:45
zygabeowulf: no worries, if this can be detected somehow can you please open a pull request with a quick test and a message saying something appropriate?19:49
sergiusenspmp you are welcome I guess :-)19:51
sergiusensthomi looked and I am thinking of taking the hit right now to solve this19:51
thomisergiusens: thanks! It'd be great to be able to upload my snap19:52
beowulfzyga: stackoverflow and online-services suggest `sudo grep -qa container=lxc /proc/1/environ`... will have a go at a pr later19:58
mhall119hey guys, where does the "unity7" interface come from, and how would one go about creating something similar but for another desktop environment?20:07
kyrofamhall119, you probably want this series of blog posts: http://www.zygoon.pl/2016/04/snappy-snapcraft-and-interfaces.html20:08
kyrofamhall119, but to quickly answer your question, that interface is part of snapd itself20:08
kyrofamhall119, so making new ones involves writing some go20:09
jdstrandkgunn: I saw your response on qt webengine and was curious why oxide wasn't mentioned?20:09
kyrofamhall119, the blog posts will have a bit more information20:09
kgunnjdstrand: just didn't think of it ;)20:09
* jdstrand nods20:10
kgunnjdstrand: i guess i was trying to get mir out there....20:10
jdstrandI wasn't sure if there was some reason why it couldn't be used20:10
kgunnjdstrand: it could certainly be a potential stack configuration for the fellow's  use case20:11
kgunnwould be even better if we had native chrome-mir ;)20:11
kgunnbetter=one less thing to pull into the snap20:11
mhall119kyrofa: is that the long-term design, or a temporary measure to get the unity7 interface?20:16
zygabeowulf: fantastic, thank you20:17
zygamhall119: hey, it comes from snapd itself, it's added to the core snap when running on classic20:17
zygamhall119: that's long term design for *classic*20:18
zygamhall119: tell me what you want and I can tell you what you need to get there20:18
mhall119zyga: ok, so what's the long term design for non-unity7 classic desktops?20:18
mhall119zyga: my specific use case is kubuntu, where they will likely need a kframeworks5 interface20:18
zygamhall119: that depends on what they need, many will work with unity720:18
zygamhall119: unity7 is really granting you right to use various unit7 specific APIs20:19
mhall119so as not to include every KDE dependency in their packages20:19
zygamhall119: for packaging apps for KDE I'd start with x11 for the desktop part20:19
zygamhall119: and with the (not implemented yet) content sharing interface for kde runtime20:19
zygamhall119: though for that, I'd like to first start with one fat test snap (fat as in having everything, not being multi-arch)20:19
zygamhall119: that we can then split into two while keeping it functioning as before20:20
zygamhall119: though perhaps another approach is required for proper kde support20:20
zygamhall119: (as in real access to classic KDE services and libraries)20:20
zygamhall119: for that we need some features that are under development by the security team and by snappy core team (bind mounts)20:20
zygamhall119: then we could do interesting new things20:21
zygamhall119: sadly I can only offer you one approach today: pick a simple kde app, make a very fat snap and run it in devmode, add x11 and see if it runs, then let's get started on the delta20:21
zygamhall119: then as those new generic features show up in the stack (content sharing and bind mounts) we can design a better interface that would make it possible to have a simple kde app just be a single snap with very little extra stuff bundled20:22
zygamhall119: note that unity7 doesn't give you any runtime libraries, just dbus permission and some basic "talk to x11" bits20:22
mhall119zyga: you lost me, how would the content-sharing interface be used for the runtime?20:23
zygamhall119: sorry, there's a lot of context I assume you have, let me do it with more explanations20:24
zygamhall119: the content sharing interface grants you access to files from another snap as if they were your own20:25
mhall119is content-sharing like content-hub on the phone,or something totally different?20:25
zygamhall119: so you can take one big snap and split it into arbitrary chunks and have the result work just as the original20:25
zygamhall119: it's not lile the content hub20:25
mhall119ok, that's where the confusion hit me :)20:25
zygamhall119: tink of runtime sharing for instance (java, kde, qt, etc etc etc)20:25
mhall119yes, that's what I want20:26
mhall119a platform in a snap, basically20:26
zygamhall119: yep20:26
zygamhall119: there are a few things we need to implement before that is possible20:26
zygamhall119: permission side is simple, but we need to inform the consumers of where to find the shared parts20:26
zygamhall119: and we need to re-construct some magic to make it seem seamless (shared libraries, executables, etc)20:26
mhall119zyga: ack, ok, this is all making sense now20:27
zygamhall119: those are just generic new features of snapd and snap-run (nee ubuntu-core-launcher) that need to happen first20:27
zygamhall119: I bet we'll get some kde specific interface over time but that's the first approach I would have20:27
zygamhall119: something to let us understand kde better20:27
mhall119zyga: ack, I'm working on kcalc right now, will be back once I have it working20:28
zygamhall119: cool, cheersr, I'll ping you each time something new lands towards that goal20:29
mhall119thanks zyga20:44
sergiusenselopio reproduced on x86: bug #155157021:04
ubottubug 1551570 in Snapcraft "autopkgtests fail in armhf with sudo: no tty present and no askpass program specified" [Medium,Triaged] https://launchpad.net/bugs/155157021:05
beowulfhi, i want my package 'start' command to be executed in the package folder (where package.json lives, it's an node package), how do i tell snapcraft to do that? add in a wrapper script and `cd /path/to/package && npm start`? how do i get the path?21:05
qenghobeowulf: Yes, you need a wrapper. $SNAP is the snap/ when you packaged with snapcraft. I'd "cd $SNAP; exec foo/start". You can be sure $SNAP exists.21:15
qenghobeowulf: beowulf perhaps with doublequote $@ doublequote at the end, in your wrapper.21:16
sergiusenskyrofa and elopio what do you think about this https://github.com/ubuntu-core/snapcraft/pull/510 (just getting started, but I am liking how it is working out)21:31
sergiusensthomi may I ask you to play with https://bugs.launchpad.net/snapcraft/+bug/1582513/comments/8 ?21:37
ubottuLaunchpad bug 1582513 in Snapcraft "click-reviewers-tools fails on all python3-based snaps" [Undecided,New]21:37
sergiusenszyga also want to look at that ^ ?21:37
thomisergiusens: sure thing21:37
beowulfqengho: thanks!21:46
thomisergiusens: Any chance you could build a .deb and stick it somewhere? It seems snapcraft doesn't install easily into a virtualenv?21:48
sergiusensthomi yeah, I inherited this like it is, I need to work on a requirements.txt to make this work well21:56
sergiusensthomi scp from people.canonical.com:/home/sergiusens/snapcraft_2.8.8_all.deb21:56
sergiusensthomi btw, I made some changes to your yaml http://paste.ubuntu.com/16644344/ (using the public git and relative `command`)21:58
thomihuh, cool. I don't know about 'command'21:59
sergiusensthomi so instead of using a relative command (`usr/bin/gmailfilter`) using the one in $PATH ($SNAP/bin in this case) as gmailfilter is in $PATH22:02
sergiusensthat last one is just personal preference fwiw22:02
thomihuh, Interesting, thanks22:02
zygasergiusens: looking22:07
zygasergiusens: use the ... what in ubuntu core?22:07
zygapython?22:07
thomisergiusens: wow - 55MB to 144KB22:12
zygathomi: same will be possible with a (say) python3.canonical snap and content sharing22:14
thomisergiusens: however, the snaps now consistently fail review because the checksums do not match22:15
thomisergiusens: security-snap-v2_squashfs_repack_checksum is the failing check22:15
sergiusensthomi heh, that I think is a mksquashfs bug jdstrand was looking into22:16
thomi:(22:16
sergiusenszyga the python, yes22:16
sergiusensthomi yeah, not sure what triggers even22:16
sergiusenszyga do you know the bug number for the checksum thing?22:17
zygasergiusens: I cannot wait to do that :)22:17
zygasergiusens: no, sorry22:17
sergiusenszyga do what?22:17
zygasergiusens: write the content sharing iface22:17
sergiusenszyga you have been saying that for a year already it feels like :-)22:18
* sergiusens heads off to aikido practice, will bbl22:19
zygasergiusens: it's a loong way ;-)22:19
zygain reality it requires a few features that are in the pipe22:19
sergiusensjdstrand when you are around, do we have a bug for that mksquashfs thing?22:20
elopiosergiusens: cool, you simplifyied the code a lot.22:37
elopiojust the "pass" in the tests makes me feel uneasy ;)22:38
zygaelopio: yes, it should have been a docstring, then pass is optional ;)22:40
elopiozyga: no me simpatizas.22:42
=== yp is now known as Guest72068
=== leftyfb_ is now known as leftyfb
=== Michaela is now known as Mikaela
=== |svij| is now known as svij
=== Guest72068 is now known as ypwong
=== wililupy_ is now known as wililupy
wililupyquestion: how do I purge a snap from 16.04?23:00
zygawililupy: snap remove $snap_name23:24
zygawililupy: that's all you need23:24
wililupyzyga: I did that, but when I try to install an updated one that I am working on it says it can't mount revision 10000123:24
wililupyzyga and it still shows it in /writable/system-data/snap but not in snap list23:25
wililupyalso in /var/lib/snapd/snaps and /var/lib/snapd/state.json23:25
zygawililupy: hmm23:27
zygawililupy: is that an all-snap image or a snappy-on-classic23:27
zygawililupy: if all-snap can you refresh ubuntu-core?23:27
wililupyzyga: I just ran snap refresh ubuntu-core23:27
wililupyzyga: still get the same error.23:28
mhall119zyga: I got it running in --devmode at least23:32
mhall119zyga: see https://github.com/ubuntu/snappy-playpen/tree/kcalc/kcalc23:32
mhall119specifically the apparmor complaints, I have no idea what it's doing or why, but it seems strange for a calculator23:33
wililupyzyga: when I tried to remove the snap, I did get an error: https://pastebin.canonical.com/157073/23:36
=== sarnold_ is now known as sarnold

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