/srv/irclogs.ubuntu.com/2016/01/07/#snappy.txt

=== chihchun_afk is now known as chihchun
fgimenezgood morning08:05
dholbachgood morning08:19
LefterisJPHey guys good morning. (If you are located in Europe)  :)09:00
LefterisJPIn an experimental snapp I am playing with I have a binary which tries to access the $SNAP_APP_PATH variable09:00
LefterisJPInstead of getting the /apps/NAME/version/ path I get the current directory there.09:01
LefterisJPAny idea why and/or how I can get the actual path?09:01
JamesTaitGood morning all; happy Thursday, and happy Old Rock Day! 😃  🎸09:43
renatexit09:50
femdomHi all! I'm trying to make a webcam using program work. But apparmor denies me usage of my webcam (Denies ac09:52
femdomHi all! I'm trying to make a webcam using program work. But apparmor denies me usage of my webcam (Denies access to the /sys/bus)09:52
=== femdom is now known as renat
renatI can see that in OEM snap I can unmask webcam device in the "assign" setting. But is it possible to whitelist that webcam in the regular app snap?09:54
LefterisJPI will ask my question again since it seems nobody saw it :)09:55
LefterisJPIn an experimental snapp I am playing with I have a binary which tries to access the $SNAP_APP_PATH variable09:55
LefterisJPbut it shows to be the current directory instead of what I would expect09:55
LefterisJPanyone knows why?09:55
renatLefterisJP, how are you trying to access?10:01
renatPlease see this http://pastebin.com/f0d2NRGZ10:01
renatNotice that SNAP_APP_PATH becomes your workdir just before your application is started10:01
LefterisJPI am simply trying to run the binary manually since running it from Appname.binary did not work and wanted to see why this happened.10:03
LefterisJPThe binary is the shell script from the go-template that chooses the "correct architecture" binary10:03
LefterisJPfrom this post: https://insights.ubuntu.com/2015/06/03/so-you-want-to-write-a-snappy-app/10:04
LefterisJPThis is the shell script in question: https://gist.github.com/LefterisJP/90d7a91933db92011a0210:07
LefterisJPfor it to work I would expect snapp_dir=$SNAP_APP_PATH when echoed to show the /apps/name/version/ directory10:07
renatDoesn't this happend because of line 30?\10:08
renatPlease, see your wrapper in the /apps/bin/ directory10:09
renatYou will see a script which sets all SNAP_* variables10:09
renatIf it's your experimental script - you can just copy - paste all SNAP_* vars there and see if that helps.10:11
LefterisJPit's not due to line 30 since I tried to echo the $SNAP_APP_PATH even before those lines, and then it seems to be empty.10:17
LefterisJPBut indeed you are right, there is a script in /apps/bin which looks like the one you linked. I can of course manually paste them and I expect it to work, but what would that achieve? I would like to be able to access these variables from my binary  (and the shell script I linked assumes this is possible to select the right architecture)10:18
LefterisJPhmm I think I understand. When I run the binary, then this wrapper at /apps/bin runs which in turn should call the architecture selection script.10:32
renatNo10:32
renatThere should be one more wrapper script10:32
LefterisJPI am getting appname Geth.sideload not allowed so this is why I tried to run the binary directory10:32
LefterisJP 10:32
LefterisJP/s/directory/directly10:33
renatapps/bin/wrapper should run /apps/snapname.sideload/current/bin/binary.wrapper which should run /apps/snapname.sideload/current/bin/binary10:34
LefterisJPOk I am trying to see why I am getting sideload not allowed, so I am gonna go through all these10:34
renatMaybe I'm wrong.10:35
renatBut anyhow if you use SNAP_* variables - you need to execute script in /apps/bin/ which sets all appropriate variables10:36
LefterisJPAny idea why one would get this "Sideload not allowed" error?10:39
LefterisJPThis is what I get when I run the /appas/bin/wrapper10:39
renatDon't know. Maybe you can find an answer if you run dmesg10:40
LefterisJPso basically this part of the /apps/bin/wrapper script (last line) seems to fail10:54
LefterisJPubuntu-core-launcher Geth.sideload Geth.sideload_.-bin-geth_IJXfQHMIaSVL /apps/Geth.sideload/IJXfQHMIaSVL/bin/geth "$@"10:55
LefterisJPwith appname Geth.sideload not allowed10:55
LefterisJPIF I use snappy-remote --url FOO install PACKAGE isn't it enough? Do I need something different to properly allow executing a sideloaded app?10:55
enoch85kyrofa, ping12:05
LefterisJPso I think I have pinned down the problem a bit more12:16
LefterisJPI have installed the hello-world example which calls its binary also via ubuntu-launcher12:16
LefterisJPubuntu-core-launcher hello-world.canonical b c12:16
LefterisJPWill give an error about the path12:16
LefterisJPwhich is okay12:17
LefterisJPbut ubuntu-core-launcher Geth.sideload b c will give an error about the appname not being allowed12:17
LefterisJPWhy would ubuntu-core launcher not allow me to launch an app with that name when I have already installed it and it appears as sideloaded when I do `snappy list`  ?12:18
sergiusensChipaca, can you help out there12:22
Chipacawhere?12:22
sergiusensLefterisJP, are you on rolling or 15.04?12:22
sergiusensChipaca, ^ sideloading and core launcher failures12:22
ChipacaLefterisJP: what are you doing, exactly?12:22
sergiusensthen again, I haven't grabbed all the details to the problem :-)12:22
LefterisJPI am using an ubuntu 15.10 with snappy tools. I snapify a directory with snappy-build and get the package. Then I upload it to my Rpi with snappy-remote.12:24
LefterisJPOnce there I can confirm it's sideloaded with snappy list12:24
LefterisJPBut when I try to run the Binary by doing Geth.geth I get the:12:25
LefterisJPappname Geth.sideload not allowed12:25
LefterisJPerror12:25
ChipacaLefterisJP: do you have click-reviewers-tools installed?12:25
ChipacaLefterisJP: I don't think you can use uppercase there, but i might be wrong12:25
LefterisJPSo I have been digging to find out why this happens, and it's an error omitted by this ubuntu-core-launcher used in the wrapper script.12:26
kyrofaGood morning12:26
kyrofaenoch85, pong12:26
LefterisJPChipaca: Good idea. I will try with all lowercase too. What about the click-reviewers-tools? Is it supposed to be in the target or in the host machine?12:26
ChipacaLefterisJP: if you have it installed on the host machine, `snap build` will warn you about stuff12:27
enoch85kyrofa, hey Kyle! :) How is your schedule today? :?12:27
ChipacaLefterisJP: as long as you have a recent-enough one installed, it'll give you the same warnings as the store would12:27
sergiusenskyrofa, morning12:28
LefterisJPChipaca: Just checked. I do have it. And snappy build gives no warnings.12:28
ChipacaLefterisJP: hmm... i don't believe you =)12:30
ChipacaLefterisJP: you should be getting "malformed name" with an uppercase package name12:30
ChipacaLefterisJP: i just checked this12:31
ChipacaLefterisJP: maybe you have an older snappy that *didn't* run click-review automatically?12:31
ChipacaLefterisJP: try running it by hand: click-review <snapname>12:32
Chipacae.g., $ click-review Hello-world_1.0.18_all.snap12:32
ChipacaErrors12:32
Chipaca------12:32
Chipaca - lint:snappy_name_valid12:32
Chipacamalformed 'name': 'Hello-world'12:32
ChipacaHello-world_1.0.18_all.snap: FAIL12:32
LefterisJPahh wait12:32
LefterisJPI had already changed the name ....12:32
ChipacaLefterisJP: ah :)12:33
LefterisJPlet me try again12:33
kyrofaenoch85, this morning is a little full, but this afternoon is a bit more open12:34
=== chihchun is now known as chihchun_afk
LefterisJPnah .. changed it back and snappy build did not complain.12:34
LefterisJPhttp://postimg.org/image/jek4a32o5/12:35
LefterisJPMaybe I do have an older version.12:35
LefterisJPLet me see if the RPI likes the lowercase name though12:35
ChipacaLefterisJP: you can always run click-review by hand, as above12:35
kyrofasergiusens, elopio I need to miss standup today-- I have a doctor's appointment12:35
sergiusenskyrofa, no worries12:35
ChipacaLefterisJP: i'd suggest you add the ppa to have the most recent stuff if you're going to be building stuff with snappy long-term12:36
LefterisJPChipaca: Will do. Thanks. Good to know this tool exists.12:38
LefterisJPChipaca: Which ppa? I only have the one mentioned in the Get Started guide.12:41
LefterisJPppa:snappy-dev/tools12:41
ChipacaLefterisJP: hm, that's probably right. What does `apt-cache policy ubuntu-snappy-cli` say?12:42
LefterisJPInstalled: 1.5ubuntu112:43
LefterisJP  Candidate: 1.5ubuntu112:43
LefterisJP  Version table:12:43
LefterisJP *** 1.5ubuntu1 012:43
LefterisJP        500 http://gb.archive.ubuntu.com/ubuntu/ wily/universe amd64 Packages12:43
LefterisJP        100 /var/lib/dpkg/status12:43
LefterisJP 12:43
Chipacahuh12:46
Chipacamvo_: ping12:46
ChipacaLefterisJP: i guess that is the right version for 15.04 compatibility (which is stable snappy until 16.04)12:49
Chipacabut we might want to enable click-review (i thought we had?); hence mvo_ ping12:49
=== popey_ is now known as popey
LefterisJPChipaca: understood. Anyway it really helps since I am already getting other errors with my snap thanks to these tools. `Error could not find binary`. Looking into what it is now12:52
ChipacaLefterisJP: 👍12:53
renatHi guys! It's Renat from Screenly. I have more and more questions=)13:01
renatFirst - how I can enable access to the webcam in the snapcraft.yaml file? I want to use webcam snap (C++ app with OpenCV). And when I try to run it - that app doesn't work. Because of AppArmor. I've used hw-assign to enable /dev/video0 for my snap.13:03
renatBut it doesn't work anyhow.13:03
renatFrom dmesg I can see13:03
renatapparmor="DENIED" operation="open" profile="webstreamer.sideload_camcapture_IJXBNQHfABEX" name="/sys/devices/pci0000:00/0000:00:06.0/usb1/1-1/1-1:1.0/video4linux/video0/dev13:03
sergiusensrenat, I'll defer that to jdstrand ^13:08
renatsergiusens, thanks13:09
kyrofasergiusens, take another look at https://github.com/ubuntu-core/snapcraft/pull/206 when you're able?13:17
enoch85kyrofa, cool, I will go to my regular work now, but I'll be back in your afternoon. As I said earlier, feel free to work without me. :) Later!13:18
kyrofaenoch85, sounds good!13:18
LefterisJPIf I am having trouble with an executable inside an Ubuntu core installation on the Raspberry PI is there any way to invoke common Unix tools like strace and ldd to see what could be wrong?14:12
LefterisJP(Want to find out why my cross-compiled executable does not run)14:12
sergiusenskyrofa, sorry one more comment14:13
kyrofasergiusens, no need to be sorry! Thanks for being thorough :)14:13
sergiusensLefterisJP, not exactly strace but `sudo snappy install snappy-debug`14:14
sergiusensit will help out with all the security warnings and such14:14
kyrofasergiusens, fixed14:15
LefterisJPsergiusens: thanks. Will try it out14:17
sergiusenskyrofa, just fwiw, I thought you said we needed the exact format for closing bugs '(Closes LP: #XXXX)' or is 'Fixes ...' also fine?14:20
sergiusenskyrofa, or just LP: #XXXX14:20
sergiusensyou must be gone by now :-P14:21
kyrofasergiusens, right, Closes|LP is the default pattern14:21
kyrofasergiusens, so LP: #XXX14:21
kyrofasergiusens, alright I gotta run14:22
mvo_Chipaca: ups, sorry for the delay. yes, I thought we did enbable that, wonder what happend here. did you figure it out already or should I have a look14:22
Chipacamvo_: i haven't looked14:22
elopiosergiusens: sorry, I hit the close button but you kept talking :)14:45
sergiusenselopio, no, mutual14:45
sergiusensI did not notice you hit it14:45
sergiusens:-P14:45
=== lool- is now known as lool
elopiostgraber: yesterday I almost got all the tests passing in the travis lxc. But then I wanted to run them as the user, not as root, and it fails when the tests try to run sudo, like this: http://pastebin.ubuntu.com/14430440/15:01
elopiosudo: no tty present and no askpass program specified15:01
elopioDo you know a good way to work that around?15:01
stgraberstgraber@castiana:~$ lxc exec blah -- su - ubuntu -c "sudo ls /"15:04
stgraberbin   dev  home  lib64     media  opt   rootsbin  sys  usr15:04
stgraberboot  etc  lib lost+found  mnt    proc  runsrv   tmp  var15:04
stgraberseems to work here, can you give me the url to your travis.yml again?15:04
elopiostgraber: I rolled back to root late last night: https://github.com/elopio/snapcraft/blob/lxd/.travis.yml15:05
stgraberelopio: ah, the difference is probably that I was tested with the official cloud images rather than the minimal image we have on images.linuxcontainers.org15:11
elopiostgraber: should I be using the official cloud image instead?15:12
stgraberelopio: instead of "lxc remote add..." do "lxd-images import ubuntu xenial --stream daily --alias ubuntu" and instead of "lxc launch images:..." do "lxc launch ubuntu xenial"15:13
elopioI like that :D15:14
stgraberelopio: I think so, that'll solve the sudo issue at least and probably save you a few dependencies too. Some folks still prefer the other images due to their size, they are about half the size of the cloud images15:14
jdstrandrenat: you use hw-assign for things in /sys/devices too. It can be used with globs (one '*' for everything in a directory, '**' for subdirectories too and end with a '/' and it is everything in that directory. eg, 'sudo snappy hw-assign foo.sideload '/sys/devices/**/video4linux/video0/'15:47
jdstrandrenat: note, this is going to change with the new capabilities work15:47
jdstrandzyga: fyi (and I think we are on the same page here) is that when we do a capabilities assignment (eg, assign camera which maps to /dev/video0 underneath (whatever the syntax ends up)) then we get not only the /dev/video0 but also /sys/devices/**/video4linux/video0/ (and related items)15:49
jdstrands/is that//15:50
jdstrandrenat: hey, did you see my comment to you regarding hw-assign? you dropped off right after I gave it15:50
jdstrandrenat: in case not: you use hw-assign for things in /sys/devices too. It can be used with globs (one '*' for everything in a directory, '**' for subdirectories too and end with a '/' and it is everything in that directory. eg, 'sudo snappy hw-assign foo.sideload '/sys/devices/**/video4linux/video0/'15:50
jdstrandrenat: note, this is going to change with the new capabilities work15:51
renatjdstrand, thanks. Where I can read about new capabilities? So this mean - it's not possible to enable access to the device until snap is not installed?15:57
jdstrandrenat: the new capabilities work was announced on snappy-devel@ in Nov/Dec. it is still being defined/implemented and isn't available yet on any images15:58
jdstrandwell, maybe it is in parts. perhaps zyga can point you at something15:58
renatjdstrand, understood. Thanks.15:59
* sergiusens takes a break from implementing the new format for snap apps16:19
zygajdstrand: hey16:41
zygajdstrand: that's up to the capability to decide, I have some code I want to show you for some review16:41
zygajdstrand: but probably tomorrow, I'm trying to make something that I can propose in parallel to other branches aimed at trunk16:41
zygajdstrand: I'd like to understand how to plan for the major flag day when snappy uses capabilites to boot16:42
zygajdstrand: and to do that I need to get everyone to agree on a few details16:42
zygajdstrand: and to ask you and tyhicks about some details of ubuntu-launcher and apparmor/seccom bits16:43
zygajdstrand: specifically, exactyl which file is read / written by which tool outside of snappy itself16:43
zygajdstrand: *exactly16:43
zygajdstrand: I read most of aa and snappy code related to that but I don't want to bet I'm correct16:43
zygajdstrand: as for the actual security bits, I'll show you a branch/gist in one hour, we can discuss it tomorrow/next week16:44
asacsergiusens: hmm.. cant find a python pip example anymore :16:57
asac:(16:57
* asac feels blind16:58
asacpython3 and py2 seem to not be doing pip stuff anymore16:58
asacbut rather pull from git a tree16:58
sergiusensasac, there are many, te most simple one using whatever is in setup.py https://github.com/ubuntu-core/snapcraft/blob/master/integration_tests/snaps/pypi-config/snapcraft.yaml17:01
sergiusensasac, using `python-packages` https://github.com/ubuntu-core/snapcraft/blob/master/integration_tests/snaps/pip-requirements-list/snapcraft.yaml17:02
sergiusensasac, and requirements.txt https://github.com/ubuntu-core/snapcraft/blob/master/integration_tests/snaps/pip-requirements-file/snapcraft.yaml17:02
sergiusensasac, also `snapcraft help python3`17:03
sergiusensor 217:03
asacsergiusens: why no example/ anuymore?17:03
sergiusensasac, I don't think there ever was an example17:03
renatGuys. It's me again. Sorry=( For the some reason /dev/vchiq device not appearing in snappy. But I can see it in Raspbian.17:08
renatTried to load vchiq by modprobe, with no result. Maybe it's compiled in somehow.17:10
renatMaybe it's because udev. Let me investigate.17:11
asacsergiusens: really odd ... i see https://aws.amazon.com/de/cli/ that pip install awscli should do the trick17:12
asacbut if i do this it doesnt yield a bin/aws et.17:12
asacetc17:12
asacwell look at en: https://aws.amazon.com/cli/17:13
aPragmatisthello all. I have an armhf c++ project that depends on several 3rd-party libraries (zmq, jsoncpp, eigen, etc) that I've been running on a bunch of beaglebone blacks with debian. I'd like to port this project, and a couple of others, to snappy in order to take advantage of the atomic updating/rollback features. What approach do you all recommend? Should I adapt the project to use snapcraft, or build as I have been with make, and17:13
aPragmatist include all of the libs manually in the snap?17:13
aPragmatistOr... do you think I'm better off just implementing the update/rollback features myself and not using snappy?17:15
aPragmatistThanks in advance for your help :)17:16
jdstrandzyga: ack17:18
zygajdstrand: thanks!17:18
sergiusensasac, strange since we already had aws' cli working with snapcraft17:21
zygajdstrand: I won't have the gist for discussion today, sorry :/17:48
zygajdstrand: I got more food for though with hooks, I'm processing that now17:48
renatNevermind guys. vchiq worked after firmware upgrade using rpi-update.18:01
jdstrandzyga: no worries-- I've got plenty to do :) tomorrow or ideally monday would work best for me. enjoy your evening :)18:06
renatjdstrand, sorry for disturbing you. Not sure if it's important, but your current Raspberry PI2 firmware with vchiq support broken. I don't know who is responsible for that, but you may want to update your raspberry pi image with newer firmware.18:09
jdstrandogra_: iirc, that is something you'd be interested in ^18:11
jdstrandrenat: thanks18:12
ogra_vchiq ?18:13
* ogra_ googles 18:13
ogra_well, i doubt anything on the RPi is even remotely ready for graphical stuff yet18:14
ogra_i was planning to take a look after my vacation though18:14
ogra_renat, please file a bug :)18:26
renatogra_, ok.18:27
kyrofaChipaca, are you still around?18:48
Chipacakyrofa: no18:48
Chipacakyrofa: 'sup?18:48
kyrofaChipaca, okay I'll ask tomorrow ;)18:48
Chipacakyrofa: i've got 5 minutes before the risotto needs tending again18:48
* sergiusens notices that Chipaca is always needs to leave as soon as food is ready implying he might be eating all day18:49
sergiusens:-D18:49
* Chipaca agrees18:50
kyrofaChipaca, okay this should be relatively quick. The discussion here (https://github.com/ubuntu-core/snappy/pull/264) culminating in the ML post just sent... I don't understand what he's saying. We redefine $HOME=$SNAP_APP_USER_DATA_PATH anyway18:50
Chipacakyrofa: ah. i haven't read the email yet.18:50
sergiusenskyrofa, he's saying running sudo should make $HOME point to the euid18:50
sergiusenstoday, sudo preserves your env on ubuntu18:50
kyrofasergiusens, but the wrapper effectively does that18:50
kyrofasergiusens, well, along with #264's fix18:51
sergiusenskyrofa, you might be completely right here; we have too many wrappers to keep track of ;-)18:51
kyrofasergiusens, yeah there's that problem too :P18:51
Chipacakyrofa: I think #264 is one implementation of this, but18:52
Chipacakyrofa: maybe we should just get euid's home directly and not worry18:53
kyrofaChipaca, so really it's a different implementation altogether. Before the wrapper it touched, $HOME should point elsewhere?18:53
kyrofaChipaca, which is where you were coming from with the libc comment, okay I think I gotcha18:54
Chipacasomething like that, yes18:55
kyrofaChipaca, okay thank you! I just wanted to understand where he was coming from there18:56
jerryGany1 able to answer questions about mir, xmir or shared libs in snappy?18:56
Chipacakyrofa: just read gustavo's email, and i think his proposal is sane and is basically what you're trying to do with 264 but gives us a framework against which to check the other things; i still need to look at what we're doing vs what we want to do18:56
kyrofaChipaca, okay. I'm going to leave #264 alone until I get some better guidance. I can tweak that as needed, close and do something earlier in the process, or just let you deal with it18:58
jerryGmterry: are u online?18:58
Chipacakyrofa: +1.33̑18:59
niemeyerkyrofa: My concern, which I'm trying to address in that mail, is that we've been solving that issue in small pieces, and with slightly different semantics each time18:59
ChipacajerryG: what's your question about shared libs in snappy?18:59
kyrofaniemeyer, oh I'm sorry-- I would have just asked you but I was trying to put the e before the i and it wasn't tab-completing, so I figured you weren't online :P19:00
niemeyerkyrofa: Rather than tweaking where the user data points to, I hope we can make it consistently point to the user's home, so everything falls from that19:00
niemeyerkyrofa: No worries19:00
kyrofaniemeyer, and yeah, I'm on board with that19:00
kyrofaniemeyer, we'll still need to create the directory when it comes to services, though19:00
Chipacathis breaks the "sudo vim finds my .vimrc", but i don't see a way around that19:00
niemeyerkyrofa: If there's consensus around that approach, it's clear how to fix the problem in every case19:01
Chipacaand so many apps get that wrong and write the user's config when uid!=euid, it's not worth it tbh19:01
niemeyerkyrofa: Why are services any different?19:01
jerryGChipaca: I have 2 questions: 1. how do I add shared libraries (files) in snapcraft.yaml, 2. how do I include xmir in my app,19:02
kyrofaniemeyer, just because the binary wrapper makes sure user data path exists, services do not19:02
niemeyerkyrofa: That sounds like a bug on itself19:02
ChipacajerryG: shared libraries should be added automatically aiui19:02
kyrofaniemeyer, agreed19:02
niemeyerkyrofa: In the sense that services shouldn't have a complete different path for everything19:02
niemeyerkyrofa: services are not that special19:02
ChipacajerryG: i know nothing about xmir, but maybe somebody else here does =)19:03
kyrofaniemeyer, yeah I think that should be removed from the wrapper and added to ubuntu-core-launcher19:03
kyrofaniemeyer, makes them more similar19:03
Chipacathe wrapper needs cleaning up a lot19:03
Chipacafor 16.0419:03
Chipacaincluding nuking the silly tmpfile thing we did pre-150419:04
Chipaca(i mean silly to still be doing it now we no longer do it)19:04
niemeyerkyrofa: I still haven't visited the whole code base, and this is an area I'm specifically less aware about, so I'm afraid of saying yes or no.. perhaps would be my best answer before I know more19:04
kyrofaniemeyer, understood! +1 on your proposal though19:05
kyrofaniemeyer, I'll respond to the ML though19:05
niemeyerChipaca: pre-1504 makes it sounds *really* old :D19:05
kyrofaHahaha19:05
niemeyerkyrofa: Thanks, appreciated19:05
jerryGChipaca: how do I wrap program with LD_PRELOAD? like mterry did?19:05
mterryjerryG, am now, back from lunch19:05
jerryGmterry: great!..  how does libsnappypreload.so work?  How do I include .so files in my snaps?19:06
Chipacaniemeyer: ditto for SNAPP_ variables19:06
mterryjerryG, look at how https://github.com/mikix/deb2snap works19:06
ChipacajerryG: libsnappypreload.so is *old*19:06
ChipacajerryG: what are you trying to do?19:06
mterryjerryG, it has most of the grossness on display -- src for libsnappypreload19:06
mterryjerryG, and wrappers to use it19:06
mterryjerryG, but it's a super gross way to do things19:06
Chipacai mean, the old way to do thinigs =)19:06
mterryjerryG, Chipaca can explain the new fun way19:07
Chipacano no, i can have dinner19:07
Chipacawhich is almost the same thing, but different19:07
* Chipaca afk's19:07
mterryheh19:07
mterryjerryG, well *someone* can explain the new ways (using snapcraft and such)19:07
mterryjerryG, I'm not so involved with that19:07
Chipacasergiusens: ^^19:07
jerryGmterry: ok thanks.  Can you answer questions about xmir and mir?  or is that different now too?19:08
mterryjerryG, it maybe be different, I'm not sure how snapcraft helps integrate those19:09
jerryGmterry:  I read that xmir must be implemented in the snap, and use mir as a framework19:11
mterryjerryG, yeah that's still the current plan I think19:14
jerryGmterry: how do I implement xmir in the snap?  is that similar to the way you did it? or is that different now with snapcraft?19:15
kyrofasergiusens, alright 1.0 is ready to go. Want to take another look at the changelog?19:15
jerryGChipaca: thanks for the help :}19:15
kyrofasergiusens, any other backports/features need to go into that?19:16
mterryjerryG, I don't know how different it is in snapcraft these days19:16
kyrofaelopio keeps stealing my travis19:16
kyrofaHis tests take forever19:16
jerryGmterry: is there any docs or any way to check?... I couldn't find much about xmir and mir in snappy other than your git19:17
mterryjerryG, I don't know!  The only intel I have is ancient when I made deb2snap19:17
mterry:-/19:17
mterryjerryG, maybe tedg knows?19:18
jerryGmterry: k thx.  what do they have u working on now?19:18
mterryjerryG, oh I work on the phone19:19
mterryjerryG, which isn't *yet* on snappy  :)19:19
jerryGmterry: oic19:23
sergiusenskyrofa, let me take a minute or two on that19:23
kyrofasergiusens, take your time. I'm sorry for dragging it out but I'm happy with it now :)19:24
sergiusensmterry, jerryG we are getting rid of frameworks for 16.0419:28
sergiusensfor the new way to setup mir, talk to kgunn, he's working on a wiki part (not done yet I believe)19:29
sergiusenstht said, I have no idea how display stuff works, much less xmir19:29
jerryGsergiusens: can u help with shared libraries?... can I include them manually instead of using apt-get?19:30
jerryGsergiusens: interesting decision to remove frameworks19:31
sergiusensjerryG, what do you mean by manually? you have a lib already? use the copy plugin19:32
jerryGsergiusens: kk19:32
enoch85kyrofa, ok, back from work. are you here?19:34
kyrofaenoch85, I am :)19:34
kgunnjerryG: as sergiusens, i've just learned myself that things are changing for 16.04 wrt frameworks and security policy...19:34
kgunnso even i'm back at the drawing board for mir19:35
sergiusenskgunn, oh, I thought frameworks wouldn't affect the 'single snap model'19:35
kgunnsergiusens: you're right in that sense, it's only related in that, aiui we can't split out sec caps to different parts within a snap19:36
kgunnand sec team doesn't want too much capability in a snap for a client app19:36
kgunnso i'm being pushed back to the 2 snap approach19:37
sergiusenskgunn, I thought the idea was for each app in a snap to have its own capabilties19:37
sergiusenskgunn, oh, yeah, that brings in a lot more work19:37
kgunnsergiusens: right, it was a feasible way (the 1 snap) but wouldn't scale....19:38
kgunnand doesn't really match the framework going away (as can't set you're own policy)19:38
=== Saviq_ is now known as Saviq
=== plars_ is now known as plars
jerryGkgunn: On 15.04 stable, to use xmir, do I need to include it inside snap and utilize mir framework?..  if so... how do I include xmir inside snap?19:42
=== thesheff17_ is now known as thesheff17
jerryGkgunn: are you going to ubucon?19:44
DoughyHello all, the company I work for is considering Ubuntu Core as the basis for an IoT product that we are building on top of the BeagleBone Black. Is Snappy mature enough for commercial production?19:48
jerryGDoughy: no19:50
jerryGDoughy: well.. depends on what ur doing19:50
DoughyjerryG: We would like to use it as the embedded distribution on the BBB. We are attracted to the update features.19:51
DoughyBasically we have a gateway device with the Beaglebone Black, that runs our application and web server. We would like our interface to have an "UPDATE NOW" button that allows us to push both OS and application updates to the device.19:52
jdstrandkgunn: you are able to use different 'caps' within a snap now and with the new capabilities work19:53
jdstrandkgunn: eg:19:53
jdstrandapps:19:53
jdstrand  - name: foo19:53
jdstrand    caps: ...19:54
jdstrand  - name: bar19:54
jdstrand    caps: ...19:54
jdstrandkgunn: this will look different than 'caps' in 16.04, but this sort of thing will be available. what won't available is defining raw security-policy. people will have to work with Canonical to define the new capabilities (security caps currently)19:55
jdstrandbut the two snap approach (server/shell and client app) is a cleaner model than everyone forking mir+app19:56
jdstrandand it happens to work well with the new capabilities approach19:57
jdstrandwhat also won't be available is shipping framework-policy20:00
=== josepht` is now known as josepht
kgunngot it, so really, reviewing for the store not scaling is the main reason20:03
kgunnjerryG: yes, you would need to include xmir in your client snap20:04
=== wililupy is now known as wililupy|Lunch
kgunnxmir is just a client from mir's perspective20:04
kgunnnot going to ubucon20:04
=== wililupy|Lunch is now known as wililupy
kyrofasergiusens, why does the autotools plugin run `./configure --prefix=` ? Is that intentional?20:09
sergiusenskyrofa, we have that from original code, maybe mvo_ or mterry know20:10
sergiusenskyrofa, I always meant to ask20:10
kyrofasergiusens, it breaks my apache build20:10
kyrofamterry, any clues there?20:11
sergiusenskyrofa, fix it to anything that makes sense ('/' or '/usr')20:11
mterrykyrofa, prefix is commonly /usr or /usr/local20:11
mterrykyrofa, I found some packages that broke with prefix=/20:12
sergiusenskyrofa, if you do a --prefix in configflags the last one takes precedence I believe20:12
mterrykyrofa, but I didn't find one that broke with prefix=20:12
mterrykyrofa, (and I wanted one of them purely for cosmetic reasons, so that all files in the snap weren't full of /usr paths20:12
kyrofamterry, that makes sense, thank you for the explanation! It just hanging there looked... bug-like20:13
kyrofasergiusens, good to know, I'll give that a shot :)20:13
kyrofasergiusens, not a bit autotools user here20:13
kyrofas/bit/big/20:15
DoughyAnyone know if there is a way I can get someone from Canonical on the phone? I'm willing to pay for it. I need answers around Ubuntu Core and can't seem to get them.20:16
sergiusenskyrofa, I am mostly done with the work to support snap.yaml, package.yaml, readme.md and all the hooks (icon, license and config) :-D20:17
sergiusensjust pending a rewrite of all the unit tests :-P20:17
kyrofaDoughy, have you tried the snappy mailing list?20:17
kyrofasergiusens, awesome!20:18
kyrofasergiusens, you work too fast. Makes the rest of us look bad20:18
kyrofaDoughy, Ubuntu Core is pretty stable, but it is indeed under heavy development. You would need to be aware of that20:20
sergiusenskyrofa, nah; once you see this you will notice it wasn't that complicated20:20
kyrofaDoughy, what specific questions do you have?20:23
Doughykyrofa, I have an armhf c++ project that depends on several 3rd-party libraries (zmq, jsoncpp, eigen, etc) that I've been running on a bunch of beaglebone blacks with debian. I'd like to port this project, and a couple of others, to snappy in order to take advantage of the atomic updating/rollback features. What approach do you all recommend? Should I adapt the project to use snapcraft, or build as I have been with make, and include a20:24
Doughy...in the snap.20:25
kyrofaDoughy, alright, so a current limitation of snapcraft is an inability to cross-compile, so you would need an arm environment in which to run it (e.g. a qemu vm)20:25
DoughyOK, that's not a problem.20:25
kyrofaDoughy, and that's only if you choose to do the build with snapcraft. If you keep your current built methodology, you can cross-compile yourself and simply package the result as a .snap20:26
kyrofaDoughy, how do you include the 3rd party libs? Do you compile from source? .deb packages?20:26
DoughyCompiling from source.20:27
kyrofaDoughy, man you're golden if you can live with the cross-compile limitation of snapcraft20:27
DoughyIs there a good example of a C++ snap that uses 3rd party libraries that we can go off?20:28
kyrofaDoughy, hmm... you know I don't think there is. But I'm currently working on one I'd be happy to share once I make some more progress20:30
kyrofaDoughy, there are examples of using libs packaged as .debs, but not source depending on source that I know of20:31
Doughykyrofa, That would be awesome. Really appreciate it. Do you work for Canonical?20:31
kyrofaDoughy, I do20:31
sergiusenskyrofa, there are simple examples in c, 'downloader_with_wiki_parts' and 'libpipeline'20:31
kyrofaAh, thanks sergiusens. Doughy check out https://github.com/ubuntu-core/snapcraft/blob/1.x/examples/libpipeline20:32
Doughykyrofa, Does Canonical offer any paid support for this kind of stuff? Some way to get direct support as we develop rather than hoping to find you here?20:33
DoughyWe'd be willing to pay to make sure we can get questions answered quickly.20:33
DoughyThanks for the link. We've seen that link.,20:33
kyrofaDoughy, yeah, we just need to put you in touch with the right people. Mind shooting me your email in a PM?20:34
DoughyAwesome. Will do now.20:34
=== aPragmatist is now known as ummon
sergiusenskyrofa, ok, so early morning we can do the release; I'll create a hangout so you can see how boring it is21:35
sergiusenselopio, maybe you can check 1.x as it is now and verify nothing broke badly on trusty or vivid?21:36
kyrofasergiusens, sounds good21:36
sergiusenskyrofa, ideas RuntimeError: Package "std_msgs" isn't a valid system dependency. Did you forget to add it to catkin-packages? If not, add the Ubuntu package containing it to stage-packages until you can get it into the rosdep database. ?21:43
sergiusenskyrofa, that's on xenial21:43
kyrofasergiusens, yeah it may have something to do with the ubuntu version21:44
kyrofasergiusens, let me check something21:44
sergiusenskyrofa, sure21:44
kyrofasergiusens, yeah, I don't think the indigo rosdep rules include provisions for xenial (which makes sense)21:47
kyrofasergiusens, hmm... this will require some thinking21:48
sergiusenskyrofa, no worries, maybe there's an early thing for xenial going on already, I'll shoot out an email to dirk and cc you21:49
kyrofasergiusens, alright21:49
=== bschaefer_ is now known as bschaefer
=== ummon is now known as saam
=== saam is now known as dustino
sergiusenskyrofa, in case you are bored and want something to do https://github.com/ubuntu-core/snapcraft/compare/master...sergiusens:snap_yaml?expand=122:17
sergiusensan initial diff of everything except units22:17
enoch85kyrofa, sorry, got hold up with something else22:26
enoch85kyrofa, builing a new VM - totally focused you know... :)22:26

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