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

=== chihchun_afk is now known as chihchun
lakcajGood day.  Snappy is getting a lot of buzz recently so I though I would check it out.  I'm a little confused how I'm supposed to assess the quality of snap packages.  From what I read, anything that makes it into the snappy repository is supposed to undergo some sort of quality assurance.  When I use snappy's to find packages I see this one:  "sudo  1        chipaca    -      not sudo".  What am I supposed to make of this?  Can I01:37
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
tsimonq2elopio: I added the integration test and I believe that the code is ready. Can you confirm?04:11
=== chihchun_afk is now known as chihchun
sgclarkwelp I have no idea what changed, but I can no longer launch any of my snaps05:03
=== rharper` is now known as rharper
=== stevebis1uit is now known as stevebiscuit
=== lpotter__ is now known as lpotter
=== qengho_ is now known as qengho
=== sarnold_ is now known as sarnold
nhaines_Was there anything I can do about the "failed to create user data directory. errmsg: Permission denied06:52
nhaines_" error in snapd 2.0. release on xenial?06:53
tsimonq2nhaines_: do you have an encrypted home sirectory?06:53
tsimonq2*directory06:53
mvonhaines_: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/159269606:54
ubottuLaunchpad bug 1592696 in ubuntu-core-launcher (Ubuntu) "snaps dont work with encrypted home: failed to create user data directory. errmsg: Permission denied" [Undecided,In progress]06:54
mvonhaines_: some progress here fortunately :)06:54
mvotsimonq2: might be interessting for you as well06:54
tsimonq2mvo: I moved off of an encrypted home directory today, and all snaps work fine now06:54
lpotteranyone heard of anyone bringing snaps to sailfishOS?06:55
mvolooks like jdstrand has it under control06:55
jdstrandI just uploaded to yakkety06:55
jdstrandI'm going to push the changes to snap-confine now06:55
mvolpotter: I have not heard anything, but its probably straightforward (given the amount of ports to other distros available)06:55
mvojdstrand: \o/06:55
jdstrandmvo: when do we expect the snapconfine to 16.04? I ask cause I keep thinking its coming, but then more stuff was needed for cross-distro. anyway, trying to decide if need a separate sru for the ecryptfs changes or if snap-confine is uploaded soon, just waiting for that06:57
jdstrandmvo: zyga said maybe for 2.0.9 or 2.0.10 at latest06:58
=== nhaines_ is now known as nhaines
mvojdstrand: I think we can do it right away, its fully compatible, isn't it?07:08
jdstrandmvo: snap-confine? I thought it depended on snap-run, etc, etc. not to mention, package name change, etc. I wasn't involved in the coding for any of that. aiui, it is supposed to work, but I got the impression you were driving the snap-run/snap-confine changes (and zyga the cross-distro bits). if I were to sru, I would just upload ubuntu-core-launcher with the apparmor change07:11
=== pedronis` is now known as pedronis
mvojdstrand: right, I'm driving snap run but its to a certain degree independent, we still provide ubuntu-core-launcher as a compat option in snap-confine and we could even keep the old package name lets sync up with zyga once he is around.07:23
mvojdstrand: you are in a european timezone currently?07:23
=== faenil_ is now known as faenil
jdstrandmvo: I am07:25
jdstrandmvo: I just noticed that snap-confine didn't have the profile changes for ecryptfs: https://github.com/snapcore/snap-confine/pull/39. can you review/approve/merge?07:25
jdstrandmvo: oddly, I don't have commit access to snapcore/snap-confine07:26
mvojdstrand: yeah, I can't merge either :/07:29
jdstrandzyhalp ^ :)07:30
jdstranderr07:30
jdstrandzyga isn't here07:30
jdstrandmvo: oh, it merged. that's good enough07:31
nhainesmvo: thanks!07:33
mvothank you nhaines - and thanks to jdstrand of course!07:36
* mvo hugs jdstrand once more07:37
* jdstrand hugs mvo :)07:38
=== faenil is now known as faenil_
=== faenil_ is now known as faenil
=== hikiko is now known as hikiko|ln
=== chihchun is now known as chihchun_afk
caleresshey guys, how can you distribute snap packages in a private environment...not making them public i mean?10:12
jamiebennettcaleress: a snap is just like a zip file really, you can sideload them on to devices with snap install10:16
trijntjecaleress: you can install the snap locally, just the file. I'm not sure if hosting your own repository is supported10:16
=== chihchun_afk is now known as chihchun
bullhow to copy directory to stage area ?10:27
bullolli,  i need help regarding snapcarft.yaml10:28
bullanyone on ?10:29
=== chihchun is now known as chihchun_afk
dpm_bull, you might want to post your snapcraft.yaml file somewhere so that someone can better help you10:58
bulldpm_,  i will10:58
bullwait10:59
=== hikiko|ln is now known as hikiko
bullhttp://pastebin.com/Gnjg9scp11:00
bulldpm_, http://pastebin.com/Gnjg9scp11:00
bullMut is qml module dir which i want in opt/deskie/bin/11:00
dpm_bull, first of all, I think you need to remove the 'parts:' line on L19, as you've already specified it on L1411:02
bullwhen i do that and place glue under parts:  it sys not allowed11:03
oSoMoNhi all11:04
dpm_hey oSoMoN o/11:04
bulli got it its working now thanks11:04
dpm_ah, cool11:04
oSoMoNI’m following the tour at http://snapcraft.io/create/, and when running the snap I created of hello, I get the following error: "failed to create user data directory. errmsg: Permission denied"11:05
oSoMoNcorresponding apparmor denial:11:05
oSoMoNJun 16 13:03:16 bribon kernel: [12818.389036] audit: type=1400 audit(1466074996.565:59): apparmor="DENIED" operation="open" profile="/usr/bin/ubuntu-core-launcher" name="/home/.ecryptfs/osomon/.Private/" pid=5865 comm="ubuntu-core-lau" requested_mask="r" denied_mask="r" fsuid=1000 ouid=100011:05
dpm_bull, I'm not sure if you can copy entire directories with the 'copy' plugin. I think you might need to specify the files to copy one by one, as such: http://askubuntu.com/a/739692/978111:05
dpm_oSoMoN, seems like snaps are not working with an encrypted home dir?11:06
bulldpm_,  it is copying11:06
dpm_oSoMoN, https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/159269611:06
ubottuLaunchpad bug 1592696 in ubuntu-core-launcher (Ubuntu) "snaps dont work with encrypted home: failed to create user data directory. errmsg: Permission denied" [Undecided,Fix released]11:06
oSoMoNdpm_, that’s my wild guess without looking further, but it seems unlikely to me that no-one has ever run into this before me…11:06
didrocksbug  #35933811:06
ubottubug 359338 in apparmor (Ubuntu Karmic) "apparmor paths are broken when using ecryptfs" [High,Fix released] https://launchpad.net/bugs/35933811:06
oSoMoNaha11:06
dpm_there you go :)11:06
oSoMoNknown issue then11:07
bulldpm_,  can i clean particular part build with snapcraft ?11:07
didrocksmake sure that you have all these rules in /etc/apparmor.d/usr.bin.ubuntu-core-launcher: http://paste.ubuntu.com/17392309/11:07
dpm_oSoMoN, check out the workaround https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1592696/comments/811:07
didrocksthen do: sudo apparmor_parser -r /etc/apparmor.d/usr.bin.ubuntu-core-launcher11:07
didrocks(from jamie)11:07
dpm_bull, I don't think you can clean parts separately, no. It's all or nothing, if I'm not mistaken11:08
bulldpm_, it is saying The 'build' step of 'glue' is out of date. Please clean that part's 'build' step in order to rebuild when i tried to change path in copy plugin11:08
bulldpm_,  what this mean "Please clean that part's 'build' step in order to rebuild"11:09
dpm_bull, I'd just do a 'snapcraft clean'11:09
oSoMoNdpm_, that’s quite an extreme workaround, removing confinement :)11:09
bulldpm_,  man it will again download everything :(11:09
dpm_bull, ah, wait, you can try something else11:10
* dpm_ checks syntax11:10
bullhow ?11:10
bullhttps://developer.ubuntu.com/en/snappy/build-apps/snapcraft-syntax/      did u mean these ???11:11
dpm_bull, you can try 'snapcraft clean --step build'11:11
dpm_which will just clean the build but not re-fetch the stage packages and the code11:12
bullthanks i 'll try11:12
bullthanks a lot bro11:12
dpm_lol, no worries :)11:12
dpm_but if that gives you an error, it might be because you've changed the snapcraft.yaml between builds without cleaning11:12
bullno errors,11:13
dpm_great :)11:15
=== dpm_ is now known as dpm
bulldpm,  one more  it build11:16
bullbut when i launch it it says :  /snap/deskie/x1/bin/qt5-launch: 74: exec: deskie: Permission denied11:17
dpmbull, is your deskie file marked as executable?11:18
bulldpm,  any idea ??11:18
bullwhere ??11:18
dpmwhat does the output of `ls -la /snap/deskie/x1/bin/deskie` say?11:19
bullin prime directory ?  yes it is11:19
dpmsorry, wrong dir11:19
dpm`ls -la /snap/bin/deskie`11:20
bull-rwxr-xr-x 1 root root 554 Jun 16 16:47 /snap/bin/deskie11:20
bullis it okay ???11:20
dpmlooks good from the permissions11:21
bullwhat may be reason then :(11:21
dpmbull, I'm not sure what the issue could be, other than the launcher has trouble launching your executable. Perhaps you might want to upload your code somewhere (e.g. github) and others can help you better11:22
bullhere is the output of  ls -ls of qt5-launcher  -rwxr-xr-x 1 root root 2174 Jun 16 16:42 /snap/deskie/x1/bin/qt5-launch11:22
bullis it okay ?11:23
dpmthe launcher is fine11:23
bullman i think am done with snap :/11:23
bullits pain11:23
bulldeskiw is close source app11:23
bulldeskie is not opensource11:24
bulldid you tried vlc's snap ?? it make the player useless11:25
dpmI think there is some level of pain with being an early adopter tbh, but we're working on ironing out the issues11:26
bulldpm, what's your real name or email i wana contact you ,11:27
oSoMoNdpm, where do I report issues with the documentation? on snapcraft.io/create, the following sentence doesn’t sound right: « build/ where the build is append »11:27
bulla asking this not just to seek help from you , i wana know everything about snapcarft cause i liked the concept , i am willing to make a  gui to do all this easily11:28
dpmbull, https://launchpad.net/~dpm, but I think the best place to send an e-mail is the Snapcraft mailing list, where others can help you better -> you can find it at the bottom of http://snapcraft.io/11:29
dpmoSoMoN, https://github.com/ubuntudesign/snapcraft.io/issues11:29
oSoMoNcheers11:29
bullthanks dpm11:29
dpmnp ;)11:29
bull:)11:29
dpmyw11:29
bulldamn , i know you11:30
bullDavid Planella11:30
bull :D11:30
bullhaha11:30
dpmso hi :)11:30
bulllol11:30
bulldpm :P11:30
bullthis is deskie https://www.youtube.com/watch?v=hfbC9dIAo4c11:31
bullmhall119, you there ??11:31
oSoMoNhttps://github.com/ubuntudesign/snapcraft.io/issues/1911:32
bullnice11:34
bulljust reload page11:34
dpmseb128, while you guys were working on the gtk launcher for snaps, did you ever come across this error? http://paste.ubuntu.com/17394424/11:35
dpmseb128, I see it on a qt5 app that uses gtk for theming, so I had to add the gsettings schemas building part, but it now fails to launch with that error11:36
seb128dpm, is that confined or in devmode?11:40
seb128confined yes, it's expected, dconf doesn't work there11:40
dpmseb128, it works in devmode, but not with confinement11:40
dpmargh11:40
seb128right, that's expected11:40
dpmseb128, so I guess no known workarounds?11:40
seb128I was going to try to look at that this afternoon11:41
seb128you can try to set XDG_RUNTIME_DIR to a directory that exists in the snap11:41
seb128e.g /tmp/dconf or something (with mkdir before)11:41
bullseb128, can you help me with this : when i run a qt snapped app it says :--  /snap/deskie/x1/bin/qt5-launch: 74: exec: deskie: Permission denied11:42
seb128bull, no idea about that11:42
seb128is your wrapper +x?11:43
bullidk11:43
seb128though it seems like it's the dir which has an issue11:43
seb128willcooke had somewhat similar issues earlier I think?11:43
bullme ??11:43
bullseb128,  u talking to me ?11:43
dpmseb128, thanks, I'll give that a try this evening, and I'll check in with you later if you were planning to look at it11:44
* willcooke reads11:44
bullwillcooke, can you help me with this : when i run a qt snapped app it says :--  /snap/deskie/x1/bin/qt5-launch: 74: exec: deskie: Permission denied11:46
willcookebull, I have the same problem, not fixed it yet11:49
bullwillcooke, same here bro :(11:49
kyrofawillcooke, oh... heh. It appears I didn't push it, which is super odd. Not sure what happened, but it's up there now11:49
sgclarkI also cannot run any of my qt5-launch apps11:49
sgclarksnaps rather11:49
bulldamn :D11:50
bullis this way snap will work ?? launcher for apps and i thinks it sucks this way :?11:50
bullwhats difference b/t deb with launcher to load your own libs ??11:51
bulland snap's launcher11:52
caleress@jamiebennett ok thanks11:54
nothalcaleress: No such command!11:54
sgclarkwell it has been working fine until this morning. The only thing that stands out to me is versioning scheme seems to have changed. /shrug to busy to muck about much today.11:54
caleress jamiebennett ok thanks11:54
dpmhey sgclark, what's the issue, are you getting the "qt5-launch: 74: exec: deskie: Permission denied" error too?12:09
dpmwell s/deskie/yourapp/12:09
sgclarkaa_change_onexec failed with -1. errmsg: No such file or directory12:10
sgclarkand various other no such file errors12:10
sgclarkand looking in the filesystem they are still there..12:10
sgclarkqt5-launch and the wrapper seems to both be confused. dunno what possibly could have happened overnight.12:11
bulldpm,  you maintaining qt5-launcher ?12:12
dpmit seems after forking it I've inherited, yes :)12:13
joc_kyrofa: hi, i've been trying out your new snapcraft qmake plugin, i wondered if you had any ideas how i could solve a problem i have with using the option attribute12:14
bull:D bro after clean  --step build   snapcraft stage not working12:14
kyrofajoc_, man you're on top of things! Yes please ask12:14
bulli mean it runs fine but do not populate stage dir with what should be in stage dir12:15
joc_kyrofa: ;) comes from looking at the PR page of snapcraft regularly12:15
kyrofaHeh12:15
joc_kyrofa: here is my work in progress yaml: https://github.com/jocave/telegram-app-snap/blob/master/snapcraft.yaml12:15
joc_kyrofa: i copied your plugin to external but really i should just use your branch12:16
bulldpm,  bro after clean  --step build   snapcraft stage not working , !  i mean it runs fine but do not populate stage dir with what should be in stage dir12:16
kyrofajoc_, hmm... I added `options` to support arguments like -Wall etc.12:17
dpmbull, I'm not sure I can help with that one, sorry :/12:18
bullits okay , seems like its snap issue12:18
joc_kyrofa: it actually works as it is except for the $QT_INSTALL_HEADERS variable12:18
kyrofajoc_, what does that variable do?12:18
joc_kyrofa: i haven't managed to work out how to expand that12:18
kyrofaYeah, snapcraft doesn't actually do variable expansion12:19
joc_the SNAPCRAFT_STAGE gets put in correctly but then i need to work out where the QT5 include dir is below that12:20
kyrofajoc_, indeed, SNAPCRAFT_STAGE is just something that snapcraft will replace for you12:20
kyrofajoc_, ah, you need to use a staged qt12:20
kyrofaRight?12:21
kyrofaExcept I don't see anything staging qt12:21
kyrofaOr is that libqtelegram-ae?12:21
joc_kyrofa: well not qt particulary, more the headers from the  libqtelegram-ae part12:21
kyrofaAh12:21
kyrofajoc_, does it go into an architecture-dependent place?12:23
kyrofajoc_, or is it something you can safely hard-code?12:23
joc_kyrofa: yep, stage/usr/include/x86_64-linux-gnu/qt5/libqtelegram-ae/12:23
mhall119bull: I am now, what's up?12:23
joc_arch dependent12:23
kyrofajoc_, blech, you might be stuck on https://bugs.launchpad.net/snapcraft/+bug/1576232 then12:24
ubottuLaunchpad bug 1576232 in Snapcraft "Doesn't allow dynamic file install targets ('usr/lib/$arch')" [Medium,Triaged]12:24
kyrofajoc_, can you modify the libqtelegram part to install into an architecture-independent path?12:25
joc_kyrofa: possibly, i'll have to look at the build configuration12:25
kyrofajoc_, because if you can do that, of course you can just hard-code the path using SNAPCRAFT_STAGE, right?12:26
bullmhall119,  am keshav , i was trying to snap deskie , i worked fine but when i launch app it says :  /snap/deskie/x1/bin/qt5-launch: 74: exec: deskie: Permission denied12:28
joc_kyrofa: yeah that should work, i'll have a look at doing that, thanks12:29
kyrofajoc_, thanks for taking the plugin for a test drive! willcooke has pointed out that I'm missing some build environment variables, have you run into anything else missing?12:30
joc_kyrofa: yw, not that i've noticed so far, i'll let you know if i find anything12:31
didrocksdholbach: dpm: fixed playpen CI for now, but I need to have a server to issue regular pings on docker hub12:32
dholbachdidrocks, what needs to be done there?12:33
dpmthanks didrocks12:35
bulldpm, where i have to place libs in snapcraft ?? which  i want put in snap for app runtime12:37
bullunder stage-packages or parts ??12:38
didrocksdholbach: we need to have a server where I can cronify a curl command to dockerhub every day12:40
didrockspeople.canonical.com doesn't allow that12:40
dpmbull, generally stage-packages if you use libraries from archive packages12:40
bullthanks :)12:41
bulldpm,  you wana try deskie ?12:41
bullon 16.04 ?12:41
bulli will give you deb12:41
dpmbull, I generally use the default wallpaper, so I don't think I'm the best tester for a wallpaper changing app, but thanks in any case :)12:42
bullyou will love it ;p12:42
dholbachdidrocks, what does it do?12:44
dholbachdidrocks, I could run it from holba.ch if it's nothing too crazy12:45
matteozyga: I made a PR12:46
matteo#3812:46
kyrofawillcooke, where did you discover those qmake variables? I can't find any docs whatsoever on INCDIRS12:46
bulldholbach, what is holba.ch ?12:47
dholbachbull, my own server - nothing Ubuntu related12:47
willcookekyrofa, I copied them from popey ^^12:47
bulloh12:47
kyrofapopey, you have magical qmake knowledge-- share with me!12:48
willcooke:D12:48
matteozyga: sorry, #4012:49
bullwillcooke, is it working now ??12:49
popeywat wat wat12:49
popey13:46 < kyrofa> willcooke, where did you discover those qmake variables? I can't find any docs whatsoever on INCDIRS12:49
popeyhahahahaha12:49
popeyI feel your pain12:49
popeyi had like a thousand tabs open one day and distilled them down into a few lines in my qmake plugin and they worked12:50
popeythere was much rejoicing that day12:50
willcookebull, nope, not had time to look yet12:50
kyrofaHahahahaha12:50
mhall119bull: make sure you chmod +x your deskie executable12:51
didrocksdholbach: just issuing a curl command12:51
didrocksto dockerhub12:51
dholbachdidrocks, can you PM it to me?12:51
zygamatteo: hey, thank you :)12:53
zygamatteo: I just got back from lunch, looking12:53
bullit is already executable mhall11912:54
bullmhall119,  willcooke having same issue , and one other was here also complaining about it12:54
mhall119bull: check in /snap/deskie/current/ to make sure it's executable there13:02
bullok13:02
mhall119if not, check in ./snap/ in your snapcraft build directory to see if it's executable there13:02
mhall119if it's not, then I bet you ran chmod +x after the first run, and didn't clean the necessary steps/parts to get rid of the old file13:03
* mhall119 made that same mistake with hello-unity13:03
bullmhall119, i did this from scratch with snapcraft clean13:04
bullmhall119,  iwill provide output soon13:06
kyrofasgclark, hey you're getting apparmor issues?13:09
kyrofaDoes it look like this? https://github.com/kyrofa/nextcloud-snap/issues/1#issuecomment-22647622813:09
sgclarkkyrofa: not exactly13:10
kyrofasgclark, specifically the "aa_change_onexec failed with -1. errmsg: No such file or directory" stuff13:10
sgclarkand I cannot recreate to show you because I cannot not run any snaps at all as of this morning13:11
kyrofaYikes, what's going on?13:11
kyrofaDid snapd just update??13:11
j-bhello :)13:12
j-bdavidcalle: good morning. Are you around?13:12
davidcallej-b hi! I was thinking about finding a way to reach you this morning13:13
kyrofasgclark, happy to help debug if you have some time to poke around. I'm going to update and see if the same thing happens to me13:13
sgclarkafraid I am booked atm13:14
j-bdavidcalle: you are the one that made the vlc snappy, right?13:14
davidcallej-b: indeed13:14
j-bdavidcalle: you are currently my hero :)13:14
davidcallej-b: hah :)13:16
j-b;D13:16
j-bdavidcalle: now the bad questions:13:16
j-b- will that run on 12.04?13:16
j-b- can I get access to DVDs?13:16
j-b- can I get access to the JVM?13:17
j-b- can I get access to v4l?13:17
bulldavidcalle, i installed vlc last night , and its all broken13:18
davidcallej-b: maybe someone else in the channel will correct me, but I believe it will only run on 16.0413:18
davidcallebull: for now, try removing it and installing with the --devmode flag13:18
bullnot following system theming , not showing up in unity dash , no entry in nautilus menus , unable to run any file , ends up with permission denied issues13:19
bullyeah you cant  make it run on 12.04  j-b13:20
kyrofadavidcalle, indeed, 16.04 only13:20
bulldavidcalle, is the devmode working fine ??13:20
j-bdavidcalle: ok, what about the other?13:20
popeykyrofa: anything you need from me, other than the stuff you have from my magic qmake plugin?13:20
kyrofapopey, no sir, thanks for the help! I'm actually going to pull the qmake source, haha13:21
bullhi popey13:21
bulli need help regarding qt5-launcher if it is done by you13:21
ogra_j-b, you would shil the jvm inside your snap ... öyou would have to request an interface for DVD and v4l (i dont think we have either yet, but they can surely be added)13:22
davidcallej-b: DVDs andv4l are things that will require snap interfaces, right now it works well only unconfined (eg. installed with --devmode).13:22
bullmy app deskie is qt based and not opening with your launcher its ending up with : /snap/deskie/x1/bin/qt5-launch: 74: exec: deskie: Permission denied13:22
j-bdavidcalle: snap interface?13:23
j-bI have no idea what you mean, tbh :)13:23
ogra_s/can/will/13:23
ogra_j-b, interfaces are how a snap can talk to the outside world13:23
bullj-b they allow access your system13:23
bullpopey, you there ???13:23
ogra_they give the user control about what a snap is allowed to do and to access13:23
j-bogra_: ok, so I need to code that interface?13:23
davidcallej-b. eg. right now the vlc snap has "interfaces" that gives it access to audio, access to X11, access to the home dir13:23
j-bok13:23
ogra_j-b, either you or you file a bug and we do it13:24
j-bI need /dev/s** RO  for DVD13:24
davidcallej-b: interfaces live in snapd iteslf, and snaps require them (you declare what you need basically)13:24
ogra_DVD and v4l are surely on the list of planned interfaces13:24
j-band /dev/video* for webcams13:24
ogra_until they exist you can simply install your snap with --devmode13:24
ogra_that gives it full access13:24
j-byeah, but I can't tell that to my users.13:24
bullogra_,13:25
davidcallejdstrand: zyga: do you know how high on the todo list of interfaces these two are? ^13:25
bullogre is my fav takken character:D13:25
roadmrooo there's a todo list of interfaces?? is the "setpriority" syscall included in one of them? wooot!13:25
didrocksj-b: we have a flag that you can set to your snapcraft.yaml file to say "this snap only works in devmode for now" and will refuse to install if not specified13:26
ogra_roadmr, not sure if zyga has such a list yet13:26
didrocks(it's going to be enforced by the end user tools soon), then the experience in --devmode is the same that traditional .deb/rpm packages (unconfined)13:26
roadmrogra_: heh, it's my passive-aggressive way of saying "I'd like an interface that allows setpriority for my snap to work nicely" :D13:26
j-bdidrocks: ok, but then it kind of defeats the idea :)13:26
bullam getting this with my qt app launch can anyone help me ?? /snap/deskie/x1/bin/qt5-launch: 74: exec: deskie: Permission denied13:27
j-bdavidcalle: the interface are defined in the .yaml?13:27
kyrofasgclark, can I assume you're running kubuntu?13:27
didrocksj-b: it's a transition plan ;) you still get a way to deliver latest and greatest to your users, cross-distro13:27
j-bdidrocks: well, sure, but then I have other solutions to do that.13:28
j-bdidrocks: but OK.13:28
bulldavidcalle, /snap/deskie/x1/bin/qt5-launch: 74: exec: deskie: Permission denied13:28
bulldavidcalle,  my qt app is giving me this as output when i run it13:28
bullam using the same qt launcher like vlc13:29
davidcallej-b yes, see line 10 on https://github.com/ubuntu/snappy-playpen/blob/master/vlc/snapcraft.yaml it's the list of interfaces ('unity7' is a catch-all interface for desktop related authorisations)13:29
j-bplugs?13:29
j-bbut where does it declare x11 and audio accesS?13:30
davidcallej-b, this file is missing the pulseaudio one and x11 is part of the unity7 one. See https://github.com/snapcore/snapd/blob/master/docs/interfaces.md13:31
j-band opengl13:31
j-bdavidcalle: so we need new plugs for dvd and v4l?13:34
sgclarkkyrofa: nope I am in Neon for the lastest packages13:34
kyrofasgclark, ah! So is the other person complaining about that. zyga ^^13:34
davidcallej-b: pretty much, yes, here is what the pulseaudio plug looks like: https://github.com/snapcore/snapd/blob/master/interfaces/builtin/pulseaudio.go13:34
j-bin go? o_O13:34
j-bnice.13:34
sgclarkwell we had a snap running in Arch, we best darned be able to use them in neon haha13:35
kyrofasgclark, no kidding :P13:35
kyrofaInvestigating now13:35
sgclarkty113:36
sgclark!13:36
j-bdavidcalle: do we get access to DBus?13:37
davidcallej-b: I think we have some tailored dbus access allowed through the unity7 interface https://github.com/snapcore/snapd/blob/master/interfaces/builtin/unity7.go13:40
j-bdavidcalle: all DBus interfaces?13:41
ogra_heh13:41
ogra_surely not13:41
ogra_that would kind of defeat the purpose13:41
ogra_(then you can simply also use --devmode)13:41
j-bSo, how do we get DBus interfaces for us? Can we declare them in the yaml?13:42
ogra_i would expect that you will eventually have different dbus interfaces for different purposes ... but surely not global access13:42
j-bI'm thinking of org.mpris.*13:43
mhall119j-b: you might get that with the unity7 interface already13:44
ogra_mhall119, doesnt look like that has mpris ... lbut i think it should13:45
j-bHow do I get it?13:45
sergiusensbull in case no one answered (and dpm) `snapcraft clean glue` would of worked13:45
ogra_smells like an oversight in the unity8 interface ...13:45
j-bFile an issue somewhere?13:45
ogra_j-b, file a bug13:45
dpmah, nice, thanks sergiusens13:45
j-bon github? on snapd?13:45
ogra_sigh ... who updated the channel topic and deleted the bug url13:45
davidcallej-b: https://bugs.launchpad.net/snappy13:45
bullty sergiusens :)13:45
seb128mhall119, j-b, the mpris one doesn't seem in https://github.com/snapcore/snapd/blob/master/interfaces/builtin/unity7.go13:45
mhall119ogra_: I agree that it should, mpris is an imporant part of unity7 integration13:46
ogra_olli, can you fix the channel topic and add the links back ?13:46
j-bseb128: yes, that's what I fear.13:46
mhall119as it powers the sound indicator controls13:46
j-bexactly13:46
seb128j-b, should be easy to get added13:46
ogra_yeah13:46
ogra_just file a bug at https://bugs.launchpad.net/snappy13:46
mhall119though a stand-alone mpris interface might be desired too13:47
ogra_well, you need some desktop part for it13:47
jsupcikHello. I just compiled my first snap (cross compiled ubuntu/amd64 -> arm/rpi2)! I was able to upload the snap to "myapps", but it shows "0 byte". Is this OK? The snap itself is 1.8MB13:47
dpmJamesTait, perhaps you can help jsupcik with the store question? ^13:48
mhall119ogra_: you don't think it might be used in IoT stuff?13:49
jdstranddavidcalle: video interface was on zyga's list and I believe he started it. I think it was deprioritized for the moment for cross distro13:50
bullmhall119, i tried build app after clean , still facing same issue13:50
ogra_mhall119, dunno, would that make sense ? ... afaik mpris always needs some UI part13:50
JamesTaitjsupcik, I did see a similar report a few days ago, but I'm not sure what came of it.  What's the package?13:50
mhall119bull: is your binary marked as executable in /snap/deskie/current/?13:50
bullyes13:50
mhall119ogra_: UI yes, but not necessarily GUI13:50
ogra_well, true13:50
ypwongwhen I run 'snap find' it fails as in https://paste.ubuntu.com/17396451/ saying i/o timeout, anyone knows what's wrong? I can go to the reported url in browser/wget13:51
mhall119I'm thinking in-car infotainment or "smart" speakers13:51
ogra_mhall119, it should definitely be part of unity7 and 8 though, since indicator-sound provides the UI ...13:51
mhall119yes, I agree with that13:51
ogra_a standalone one could happen later13:51
ogra_if thats actually needed13:51
mhall119yup13:52
j-bbut, for VLC, I need to expose the DBus Mpris server.13:52
bullmhall119,  my deskie binary is loacated in /snap/deskie/current/opt/deskie/bin/13:52
ogra_though i guess it would always be part of the UI providing bit13:52
j-bwhich is a bit different, no?13:52
bullmhall119, and it is executable13:52
mhall119bull: ok, but does it have it's executable bit set?13:52
jsupcikJamesTait, the package is telecom-tower.supcik (click-apps/5219)13:52
ogra_j-b, do yu actually need the server ?13:52
mhall119bull: is your qt5-launcher calling "/opt/deskie/bin/deskie" or just "deskie"?13:53
ogra_i thought you just attach to the dbus provider13:53
bullit is running fine when i double click on it there13:53
j-bogra_: I have no idea, tbh.13:53
ogra_heh13:53
ogra_neither do i ... but i thought you just talk to mpris interfaces on the bus usually ...13:54
ogra_probably my assumption is wrong though13:54
matteozyga: works for me13:54
j-bwell, yes, we implement the Mpris answers so Mpris clients talk to us. How it exactly works, I have no idea.13:54
JamesTaitjsupcik, it looks like it's fine.  The automatic review passed, and I've downloaded it and it's definitely a squashfs filesystem.13:54
matteoI'm running it now13:54
JamesTaitjsupcik, I don't know why the binary_filesize is 0.13:55
bullmhall119, my qt5-launcher  : http://paste.ubuntu.com/17396563/13:55
mhall119bull: pastebin your snapcraft.yaml too please13:56
bullmhall119, ok13:56
jsupcikJamesTait, OK. Thank you.13:57
bullmhall119, http://paste.ubuntu.com/17396622/13:57
didrocksmhall119: you got it! :-)13:58
bullmhall119, i think my qt5-launcher is assuming deskie directory  a executable binary and trying to execute it , just a thought :D13:58
mhall119bull: on line 9, call "qt5-launch opt/deskie/bin/deskie"13:58
bullmhall119, okay i will try13:59
bullmhall119, what should i do now to build again ??13:59
halflinedoes anyone have a good example of a third party vendor that ships .snap files right now?13:59
bullmhall119, i dont wana clean cause it will take lot of time to build again :/14:00
mhall119bull: "snapcraft snap" should be enough14:00
bullmhall119, le me try14:00
mhall119as it only needs to re-generate the launcher script used by snap-confine14:00
bullokay :) ty14:00
popeyhalfline: krita14:01
bullmhall119, one more thing i noticed is my , indicator icon of application not showing up , and am having issue with dash icon too14:01
popeyhalfline: nextcloud...14:01
bullplease review my snapcraft.yaml for icon entry14:02
halflinethanks !14:02
halflinepopey: hmm, i only see app image here: https://krita.org/en/download/krita-desktop/14:03
bullmhall119, it says while build , for icon : DEPRECATED: 'icon' defined in snapcraft.yaml. Look at https://github.com/ubuntu-core/snapcraft/blob/master/docs/metadata.md#snap-icon for more information14:03
popeyhalfline: its in the store14:03
halflineoh i wanted to try using .snap file directly instead of using the snap program14:03
halflineto downoad it14:03
kyrofaogra_, to be fair, we're shipping the snap, they're shipping devices using it. Though I imagine they'll take over the snap at some point14:04
seb128halfline, are you just looking for a .snap you can download?14:04
halflineseb128: yea pretty much !14:04
halflineseb128: hi btw14:04
ogra_kyrofa, which snap now ?14:04
kyrofaogra_, nextcloud14:04
ogra_ah14:04
seb128halfline, http://people.canonical.com/~bjoern/snappy/libreoffice_5.2.0.0.beta2_amd64.snap14:04
halflinethanks14:05
seb128halfline, hey!14:05
seb128yw14:05
kyrofaogra_, oh oops, that was meant for popey14:05
kyrofaogra_, so sorry14:05
ogra_hah ... and i was wondering about $context :)14:06
mhall119bull: yeah, that's not used anymore, but you can add your .desktop and icon into ./setup/gui/ in your  snapcraft directory14:06
kyrofaogra_, your nick just leaps off my fingers!14:06
ogra_yay14:06
bullmhall119, just dropping stuffs there will work ?? we dont need add them in snapcraft.yaml now ??14:07
bullmhall119, that fixed the issue :) thanks my brother :*14:07
bullapp is still not running due to some dependencies issues i will add them in snapcarft.yaml14:07
mhall119bull: just dropping them there will make snapd put the .desktop file where it can be found14:09
bullwow nice :)14:09
bullmhall119, see what am getting as output now , i know how to fix those qt qml issues but see the rest : http://paste.ubuntu.com/17396957/14:11
mhall119bull: looks like you need qml-module-qtquick-controls in your stage-packages14:12
bullyeH i said i will fix qt stuffs , what about the rest ??14:13
bullmhall119, am gonna make this app's code public on github soon :P14:13
mhall119\o/14:14
mhall119bull: and publish it in the store when it's working :)14:14
bullsure :)14:14
kyrofasgclark, found the issue. apparmor profiles aren't being generated for neon. Making a PR to fix now14:21
seb128sergiusens, hey, I've a snapcraft.yaml with a version 3.10 and the generated snap is named name_3.1_arch.snap ... is that wanted or a (known?) bug?14:23
popeyseb128: put quotes round it14:25
popeyin the yaml14:25
seb128popey, is that a workaround or the way it's supposed to be?14:25
kgunnev: mvo not sure where this bug lies...but i saw this a couple of weeks ago, it got fixed, but seems it's back?...i saw it last night14:25
* jdstrand tries to avoid asking about why the apparmor profiles weren't being generated for 'neon'14:25
popeyseb128: thats the way i work around it, assuming it's a workaround :)\14:25
kgunnstitched a new image, and upon attempting to sideload, it went to the store instead14:25
seb128popey, thanks14:25
popeyyw14:26
kgunnanyone know where to log that as a bug ^?14:26
kgunneven when i gave it relative path like ./mir-server_version#.snap, it still downloaded from store14:27
EdwardMorbiushello, anyone knows why clock snap gives libgl errors on desktop? wont start, libreoffice snap does start, proprietary nvidia drivers.14:28
EdwardMorbiuslibGL error: No matching fbConfigs or visuals found14:28
EdwardMorbiuslibGL error: failed to load driver: swrast14:28
EdwardMorbiusUnrecognized OpenGL version14:28
EdwardMorbiusUnrecognized OpenGL version14:28
seb128popey, seems like didrocks hit that one as and reported bug #158698814:29
ubottubug 1586988 in snapcraft (Ubuntu) "Version 2.10 is converted to 2.1" [Undecided,New] https://launchpad.net/bugs/158698814:29
didrocksyep14:29
seb128snapcraft.io uses quotes14:29
zygajdstrand: that's my doing14:29
didrocksseb128: that's how I discovered the bug, and edited/added quotes :p14:29
seb128didrocks, is the snapcraft team looking at ubuntu bugs? I usually also affect the project because I think they don't14:30
didrocksseb128: for snapcraft, they do14:30
seb128great14:30
didrocks(I was told to always set against the package)14:30
seb128so sergiusens is slacking and didn't triage it yet :p14:30
didrocks;)14:30
jdstrandzyga: now, you see, you are trying to get me to ask for more info and I'm trying not to :P14:31
seb128didrocks, I was unsure because package has 39 bugs and upstream project 13914:31
kgunnEdwardMorbius: i'm interested, so you're on proprietary NV drivers? and you installed the clock-app from the snap store on your desktop and it failed?14:31
EdwardMorbiuskgunn yes with the above error14:31
zygajdstrand: but this is safe (tm)14:31
zygajdstrand: because at worst the app won't start and someone fixes snapd14:32
didrocksseb128: I did try to open against upstream, but then, I don't remember if it was leo or sergio telling me to affect rather the package14:32
seb128didrocks, bug #1586162 seems to be a duplicate14:32
ubottubug 1586162 in Snapcraft "snapcraft truncates trailing 0's from version" [Undecided,Triaged] https://launchpad.net/bugs/158616214:32
didrocksthat was some months ago14:32
zygajdstrand: and it doesn't let unconfined snaps to run by accident14:32
didrocksso maybe it changed14:32
seb128didrocks, well with comment from jamie and sergio and gustavo14:32
didrocksseb128: remember my unify scripts? ;)14:32
didrocksah14:32
seb128:-)14:32
jdstrandinteresting14:32
jdstrandunrelated14:32
kgunnEdwardMorbius: i think it's just a bug...team's been trying to work through that aiui14:33
didrocksseb128: yeah, I came to the same conclusion while looking at it14:33
kgunnEdwardMorbius: i would be curious, have you ever tried the open drivers?14:33
jdstrandzyga: what is the status of landing snap-confine in 16.04? trying to decide if I need to sru ubuntu-core-launcher for the ecryptfs fix14:33
kgunnEdwardMorbius: it shouldn't matter...but curious14:33
zygajdstrand: that's a great question, I think mvo wants to get it in14:33
didrocksseb128: the "issue" with the python yaml parser is that you can disable it completely and then, you have to say for each field what type is expected14:33
zygamvo: to fix the nvidia bits, correct?14:33
didrocks(list, and so on…)14:33
didrocksbut that's quite a lot of code14:33
didrocksI think you can inherit parser, and maybe filter to say "version is always a string"14:34
didrocks(feel free to duplicate btw)14:34
EdwardMorbiuskgunn on my old laptop with open source radeon drivers it worked. didnt try open source drivers on this one though, went for proprietary straight away (steam).14:34
seb128didrocks, yeah, I'm not going to fix it, just good to know it's reported14:34
EdwardMorbiusbut I am suspecting it would work with nouveau14:34
seb128didrocks, unsure we should workaround in the documentation though, but that's another topic ;-)14:34
kgunnEdwardMorbius: ok, that's interesting....i thot it wouldn't matter...but maybe it does?14:34
kgunnEdwardMorbius: b/c this is all about the snap being able to peek out to the right dirs to find the drivers...unless nv put them some place special on install14:35
didrocksseb128: well, I had the requirement to release on Tuesday AND to use GNU Hello which is at .1014:35
kgunnesp in the case of the clock app i would think it wouldn't matter14:36
didrocksseb128: so, I did the only thing I could do with those requirements…14:36
EdwardMorbiuskgunn I used 361 driver from Ubuntu Software, didnt work, upgraded to latest via Nvidia PPA, same thing, maybe some paths changed14:36
seb128didrocks, yeah, I guess having a "btw the version there is buggy as you can see" isn't of the best taste14:36
didrocksexactly…14:36
seb128didrocks, popey, thanks14:36
didrocksyw14:37
* seb128 does the quotes workaround as well14:37
didrocksgetting trendy :p14:37
EdwardMorbiuslibreoffice as a snap opens normally however14:37
seb128:-)14:37
seb128#quoteyoursnapversions14:37
kyrofajdstrand, why they weren't being generated: https://github.com/snapcore/snapd/blob/master/release/release.go#L5414:37
sergiusensdidrocks seb128 we actually prefer project ones, I do triage ubuntu ones though. The 2.10 and 2.1 requires some discussion14:37
=== olli__ is now known as olli
sergiusenson the one hand we can do it and lose all the benefits of yaml by parsing everything as strings, but, then, this would not be proper yaml14:38
didrockssergiusens: ah, that did change then, ok, will know for the future14:38
didrockssergiusens: I wonder if we can't inherit parser14:39
didrockssergiusens: and create our own14:39
kyrofazyga, jdstrand I wonder if we should default to generating them if UBUNTU_CODENAME=xenial ?14:39
didrocksthen, special-casing "version:"14:39
sergiusensdidrocks we can, but do we want proper yaml?14:39
didrockssergiusens: as it's some declarative build tool, I think taking that liberty makes sense, (especially as 90% of them are going to be string)14:40
didrocksas 3.4.2 is a string14:40
didrocksbut not 3.414:40
EdwardMorbiuskgunn just saw this in description of Krita in the store "Notes: no translations are available yet, and due to a bug in Ubuntu, this snap doesn't work with proprietary video drivers, e.g. for NVidia." maybe this also affects clock14:41
mvozyga: yes14:42
mvozyga: in in in14:42
EdwardMorbiusyes same error with krita, libgl error.14:43
kgunnEdwardMorbius: :) thanks for the info14:44
bullmhall119, you there ??14:44
bullafter i added packages under stage-packages , why snapcraft not downloading them , it directly started building snap , i issued snapcraft snap14:45
bullmhall119, after i added packages under stage-packages , why snapcraft not downloading them , it directly started building snap , i issued snapcraft snap14:45
bulldpm, you there ??14:49
popeybull: patience please.14:54
bull:)14:54
bullpopey, can you help ??14:54
bullalan :P14:54
popeyhas snapcraft finished and built your snap?14:55
popeycan you look in stage/ and see if the pieces are there?14:55
didrockskyrofa: shouldn't the part being invalidated in that case and so "snapcraft snap" rebuild the part where stage-packages have been added? ^14:55
bullam all set to snap my app , but i added some dependencies to yaml file and tried snapcraft snap , it started building snap without downloading new dependencies14:56
kyrofadidrocks, yes it should, but it's not-- that should be logged14:56
kyrofa(a bug I mean)14:56
popeybull: did you let it finish?14:56
bullpopey, pieces are there but not the one which i added to stage packages14:56
bullyes i let it14:56
seb128bull, it's a bug, you need to clean the pull and redo it I think14:57
bulli cleaned stag but still it is not downloading :D14:57
bullyeah , :(14:57
bullseb128, it looks like a bug14:57
seb128unsure if you can manually add the deb in the dir14:57
seb128bull, I think that's what didrocks was asking kyrofa14:57
didrocksbull: please file the bug on launchpad, as kyrofa told :)14:57
bullsnapcraft need to check the file changes in yaml file14:57
didrocksright, that's why we need to a bug to get that fixed14:58
bullokay wait :P14:58
bulloh ,14:58
kyrofabull, the stage-packages are pulled in the pull step, not stage14:58
kyrofabull, so you need to make sure you clean all the way back to pull to get them14:58
bullso i need clean pull ??14:58
kyrofabull, indeed14:58
bullbut it will clean my downloaded stuffs :/ damn14:59
bulloh14:59
bullthats a bandwidth sucker thing they need fix this :D14:59
* popey runs apt-cacher-ng to reduce that problem14:59
seb128bull, kyrofa, maybe copying the deb manually where it downloaded the other ones would work15:00
bullhow we getting these ?? from this guy    ------ >>>>>      *15:00
kyrofaseb128, you'd need to unpack it as well15:00
bullseb128,  le me try thiis trick15:00
seb128bull, you need to unpack as well, might be easier to just clean and redownload if your internet isn't too limited15:01
bullseb128, i will try it now and provide feedback now15:01
bulli saved parts/application/ubuntu directory outside and issued snapcarft clean15:03
bullnow after clean i pasted ubuntu/ directory back to place let see what will happen15:04
bullholy shi*  it says when i issued snapcraft stage :-   E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.15:05
zygajdstrand, mvo: shall I make 1.0.30 release and let us all package that?15:06
mvozyga: yes, lets do it15:08
zygamvo: can you please comment on pull 40 snap-confine15:09
zygamvo: I'd like to include it but only if it won't make packaging more complex for dpkg15:09
bullseb128,15:10
mvozyga: sure, looking now - fwiw, vcs-git in debian/control also needs an update15:12
zygamvo: oh, thanks, changing now15:13
evkgunn: snapd - https://bugs.launchpad.net/snappy15:13
evfor reporting the bug15:13
zygamvo: merged, doing local package builds to see what works15:17
aatchisonCongrats on the multi-distro snaps!15:20
zygaaatchison: :)15:24
bull:)15:24
kyrofawillcooke, I did some more research into the qmake variables (just cloned the stupid thing)15:30
kyrofawillcooke, any chance you could give the plugin another shot?15:30
bullwillcooke, i resolved the issue mhall119 helped me in that15:32
kyrofawillcooke, actually wait, I need to verify something15:32
kyrofasergiusens, you around?15:32
willcookekyrofa, sure - in a meeting right now15:32
willcookekyrofa, will try again in amo15:33
kyrofawillcooke, good deal, I'll let you know when I push it up15:33
sergiusenskyrofa of course15:35
kyrofasergiusens, scratch that, figured out a better way to do what I wanted. But while I have you, want to work on slides today at some point?15:36
sergiusenskyrofa this is a total bummer :-P15:36
kyrofasergiusens, I know!15:36
sergiusenslet me try something15:36
sergiusenskyrofa probably 2 days will be lost on this15:37
kyrofasergiusens, my thinking as well15:37
kyrofaBad timing15:37
kyrofawillcooke, actually, I want to experiment. Can you share your project with me? Is it the one with the qmake plugin to which you've been referring?15:39
sergiusenskyrofa and that is how you solve things :-)15:42
* kyrofa is impressed15:42
croephaubuntu core doesn't seem to have the /boot/config-* file? how can I know the kernel configuration?15:44
kyrofacroepha, ogra_ is your man15:45
matteocroepha: /proc/config?15:53
croephals: cannot access /proc/config*: No such file or directory15:54
kyrofawillcooke, must not be... that project doesn't build as it is15:55
kyrofawillcooke, anyway, let me know15:55
willcookekyrofa, https://github.com/8none1/fritzing-snap16:13
willcookekyrofa, you also need to clone this in to ./fritzing-src16:13
willcookehttps://github.com/fritzing/fritzing-app16:13
kyrofawillcooke, ahhh, that's what I was missing16:13
* willcooke <-- hacker16:13
willcookekyrofa, make sure that ./fritzing-src/snapcraft.pro survives the clone16:14
kyrofawillcooke, indeed. Though the snapcraft.yaml refers to fritzing-snapcraft.pro16:15
kyrofawillcooke, should that be snapcraft.pro?16:15
willcookeerr16:15
willcookeah, yes - I need to push16:15
=== dpm is now known as dpm-afk
bullpriming mean ??16:17
mhall119hi all, if I have a part that builds a library, and another part that needs that library in order to build, how do I tell the second part where to find the first one?16:21
kyrofamhall119, so first of all, you should utilize the `after` keyword on the dependent part, in order to make sure its dependency is staged before its built16:24
kyrofamhall119, from there it may just work-- snapcraft tries to setup sensible CFLAGS, LDFLAGS, etc16:25
kyrofamhall119, if you need to actually give it some sort of "--this-is-where-the-dependency-is=" flag in the YAML, you can use $SNAPCRAFT_STAGE, which snapcraft will resolve to mean the stage directory, and give a relative path from there16:25
mhall119kyrofa: it's in ./stage/usr/lib/granite/16:26
mhall119and I have after: [granite]16:26
kyrofamhall119, and I assume it's not working? Is the error upon linking, or can it not find headers?16:27
mhall119can't find headers it seems16:27
kyrofamhall119, can you pastebin the error?16:27
mhall119kyrofa: http://paste.ubuntu.com/17401922/16:29
kyrofaAhh, cmake16:30
kyrofamhall119, how does mail try to find granite in the cmakelists.txt?16:31
kyrofamhall119, module, config, hard-coded?16:31
mhall119kyrofa: http://paste.ubuntu.com/17402139/ search for granite16:33
mhall119kyrofa: also, http://paste.ubuntu.com/17402022/ is the list of things in ./stage/16:34
kyrofamhall119, ah, pkg-config, okay16:34
kyrofamhall119, pastebin also the contents of stage/usr/lib/i386-linux-gnu/pkgconfig/granite.pc please16:35
mhall119kyrofa: http://paste.ubuntu.com/17402248/16:35
kyrofasergiusens, I'm a little foggy on your ingenius pkg-config stuff, can you take a look at this?16:36
croephaare build-packages for build time dependancies? do they get added to the .snap?16:37
kyrofacroepha, build-packages get installed onto the host system to be used as build time dependencies. They do not go into the snap unless the snap links to libraries contained within them, in which case those libraries will get slurped in16:37
kyrofaBut not the whole deb16:37
croephanice16:38
croephadoes it use like ldd or something to guess the links?16:38
kyrofacroepha, exactly16:38
kyrofamhall119, sergiusens will know a lot more, but that .pc file seems to be trying to pull granite from /usr16:39
kyrofamhall119, which may be the issue16:39
kyrofamhall119, out of curiousity, try modifying that file in stage/ to point to the right place and try to build mail again.16:40
mhall119kyrofa: modify it how?16:41
kyrofamhall119, specifically, make prefix=/path/to/my/stage/dir/usr16:42
kyrofa(absolute path)16:42
mhall119prefix=/root/stage/usr16:44
mhall119like that?16:44
kyrofamhall119, sure, yeah, if that's where stage is16:44
=== dpm-afk is now known as dpm
mhall119kyrofa: http://paste.ubuntu.com/17402692/16:46
mhall119same error16:46
bullmhall119, after successful building deskie am getting these errors : http://paste.ubuntu.com/17402740/16:47
mhall119bull: try installing again with the --devmode flag16:47
bullwait let me try16:48
mhall119bull: also, what plugs are you using?16:48
kyrofamhall119, meh, sorry, you need sergiusens16:48
mhall119help me sergiusens, you're my only hope16:49
bulli updated plugs , in yaml file opengl , x11 etc16:49
bull network   - network-bind      - unity7    - home    - x11  - network-manager      - opengl16:50
bullmhall119, these are plugs16:50
mhall119ok16:50
bullany idea why it is throwing such errors ?16:51
mhall119the icon ones, maybe a qrc lookup path problem?16:52
mhall119I'm not sure16:52
bullafter devmode install  :   http://paste.ubuntu.com/17402945/16:52
bullbut it dont throw such errors with normal usage :/ image path are all good16:53
mhall119hmm, still segfaulting, sorry bull that's the extent of my knowledge16:53
bull:/16:54
bullno problem mhall11916:54
bulli will try fix it whole night :D16:54
bulli already wasted my whole day :D but am with lots of knowledge thanks all for help :)16:54
bullmhall119, one more thing , i leaned new is you dont really need to download packages from repo all the time16:55
bulljust copy that folder to some location outside before issuing snapcraft clean , and put it back to place when you are ready to stage and pull again16:56
bullyou getting me ??16:57
bullhaha16:57
mhall119bull: here's another trick, you can clean individual steps with "snapcraft clean -s $step"16:58
mhall119so you can "snapcraft clean -s build" and it will leave everything from the "pull" step16:59
mhall119or "snapcraft clean -s stage" and it will leave everything from "pull" and "build" alone16:59
mhall119so if you've built everything, and you just need to tweak how it's put together in the snap, you can do that and not re-build every time16:59
dpmmariogrip, nice one with the octoprint snap!17:08
zygadpm: what is octoprint?17:16
dpmzyga, http://octoprint.org/17:16
zygawow, nice17:17
dpmzyga, also a nice example of a short and sweet setup: https://github.com/ubuntu/snappy-playpen/pull/69/files17:17
mariogripdpm: thanks :D17:27
willcookemhall119, where can I get your qt5-launch script from?17:28
willcookeoh, playpen I bet17:29
dpmwillcooke, it's defined as a wiki part at https://wiki.ubuntu.com/Snappy/Parts - you simply need to specify 'qt5conf' in 'parts' and then as the command to launch your app 'qt5-launch <your-binary>'17:32
mhall119willcooke: yeah, though sgclark's might be more recent17:33
willcookeoh, sweet17:33
willcookehow did I miss this?!?17:33
dpmwillcooke, the actual launcher code lives in the repo defined in the wiki17:33
dpmmhall119, unless she's copied and pasted the launcher, it should be the same17:34
croephais there a guide somewhere on making kernel snaps?17:35
kyrofawillcooke, okay, that PR should now work for you, but it required changes beyond just the plugin (so copying it into your tree won't work)17:38
willcookekyrofa, oki - should I clone the whole thing then and build it?17:39
kyrofawillcooke, yeah you can test it out by cloning that branch, uninstalling snapcraft temporarily, and modifying your PATH to include snapcraft's bin folder17:40
kyrofawillcooke, and remove your local qmake plugin, of course17:40
willcookekyrofa, sounds like a job for a fresh brain - can I try it in the morning?  I'd love to try and get qt5-launch integrated and tested tonight17:41
willcookeand then I can fritz about with it in the morning17:41
kyrofawillcooke, of course! The PR needs another pass by sergiusens and elopio now anyway. I won't merge without your go-ahead17:42
willcookethx kyrofa17:42
kyrofawillcooke, thank YOU. I appreciate your good testing17:42
willcooke*hugs*17:42
* kyrofa hugs willcooke back17:43
willcookethis is *fun*, actually building software instead of doing slide decks ;)17:43
kyrofaHahaha17:43
kyrofaOh oops, sergiusens, elopio I missed our planning session, I'm sorry!17:44
willcookeha, ironic17:45
sgclarkmhall119: actually d_ed has a more recent one that he has not even provided to me! *hint*17:46
sgclarkkyrofa: ty, any eta on my ability to snap?17:47
d_edoops, will push17:47
jdstrandzyga: I'm fine with that (1.0.30). the seccomp branch won't get the final review til next week I don't think17:49
kyrofasgclark, it's been merged into master, I'm checking on the anticipated release now. For your reference, this is bug #1593255. You can subscribe so you know when it actually gets released17:51
ubottubug 1593255 in snapd (Ubuntu) "apparmor profiles not generated on KDE Neon" [High,Fix committed] https://launchpad.net/bugs/159325517:51
sgclarkty17:53
ChrisWarrickLogin only works for local users in the sudo or admin groups.17:55
ChrisWarrick↑ why is that? why not also support 'wheel' which is seen on many non-Ubuntu distros?17:55
kyrofasgclark, sounds like SRU days are on Wednesday, so I'm afraid this won't make it to you until next week17:56
sgclarkwow17:56
d_edkyrofa: are you a snap developer? One things that's caused a problem is not knowing where (at compile time) our snap will be. In particular libexec paths get hardcoded into the libs/apps. Fine under a normal system, but a problem here as $SNAP can't be known at compile time.17:56
kyrofasgclark, you might consider rolling back the latest snapd release, or I can walk you through running it from source if you like17:56
bullmhall119, i wana discuss something are you free right now ??17:56
d_edif the container wrapper could (in the container) symlink $SNAP to /somestaticpath (or even mount it) we could drop a lot of patches I needed to do17:57
sgclarkkyrofa: well yeah not being able to work until Wednesday is a huge issue to me.17:57
kyrofasgclark, understood. Which of those two paths sound better?17:58
kyrofa(note that we're working on streamlining our release process, but we aren't quite there yet)17:58
sgclarkkyrofa: lets go with build from source17:58
bullany snap developer here i have a question , why snapcraft reload repo info or apt-get update ?? whats the benefit of that ??17:59
kyrofa(d_ed, I'll be right with you, sorry)17:59
kyrofasgclark, sweet, it's all in go. Are you familiar with that at all?17:59
sgclarkI have zero experience with go sorry18:00
kyrofasgclark, oh no apology necessary, just needed to know where you were coming from18:00
zygajdstrand: ok, I'm making the release then18:00
bullseriously i mean , whats the need of icons and stuffs ?? why it grabbing repo info  every-time it building snap ??18:00
kyrofasgclark, go builds stuff by using a workspace. So create a directory (e.g. I use ~/src/go), and define the GOPATH environment variable to point to it18:01
kyrofasgclark, also, install golang-go18:01
ChrisWarrickwhere do snap packages put their binaries?18:02
d_edsgclark: as I can't push to your git repos. Add these to all qt5_launch: https://paste.kde.org/pspuvyitz18:02
bullChrisWarrick, in /snap18:02
ChrisWarrickbull: not overwriting stuff? awesome.18:02
kyrofasgclark, let me know when you've got that18:03
bullChrisWarrick, snap installs binary there , it can install more then one version of app18:03
ChrisWarrickbull: which is awesome18:03
bullChrisWarrick, yes no overwriting , with deb installs18:03
ChrisWarrickbull: I feared it would overwrite my “normal” (pacman) apps18:03
bullChrisWarrick, yes18:03
bullChrisWarrick, no18:04
sgclarkkyrofa: done18:04
ChrisWarrickChrisWarrick, maybe18:04
sgclarkd_ed: ok ty18:04
bullkyrofa, you are a snap developer ??18:04
bulli have some questions18:04
kyrofasgclark, now run `go get -d -v github.com/snapcore/snapd/...`. That will download snapd and its dependencies into $GOPATH/src/github/snapcore/snapd18:04
kyrofabull, indeed18:05
bullkyrofa, why snapcraft reload repo info or apt-get update ?? whats the benefit of that ??18:05
bullkyrofa,  whats the need of icons and stuffs ?? why it grabbing repo info  every-time it building snap ??18:05
kyrofasgclark, once that has finished cd into $GOPATH/src/github/snapcore/snapd and run the `get-deps.sh` script18:05
kyrofa(which will just check out the correct commits of its dependencies)18:06
gouchihi18:06
kyrofabull, I don't understand what you just said. You mean why does it run `apt-get update` before it fetches debs?18:07
bullyeah18:07
kyrofasgclark, let me know when you've got that18:07
kyrofabull, well... what would happen if it didn't?18:07
bullkyrofa, it can use system's cache instead and get packages18:08
gouchican somebody make a test with my package ? Because I can't find what is wrong with it, I don't get error with scanlog18:08
bullsystem's apt-cache i mean , and get current libs or pulls , with which developer had build his package with18:08
mhall119bull: it's always better to just ask, others in here are way more knowledgeable than I am18:09
kyrofabull, snapcraft tries to make sure it always uses the most up-to-date stuff18:10
bullkyrofa, you getting my point ?? also why it wipes that cache with snapcraft clean ?? why will he need download that cache approx 28mb in size here in my case everytime he build snap ??18:10
bullmhall119, i started it already :)18:11
kyrofabull, to be fair, you're right. Snapcraft could be a lot smarter about this, and it will be eventually, but it's not there yet18:12
bullkyrofa, snapcraft says it will package libs with which you build your software , so why it get new versions of libs ?? say - i build a app today and foo.lib is version-2  today now if i wana that lib always with in my snap , why snapcraft will force me the new version of foo.lib ??18:13
kyrofabull, it does package libs with software. When it builds the software, it pulls down the most recent version of the lib available. Once the snap is made, that lib stays at that version. If the snap is re-generated, snapcraft will again pull down the most recent version available18:14
kyrofabull, if you want the ability to hold at specific package versions, then please log a bug18:15
bullyeah man thats what am saying , what if i wana stay with lib version 2 not 3 or 4 ?? why it will force me use version 4 (newer)??18:16
kyrofabull, because that's not a feature that has been requested :)18:17
kyrofad_ed, back to your question: you're right. One of the biggest stumbling blocks of snaps is that it requires its contents to be relocatable18:19
kyrofad_ed, so for example, an autotols project often writes its prefix into binaries, thereby making itself non-relocatable18:19
bullkyrofa, am here since morning bro , i really appreciate the whole progress you guys done , i just wana make snap better and better , i was trying build my app deskie which is a qt application , all i see is snap is not that much capable right now so this was just a thought ,which should be implemented , i mentioned it here cause you are one of those who develop snap.18:19
kyrofabull, I appreciate the feedback18:20
d_edso far I've been patching KDE stuff18:20
d_edpulling it into new env vars, or things relative to the binary18:20
d_edwhich works...we needed some for Windows deployment anyway18:20
kyrofad_ed, often times such projects will also support command-line flags pointing it to alternative directories etc, but not all of course18:20
kyrofad_ed, we're working on an ld preload solution that might help18:21
kyrofad_ed, but that's a little yucky18:21
kyrofa(and not done yet)18:21
d_edoverriding all stat() and open() ?18:22
kyrofaHey sgclark, once you complete those other steps, run `go install github.com/snapcore/snapd/...` and you'll end up with several snap* binaries inside $GOPATH/bin/18:22
d_edthat's somewhere between amazing and mental18:22
kyrofad_ed, hahaha18:22
d_ed(why ld preload it, you control the linked glibc don't you?)18:22
kyrofad_ed, yeah, but we can handle preloading in snapcraft, making glibc changes is a bit heavier18:23
kyrofad_ed, here's another hack for you, introduced to me by attente: use /snap/<snapname>/current as the prefix, and use a custom plugin that moves it after it's been installed, and now the prefix is valid at runtime18:24
gouchiHow can I debug if I got no error with scanlog ?18:24
d_eddoes current point to the latest possible, or the one the user will be running18:25
kyrofasgclark, finally, to use the newly build snapd, use https://github.com/snapcore/snapd#testing-snapd-on-a-snappy-system18:25
kyrofasgclark, also make sure $GOPATH/bin is in your path18:25
kyrofad_ed, the running one18:26
kyrofad_ed, or "active" one18:26
kyrofad_ed, I very much prefer proposing command-line flags upstream to make them relocatable, but that's not always an option18:27
kyrofagouchi, does the application in question have a log? Or write to syslog?18:27
kyrofagouchi, you can include things like strace in the stage packages and use it18:28
sgclarkkyrofa: I am so sorry, distracted. I will continue with backlog18:28
kyrofasgclark, heh, if anyone understands that I do18:28
kyrofasgclark, the backlog should get you to where you need to be, ping me if otherwise18:29
kyrofasgclark, and I'm sorry about the issues :(18:29
d_edkyrofa: ok, thanks18:30
bullkyrofa, where to raise an issue about snapcraft ? give github link please18:30
kyrofabull, https://bugs.launchpad.net/snapcraft/+filebug18:31
bullits on github too ??18:31
gouchikyrofa: I will change the wrapper so that it shows the log18:32
kyrofabull, code is on github, bugs tracked on launchpad18:32
bulloh18:33
bullnice18:33
bullkyrofa, what you think ,about what i said earlier ?? it should be in snapcraft or its useless ?? i mean i put a bug or not :D18:34
kyrofabull, you said a log of things. Which bug are you thinking of logging?18:35
sgclarkkyrofa: ok on run_checks now18:35
kyrofasgclark, ah yeah, good idea18:36
bullwhy it cleaning apt cache all the time and reloading it before build everytime18:36
kyrofabull, sure, go ahead and log a bug, then the team can read it over18:37
bullokay :)18:37
sgclarkAll good, what could possibly go wrong lol18:37
kyrofabull, no promises of course18:37
kyrofasgclark, like that?18:37
bullhaha18:37
croephaso, https://developer.ubuntu.com/en/snappy/guides/porting/ says that you need to make an snap... but it doesn't really say how one is supposed to do that18:38
sgclarkkyrofa: lol yeah18:38
mhall119croepha: you mean a kernel or OS snap? or an application snap?18:38
croephas/make an snap/make an oem snap/18:38
mhall119ok :)18:38
sgclarkkyrofa: I am back in business, thank you so very much!18:39
mhall119niemeyer1: do we have docs for making OEM snaps?18:39
kyrofasgclark, wonderful! Sorry again, glad you're back up and running18:39
sgclarknp, not something you could have foreseen18:40
croephamhall119 I need to make an image with a custom kernel, im not sure what I mean by OEM, thats the terminology from the porting guide18:41
croephais "OEM snap" synonymous with "Gadget snap"?18:45
davidcallecroepha: this porting guide is quite outdated, yes, OEM snap is the 15.04 terminology, gadget is series 16 (the one we are releasing these days), but they are the same thing18:46
croephadavidcalle: ok thanks, then I think I have what I need18:47
davidcallecroepha: ok18:48
gouchikyrofa: http://www.hastebin.com/jusimureva.coffee18:49
willcookeit works, it works, it works!!!!  http://imgur.com/snYkPJO18:50
gouchikyrofa: I can't add options to the wrapper it seems18:50
gouchikyrofa: or it crashed before18:50
popeywillcooke: yay!18:52
gouchiif somebody wants to make a test here is the source https://lufi.io/r/lioXiR-TT-#iBd88U+emCC9MY8LInCgbwvMAhPJanixfgK1z0JrAYQ= to build18:52
gouchibut you will need snapd >= 2.0.918:53
kyrofasgclark, just FYI, we also have https://launchpad.net/~snappy-dev/+archive/ubuntu/edge which is updated daily but is obviously less stable19:01
bullsleep is coming goodnight guys :/19:14
mhall119willcooke: awesome!.....what is it?19:17
willcookemhall119, PCB design tool:  http://fritzing.org/home/19:18
kyrofasgclark, note that I was just given the magic to request new builds to be placed there as well, so I just started a build containing the neon fix19:33
sgclarkkyrofa: ok ty19:36
sgclarkI still seem to have the wrapper issue, but rebuilding to be sure19:37
kyrofasgclark, this fixes the apparmor issue, remind me again what the wrapper issue was?19:38
sgclarkkyrofa: well I tried to rebuild but now I can't install snaps http://paste.ubuntu.com/17409817/19:42
kyrofasgclark, did you run snapd?19:42
kyrofasgclark, does `snap list`  give you the same error?19:43
sgclarkkyrofa: nm I blame the flu. copy paste fail19:44
kyrofasgclark, blech, you and sergiusens both!19:44
sgclark:(19:45
sgclarkkyrofa: ok confirm snapd is running still same error. but it is late and I am sick. I will try again tomorrow.19:47
kyrofasgclark, okay, go to bed! Tomorrow you can try just installing snapd from that PPA, might be easier19:47
kyrofasgclark, I learned about that PPA after I walked you through the src, by the way :P19:48
kyrofaSorry about that19:48
sgclarkkyrofa: all works, sorry, my brain is not 100% wrapper error gone too19:52
kyrofasgclark, yay!19:52
sgclark:)19:52
zygajdstrand, slangasek, mvo: FYI, snap-confine 1.0.30 released and ready to go downstream20:20
zygamvo does the ubuntu SRU20:20
zygaI pushed it to fedora, arch and soon gentoo20:20
zygahttps://github.com/snapcore/snap-confine/releases/tag/1.0.3020:21
popeyanyone else getting this? https://bugs.launchpad.net/snapcraft/+bug/159340920:29
ubottuLaunchpad bug 1593409 in Snapcraft "snapcraft cleanbuild 500 internal server error" [Undecided,New]20:29
popeycleanbuild just doesn't work here20:29
tsimonq2popey: nope, mine builds fine20:43
popeyhm20:47
sergiusenspopey I replied to your bug in the report21:30
sergiusenskyrofa sgclark I am not so sick anymore, it is only my wife and kid now21:30
* sergiusens wants them crossed off from the sick list as well!21:30
sgclark:( for them :) for you.21:30
sgclarkI am on the road to recovery. but it was rough, and on my Switzerland sprint :(21:31
popeysergiusens: you were right22:11

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