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

=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
johnorjiasHello all :-) I am just wondering if anyone has instructions for enabling the ttyO1-O5 serial ports on the BBB in snappy05:46
dbrouwerHi John, I was about to sk the same question!05:47
johnorjiashaha hello doug :-)05:47
johnorjiasI think everyone is sitting idle at the moment I will keep an eye out for if anyone gets on and response to this05:48
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
zygagoooood morning :)07:19
=== chihchun_afk is now known as chihchun
=== vrruiz_ is now known as rvr
ysionneaumorning!09:11
ysionneauwhat should I do to propose a patch for snapcraft? open a ticket on launchpad and append a patch? or open a pull request with my patch on GitHub ?09:12
ysionneauor both09:12
dholbachysionneau, https://github.com/ubuntu-core/snapcraft/blob/master/CONTRIBUTING.md :)09:18
ysionneauthx!09:19
ysionneauI need to submit the "contributor license agreement"09:22
ysionneau"Please add the Canonical Project Manager or contact" < who is it?09:22
ysionneau-it+he09:22
ysionneauor she09:22
ogra_mvo, mind if i add "XB-Task: ubuntu-core" to the initramfs-tools-ubuntu-core package in the PPA ? seesm we end up without initrd in the rootfs if thats not there (breaking everyones custom kernel builds)09:29
mvoogra_: please do09:33
mvoogra_: all the packages from the weekend will hopefully get uploaded to xenial proper today09:33
ogra_i have a check for that in livecd-rootfs trunk already09:33
mvoogra_: but please add it09:33
ogra_mvo, and sorry for the clashes on the weekend ... i only got aware you were tinkering too very late :)09:34
davidcallezyga: hi, do you know when multiple plugs support is going to land? Right now, when I'm trying to use multiple ones (eg. home + network + something), I get "youtube-dl_2016.03.27_amd64.snap failed to install: only a single plug is supported, 3 found"09:35
davidcallejdstrand: ^09:38
mvoogra_: no worries09:42
dpmysionneau, I think the best person to add would be Jamie Bennet09:43
mvoogra_: I have some changes  pending locally that I need to commit proper but commiting must be done in sync with the new snappy upload so its all a bit circular09:43
ogra_well, after all edge is allowed to break :)09:44
ogra_mvo, i was wondering what we'll do with all the universe packages09:44
ogra_there is still a good bunch09:44
ysionneauok dpm thanks09:47
mvoogra_: uh, thats bad, I thought it all got promoted, I was not looking closely :/09:50
ogra_watchdog, libnss-extrausers, ubuntu-fan, ubuntu-core-libs, tpm-tools, opencryptoki, libopencryptoki0, libtpm-unseal1, ubuntu-core-config09:50
ogra_that is what i see coming from universe in the image build logs09:50
mvoogra_: oh, ok. those are all for the image itself. ok09:56
zygadavidcalle: it's already supported now but stay tuned :)10:00
zygadavidcalle: I'm getting connect/disconnect to do something for real10:01
davidcallezyga: supported as in "landed"? See my error above10:01
zygadavidcalle: and I also need to get auto-connect to work (for things as landed)10:01
zygadavidcalle: it's landed and released last night but wasn't useful yet10:01
zygadavidcalle: we need one more release10:02
ogra_mvo, well, libnss-extrausers, ubuntu-core-libs and ubuntu-core-config are pretty essential i think ... not sure about the others though10:02
zygadavidcalle: if your image is older than a few hours it needs to be rebuilt10:02
ogra_mvo, writing a mail10:02
mvota10:02
zygadavidcalle: but note that before the next release it's all broken anyway10:02
zygadavidcalle: and your snap won't get any permissions10:02
davidcallezyga, ok, do you ~know when is this next landing planned?10:05
zygadavidcalle: when we get new things to work10:06
zygavery soon10:06
ogra_mvo, u-d-f fails with that latest snappy changes ...12:14
ogra_bind mount failed for /tmp/diskimage643961727/writable/system-data/var/lib/snappy to /tmp/diskimage643961727/system/var/lib/snappy with: exit status 32 mount: mount point /tmp/diskimage643961727/system/var/lib/snappy does not exist12:15
mvoogra_: are you using the edge channel? i.e. what is your u-d-f commandline?12:16
mvoogra_: are you using u-d-f from my people.c.c page?12:17
sergiusenskyrofa, hey, care to start reviewing https://github.com/ubuntu-core/snapcraft/pull/43412:17
sergiusensexamples tests fail as new infra was deployed, fgimenez is on it fwiw :-)12:18
ogra_mvo, well, the same one i use since starting to use all-snaps ... from your people.u.c page, yes12:21
ogra_mvo, oh12:21
ogra_i didnt notice the update ... ignore me :)12:22
ogra_mvo, works fine, sorry for the noise :)12:25
mvoogra_: thanks and no worries12:26
mvoogra_: its hard to keep track of non-pkgs :/ but soon we fix all this12:27
ogra_yeah, we still have 10 days12:27
ogra_:P12:27
ogra_-12:28
ogra_oops12:28
mvoogra_: *cough*12:28
mvoogra_: wasn't this the 16.06 release ? to honor 6.06?12:28
ogra_lol12:29
fgimenezsergiusens, it should be fixed now http://162.213.35.179:8080/job/github-snapcraft-examples-tests-cloud/545/console12:34
sergiusensty12:34
ogra_hmm, unsquashfs doesnt work on pipes :(12:45
* ogra_ would like to pull the initrd.img out of the os snap without having to completely download it 12:46
ogra_but piping a wget stream seems to not work :(12:47
johnorjiasHello all :-) I am just wondering if anyone has instructions for enabling the ttyO1-O5 serial ports on the BBB in snappy?13:04
oparozHello, how do we know which OS binaries we can use in a snap? I've had startup scripts fail because I wanted to use hostnamectl or sed -i and got denied by apparmor13:15
oparozI mean, I can call these just fine from the snap, but somehow I can't use them in a startupscript, so it takes a bit of trial and error to figure out what is allowed13:16
ysionneauIf anyone want to try doing snaps cross compilation, you can give this a try : https://github.com/fallen/snapcraft/tree/dev-alchemy-branch13:16
ysionneauusing this build system : https://github.com/parrot-developers/alchemy13:17
oparozysionneau: Is there a bit more instructions on how to set it up?13:21
davidcalleogra_: how do you disable snappy auto-reboot on Xenial? Althgouh, it's very useful, when my desktop reboots unexpectedly, I know it's any-hour-past-ten :P13:22
ysionneauoparoz: I should post an example :)13:22
ogra_davidcalle, using snappy config ubuntu-core (i forgot the exact syntax, Chipaca` always knew it from teh top of his head though)13:22
oparozysionneau: Yes, please. Per example I'm using an amd64 VM and I'd like to target arm, so I guess I must be able to define the targets somewhere, etc.13:23
davidcalleogra, can you get/set options from the cli or do I need to provide a new conf file?13:27
ogra_you can pipe it somehow, thats the bit i was referring to for Chipaca`13:27
davidcalleOk, thanks :)13:27
davidcalleogra_: Chipaca` found it  "echo 'config: {ubuntu-core: {autoupdate: off}}' | sudo snappy config ubuntu-core -"13:28
ogra_cool13:29
ysionneauoparoz: https://github.com/fallen/hello_snappy_alchemy13:48
ysionneauthat's very early and beta stuff (the alchemy plugin, not the alchemy build system) but it does work for my uses for now13:52
ysionneau+ it's a bit hacky13:53
oparozThanks for that ysionneau. Regarding snapcraft, do we need more than the alchemy plugin?14:00
ogra_reading canonical-snapdragon-linux_0.snap/vmlinuz14:21
ogra_24026624 bytes read in 6534 ms (3.5 MiB/s)14:21
ogra_reading canonical-snapdragon-linux_0.snap/dtbs/apq8016-sbc.dtb14:21
ogra_mvo, ^^^ thats doesnt look correct ... where is the version gone ?14:21
ogra_+ snapcraft snap snap14:23
ogra_Snapping canonical-snapdragon-linux_4.4.0-1009+20160411.11-57_arm64.snap14:23
ogra_Parallel mksquashfs: Using 4 processors14:23
sergiusensysionneau, where is the alchemy plugin? :-)14:23
ogra_the snap seems to have been built ok though14:23
sergiusensysionneau, fwiw, cross compiling is super easy, the problem we have from a snapcraft point of view are `stage-packages` and `build-packages`14:24
ogra_wow, "snap list" on the dragonboard takes nearly 30sec to tell me about the 3 packages14:25
ogra_ah, subsequent runs are slightly faster14:25
ogra_(still a lot slower than snappy list was)14:26
zygaogra_: looks like socket activation14:27
ogra_did that get tested on all arches ?14:27
ogra_(i would suspect armhf to actually be a lot slower than arm64 here )14:27
zygaogra_: it was always socket activated14:28
ogra_snappy list did use sockets ?14:28
zygasnappy list is gone, snap list uses sockets14:28
ogra_i thought the reply came directly from the snappy binary14:28
ogra_zyga, well, snap list is there since today14:28
ogra_and is definitely lots slower than snappy list was ... in the first incarnation at least14:29
zygaogra_: no, it was there for a while, but now snappy list is not there14:29
ogra_zyga, it wasnt there until michael landed it on the weekend14:29
zygaogra_: well, in any way, snap list was in the source for months14:30
ogra_i dont care about the source :P14:30
zygaogra_: snappy list was taking global lock; snap list should be faster down the line14:30
zygawell, sorry :)14:30
ogra_it is definitely an odd user experience if you knew snappy list before though14:30
zyga(snap list won't read the FS soon)14:31
ogra_(it should at least print something that tells you the initial run can take ages14:31
ogra_)14:31
zygacurrently it still does14:31
zygaages?14:31
zygaeach snap command should print that?14:31
ogra_30sec to 1min ... i didnt actually stopwatch it14:31
zygaI think that's not reasonable, we'll just get it faster14:31
zygawhat did you test this on?14:31
ogra_dragonboard14:32
zygaI run on pi2 all the time and it's a few seconds at most14:32
ogra_i.e. the fastest arm arch we have14:32
zygawow, measure your card, maybe it's the cause14:32
ogra_i use the same cards everywhere ... 48MB/s throughput14:32
ogra_this is with todays image ... i.e. the first one that has all bits in place14:32
zygaodd, I will give it a try with the next image tomorrow14:33
zyganot everything is in place yet14:33
dakerhi guys snapcraft questions :14:40
daker1- how can i tell snapcraft to not pull git submodules ?14:40
daker2- snapcraft snap don't produce a .snap, any ideas why ?14:41
dakerdoesn't*14:41
zygadaker: try just "snapcraft" for 214:42
dakerzyga: (y) thanks!14:42
dakerfor 1) i saw that it is harcoded14:43
zygadaker: patch snapcraft; no other way14:43
ysionneausergiusens: https://github.com/fallen/snapcraft/tree/dev-alchemy-branch in the plugins directory :)14:48
ysionneau16:00 < oparoz> Thanks for that ysionneau. Regarding snapcraft, do we need more than the alchemy plugin? < what do you mean?14:49
netphreakHi, guys!14:49
ysionneau16:24 < sergiusens> ysionneau, fwiw, cross compiling is super easy, the problem we have from a snapcraft point of view are `stage-packages` and `build-packages` < last time I asked the only way to cross compile was to use qemu-user with a debootstrap of arm userspace?14:49
ysionneaudid the situation evolve ?14:49
netphreakIs it possible to to setup the snappy jdk plugin to pull in a jdk for a specific architecture not the same as the build machine?14:50
sergiusensysionneau, that's not cross compile (qemu-user), that is native compile in an emulated environment :-P14:51
ysionneauyeah :p14:51
ysionneausure14:51
ysionneauwhen you say "cross compiling is super easy" does it mean it is now possible to do it?14:51
sergiusensysionneau, only for the kernel; I haven't solved `stage` and `build` packages as I mentioned14:53
netphreak?14:53
sergiusensnetphreak, not as it is right now14:54
dakersergiusens: any idea what would be the appropriate keyword for the git recurse-submodules ?14:55
netphreak:/14:55
netphreakmakes idk and java a bit more complex to handle.. /14:55
netphreakjdk14:55
netphreakis it something that is on the todo list?14:56
netphreakor is there somewhere i can pull down a precompiled jdk for Xenial from for armhf i can use?14:58
netphreakffrom snap14:58
=== Chipaca` is now known as Chipaca
dbrouwerAre there instructions for enabling the ttyO1-O5 serial ports on the BBB in snappy?15:04
dakerHi guys again store questions: what does Snap name stand for ? and which Series should i target ?15:32
zygadaker: snap name == just a name15:33
dakeri didn't it's says invalide name :D maybe it should be lowercase ?15:37
dakeri did*15:37
dakerbeuno: can you help please ?15:38
beunodaker, sorry, what's the context here?15:38
beunowhat are you tryi ng to do?15:38
beunosnap name is indeed the name of the snappy package15:39
beunoit'll be what people type in the command line, so yes, lowercase and no special characters15:39
dakerso "MicroPython" is an invalid name ?15:39
dakerah ok15:39
zygadaker: yep, micro-python or micropython will work15:40
dakerbeuno: because the indicator on the right is green with "MicroPython"15:40
dakerand the helptext doesn't mention lowercase at all15:40
beunodaker, I'll get that fixed, thank you15:41
beunobeowulf, ^15:41
dakerbeuno: thanks!15:42
qenghoYou Ubuntu guys should sell some crash-reporting service for snaps.15:44
dakerzyga: one last question: i see people uploading different arch, what arch should i build againt15:44
zygadaker: what do you want to target?15:45
beowulfdaker: beuno: thanks, will fix15:45
beunodaker, as many as you can?  :)15:45
qenghodaker: Why not all of them?15:46
beunoI think amd64 and armhf will get you the vast majority though15:46
dakerbeowulf: thanks! just avoid the confusion :D maybe also add a text under the input explaining what snap name means15:47
qengho(and PowerPC users try to weep some more from their dessicated tear ducts.)15:47
beowulfdaker: good idea, thanks15:47
dakerbeuno: and how it will served via the store ? like someone on an rpi trying snapp install mysnapname and i only have an amd64 snapp on the the store15:49
beunodaker, they won't see snaps for architectures that aren't their own15:50
beunothanks beowulf15:51
dakerbeuno: i mean how does the store knows the arch, is it via the snap name ex : "forbar_version_i386.snap"15:52
beunodaker, no, it ignores the name. It parses it out of the snap.yaml15:53
dakerbeuno: ah i see15:54
jkridnerhi sergiusens16:27
sergiusenshi16:27
sergiusensjkridner, and you have kyrofa16:27
kyrofajkridner, hey there16:27
jkridnerthanks sergiusens and kyrofa16:27
ysionneausergiusens: with which python package did you test your commit? the debian package (python-magic)? or the pip one?16:29
ysionneauit's just a matter of being consistent, I don't care which one you chose16:30
sergiusensysionneau, the debian one16:30
ysionneauallright, then let's just commit with this one16:30
ysionneauit's ok for you if I change the pip line ?16:31
ysionneau(the one in .travis.yml)16:31
=== chihchun is now known as chihchun_afk
netphreakhi, guys!16:56
zygahi17:02
netphreakIs there anyway i can pull down a architecture specific java jdk (not using the jdk/maven plugin)?17:08
zygaI don't know, sorry17:10
netphreakproblem is jdk/maven plugins download an jdk matching the build machine's architecture :/17:11
zyganetphreak: I don't know if cross compiling is supported yet17:14
netphreakwell, i suppose the jdk is exist in allready compiled state -ready to be pulled in?17:15
zyganetphreak: I think there are some requests for cross architecture snapcraft but you'd have to check that yourself17:16
zyga(even if bits are already built snapcraft would need to understand that you are targetting a different arch)17:16
dbrouwerCan someone give me some guidance? How do I enable  the ttyO1-O5 serial ports on the BBB in snappy?17:47
zygadbrouwer: I don't think you can do that yet, you'd have to create a snap that listens on those ports and you'd have to pass the hardware to that snap17:48
zygadbrouwer: come back in two weeks17:48
zygadbrouwer: then it should be doable17:49
dbrouwerAll right. Thanks! That at least gives me some hope!17:49
oparozIs there a snap package builder status page to know when to avoid requesting builds?19:48
oparozMaybe that's a question for #launchpad...19:49
qenghooparoz: what would make you avoid it?19:58
dakeranybody know what's does : Unexpected output from click-review.20:01
dakerstand for ...20:01
oparozqengho: https://bugs.launchpad.net/launchpad/+bug/156902320:01
ubottuLaunchpad bug 1569023 in Launchpad itself "Snap builder fails to pull files (violation of protocol)" [Undecided,New]20:01
oparozqengho: If the dashboard shows lots of builds failing, there is no point in overloading the system. It doesn't seem to be the case here though20:02
qenghodaker: hrm. I'd check  https://myapps.developer.ubuntu.com/  . It could be the package verifier had a complaint, but the client you are running didn't understand it. (That would be a bug, but not your problem.)20:05
dakerqengho: that's the automated review20:05
qenghodaker: I assumed you just uploaded a package, that is?20:05
dakeryes .snap20:06
qenghoSweet! daker, check the automatic review.20:06
dakerthe automated review says : Unexpected output from click-review. :D20:07
dakerand the package is refused20:07
qenghoWhoa.20:08
dakerhi beuno sorry the noise, can you pleas help ?20:08
dakerfor*20:08
beunodaker, hi20:10
dakerbeuno: https://i.imgur.com/0WWnKzx.png20:10
beunodaker, it seems to think it's a click and not a snap20:11
beunodaker, did you upload it to Ubuntu Core?20:11
beunohttps://myapps.developer.ubuntu.com/dev/click-apps/?format=snap20:11
dakerbeuno: yes20:11
dakerhttps://i.imgur.com/906B4bw.png20:12
* beuno looks20:12
dakerid: 484120:13
dakerbeuno: https://i.imgur.com/Iixkk7h.png20:13
beunothe review tools aren't happy:20:16
beunobeuno@beuno-desktop:~/canonical/click-reviewers-tools$ python3 bin/click-review ~/Downloads/micropython.daker_1.7_i386.snap20:16
beunoERROR: could not find required 'hooks' in manifest:20:16
beuno{'architecture': ['i386'],20:16
beuno 'description': 'MicroPython is a lean and efficient Python implementation for '20:16
beuno                'microcontrollers and constrained systems.',20:16
beuno 'framework': 'ubuntu-core-15.04-dev1',20:17
beuno 'icon': 'meta/icon.png',20:17
beuno 'installed-size': '481',20:17
beuno 'maintainer': 'Adnane Belmadiaf <daker@ubuntu.com>',20:17
beuno 'name': 'micropython',20:17
beuno 'title': 'A lean and efficient Python implementation for microcontrollers.',20:17
beuno 'version': '1.7'}20:17
beunodaker, how did you build it?20:17
dakeryes that's i saw :D20:17
dakersnapcraft snap20:17
dakerthen snapcraft20:17
daker$ snapcraft -v20:18
dakersnapcraft (1.1.0).20:18
oparoz1.1.0 ? :-O20:19
dakerfrom the ppa :D20:19
oparozAh :D20:19
dakeron 14.0420:20
beunoso, at this point, I'm not sure20:24
beunoI'm missing the people who know snapcraft and the reviewers tools today!20:24
beunodaker, I'll chase this up for you tomorrow with jdstrand20:25
dakerbeuno: thanks, i'll give it another try20:25
dakerbeuno: do you want to me fil a bug ? just in case you forgot20:36
beunodaker, sure, that'd be useful to track20:36
stgraberjdstrand: lxd 2.0 final sent to the snappy store20:52
stgraberbeuno: thanks!20:59
beuno:)20:59
dakerbeuno: https://bugs.launchpad.net/snapcraft/+bug/156904120:59
ubottuLaunchpad bug 1569041 in Snapcraft "ERROR: could not find required 'hooks' in manifest" [Undecided,New]20:59
kyrofadaker, I don't think snapcraft ever included hooks in the manifest. Note also that you're using 2.x yaml on a 1.x snapcraft21:19
dakerkyrofa: oh! really21:20
kyrofadaker, you need to be using this: https://github.com/ubuntu-core/snapcraft/blob/1.x/docs/snapcraft-syntax.md21:20
kyrofadaker, specifically referring to your use of `apps` instead of `binaries`21:20
dakeri see21:21
dakerkyrofa: what's the recommended version ? 2.x ?21:22
kyrofadaker, it depends on what your target-- are you wanting to ship snaps targeting 15.04 or 16.04 Snappy ubuntu core?21:22
daker15.0421:22
kyrofadaker, then you're made the right choice. Note however that 15.04 will reach end-of-life soon21:23
kyrofaMan I can't type today. you've*21:23
daker:)21:23
kyrofadaker, basically, Snapcraft 1.x targets pre-xenial, Snapcraft 2.x post-xenial21:24
dakeri see21:24
dakerkyrofa: anyidea if this is correct https://paste.ubuntu.com/15768257/ ?21:53
dakerthis result in No such file or directory: '/home/daker/Work/micropython-snappy/snap/bin/micropython'21:53
=== JanC_ is now known as JanC
dakerthe binary is in /home/daker/Work/micropython-snappy/snap/usr/local/bin/21:59
kyrofadaker, yeah that looks correct. Do any parts place the `micropython` executable in bin/22:06
kyrofa?22:06
kyrofaAh22:06
kyrofadaker, well then, not correct-- use /usr/local/bin/22:06
kyrofaRather, usr/local/bin/22:06
kyrofa(I can't remember if that's automatically added to the path)22:07
kyrofaYou can try just specifying micropython on its own, see if it is22:07
dakeryes testing22:07
dakerclick-review crashed :D22:09
dakerkyrofa: can you please check if the syntax is correct https://paste.ubuntu.com/15768597/ ?22:10
dakerYay it works :D22:29
dakerbeuno: found the issue22:30
dakerwell actually kyrofa did22:30
kyrofadaker, very good :)23:11
dakerkyrofa: and the snap is waiting for review :D23:12
dakerthanks!23:12
kyrofadaker, no problem. Is that snapcraft bug invalid, then?23:12
dakerkyrofa: yes fixed23:17
Swami_hi23:25
kyrofaHey Swami_, welcome23:25
Swami_Hi Kyrofa,23:25
Swami_just wanted to check if this is the irc channel for #snappy?23:26
Swami_from ubuntu core team23:26
kyrofaSwami_, it is indeed!23:26
Swami_thanks, this is my first time here.23:26
Swami_never used irc before.23:26
kyrofaSwami_, we're here for questions, though I'll warn you that most people are typically here a bit earlier in the day23:27
Swami_has anyone tried porting from source (custom kernel) to create their own ubuntu snappy image for a generic amd64 device, just as a first step?23:28
Swami_I was going through the mail digest for the past year and going through. Is there a list or some kind of writeup if someone has as there are not much info. available in snappy developer website for bringing up a custom kernel.23:29
Swami_Thanks Kyrofa.23:29
kyrofaSwami_, the kernel snaps are pretty new23:29
kyrofaSwami_, but yeah, you should be able to use the kbuild/kernel plugins in Snapcraft to build your kernel snap, then use ubuntu-device-flash to generate an image configured with it23:30
kyrofaSwami_, thing is, this only applies to xenial, which isn't released yet so it's still changing23:31
kyrofaSwami_, feel free to play with it, but keep that in mind23:31
Swami_I was reading through that I need some Apparmor changes, if I wanted to use my custom kernel. say for eg., I downloaded the kernel source from kernel.org and is it possible to use this kernel source to build for snappy's kernel image?23:32
Swami_sure, got it. I am not there yet. still new to snappy. haven't explored latest releases yet.23:33
kyrofaSwami_, I'd say it depends on the version23:34
kyrofaSwami_, I'm afraid I'm also not familiar with how much apparmor has been upstreamed23:34
Swami_I see. Is there a link which I can refer to build a custom kernel for my own engineering snappy image. Rather than picking the device tar ball from ubuntu server and then just using ubuntu-device-flash for just creating the image using the device tar file.23:35
kyrofaSwami_, perhaps this will be helpful: http://blog.sergiusens.org/posts/Snapcrafting-a-kernel/23:37

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