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

=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
mupPR snapd#1457 opened:  snapstate: drop revisions after "current" on refresh <Created by mvo5> <https://github.com/snapcore/snapd/pull/1457>05:37
mupPR snapd#1534 closed: tests: add system-observe interface spread test <Created by fgimenez> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1534>05:41
mupPR snapd#1520 closed: tests: add locale-control interface spread test <Created by fgimenez> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1520>06:04
mupPR snapd#1522 closed: Introduce a simple key-value store for user-specific data <Created by stevenwilkin> <Conflict> <https://github.com/snapcore/snapd/pull/1522>06:04
mupPR snapd#1512 closed: overlord: initial work on renaming core snap <Created by zyga> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/1512>06:05
trijntjeGood morning all, I'm still strugling with my first snap. If someone could look at it (https://github.com/Redmar-van-den-Berg/archaeopteryx) and the errors I get  http://pastebin.com/PLNdH3yM I would be grateful06:11
mupPR snapd#1519 closed: Add Qt5 indicator support in unity7 interface <Created by didrocks> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1519>06:13
=== chihchun_afk is now known as chihchun
dholbachhey hey07:03
tsimonq2hey hey hey!07:03
dz0nyIs that just me https://github.com/ubuntu/snappy-playpen/issues/17607:45
dholbachdz0ny, what if you open https://reviewable.io/reviews/ubuntu/snappy-playpen/166?07:51
dholbachI agree that reviewable clutters up the normal pull request views07:51
dholbachbut I feel that it makes it much easier to keep track of what exactly still needs to be resolved in a list of PRs where some get stale and sit there and you never know which one you still need to look at07:52
dholbachhttps://reviewable.io/reviews#- is a very clear overview for me07:52
dholbachpbek, https://myapps.developer.ubuntu.com/dev/click-apps/5374/rev/5/ is "ready to publish" - so I guess you need to hit the "publish" button yourself still - just in case if you were wondering07:53
pbekdholbach: I totally not saw that button! I just looked at the "published" state at the top. Thanks a lot!07:55
dholbachanytime07:55
dholbachI'm not sure if you can configure it to auto-publish - I seem to remember there was something like that07:56
dz0nydholbach: butterflies fly around following my mouse and each button hover shows 3 options :)07:57
hikikotsimonq2, hello07:57
hikikommm I guess is too late for you...07:58
pbekdholbach: btw. do you know if I can trigger a snappy build process from the command line on launchpad after I `git push` the snapcraft to the launchpad repo?07:58
hikikodholbach, how do we wrap the description in 80 characters? does a special 80th character does that or just wraping the lines in the text snapcraft.yaml file is enough?07:59
hikikodo I need something like \n at the end?07:59
dholbachpbek, no idea, sorry08:01
pbekthx ^_^08:02
dholbachpbek, but you can ask in #launchpad08:02
pbekI wanted, but the one who knows everything (you) wasn't online there :D08:02
dholbachhikiko, no, just a normal new line - you should be able to just copy/paste what I put in the review at https://reviewable.io/reviews/ubuntu/snappy-playpen/17108:02
dholbachdz0ny, I never quite understood that - is that a comment which requires your attention? :-)08:03
dz0nydholbach: do you rly have to click all "eyes" http://i.imgur.com/qiIMeC0.png next to change to make pr "resolved"08:12
dz0nydholbach: also did you delete comments? or where they are?08:13
dholbachdz0ny, at the top there's also a "mark as reviewed" button08:15
dholbachno, I didn't delete them, they're just folded away ("Resolved - show 4 comments")08:16
dz0nydholbach: where's that button? I only have this http://i.imgur.com/lT9Q3m9.png08:20
dholbachmaybe it doesn't see you as a reviewer in this PR, that's why it's "mark as reviewed" is greyed out for you?08:21
dz0ny:D08:21
mupPR snapd#1540 closed: spread.yaml, tests: replace hello-world with test-snapd-tools <Created by fgimenez> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1540>08:29
commander_whatsup guys08:49
commander_what are ops08:51
zyga?08:51
commander_am on xchat and it says 2 ops08:51
commander_2 ops and 242 total08:51
commander_snappy and snap are different ?08:54
commander_join #ubuntu08:54
mupPR snapd#1541 closed: snap-exec: add proper integration test for snap-exec <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1541>09:29
dholbachhikiko, can you check the PR again - dpm said network-bind might be necessary as a plug?09:41
mupPR snapd#1501 closed: client: existing JSON fixtures uses tabs for indentation <Created by stevenwilkin> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1501>09:42
hikikoyes dholbach I didn't finish it I am adding icons too as dplanella said09:42
dholbachok cool09:42
hikikojust too many things to learn09:42
hikikothanks for your comments :) +the patience...09:43
mupPR snapd#1515 closed: asserts,daemon: cross checks for account and account-key assertions <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/1515>09:44
dholbachhikiko, thanks for your great work on this!09:44
dpmthanks hikiko!09:46
trijntjeGood morning all, I'm still strugling with my first snap. If someone could look at it (https://github.com/Redmar-van-den-Berg/archaeopteryx) and the errors I get  http://pastebin.com/PLNdH3yM I would be grateful09:56
dholbachhikiko, sorry, I meant network-bind as a plug, not as a build-package09:58
hikikooops09:59
hikikosorry dholbach09:59
hikikodholbach, dpm I write a hexchat.desktop file following the qcomicbook example and I was wondering how could I test it works locally? (I still can't run cleanbuild)10:05
dpmhikiko, you can just run `snapcraft clean` and then `snapcraft`. That will build your snap10:06
dpmhikiko, then install the snap with `sudo snap install *.snap`10:06
dpmhikiko, and once it's installed, you can just open the dash to check if the icon appears there and launch hexchat10:06
hikikodpm, thank you! I am going to try it10:08
dpmnp :)10:10
dpmhikiko, I'm not sure you've seen the PR I sent earlier against your playpen repo on github. I added a couple of changes more (specifying the right version, using the unity7 plug, removing dh-autoreconf)10:23
hikikosorry dpm, I just did, I am going to merge it right now10:27
mupPR snapd#1542 opened: cmd/snap,cmd/snap-exec: support running hooks via snap-exec <Created by mvo5> <https://github.com/snapcore/snapd/pull/1542>10:27
dpmgreat10:30
mupPR snapd#1450 closed: tests: extend refresh test to talk to the staging and production stores <Created by fgimenez> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1450>10:31
mupPR snapd#1391 closed: overlord/snapstate, daemon, client, cmd/snap: devmode override (aka confined) <Created by chipaca> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1391>10:38
dpmtrijntje, a couple of comments: I think you might be better off asking on the mailing list for this one, as I'm not sure if there are any java experts around atm.10:53
dpmtrijntje, Another thing: rather than including the .jar file in your repo, you can specify a remote source for the `copy` plugin, that is https://googledrive.com/host/0BxMokdxOh-JRM1d2azFoRnF3bGM/download/forester_1041.jar directly10:53
dpmtrijntje, you might also want to look at a couple of other .jar snap examples:10:53
hikikodpm, I think I messed it up :p I am not sure I merged your branch and not something else.. I tried to resolve/commit/merge following the git instructions here:10:54
hikikohttps://githowto.com/resolving_conflicts10:55
dpmtrijntje, here's one example: https://github.com/filebot/filebot/tree/master/installer/snappy10:56
dpmtrijntje, here's another one: https://github.com/dplanella/snappy-playpen/tree/jtiledownloader/jtiledownloader and an alternative: https://github.com/ogra1/jtiledownloader10:57
dpmhikiko, unfortunately, I'm not a git expert, so I'm not sure I can help. What I generally do is to do `git merge`, then manually edit the files that have the conflict to resolve it, and then `git commit`10:58
hikikomm that's what I did, I don't know much git either10:58
hikikoit seems to have the changes but I think I merged the master too accidentally afterwards10:59
mupPR snapd#1543 opened: store & many: a mechanical branch shortening store names <Created by chipaca> <https://github.com/snapcore/snapd/pull/1543>11:00
hikikoouch dpm, I merged mine to yours and master to mine, I now merged the merged yours to mine and it seems fixed :) I have to add the desktop and done... dpm thanks a lot!11:04
dpmglad it worked out in the end! :)11:04
trijntjedpm: thanks for the feedback, I'll also have a look at the snaps you listed.11:05
dpmno worries, I hope it helps11:05
dpmhikiko, have you been in touch with hexchat upstream about your snap?11:05
hikikono dpm should I?11:07
hikikois there some process I have to follow for every snap?11:08
dpmhikiko, no worries, I was just wondering if you'd been in touch with them. I think he important thing is to get the snap running well first11:11
hikikodpm, I did a merge proposal though because there was a compile error in hexchat and I sent a fix which isn't merged yet11:11
dpmhikiko, yeah, I saw that, good work11:12
dpmhikiko, so once the snap is working, we encourage folks to submit their snapcraft code upstream. Here are some guidelines: https://github.com/ubuntu/snappy-playpen/wiki/Upstreaming#forwarding-your-work-upstream11:13
dpmbut we can look at it once the review for the playpen has finished11:13
jaceknCroepha: thanks. Would you have more detaila bout adding scripts to the environment? I can't do it inside my software because it's the build itself that's failing11:19
=== chihchun is now known as chihchun_afk
=== hikiko is now known as hikiko|ln
mupPR snapd#1544 opened: overlord/snapstate: kill flagscompat <Created by chipaca> <https://github.com/snapcore/snapd/pull/1544>11:49
=== chihchun_afk is now known as chihchun
mupPR snapd#1545 opened: snappy: what snappy <Created by chipaca> <https://github.com/snapcore/snapd/pull/1545>11:54
mupPR snapd#1544 closed: overlord/snapstate: kill flagscompat <Created by chipaca> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1544>12:08
mupPR snapd#1545 closed: snappy: what snappy <Created by chipaca> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1545>12:09
mupPR snapd#1543 closed: store & many: a mechanical branch shortening store names <Created by chipaca> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1543>12:19
asacsergiusens: so the java thing is trickier; we have maven for instance that also installs packages12:20
asacso it kind of bubbles up etc.12:20
mupPR snapd#1494 closed: tests: add content sharing interface spread test <Reviewed> <Created by fgimenez> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1494>12:30
ogratrijntje, http://paste.ubuntu.com/19358043/ ... that gets me a runnable snap12:33
ogra(not sure why you have that gazillion of fonts in your snapcraft.yaml :) )12:34
=== hikiko|ln is now known as hikiko
trijntjeogra: because I kept finding references to font troubles when I tried to google the errors I got. I figured I'd remove all of them once I got the snap running12:37
ogratrijntje, well, it stearts on my laptop when i build it with the patch above12:38
ogra(surely could still need some additional optical adjustment, but it runs fine at least)12:39
trijntjeogra: your version works for me as well, thanks a million12:44
ogratrijntje, add "touch $SNAP_USER_DATA/_aptx_configuration_file" to your wrapper too ... then it stops complaining about the missing config12:47
dpmnice one ogra!12:49
ogranote that you might still need to ship some fonts and some more fontconfig magic ... i see crashes when i fiddle with the options in the app12:50
ogra(specifically when changing the fonts)12:51
dpmtrijntje, you might want to submit it as a snappy playpen example too: https://github.com/ubuntu/snappy-playpen (just as a suggestion and to get more eyes on it, we've now got another jar example already)12:51
ograhmm, on the upstrram page it is actually suggested to use the default config file they provide12:53
ogra*upstream12:53
ograso you should probably ship that and copy it in place from the launcher12:53
=== chihchun is now known as chihchun_afk
trijntjeogra: would that be the preferred way, copy the config file to $SNAP_USER_DATA every time the snap is started?12:56
ogra[ -e "$SNAP_USER_DATA/_aptx_configuration_file" ] || cp _aptx_configuration_file $SNAP_USER_DATA/12:57
ogratrijntje, add that line ... then it only copies it on first start12:57
ograhmm12:58
ogra[ -e "$SNAP_USER_DATA/_aptx_configuration_file" ] || cp $SNAP/_aptx_configuration_file $SNAP_USER_DATA/12:58
ograthats bettr :)12:58
trijntjeogra: thanks. I was also thinking about modifying the default configuration file, but I guess that would be considered rude if I were to publish this snap to the store13:01
ograwhy would that be rude ?13:01
ograas long as you pick sane defaults i wouldnt think it is rude13:01
ograthats the freedom of being a packager ... :)13:02
ogra(picking propoer defaults)13:02
ogra*proper13:02
trijntjefair enough, I wasn't planning on going crazy anyway ;)13:04
ogra:)13:05
trijntjeogra: one final question, if I submit it to the playpen, should I add the .jar file as well? _dpm suggested I should use the download link in the snapcraft file, but I'm worried that will change and break snap with the next release13:17
ograwell, you will need to update the link if the version changes upstream ...13:18
ograbut the download only happens at build time, so nothing that is already in the store will break13:18
dpmyeah, and I'm not sure we want to have huge binary files in the repo13:18
* ogra doesnt care, but using the download is definitely more elegant ... 13:19
mupPR snapd#1539 closed: tests: improve snap run symlink tests <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1539>13:19
ograand you can perhaps convince upstream more easily to take it if it comes down to only a snapcraft.yaml and wrapper13:19
trijntjedownload link it is then, and I'll also remove the gazillion font package I added in a bit of cargo cult madness13:20
ograyeah13:21
ograas i said, there is still some issue with the font selection ... but you can fix that iteratively later :)13:21
trijntjeogra: thanks again for looking into it for me, I was about to give up after doing 53 revisions without getting it to even start ;)13:24
szszszHi! Had anyone a problem with qt systray and snapd /tmp ?13:24
ogratrijntje, next time post your tree as first thing ;)13:24
ograguessin by error message takes way longer than just trying out existing code ;)13:25
dz0nytrijntje: compiled binaries should be never in git repo13:31
dz0nyjust one of cardinal rules13:31
mupPR snapd#1542 closed: cmd/snap,cmd/snap-exec: support running hooks via snap-exec <Created by mvo5> <Closed by kyrofa> <https://github.com/snapcore/snapd/pull/1542>13:33
kyrofaszszsz, what kind of problem? The only one I know about is a broken icon13:34
szszszkyrofa: For Qt5 it is not shown at all. I have found  that Qt creates png image in /tmp directory. Maybe App has no access there?13:37
szszszkyrofa: could you share link to bug?13:37
szszszkyrofa: correction, systray is shown but with default icon13:38
kyrofaszszsz, #160013613:38
mupBug #1600136: App indicator does not show icon for Qt apps <snap-desktop-issue> <Snappy:New> <snapd (Ubuntu):Confirmed> <https://launchpad.net/bugs/1600136>13:38
trijntjedz0ny: its too late now, unless there is a way to re-write history on a github repository13:38
szszszwhen runned without snappy it works correctly13:38
kyrofaszszsz, sound about right? Your instincts were spot on there, by the way (due to the use of /tmp)13:38
kyrofaszszsz, but slightly backwards-- the snap can put stuff in /tmp, but its /tmp actually ends up being in the system's /tmp/snap.foobar/, and the indicator looks for it in /tmp13:39
szszszkyrofa: mup nice, thanks! I could not have found this one in google today13:39
kyrofaszszsz, mup is a bot that listens for bugrefs and other things13:40
kyrofatrijntje, there's always a way to rewrite history13:40
kyrofatrijntje, but it's not typically nice to your users13:40
szszszkyrofa: Ahh, I see :)13:40
trijntjekyrofa: the good news is I dont have any users yet. I'll just remove the repository from github and add it again without the binary file13:41
trijntjeunless thats forbidden on github?13:42
kyrofatrijntje, you can do that all from git13:42
kyrofatrijntje, oh not at all. I can help you do this without touching github-- you can do it all from git13:42
kyrofatrijntje, can I have a link to the repo?13:43
trijntjehttps://github.com/Redmar-van-den-Berg/archaeopteryx13:44
kyrofatrijntje, oh yeah, this'll be easy13:44
kyrofatrijntje, what are you trying to remove?13:46
kyrofatrijntje, or have you commited a removal already?13:47
kyrofatrijntje, the jar?13:47
trijntjekyrofa: no, the jar is still in the repository now13:49
kyrofatrijntje, indeed, and that's what you want to remove? It's used in your YAML... how do you plan on removing it?13:49
trijntjekyrofa: I want to remove the jar, and replace it with a copy from the download link in the yaml file13:50
kyrofatrijntje, ah ha13:50
trijntjethis one: https://googledrive.com/host/0BxMokdxOh-JRM1d2azFoRnF3bGM/download/forester_1041.jar13:50
kyrofatrijntje, run this: `git rebase -i 44b29958d14a2b690fd6a4f062fe1e0b28090c50`13:52
kyrofatrijntje, it will bring up your editor. You'll see a few lines there, one of which is "pick 25a4443 Added wrapper and the jar file"13:52
kyrofatrijntje, change the "pick" to "edit"13:52
kyrofa(only on that single line)13:52
kyrofaThen save and exit13:52
kyrofaNow your terminal will drop to the shell and allow you to alter that commit however you like13:53
kyrofaRemove the jar and update the YAML. Give it a test, make sure it works the way you had in mind13:53
kyrofaOnce you're happy with it, make sure you've `git add`ed everything, and run `git rebase --continue`13:53
kyrofatrijntje, err, you need to `git commit --amend` before you `git rebase --continue` though13:55
kyrofaSorry13:55
trijntjeok, i'm trying to build the new snap now13:57
mupPR snapd#1508 closed: cmd/snap,cmd/snap-exec: support running hooks via snap-exec <Created by kyrofa> <Merged by kyrofa> <https://github.com/snapcore/snapd/pull/1508>14:01
mupPR snapd#1530 closed: asserts: add cross checks for snap asserts <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/1530>14:05
trijntjekyrofa: I did all the commands, but now the wrapper is also back to an earlier version14:23
kyrofatrijntje, did you run the `git rebase --continue` command?14:24
trijntjekyrofa: I did http://pastebin.com/eaL3HDGM14:25
trijntjeI ran it again: http://pastebin.com/6Yn7D0ca14:26
kyrofatrijntje, huh, so the changes you made completely negated that commit?14:26
trijntjekyrofa: I dont think so, I changed the yaml file, but I didn't touch the wrapper at all14:28
ogra hmm .. do we have any interface that gets me acces to /dev/fuse ?14:29
ograzyga, ^^ do you know ?14:32
zygaogra: re14:33
zygaogra: no we don't have one14:34
zygaogra: is fuse something that could be tagged with an udev rule?14:34
ograah, i'll file a whishlist bug then ...14:34
zygaogra: if so it should be relativelt simple to do the mechanics of granting permissions14:34
ograwell, as long as a user has fuse access he usually can mount/unmount all fuse based filesystems unprivileged14:35
ograthat sounds like th perfect thing for snaps14:35
ogra(i'm playing with a tool to do an automatic sshfs mount of my ubuntu phone... )14:35
zygaogra: hmm, mount is probaby a no-go14:36
zygaogra: with enough mount you can escape14:36
zygaogra: but I'll let security guys comment on hat14:36
ograit isnt mount ... it is fusermount14:36
zygaogra: we can probably figure something out, maybe via a trusted helper14:36
ograyou cant mount/umount aything relevant14:36
zygais fusermount a different system call?14:36
ogracould be ...14:36
ograhttp://paste.ubuntu.com/19368313/ ... doesnt look like it needs special syscalls14:38
* ogra tries devmode ... 14:38
zygaogra: add "/dev/fuse rw," to the apparmor profile14:39
zygaogra: and reload with apparmor_parser -r /path/to/profile14:40
zygaogra: you should nail it faster this way14:40
ograhmm14:40
ograhttp://paste.ubuntu.com/19368550/ ...14:40
ogradevmode blocks too14:40
ograthe user needs to be in the fuse group (which i am) ... i wonder if that gets handed through to the launcher14:40
zygaogra: I think so14:41
zygaogra: we don't drop groups14:41
ograk14:41
zygaogra: so it does require mount14:41
ograthen it is something else14:41
zygaogra: I think we could do something around that given that the argumennts are something apparmor can control14:41
ograi can run the script from the snapcraft dir just fine14:41
ograso something else is blocking additionally here14:42
zygaogra: well, I see you are in devmode already14:42
ograin tezh second paste i'm in devmode14:42
zygayep14:43
zygaogra: let's talk about this next week, :) I need to fix snap-confine14:43
ograk14:43
mupPR snapcraft#657 opened: Add constraints to python2 plugin <Created by SamYaple> <https://github.com/snapcore/snapcraft/pull/657>14:49
=== chihchun_afk is now known as chihchun
mupPR snapd#1531 closed: many: present user with a choice of payment backends <Created by pete-woods> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/1531>14:53
mupBug #1603113 opened: add fuse filesystem interface <Snappy:New> <https://launchpad.net/bugs/1603113>14:55
mupPR snapd#1546 opened: store: kill setUbuntuStoreHeaders <Created by chipaca> <https://github.com/snapcore/snapd/pull/1546>15:00
imexillooking at popey's snapcraft screencast I was wondering if there also exits a snap for simplescreenrecorder15:08
ograogra@styx:~/Devel/packages/snaps/phonemount$ snap find screen recorder15:11
ograName  Version  Developer  Notes  Summary15:11
ogravlc   daily    caldav     -      Read, capture, broadcast your multimedia streams15:11
ogradoesnt look like it ...15:11
ogrago ahead and package it ;)15:11
imexilI was afraid that would be the answer ;-)15:11
ograhaha15:11
ograsurely some good finger training :)15:12
dholbachI think that was asciinema15:16
ograwell, but having a gui recorder would be nice too15:17
dholbachsure, just saying15:18
mupPR snapcraft#658 opened: parser - Return non-zero code for wiki errors <Created by josepht> <https://github.com/snapcore/snapcraft/pull/658>15:25
SamYaplenew to snappy here. Does snappy have a way to share layers similiar to docker/rkt? I am packaging openstack in snappy but I spend alot of time building the same python packages over and over15:39
CroephaSamYaple not really15:40
SamYapleyea i thought not. thats fine, im just worried about total size being an issue15:40
SamYaple~20 different services all at 200MB... ouch15:41
SamYaplenot to mention the build time, though thats less of an issue15:41
CroephaSamYaple, it might be best to bundle them all in one snap... you can do multiple apps in one snap15:41
SamYapleCroepha: I am considering that, but that limits flexibility in version selection. not all of the services package/tag at the same time15:42
SamYaplethey are different apps15:43
CroephaI'm not exactly recommending this as a course of action, but i think it is technically possible for one snap to reference content from another snap15:43
SamYapleCroepha: do you have any links so I can evaluate that?15:44
Croephavia /snap/othersnap/current/...15:44
Croephanot really, sorry15:44
SamYaplenot a problem at all15:44
Croephai'm not even sure that is a supported  use case, i just found that out by playing around15:45
SamYaplesince I am new to snappy, im unsure where /snap/othersnap/current would come into play15:45
Croephaits a path on the filesystem15:45
SamYapleoh.. i see what youre saying15:45
SamYapleyea im not a fan of that15:45
SamYapleill get a total size of the packages and see15:46
SamYapleI can save alot of space in each service by cherry-picking files15:46
Croephaif you do bundle them all as one snap, then it might be best to do a periodic release strategy15:46
SamYaplemaybe that will eb enough15:46
SamYaplewell asuming this packing goes well ill be throwing this into an openstack offical project, but it would almost certainly need to be seperate rather than a bundle15:47
Croephalike 2016.7 2016.8 ... 2016.12 for each month?15:47
SamYapleI do agree that should that be required, periodic would be best15:47
Croephayou do have the benefit of differential updates too, so what is common between versions wont have to be downloaded again15:48
SamYapledifferential between individual packages?15:50
ilivI added a few interfaces for apps in snapcraft.yml and it seems like the only way for this change to come to life is to rebuild all associated parts. Is there a way to do this without rebuilding source code? In my case it is a bit a lengthy process so not much fun just sitting here waiting for a ...15:50
iliv... program to finish compiling.15:50
Croephano, differential between versions of the same package15:50
mupPR snapd#1547 opened: many: remove all traces of channel from the buying codepath <Created by pete-woods> <https://github.com/snapcore/snapd/pull/1547>15:50
SamYapleCroepha: right thats what i was asking. ok thats good to know15:50
CroephaSamYaple: it might be worth checking if some kind of layers like support is in the issue tracker15:51
SamYapleI will15:52
SamYapleto be honest, im kind of glad there are no layers. layers add complication15:52
SamYaplei didnt really like them when i built them into kolla (the openstack in docker containers project)15:53
SamYapleyou always had to make compromises about what would be in both and it tied all the packages together more than i liked15:53
Croephailiv: I don't know the answer to that question... but from my experience  you pretty much have to do a full clean for most snapcraft.yaml changes, but you might want to try building outside of snapcraft and then copying back in, thats what I have resolved to doing15:55
ilivthat sucks Croepha15:55
ograiliv, look as the snapcraft clean options ...15:55
ilivha, I was just about to highlight you ogra and ask to chime in on this matter15:56
Croephailiv: also, you know about --try right?15:56
ograyou can clean different stages15:56
mupPR snapd#1548 opened: many: add new `snap weld` command <Created by mvo5> <https://github.com/snapcore/snapd/pull/1548>15:56
mupPR snapd#1549 opened: docs: add payment methods documentation <Created by pete-woods> <https://github.com/snapcore/snapd/pull/1549>15:56
ilivCroepha, know but I'll look into it15:56
ilivogra, right, I use clean --step build a lot15:57
SamYaplewhat is the difference between build-packages and stage-packages? are stage-packages included in the final snap and build-packages are nto?15:58
ilivSamYaple, that sounds correct15:59
Croephailiv: my usual iteration loop is sudo snap remove my-app; snapcraft clean && snapcraft prime && snapcraft try --devmode prime/  (and that is after I have built the binaries externally and in my snapcraft.yaml is just a copy)15:59
ilivSamYaple, build-packages are required for compiling/building your application. stage-pacakges are sort of like dependecies that are included in the resulting snap package.15:59
ilivCroepha, I've been doing it similarly but I'm happy with a complete snap package. Install it, test it and see what doesn't work and the adjust snapcraft.yml and rebuild.16:01
ograiliv, well, just use --step stage ...16:02
SamYapleiliv: strange then. i have all packages in build-packages and yet there are libs in teh stage folder16:02
SamYaplei _want_ those libs there, but im wondering if that is snappy being clever, or be not understanding something16:03
vidasovHi16:15
vidasovSorry I have basic questions regarding snapcraft if possible?16:16
CroephaSamYapleL I think Snappy tries to be clever, using ldd (or more?) to do things like that16:17
CroephaSamYaple doesn't work well with dload though...16:17
kyrofavidasov, ask away!16:17
SamYapleCroepha: it seems to keep around all the of header files and manpage docs16:19
Croephafrom stage-packages?16:20
SamYaplefrom build-packages16:20
SamYaplei have no stage-packages16:20
Croephahuh, i wouldn't have expected that, maybe some experts here can chime in16:20
vidasovyes thanks, I started this morning with snapcraft and went trough ubuntu page tutorial which is the same thing as in snapcraft.io but it didn't work for me and looks lilke snapcraft doesn't apply changes is yaml file is changed16:21
ograSamYaple, where does it keep them around ? build-packages should definitely not be copied into the final snap16:22
ogra(they surely stay around in youtr build tree until you call "snapcraft clean")16:22
dz0nySamYaple: build-packages are host packages, stage-are those that are bundled into your snap16:22
Croephavidasov, snapcraft clean ?16:22
mupPR snapd#1550 opened: tests: base security spread tests <Created by fgimenez> <https://github.com/snapcore/snapd/pull/1550>16:23
SamYapleogra: /usr/include/* has a whole lotta header files from packages like libc6-dev16:23
kyrofavidasov, indeed, snapcraft is slowly gaining those types of features16:23
ogravidasov, you need to clean first before running a new snapcraft build, else it will just copy the existing bits from the parts/*/install dirs16:23
SamYapleogra: i never explicitly installed libc6-dev, it was building in by build-essential (or maybe python-dev)16:24
CroephaSamYaple, but what about prime/usr/include ?16:24
kyrofavidasov, until it gets smarter you need to clean between changes. You can clean individual steps though instead of cleaning entirely16:24
SamYapleCroepha: same16:24
ograSamYaple, that is in your installed snap (under /snap/$packagename/current/) ?16:24
dz0nyI kindo don't like that it picks libs from host at all16:24
dz0nywhen i started i assumed it would start from ubuntu-core16:25
SamYapleogra: its in the squashfs of the snap, i havent installed it, but i mounted teh squashfs16:25
ograweird, i have never seen that happen here16:25
SamYaplemaybe its because build-essential is a meta package?16:25
ograsince ... if you dont use cleanbuild ... the dev packages are all installed on your host machine ...16:25
CroephaSamYaple:  which package? if you dont mind16:25
ograand bits from the host machine can technically not really end up inside the snap16:26
SamYaplelet me try to clean this entirely out16:26
dz0nyogra: they can :)16:26
ograusing meta packages is fine16:26
ogradz0ny, they shouldnt16:26
dz0nysnpacraft is not isolated from host system16:26
ograhow would they end up insdie the build tree16:27
vidasovOK thanks for your clarification, sound good for beginning, so I did a workaround prepared everything in one shot and compiles ok, this webcam tutorial so how to check if it works actually? it looks i cant run new app from command line16:27
ogragiven they get installed in the host and not in the "parts" staging area16:27
dz0nyLD_*16:27
ograonly bits under parts/ end up in the snap16:27
SamYaplerebuilding now, clean parts folder and all16:28
Croephavidasov: When you do a snap install, it adds special commands to your system path, look for a command that starts with your snap name16:28
dz0nybut when you compile something it's picked from host (header files,libs etc)16:28
ograyou would have to have symlinks or bindmounts into that dir to have them end up in prime/ or stage/16:28
dz0nyno16:28
dz0nyogra: I have a test16:28
vidasovyes and when I do snap list, I see app, but when I try to run it nothing16:29
Croephavidasov, like no output, and no error?16:29
vidasovlike no app at all16:29
ogradid you check syslog ?16:30
ograthere should be errors if it didnt start16:30
dz0nyogra: https://github.com/ubuntu/snappy-playpen/pull/166 try this one on system without ffmepg libs in normal paths16:30
mupPR ubuntu/snappy-playpen#166: Add champ snap <Created by dz0ny> <https://github.com/ubuntu/snappy-playpen/pull/166>16:30
Croephavidasov: this is the webcam example?16:31
dz0nyit does build on docker+travis but not in isolated machine16:31
vidasovyes, webcam16:31
dz0nyif it has ffmpeg isntalled16:31
SamYapleyep, totally clean rebuild the final snap squashfs has a bunch of headers in /usr/include16:32
ogradz0ny, not really sure whast you mean with "ld" ... ld always comes from ubuntu-core at runtime16:32
vidasovif syslog and ffmpeg were meant for me, thanks but I cant even run app and it is listed as installed16:33
ogravidasov, syslog was meant for you,. yes ... watch it when you try to start the app or when yiou install the snap (in case it has a service and not an enduser app inside)16:33
SamYapleok well im going to go to lunch, ill dig into this more when i get back. if anyone has more suggestions for me to try, just ping me. thanks!16:34
Croephavidasov: ok, I think that installs as a daemon, so that wont be in your $PATH, do you get anything when you do "systemctl --all | grep webcam"16:34
vidasovok this tells something: snap.webcam-webui.webcam-webui.service                                                      loaded    inactive dead16:36
* ogra would just open an additional terminal and run "tail -f /var/log/syslog" and then uninstall and re-install the snap 16:37
ograthat should give you all errors16:37
vidasovok, will do16:37
Croephathere is also journalctl -u snap.webcam-webui.webcam-webui.service16:37
ogradoesnt the webcam demo need the camera inetrface ?16:38
ograi thnk that one needs manual connecting after installing the snap16:38
ograsomething like: "sudo snap connect $yourpackage:camera ubuntu-core:camera"16:39
vidasovok, does that mean that "$yourpackage:camera" is app on ubuntu and "ubuntu-core:camera" is app which I need to install in ubuntu core16:44
vidasovas a snap16:44
vidasovso little bit confuzed16:47
kyrofavidasov, ubuntu-core is a snap that is a prerequisite for all other snaps. You should see it in the `snap list` output16:50
kyrofavidasov, it provides the slot side of many interfaces16:50
kyrofavidasov, including the camera16:50
vidasovok, I saw it16:50
kyrofavidasov, but as ogra mentioned, that interface it not connected by default, so you'll need to connect it manually using the command he gave16:50
vidasovgood, I'll try16:51
vidasovthnx16:51
kyrofasergiusens, elopio bug planning today, or no?17:06
josephtkyrofa: sergiusens is out today and tomorrow17:20
kyrofajosepht, ah ha17:21
kyrofajosepht, thanks for letting me know!17:21
josephtkyrofa: np :)17:21
kyrofaelopio, what is YOUR excuse?17:21
mupPR snapd#1551 opened: systemd,wrappers: map "never" restart condition to "no." <Created by kyrofa> <https://github.com/snapcore/snapd/pull/1551>17:49
wililupyIs it possible for me to do a git checkout from snapcraft.yaml?17:55
mupPR snapcraft#659 opened: Support "never" as a daemon restart condition <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/659>17:55
kyrofawililupy, of course17:58
kyrofawililupy, provide the git URL to the source. Depending on what the URL looks like you may also need to specify source-type: git17:59
wililupykyrofa: \o/17:59
kyrofawililupy, you can also specify source-branch or source-tag17:59
kyrofawililupy, `snapcraft help sources` for more info17:59
wililupykyrofa, perfect, that is what I was looking for.18:00
wililupykyrofa: For source-branch, can I use the first 7 chars from the hash or do I need to full hash?18:01
wililupykyrofa, git specific18:02
wililupyly18:02
kyrofawililupy, you should be able to use the short18:02
wililupykyrofa, excellent. I'm going to give it a shot. Thanks!18:03
kyrofawililupy, sure thing18:05
mupPR snapd#1549 closed: docs: add payment methods documentation <Created by pete-woods> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1549>18:46
mupPR snapcraft#596 closed: Preserve the ordering of the wiki entries <Created by josepht> <Merged by kyrofa> <https://github.com/snapcore/snapcraft/pull/596>18:58
kyrofaelopio, josepht mind taking a look at #659?19:04
kyrofasnapcraft#659 maybe?19:04
mupPR snapcraft#659: Support "never" as a daemon restart condition <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/659>19:04
vidasovhi, does snappy has bluetooth interface, looks like not?19:05
josephtkyrofa: done19:15
ali1234which tarball do i need to make a development chroot?19:31
ali1234ubuntu-core or ubuntu-base?19:31
mupPR snapcraft#660 opened: Fix python2 compile cache removal <Created by SamYaple> <https://github.com/snapcore/snapcraft/pull/660>19:46
elopiokyrofa: reviewed. And replying to the previous ping, my excuse is that I had to my swimming lessons. I need to apply myself if I want to beat all my elder classmates :)20:05
ali1234hmm.. well that totally failed20:12
vidasovsorry, question please: can snappy app connect to bluetooth as to interface? Or is it possible to have snappy communicate over bluetooth?20:15
ali1234i'm sure it will be possible eventually20:16
ali1234i don't know if it is possible now20:16
vidasovthanks, I was afraid of it. :-) but let us be patient.20:17
ali1234looks like the ubuntu raspberry pi image doesn't have drm support or something20:22
mupPR snapd#1546 closed: store: kill setUbuntuStoreHeaders <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/1546>20:25
mupPR snapd#1546 closed: store: kill setUbuntuStoreHeaders <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/1546>20:25
SamYapledo all of the binaries go to /snap/bin ? what about those that are located in usr/bin/* in the snap?20:30
SamYaplei suppose my question is, what is _meant_ to be in /snap/bin ?20:30
Croephavidasov: if you want to access something that isn't supported, just run with devmode enabled for now until its supported, and you should probably also file a bug outlining what you want access to20:35
CroephaSamYaple: /snap/bin is just shell scripts that act as entry points into files stored in /snap/.../current/bin/...20:37
vidasovok, thanks Croepha, that is nice to hear that is possible, after all :-)20:37
CroephaSamYaple: you only get files in /snap/bin if you set them as apps in your snapcraft.yaml file20:38
ali1234okay i've got a challenge for anyone who is bored... snap a Qt5 app so that it runs on the raspberry pi without a windowing system, using the eglfs platform, and having full accelerated graphics20:40
ali1234this is how you do it on raspbian: https://wiki.qt.io/RaspberryPi2EGLFS20:40
Croephaali1234 I did that the other day20:41
ali1234great. how?20:41
Croephawell, i got it running on amd6420:41
Croephasec20:41
ali1234doing it on amd64 is trivial20:41
ali1234to do it on raspberry pi you need: Qt >= 5.6 (not available in ubuntu)20:41
ali1234you also need the raspberry pi EGL libs from this ppa: https://launchpad.net/~ubuntu-raspi2/+archive/ubuntu/ppa20:42
Croephahuh ok, nvm then, i don't remember it being trivial, I had to set all kinds of variables for alsa and gstreamer to know where to load their modules and stuff20:42
ali1234you also need to fix the raspberry pi ubuntu kernels so that DRM works20:43
ali1234it's trivial in comparison20:43
ali1234whatever you needed to do, you need to do all that stuff on top ^20:43
Croephaok, i still can't figure out how to build a 16 ubuntu-core image20:44
ali1234i've done that20:44
Croephalet alone put a custom kernel in it20:44
ali1234ubuntu-device-flash builds the image20:45
ali1234but at the moment i'm working with the server image20:45
ali1234so not ubuntu-core20:45
ali1234i'm trying to build a custom qt to see if it makes drm work, but i'm not holding my breath20:46
Croephacan you point me to a doc? something more up-to-date than this: https://developer.ubuntu.com/en/snappy/guides/porting/ ?20:46
ali1234something like this http://people.canonical.com/~mvo/all-snaps/make-rpi2-all-snap.sh20:46
ali1234although that might be out of date20:46
Croephathis looks promising: http://blog.sergiusens.org/posts/Snapcrafting-a-kernel/20:50
Croephaexcept for the fact that im starting with kernel debs instead of the source20:50
Croephai'll have to look at that tomorrow20:51
Croephaits weird that they woundn't build the rpi kernel with DRM20:52
ali1234yes20:52
ali1234maybe it's some other problem, i don't know20:52
Croephathats like what 200Kb more?20:52
ali1234the problem is the raspberry pi libs aren't in the main repo20:52
ali1234so they can't build anything against them20:53
ali1234i don't know if that matters for the kernel though20:53
ali1234maybe the raspi stuff isn't upstreamed20:53
ali1234i guess i'll have to just keep using raspbian for now (again)20:53
ali1234even ./configure on qtbase has taken like 20 minutes so far20:54
Croephaali1234 are you crosscompiling ?20:54
ali1234no20:54
ali1234i cross compiled it for raspbian20:54
Croephathat will probably take days20:54
ali1234but i wanted to see how long it will take native20:55
ali1234it should not take days, qtbase is not that big any more now everything is modular20:55
ali1234actuallyi can probably just push my cross compiled version to ubuntu20:55
ali1234it will probably work right? right?20:56
ali1234configure says:      EGLFS Raspberry Pi . no20:56
ali1234so that not gonna work :/20:56
Croephaits a shame there is no https://launchpad.net/~beineri/+archive/ubuntu/opt-qt57-xenial for rpi20:57
ali1234yes, i already tried that20:57
ali1234maybe i need some magic config option20:58
Croephamight be easier just to give up on QT21:00
ali1234lolno21:00
ali1234it would be easier to just use raspbian21:00
Croepharight21:00
ali1234i can't give up on qt, there is literally nothing else as good21:00
ali1234and it works perfectly on raspbian... 60FPS, no tearing, touch screen works perfectly21:01
Croephacan you just copy out all the QT binaries from raspian?21:01
ali1234i could do yes, but i would not expect them to work21:02
Croephait will probably work, with some elbo-grease21:02
ali1234except it wont, if drm is missing21:02
ali1234let me try it, hang on21:02
Croepharight, if DRM is missing then thats a stopper21:03
Croephaok, can you copy the kernel from rasbian ?21:03
ali1234hang on testing qt first21:04
ali1234if i copy the kernel and the user space i might as well just use raspbian at that point :)21:04
Croephawell, the advantage of snappy, is that you will be able to do transactional updates21:05
Croephabut yea, the work will probably not be worth it21:05
Croephaatleast for first movers21:06
ali1234hmm egl library problems21:08
ali1234libraspberrypi0 from the ppa installs it in /usr/lib and it conflicts with mesa21:08
Croephahmm21:08
Croephaim not sure what libraspberrypi0 is, but if it provides a mesa implementation, then you should probably link with that instead of what ever is default21:09
ali1234you don't link against it directly21:09
ali1234mesa implementations are interchangable21:09
ali1234the problem is i can't get it top open the thing21:09
Croephawell, snappy sets the LD_LIBRARY_PATH, so that stuff in your snap gets loaded first21:10
ali1234yeah qt built for raspbian doesn't work on ubuntu21:12
ali1234This application failed to start because it could not find or load the Qt platform plugin "eglfs"21:12
ali1234the plugin is definitely there, it just won't load21:12
Croephai know this one21:14
ali1234HAH21:14
ali1234i know why none of this works21:14
Croephayou need a export QT_PLUGIN_PATH=/snap/$your_app/usr/lib/x86_64-linux-gnu/qt5/plugins/21:14
ali1234i'm not running it in a snap21:14
ali1234i'm running it from /usr/local21:15
Croephaahh ok21:15
ali1234it doesn't work21:15
ali1234anyway the qt source has this handy little test program for eglfs-brcm21:15
ali1234it fails to build on ubuntu, hence why it doesn't work21:16
Croephain order to get my QT working in snap, I had to set these variables:  XDG_DATA_HOME XDG_CONFIG_HOME QT_PLUGIN_PATH GST_PLUGIN_SYSTEM_PATH_1_0 GIO_MODULE_DIR GSETTINGS_SCHEMA_DIR21:16
Croephaoh and ALSA_CONFIG_PATH21:16
ali1234so here's a revised version of my challenge. snap this: http://paste.ubuntu.com/19414877/21:17
ali1234it's only 11 lines of code, should be easy right?21:17
Croephayou have to do it in devmode, because there is no interface for it21:17
Croephabut assuming there is /dev/drm it should be easy21:18
mupPR snapd#1532 closed: release: fix Elementary support <Created by zyga> <Closed by chipaca> <https://github.com/snapcore/snapd/pull/1532>21:40
mupPR snapd#1552 opened: release: work around elementary mistake <Created by chipaca> <https://github.com/snapcore/snapd/pull/1552>21:40
mupPR snapcraft#661 opened: Added a test Jenkinsfile <Created by elopio> <https://github.com/snapcore/snapcraft/pull/661>23:25
mupPR snapcraft#659 closed: Support "never" as a daemon restart condition <Created by kyrofa> <Merged by kyrofa> <https://github.com/snapcore/snapcraft/pull/659>23:55

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