/srv/irclogs.ubuntu.com/2016/04/06/#snappy.txt

=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== shuduo-afk is now known as shuduo
=== chihchun_afk is now known as chihchun
=== JanC_ is now known as JanC
=== kickinz1|eod is now known as kickinz1
T-mon#unity08:07
=== JamesTait is now known as Guest31919
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== t-mon|2 is now known as T-mon
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
sergiusensmorning12:28
sergiusenskyrofa, is this good to go? https://github.com/ubuntu-core/snapcraft/pull/42912:28
kyrofaAh, sorry sergiusens looking now12:29
kyrofasergiusens, yeah I'm liking this12:30
kyrofasergiusens, looks like a pip hickup on the webui test?12:31
zygajdstrand: https://github.com/ubuntu-core/snappy/pull/80112:34
noizerHi guys how is it with the stable release of snappy?12:35
zyganoizer: perhaps next week12:39
noizerzyga:   niceee :D12:39
zyganoizer: all depends on how good this week is :)12:39
noizerzyga: Ok but that is just good news!12:42
sergiusenskyrofa, its been like this the whole week12:44
ogra_sergiusens, yo12:44
kyrofa*grumble*12:44
sergiusenskyrofa, but it works locally and on whatever the official autopackage tests servers are12:45
ogra_sergiusens, so i'm planning to get rid of the binary initrd-generic package ...12:45
sergiusensit is in my opinion and as elopio pointed out, scalingstack12:45
sergiusensogra_, why are you so mean?12:45
sergiusens:-)12:45
ogra_sergiusens, because i cant bear the headdaches that fakechroot gives me :)12:46
ogra_sergiusens, so the plan is to run update-initramfs during image build before a kernel is installed12:46
sergiusensogra_, I will unleash the kraken on you by calling ricmm  ;-)12:46
ogra_that should give us the same result but with a lot less hoops12:46
ogra_hahaha12:46
sergiusensogra_, that means the image building tool is arch dependant?12:47
ogra_you download the os snap anyway, right ?12:47
sergiusensyes12:47
ogra_indeed, it has always been arch dependent12:47
ogra_so if i make sure the binary ends up in the same place the package did put it i guess we are fine12:48
ogra_(and if i keep the name)12:48
sergiusensogra_, oh, so if you don't break the "interface" I really don't care :-)12:49
sergiusensas long as a kernel generic initrd lands there12:49
ogra_sergiusens, well, long term i'd like to clean that up12:49
ogra_and keep the initrd in /boot or so12:50
sergiusenswhich would also allow for step two which is for snappy to deal with that whole lot12:50
ogra_right12:50
ogra_for now i only want to get rid of fakechroot in the whole loop12:50
ogra_(and also save one turnaround cycle in the whole game ... i.e. no extra upload of the package)12:51
sergiusensogra_, well the discussion with infinity was that the os snap would provide a kernel indep initrd and the kernel snap the one with modules; snappy would DTRT WRT how to deal with that12:51
ogra_right12:51
ogra_which is what i'm proposing above12:51
sergiusensogra_, your plan is sane ;-)12:51
ogra_i initially went the package route because that makes it easier for porters12:51
ogra_you only need to pull the one package, not the whole os snap ... but in the end it is more work and more risk on our side to do that12:52
sergiusensogra_, yeah, and fwiw, I didn't even take a hint on your guidance and just downloaded the os.snap ;-)12:53
ogra_yeah12:54
ogra_so evil !12:54
ogra_:)12:54
zygahttps://github.com/ubuntu-core/snappy/pull/80313:00
zygajdstrand: ^ before we get the OS snap to declare those13:03
kyrofazyga, I have a piece of hardware whose install process in regular ubuntu involves a custom udev rule that runs its own script. Is there a way to do something equivalent in snappy using interfaces?13:10
zygakyrofa: yes13:12
zygakyrofa: can you tell me more?13:12
kyrofazyga, definitely. It's an intel RealSense camera (similar to xbox kinect, gets depth information). The classic installation guide is here: https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md13:13
zygaah, I'm familiar with it13:13
kyrofazyga, I'm hoping I don't actually need to patch uvcvideo, and that the only thing I'll actually need are the udev rules13:15
kyrofa(since I know our kernel folks were working with them recently)13:15
zygakyrofa: does it require a kernel driver or is current kernel supported?13:15
zygakyrofa: this looks more like something to fix in the os snap13:15
zygakyrofa: and then expose as an interface for snaps to use13:15
kyrofazyga, I'm led to believe our kernel should support it, but I've not verified just yet13:15
zygakyrofa: in any case, yes, we can do suff with udev13:16
zygakyrofa: but you need to have a working kernel and you need to define the interface first (how apps would use this device)13:16
kyrofazyga, alright good deal. I'll get it working in a normal installation first and make sure I understand what's required, then I'll talk to you about the interface. Sound okay?13:17
zygakyrofa: yes, and once you are ready start a thread on snappy-devel please13:17
kyrofazyga, sounds good13:17
zygakyrofa: good13:17
zyga:)13:17
=== chihchun is now known as chihchun_afk
kyrofasergiusens, I want to talk about https://bugs.launchpad.net/snapcraft/+bug/1537790 real quick13:40
ubottuLaunchpad bug 1537790 in Snapcraft "lifecycle: rebuild with snapcraft clean part1; snapcraft build part1 breaks if part1 has an 'after' field" [High,In progress]13:40
kyrofasergiusens, currently is part1 depends on part2, and you call `snapcraft build part1` it bails since it requires part2. So you have to say `snapcraft build part1 part2`13:41
kyrofasergiusens, how would you feel about it automatically building dependencies?13:42
sergiusenskyrofa, currently with the new changes you mean? Previously we built through all of them14:03
sergiusenskyrofa, we can do either; I like explicit so you know the implications14:04
sergiusensbut implicit is easier14:04
kyrofasergiusens, nothing new-- this is old. This test, specifically: https://github.com/ubuntu-core/snapcraft/blob/master/snapcraft/tests/test_lifecycle.py#L3014:04
kyrofasergiusens, well, when I implemented the per-part cleaning for instance I made sure dependents were cleaned as well. I should probably either update that to raise for consistency, or update this to build dependencies for consistency. What do you think?14:06
kyrofaper-step, rather14:06
sergiusenskyrofa, ok, let's discuss that during standup14:07
kyrofasergiusens, sounds good14:07
zygahttps://github.com/ubuntu-core/snappy/pull/80414:19
zygajdstrand: ^^ probably not super security sensitive14:23
zygajdstrand: I'm persistently storing intents-to-connect14:23
zygajdstrand: so that when you upgrade a snap it gets re-connected14:23
zygajdstrand: there's no policy as to what happens when you remove a snap14:23
jdstrandboy, lots of PRs :)14:23
zygajdstrand: heh, two days left :)14:23
zygajdstrand: I have lots of more locally but I'm blocked by bit landing now14:24
jdstrandwhat's in two days?14:24
zygajdstrand: weekend14:24
zygajdstrand: I'd like to have peace of mind :)14:24
jdstrandoh, heh14:24
jdstrandthen they pick up again next week, got it :)14:24
zygaand actually work on my hobby compiler14:24
zygaand use snappy to package a few games for my kids14:24
zyganot that they have ssh or gpg keys in ~14:25
jdstrandit would be nice to not dream about what is left to land every night and wake up at a reasonable time14:25
zygajdstrand: you can say that again;14:25
zygabut I think we're super close now14:26
zygathe only thing I'm worried about is everything not working in the end :D14:26
zygabecause of small issues that will be frustrating to fix for some unexpected reason14:26
jdstrandI suspect those issues will be shallow14:27
jdstrandat least for the existing builtins14:27
zygaunless we forgot something major but I hope we didn't14:27
zygae.g. mandatory launcher change to fix something that's not fixable otherwise14:27
jdstrandI've been working on the launcher a lot lately14:28
jdstrandI think we are in ok shape wrt the security sandbox and interfaces. I've brought up what I know is missing14:29
zygajdstrand: pedronis is about to land some changes to how we invoke the launcher14:29
zygajdstrand: but that will change in a sec so even if we break something, it's temporary14:29
jdstrandzyga: does that require a launcher change?14:29
kyrofapedronis, are you planning on removing the creation of the user data dir from the binary wrapper as well?14:29
jdstrandor just the scripts/systemd stuff14:29
zygajdstrand: I don't think so; do you still parse the apparmor profile for snap version?14:30
zygajdstrand: in any case, I plan to see if this really works soon14:30
zygajdstrand: so we'll know :)14:31
jdstrandzyga: the launcher doesn't parse the appname or apparmor profile name. it just takes what it is given14:32
zygajdstrand: then it should work :)14:32
jdstrandzyga: it does a light regex: "^[a-z0-9][a-z0-9+._-]+$"14:32
jdstrandbut that is all14:33
zygammm, should be fine14:33
jdstrandzyga: is this the snap.<snapname>.<app> change?14:33
zygajdstrand: not yet14:33
zygajdstrand: that's what interfaces do14:33
* jdstrand wonders what change this is14:33
zygajdstrand: just gardening14:33
jdstrandok14:33
zygajdstrand: snappy has lots of redundant ideas14:33
zygajdstrand: we're killing some because it's impossible to make changes otherwise14:34
jdstrandI see14:36
* zyga will return ~ 1 hour15:01
=== chihchun_afk is now known as chihchun
sergiusenselopio, kyrofa seems our issue might be an upstream one https://bitbucket.org/ronaldoussoren/pyobjc/issues/141/error-code-9-with-pip-install-on-osx-10111 http://stackoverflow.com/questions/19632714/installation-error-of-python-package-using-pip15:23
sergiusensI guess we can version lock pyyaml to avoid this15:23
kyrofasergiusens, good find!15:24
=== chihchun is now known as chihchun_afk
=== kickinz1 is now known as kickinz1|eod
mhall119sergiusens: is there a way to tell snapcraft the order in which to build parts? Or does it follow the order they are defined in the yaml?15:57
elopiomhall119: you can alter the order with the after keyword. If you don't use that, then it would be the order in which python parses the yaml, which afaik is not always the same.16:00
elopiosergiusens: thanks for the link.16:00
mhall119thanks elopio16:02
sergiusensmhall119, yaml by definition has no order; if you have dependencies use the `after` key16:03
kyrofaHey jdstrand what are the security limitations of `kill` in snappy? e.g. if I have a stop command for my service, am I limited in the signals I can send or the pids I can send them to? (I assume yes in the latter at least)16:22
jdstrandkyrofa: you can send any signal to any app in your snap16:24
kyrofajdstrand, okay good deal16:24
jdstrandkyrofa: you may not send signals to other snaps16:24
kyrofajdstrand, alright perfect, thank you :)16:25
qenghokyrofa: yeah, I kill in one of mine. No trouble.16:26
kyrofaI do too, just wanted to make sure I understood the limitations16:26
qenghoThough, I suspect I should be using systemd somehow to restart or signal it to reload. I don't understand systemd. :(16:27
code1o6ssls17:41
code1o6Is manik in today?17:41
netphreakHi, guys!18:24
popeyI have a bunch of snaps on my desktop which fail to launch because the application requires access to the openGL graphics card. It fails out like there's no libGL present - http://paste.ubuntu.com/15658255 - it's not just one app, a few common apps do this. Anyone seen this with graphical snaps?18:35
popeySuggestions for things to try most welcome!  ðŸ˜ƒ18:35
netphreakCan anyone point me to a snappy gadget .yml for eg. Raspberry pi?18:41
* ssweeny saw a thread/discussion somewhere that said for instance if an app was built on a machine with intel graphics it won't work on nvidia and vice-versa until a solution is found18:41
ssweenypopey, ^^18:41
popeywell that sucks18:42
popeyalso, I am building on an nvidia machine and trying to run on same machine18:42
* popey looks for said thread18:42
ssweenya solution is in the works IIRC18:42
popeyfound it, ta18:43
ogra_netphreak, https://code.launchpad.net/~snappy-dev/snappy-hub/snappy-systems18:45
netphreakSuperb, thanks ;)18:49
netphreakI suppose one for RPI 3 will appear some time?18:49
ogra_Yeah... Thereis one on my people.ubuntu.com account but I haven't put up the source yet18:50
ogra_http://people.canonical.com/~ogra/snappy/all-snaps/rpi3/18:51
netphreakthx, ogra ;)18:53
netphreakWill the rpi3 release support bluetooth?18:59
=== blr_ is now known as blr

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