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

kyrofaLefterisJP, any data directory is persistent across updates00:00
kyrofaLefterisJP, here's how updates occur on Snappy:00:00
kyrofa1. Version A is installed and has data.00:00
kyrofa2. Version B is downloaded00:00
kyrofa3. Requested to install version B00:01
kyrofa4. Copy version A data into version B space00:01
kyrofa 5. Install version B00:01
kyrofaLefterisJP, now if version B sucks, you can rollback to version A and its data is still there in the state it was when it was copied00:02
kyrofaLefterisJP, this applies to both $SNAP_APP_DATA_PATH and $SNAP_USER_DATA_PATH00:02
LefterisJPhmm so data are first copied? It was suggested to me to use $SNAP_APP_DATA_PATH for the framework to sync the blockchain. This is a database that will practically always grow.00:02
kyrofaLefterisJP, indeed. Yeah, that sounds like a good spot00:03
kyrofaLefterisJP, any database will always grow :)00:03
LefterisJPThat's nice then, and do users get some form of cleanup management? So that they can delete old data lying around? Cause at least for sideloading I got lots of directories lying around. I can delete manually but that feels dirty :)00:03
kyrofaLefterisJP, right now there's `snappy purge`, but that will clear ALL data. We're working on making that a bit better00:04
kyrofaLefterisJP, `snappy purge <appname>` specifically00:04
LefterisJPI see. All right thanks that will do for now I guess. In the future having some granularity in the choice of versions to purge would be awesome.00:06
kyrofaLefterisJP, agreed00:07
adsadWhy doesn't Snappy Ubuntu use apt-get given that apt-get is so friendly to use?00:56
xnoxadsad, well, snappy uses a different model of atomic updates. it's kind of what rpm-ostree is to yum/rpm. But so much more as well, given frameworks, atomic updates, and snaps (aka apps)00:58
xnoxinstead of package-per-package update, it's an atomic whole image, a/b updates. or so i understand it.00:59
adsadWhat is the advantage of atomic updates? what is so good about it that the proven apt-get is abandoned?00:59
xnoxadsad, the base things are still compiled with apt-get/deb based things. So e.g. all the source packages for ubuntu are still build with dpkg-src.00:59
adsadif update whole image instead of individual package, wouldn't it take long long time to update?00:59
adsadam i right to say the right place to use snappy is on IoT gateways?01:00
xnoxadsad, it's actually faster =) because there is no maintainer scripts to run, nor individual packages to update. It's down to byte-wise delta. With apt, one has to download and unpack all the unchanged files. And thanks to reproducible builds, security update of a .deb is actually just a tiny delta =)01:00
adsadxnox: wow. good to know. impressive. Why not Ubuntu mainstream move to snappy atomic update instead? :)01:01
xnoxadsad, currently snappy is targeted on IoT gateways, but there are plans to use same technology on e.g. ubuntu for phones, and eventually clients/desktops/servers but UX is still to sort out. Cause e.g. people currently used to e.g. removing apps.01:01
xnoxadsad, and not everybody who is using e.g. ubuntu unity desktop experience, wants all the default apps that we provide.01:02
adsadwhat are some embedded system boards today that support snappy as iot gateway? I don't think it is suitable for use on desktop and servers, right?01:02
xnoxadsad, eventually, one day, maybe we will have efficient, atomic, delta, snappy based updates for all for factors. But right now, we are looking at embedded space - cause that's kind of how it has always operated. (ie. "flash" firmware whole disk image)01:03
xnoxadsad, there aren't enough frameworks/base-images generated to be a better experience on the desktop/server than the current apt-get offering, that's true.01:03
xnoxadsad, i'm not sure of the current target boards, somebody from snappy team might be able to help you more. I think one can run it in an x86_64 qemu kvm VM to try things out.01:04
adsadwhy is snappy suitable for use as iot gateway? I believe mainstream Ubuntu can also work as IoT gateway as long as the gateway has enough RAM. Embedded systems are almost like mini  PCs today01:04
xnoxadsad, because of snaps - there are things being packaged for snappy, to make it more open to the end user. Frequent updates, vendor supported, and customizable. E.g. one can add/remove snaps to configure "gateway" advance functionality. Or so I understand. E.g. a snap to get filesharing configured, securely, updated, supported. snap to get firewall. snap to get QoS. Etc. instead of sub-par experience with existing point-and-click firmware on gateways.01:08
xnoxadsad, look at partners at http://www.ubuntu.com/internet-of-things01:08
xnoxnote, i'm just a community member, i don't develop snappy at all. just a user.01:08
adsadxnox: thanks. u sound highly knowledgeable anyway01:09
adsadsounds like the main reason for using snappy on Iot is security01:09
xnoxadsad, a while back, i was like "what is this ubuntu core and snappy thing anyway" so did my research.01:09
xnoxadsad, yeah, in a user friendly and actually open way =)01:10
adsadxnox: yes, that's important with high security stuff. normally, security means developer-unfriendly01:10
adsadxnox: if u have tried Intel WIndRiver, u will understand what developer-unfriendly means01:11
xnoxtrue. snappy is all around friendly: manufacturers/partners, developers/deployers, end-users, end-developer (consumer developers)01:11
xnoxadsad, i cannot comment on Intel Windriver at all =) as I used to work for Intel, albeit not at all on windriver products.01:12
adsadxnox: snappy is lacking with embedded system security compared to other industrial gateways01:12
xnoxnot sure, didn't study that deep. On the surface it did appear to utalise priviledge separation a lot, and apparmor.01:13
adsadxnox: oops.. not to say Intel products are bad. Only WindRiver gave me a terrible experience. Anyway, Intel supports Snappy too. It is a great vote of confidence01:13
xnoxbut i'm not a security expert.01:13
adsadxnox: embedded system security is a hardware thing. There's no way snappy can deal with that because snappy is a software01:15
adsadxnox: when someone tempers with the hardware, the system can detect that with good embedded system security. I really don't think it is worth paying for this feature anyway01:16
xnoxsnappy is software, ubuntu core is a product. And given the list of hardware partners on the website, it's not unreasonable to expect for hardware to be integrated eventually.01:16
xnoxthat's the point of hardware partners, no?01:16
adsadxnox: yes.01:17
adsadxnox: i'm  a hobbyist. So far, the only hardware for snappy for hobbyist is raspberry pi. poor man's development board01:18
adsadSome hardware partners charge an arm and a leg. Like WindRiver.01:18
=== chihchun_afk is now known as chihchun
=== mwhudson is now known as Guest92985
=== Guest92985 is now known as mwhudson
zygagood morning08:29
JamesTaitGood morning all!  Happy Tuesday, and happy Popcorn Day! 😃09:18
LefterisJPWhen doing `sudo snappy-debug.security scanlog` is there anyway to clear the logs? Asking because right now they are kind of spammed by previous denials I have fixed and I would like to make them go away.09:20
mvoogra_: hi, is your gadget snap for arm64 available in bzr?09:39
mvoogra_: nevermind, I used your dragonboard_0.1_all.snap now and put that into the lp:~snappy-dev/snappy-hub/snappy-systems  tree09:57
mvoogra_: btw, I wonder if we should make partition label a property of the gadget snap maybe?09:58
LefterisJPHey guys is there any way to regenerate apparmor policies for snapps that use a framework's policy if I change said framework's policy group apparmor profile in place? I want to find faster ways to debug/test things in the framework I am developing.10:06
LefterisJPI tried sudo snappy-debug.security regenerate SNAPPNAME but that did not do it. (I have edited the framework's policygroup in place, and the snapp uses it so that may introduce extra complexity)10:09
mvoogra_: also if you could check https://github.com/ubuntu-core/snappy/pull/337 if that is actually true…10:15
fgimenezhi mvo :), quick question about https://trello.com/c/tfC2TNsE/291-all-snaps-check-that-boot-grub-does-not-contain-a-kernel-initrd10:17
fgimenezmvo, do we need to check only /boot/grub or also /boot/grub/a-b for the absence of the initrd.img and vmlinuz files?10:18
mvo_ogra_: I have created an all-snap dragonboard image, do you have the HW to test it?10:19
mvo_fgimenez: maybe we can just do a "find /boot/grub -name "vmlinuz" to get it all?10:20
fgimenezmvo_, ok thx, i hope to have it finished soon10:21
mvo_fgimenez: \o/10:23
mvo_ogra_: anyway, please ping me once you are around so that we can talkabout the image10:28
=== vrruiz_ is now known as rvr
* zyga pused https://github.com/ubuntu-core/snappy/pull/33811:00
* zyga pushed https://github.com/ubuntu-core/snappy/pull/34011:43
pindongahi elopio , sorry to be such a nuisance... just wanted to set expectations for this week... do you think it's possible the snappy tests in travis can be run in xenial this week?12:28
=== chihchun is now known as chihchun_afk
kyrofaGood morning12:40
kyrofaLefterisJP, if you're still around, the snappy-debug logs come from syslog-- truncate that and you'll be good to go13:23
kyrofajdstrand, ping13:24
liuxgChipaca, ping13:46
liuxgwhat could be the error "required description field not specified snappy-systemd_package_yaml_description_present (piglow)" after I uploaded my snap to the ubuntu core store. I have description field in the snapcraft.yaml file there.13:47
liuxgkyrofa, ping13:49
kyrofaliuxg, pastebin your snapcraft.yaml13:50
kyrofaliuxg, and hi :)13:50
liuxgkyrofa, this is the snapcraft.yaml http://paste.ubuntu.com/14575220/, and the error is like http://paste.ubuntu.com/14575221/13:51
kyrofaliuxg, your service requires a description13:51
liuxgkyrofa, oh, really? I did not notice that. In fact, the snapcraft never complains it when building it.13:52
kyrofaliuxg, yeah it's just required by the review tools13:52
liuxgkyrofa, may I think this is a bug for the tool?13:52
kyrofaliuxg, later versions of snapcraft specify one for you13:52
kyrofaliuxg, not really-- if you install the review tools locally snapcraft will run them for you13:52
kyrofaliuxg, but snapcraft isn't really meant to be a review tool13:53
kyrofaliuxg, make sense?13:53
liuxgkyrofa, ok. thank you for your help. I will correct it :) by the way, would you please help to review my training slides. thanks a lot for your help.13:53
liuxgkyrofa, how to use the review tool for snap?13:53
liuxgkyrofa, I really need it to check it before I upload my snaps to the store.13:54
liuxgkyrofa, yes, it makes sense, of course :)13:55
kyrofaliuxg, ah, I forgot, I'm so sorry! Thank you for the reminder-- looking now13:56
liuxgkyrofa, it is alright. I think you are pretty busy. Just do it when you are free. Again, thanks for your help!13:57
kyrofaliuxg, regarding the review tools, I'm not certain. I think it's click-review13:59
kyrofaliuxg, click-reviewers-tools14:00
kyrofaliuxg, then run click-review <my snap>14:01
liuxgkyrofa, ok. thanks a lot. I will take it down, and blog it for the developers :)14:01
elopiopindonga: let me re-run to see what's the status today.14:29
sergiusenskyrofa, elopio are you standing up?14:35
kyrofasergiusens, yeah, wanna join?14:36
sergiusensI'll try14:36
elopiosergiusens: nah, just talking about you.14:36
bladiblahow to get started with snappy14:47
elopiofgimenez: I'd like to attend pitti's proposed migration call. If you have something to discuss, can we do it here?14:51
liuxgI just published my snappy apps to the store, then I started to install it. However, it showed me the error like "webcam failed to install: snappy package not found"14:52
sergiusenselopio, I forgot to ask, do the adt tests work fine for master?14:53
elopiosergiusens: do you mean integration tests in snappy master? Last time I looked they did.14:54
elopioI'm about to check again.14:54
fgimenezelopio, sure np14:56
sergiusenselopio, snapcraft I mean14:56
sergiusenselopio, as in atd run snapcraft (or however it was run)14:56
elopiosergiusens: ah, I know what you mean. I don't know, let me check.14:57
elopiosergiusens: it fails with snapcraft/tests/test_plugin_catkin.py:334:20: E713 test for membership should be 'not in'14:58
elopiowhich means it's taking an old version.14:58
kyrofaliuxg, slides reviewed. Good presentation!15:00
kyrofaliuxg, I made a number of comments15:00
liuxgkyrofa, thanks for your help on this.15:01
kyrofaliuxg, of course, I'm sorry for taking so long15:02
liuxgkyrofa, it is so kind of you to help me!15:02
pittielopio: FTR, still waiting for my co-sprinters to join15:03
elopiopitti: are you in an IRC channel?15:04
pittielopio: #u-devel and #ubuntu-vsprint15:05
pittielopio: or the hangout :)15:05
elopiopitti: ok, let's wait for them :)15:06
sergiusenselopio, how does it use an old version?15:13
sergiusenselopio, or are you looking at update excuses?15:13
elopiosergiusens: yes, looking here: http://autopkgtest.ubuntu.com/packages/s/snapcraft/xenial/amd64/15:18
sergiusenselopio, yeah, that's the 1.x branch that wasn't supposed to go to xenial :-P15:18
liuxgChipaca, ping15:20
liuxgelopio, ping15:20
elopioliuxg: pong.15:21
liuxgelopio, I have just published 3 snaps into the snappy ubuntu core store. They were successfully published. However, when I tried to install it from my raspberry pi device, it showed me sth like http://paste.ubuntu.com/14575641/. what could be the problem for it?15:22
elopioliuxg: rolling?15:23
liuxgelopio, what do you mean?15:23
elopioliuxg: are you using the rolling release?15:24
liuxgelopio, do you mean that I need to select "rolling" when publishing?15:24
liuxgelopio, I am not so sure. How can I check it? I can install the "hello-world" snap without any problems.15:24
elopioliuxg: I'm just asking if you are in rolling, because things are really different between the two releases.15:24
elopioliuxg: snappy info15:25
liuxgelopio, sorry, I do not know much about it. would you please explain it?15:25
liuxgelopio, http://paste.ubuntu.com/14575656/15:26
liuxgelopio, I have just published an app like "piglow-snappy", it is visible in the store, but I cannot install it.15:27
elopioliuxg: it says that you are using the 15.04 release, stable channel. I haven't tried uploading snaps recently, you can talk to the store team to see if there's something happening in there.15:27
liuxgelopio, who is the person there in the store team?15:28
elopioliuxg: join #u1-internal in the canonical IRC.15:29
liuxgelopio, when I publish the snap, I select "15.04-core". is this right?15:29
beunoelopio, as you know, we've switched to all snaps15:30
beunowhich are squashfs based15:30
beunoso you can't use the same snap for both 15.04 *and* rolling/16.0415:30
beunoyou have to use an up to date snapcraft15:30
beunoand target one or the other15:30
elopioactually, snapcraft 1.0 for 15.04, and snapcraft 2.0 for rolling.15:32
zygajdstrand: quick question, for bool-file, do we need any extra syscalls (seccomp)?15:32
elopioliuxg: if you are using 2.0 and trying to upload for 15.04, that's likely your problem.15:33
liuxgbeuno, I did not use snapcraft 2.0 in fact.15:33
liuxgelopio, beuno, i have checked that the snapcraft version is still 1.0.15:34
liuxgelopio, beuno I can see the snappy app in the store, however, I cannot install it. the app link is https://myapps.developer.ubuntu.com/dev/click-apps/4332/rev/1/15:35
beunoliuxg, I understand15:35
beunoas I said, snapcraft built a snap that isn't compatible with rolling15:36
beunoyou need a newer snapcraft15:36
liuxgbeuno, so, do you mean I need to use snapcraft 2.0 for it?15:36
liuxgbeuno, my current snappy system is http://paste.ubuntu.com/14575656/15:36
beunoliuxg, yes15:37
liuxgbeuno, I can install it using sideload, and it works well for me.15:37
beunooh, you're on 15.0415:37
liuxgbeuno, yes, I am on 15.0415:37
beunooh, so ignore everything I said15:37
liuxgbeuno, I just want to know what could be problem for it. the apps were successfully published. but they cannot be installed from the store.15:38
jdstrandzyga: iirc, bool-file is simply a rw rule, so no15:38
matiasbliuxg, beuno, I guess you need to install piglow-snappy.xiaoguo (you need to use the full name, afaict)15:38
jdstrand(the default seccomp policy allows you to open/read/write/close files15:38
jdstrand)15:38
liuxgmatiasb, then I come to another problem http://paste.ubuntu.com/14575725/. it happens the same when I try to install from the store.15:40
matiasbbeuno, fyi, ^ that's because we are not enabling anonymous download there15:41
liuxgmatiasb, it is very strange that for some of the snaps, I do not need to have the domain name. for example, for the case of hello-world http://paste.ubuntu.com/14575730/15:41
beunomatiasb, but I thought 15.04 still targets the framework?15:41
zygajdstrand: right, thanks for confirming this15:43
matiasbbeuno, hmm... in this case, the release is 15.04-core, but no framework was set; we have the auto-enable anonymous for -core frameworks, though15:43
liuxgbeuno, would you please help me on it? I do not know how to get it working. this is another app I published. is there any problem for it? https://myapps.developer.ubuntu.com/dev/click-apps/4342/15:44
fgimenezelopio, there's a bunch of PRs for you to review https://github.com/ubuntu-core/snappy-jenkins/pulls15:44
beunomatiasb, ack. Can you enable that for him?15:44
matiasbbeuno, I can, give me a sec15:44
elopiofgimenez: ok, added to the queue. Will look soon.15:44
matiasbbeuno, done; liuxg, can you try now? (with piglow-snappy.xiaoguo)15:45
fgimenezelopio, thx, with all of them applied i've redeployed successfully, pls take a look to check if the snapcraft part is in place http://10.55.32.158:8080/, and if you have the time try to redeploy too15:46
liuxgmatiasb, beuno, thanks. However, I still face the same issue http://paste.ubuntu.com/14575769/15:46
elopiofgimenez: \o/ I'll trigger a test run to see if I missed something.15:47
liuxgmatiasb, beuno, I do need some access for uploading snaps?15:47
fgimenezelopio, ok, i've added to travis tests for checking the images build and basic connection between them, when you are a owner we need to enable travis on ubuntu-core/snappy-jenkins15:48
liuxgmatiasb, I just rebooted my raspberry pi device, and did it again. it is the same problem here..15:48
matiasbliuxg, give it a min until update is propagated, it should work if you try in a couple minutes15:50
liuxgmatiasb, may I know what change you made just now? it is good to know it.15:51
liuxgmatiasb, do I need to let you do some configuration whenever I need to publish an app? will this happen to the rest of the developers? thanks15:52
matiasbliuxg, this is an internal detail which we should be working around (on our side) soon, related to authentication and downloads from snappy devices; it should be transparent for devs15:53
liuxgmatiasb, so, your team will work this out, right? from developers' point of view, we do not need to do anything?15:54
matiasbliuxg, from the developer point of view, no, nothing extra will be required15:56
elopiopindonga: we are closer again: https://travis-ci.org/ubuntu-core/snapcraft/jobs/10336489815:57
liuxgmatiasb, so, for now, it is a bug, right? I just re-tried, it did not work yet. how long should I wait?15:57
matiasbliuxg, hmm... it should be working now... what are you trying? still 401?15:58
liuxgmatiasb, still the same http://paste.ubuntu.com/14575845/16:00
matiasbliuxg, but that's another package!16:00
matiasb:)16:01
liuxgmatiasb, yes, I have 3 apps: grovepi-server, Webcam, piglow-snappy16:01
liuxgmatiasb, so, you need to configure for each of the apps?16:01
matiasbliuxg, I fixed the status for the piglow-snappy one, I should check the others if needed16:02
liuxgmatiasb, my snappy is being updated "another snappy is running, try again later" :) I need to wait for a while. the other ones are https://myapps.developer.ubuntu.com/dev/click-apps/4341/ https://myapps.developer.ubuntu.com/dev/click-apps/4332/16:03
matiasback, will take a look in a bit16:04
elopiobeuno: mvo mentioned that the store doesn't allow us to name the os snap ubuntu-core for amd64 and armhf, but that's the plan.16:05
elopiois that happening soon, like this week? The workaround in the tests is not just a couple of lines, so I would like to know if it's worth it.16:05
matiasbelopio, working on that, trying to get there asap; hopefully before end of next week16:07
liuxgmatiasb, yes, the piglow-snappy works now.16:07
matiasbliuxg, great16:07
liuxgmatiasb, so, next time when I publish a new one, I still need to look for you to help?16:08
elopiomatiasb: ok, so I will work around. Do you have a bug I can subscribe to?16:08
bellyfeelIs there a way to add two factor auth to snappy? I see that the files in pam.d are read only...16:08
matiasbliuxg, maybe, hopefully not, the update to handle this is in progress, afaict16:09
matiasbelopio, hmm... I think there isn't, but I have a trello card with a hard deadline for Feb 1s16:10
liuxgmatiasb, that sounds good. By the way, when I install the "hello-world", I do not need to have "canonical" there. I just need to sudo snappy install hello-world. But for may case, I need always to have ".xiaoguo"16:10
liuxgmatiasb, for the other two apps, are they ready to check? thanks16:12
matiasbliuxg, right, there are short names available for some packages (frameworks and canonical pkgs)16:14
matiasbliuxg, give me a few, I'll let you know when ready16:14
liuxgmatiasb, ok. thanks! I just want to make sure they are in good shape. By the way, if I upgrade them to new versions, do I need to bug you again?16:15
matiasbliuxg, no, updates should work without any issues16:16
liuxgmatiasb, ok. thanks. it is good to know :)16:16
matiasbliuxg, ... and updated; try again in a few mins, and the other packages should get installed too16:17
liuxgmatiasb, one more thing, when I publish a snap, if the link is https://vimeo.com/152249451, it is now allowed. However, if the link is http://vimeo.com/152249451. it works fine. is this a bug?16:18
liuxgmatiasb, sorry, the one with "s" is not allowed :)16:19
matiasbliuxg, sounds like it could be (although the help text example is http), feel free to file a bug for it, if it isn't already there, and it will be eventually triaged16:21
liuxgmatiasb, could you please give me the project name for it?16:21
matiasbliuxg, software-center-agent16:23
liuxgmatiasb, thanks!16:23
matiasbnp16:24
rickspencer3jdstrand, can I write a service that shells out "echo 14 > /sys/class/gpio/export", etc...?16:26
rickspencer3so far, it seems like my service can't really see into /sys/class, but I am not getting back clear error messages from my Go code16:27
liuxgmatiasb, I have filed a bug at https://bugs.launchpad.net/software-center-agent/+bug/153580816:31
ubottuLaunchpad bug 1535808 in Software Center Agent "Cannot successfully submit an app if the video link contains "https"" [Undecided,New]16:31
jdstrandrickspencer3: the /sys/class/gpio/export file can be used with hw-assign16:31
rickspencer3jdstrand, hmmm16:31
rickspencer3jdstrand, let me try some more, but I have not made it work16:32
jdstrandyou should be able to hw-assign anything in /sys/class/gpio/16:32
liuxgmatiasb, thanks. the other two apps are fine now. have a nice day!16:32
rickspencer3also, I noticed that when I am on the cli, just "sudo echo 15 > /sys/class/gpio/export" does not work16:32
rickspencer3for some reason I have to to do $sudo su16:32
rickspencer3and then I can do it from #16:32
jdstrandrickspencer3: try: sudo sh -c 'echo 15 > /sys/class/gpio/export'16:33
rickspencer3I was wondering if that could be related16:33
jdstrandrickspencer3: the '>' redirection write is happening under your uid, not root16:33
rickspencer3interesting16:34
matiasbliuxg, great! ack, thx for the bug report16:34
* jdstrand needs to step into a meeting but will keep an eye on backscroll16:34
liuxgmatiasb, have a good day. thanks a lot for your help!16:35
=== essembe is now known as sbeattie
rickspencer3jdstrand, any reason I shouldn't be able to use Go's library for reading files to read /sys/class/gpio/gpio14/value ?18:26
jdstrandrickspencer3: not otoh if the security perms are granted... maybe mwhudson might have an idea?18:26
* rickspencer3 futzes a bit18:27
rickspencer3jdstrand, so, when I try to read from the file, I get this?18:49
rickspencer3Jan 19 18:48:33 localhost kernel: [ 7624.772671] audit: type=1400 audit(1453229313.026:73): apparmor="DENIED" operation="open" profile="rest-button.sideload_rest-cam_IKXIKPPCYFMQ" name="/sys/devices/platform/soc/3f200000.gpio/gpio/gpio14/value" pid=3006 comm="rest-button" requested_mask="r" denied_mask="r" fsuid=0 ouid=018:49
jdstrandrickspencer3: ah, you might have tried to read a symlink down in there18:51
rickspencer3comes from this line of code, I guess18:51
rickspencer3 /sys/devices/platform/soc/3f200000.gpio/gpio/gpio14/value18:51
rickspencer3oops18:51
jdstrandrickspencer3: you can use hw-assign for that18:51
rickspencer3ioutil.ReadFile("/sys/class/gpio/gpio14/value")18:51
rickspencer3jdstrand, yeah, I did that18:52
rickspencer3but, it seems quite idiosyncratic18:52
jdstrandyou did hw-assign for /sys/devices/... too?18:52
rickspencer3jdstrand, no18:52
rickspencer3I did not know that would work18:52
jdstrandright, you need both (or more)18:52
rickspencer3so, I can hw-assign rest-button /sys/devices/* ?18:52
jdstrandthis is what capabilities will fix18:52
jdstrandrickspencer3: sure. you can do multiple hw-assign(ments)18:53
rickspencer3I did hw-assign to the specific file, and that made my code work18:53
rickspencer3sure, I just didn't know at what level that was requireed18:53
jdstrandrickspencer3: it seems that the first rule created a situation where you needed a second rule18:53
jdstrandiiuc, when you gpio export something, new files are created in /sys18:54
jdstrandrickspencer3: use these with hw-assign: /sys/class/gpio/** and /sys/devices/**/gpio/**18:55
rickspencer3ok18:55
jdstrandeg, sudo snappy hw-assign foo /sys/class/gpio/**18:55
rickspencer3I'll try that next18:55
jdstrandsudo snappy hw-assign foo /sys/devices/**/gpio/**18:55
mwhudsonjdstrand, rickspencer3: no idea20:11
rickspencer3fair enough :)20:11
rickspencer3it seems to be working, actually20:12
rickspencer3now I am just figuring out how to caste the []byte in the right way20:12
jdstrandmwhudson: it turned out to be a permission issue20:18
mwhudsonjdstrand: nothing like it being the obvious answer20:19
kyrofadholbach, what is this app developer manual you speak of?20:40
dholbachkyrofa: the "Snappy Ubuntu Core - Application Developer Manual 15.04" doc20:40
dholbachkyrofa: both PRs updated21:13
dholbachall of this should probably be in HACKING.md21:14
dholbach... or the tools more forgiving21:14
dholbachand maybe  to make things even more enjoyable we should use bzr on LP, but that's probably just my very own pipe dream21:15
kyrofadholbach, when you make a PR, you should see a "read the contribution guidelines" link, no? It links to https://github.com/ubuntu-core/snapcraft/blob/master/CONTRIBUTING.md. See step 3 :)21:16
dholbachah sorry - I was just looking at HACKING.md21:16
dholbachthanks21:17
kyrofadholbach, yeah, HACKING will tell you how to actually develop changes, run tests, etc. CONTRIBUTING is how to get changes back IN21:19
dholbachok cool21:19
dholbachkyrofa: I'm not sure what still needs to be done for https://github.com/ubuntu-core/snapcraft/pull/24121:59
kyrofadholbach, "Snapcraft can be extended by adding plugins new part plugins" needs to be reworded, and a blank line needs to follow the class definition22:01
dholbachoops yes, I just saw it22:01
dholbachsorry22:01
kyrofadholbach, no problem :)22:01
dholbachthat's what you get when you try to edit documentation when jetlagged :)22:01
kyrofadholbach, what is the time difference for you? And are you already in california?22:02
dholbachyes22:02
dholbach9h22:02
kyrofadholbach, blech, you have my pity22:02
dholbachluckily I came here a few days ago already and visited (and stayed with) the family of my girlfriend's sister, so I'm doing much better already :)22:04
kyrofadholbach, oh fun!22:04
kyrofadholbach, coffee drinker?22:04
dholbachI was off of caffeine for quite a while, but that wasn't sustainable here ;-)22:05
kyrofadholbach, hahaha22:08
kyrofadholbach, I see you updated it. But the extra line I believe elopio is referring to needs to be between the `class` and `def build()` for pep8. Right elopio ?22:10
dholbachI ran pep8 over that bit22:10
dholbachbut maybe I was doing something wrong22:10
kyrofadholbach, you may be fine-- let's just get elopio's OK22:11
dholbachsure sure22:11
kyrofadholbach, he's the python guy22:11
kyrofadholbach, I'm definitely not. But I'm trying!22:11
dholbachkyrofa: how was the ride so far? :-)22:12
kyrofadholbach, python? I have mixed feelings about it :P22:13
dholbachsounds like my feelings about using git :-P22:13
kyrofadholbach, :D22:13
kyrofadholbach, the include path methodology is nonsense. I still don't understand it22:16
dholbachI'm sure there's a PEP for that :)22:16
kyrofadholbach, also I'll never get used to a whitespace-scoped language. It hurts me a little inside22:17
jerryGChipaca: are u there22:17
jerryGkgunn: are u online?22:18
dholbachkyrofa: for some reason it was easy enough for me to just accept that - I can't even remember the times before :)22:18
kyrofadholbach, yeah I have to tilt my head sideways22:18
jerryGmterry: can u answer a quick question about xmir?22:18
dholbachkyrofa: it sounds like a conversation we should have in a hotel bar after hours at some stage :-P22:19
kyrofadholbach, sounds like a plan ;)22:19
dholbachawesome :)22:19
kgunnjerryG: i happen to be yes22:22
jerryGkgunn: is any1 at canonical using SDL on snappy?22:39
kgunnjerryG: not that i'm aware of22:40
kgunnjerryG: but there's no reason you couldn't22:40
kgunnsnappy is just different way to package22:40
jerryGkgunn: it should be alright if i just include the .so files for SDL right?22:42
kgunnyes22:42
jerryGkgunn: k thx22:44
kyrofaelopio, you still around?23:54

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