/srv/irclogs.ubuntu.com/2017/03/08/#snappy.txt

kyrofadasjoe, that's probably a question for ogra_, but he's probably EOD by now (he's in Germany)00:17
kyrofadasjoe, if you come by a few hours earlier tomorrow he'll probably be around, or you can send an email to the list00:17
dasjoekyrofa: I see. We're pulling an all-nighter to get some stuff done. Oh well, I'll stick to netboot.tar.gz for now00:44
=== JerryKao is now known as JerryKao_QTR
liuxgin devmode, do we still need to do manually connect for platform interface?04:33
liuxgI am having a problem here. in devmode, even if the platform (Qt libs content sharing) interface is disconnected, my app still can run well. It really confuses me.04:34
liuxgtimp, recently, I just noticed that platform interface can be automatically connected. is this true?06:01
liuxgkalikiana_,  is there any change on the platform interface? I find that now I do not need to manually connect the platform (qt content sharing interface) interface06:03
lutostagI'm hitting https://launchpadlibrarian.net/310093787/buildlog_snap_ubuntu_xenial_amd64_juju-crashdump_BUILDING.txt.gz if anyone can help me debug that would be appreciated...06:55
mupPR snapd#2996 opened: interfaces: fix default content attribute value (#2994) <Created by mvo5> <https://github.com/snapcore/snapd/pull/2996>07:13
mupPR snapd#2997 opened: hookstate: run the right "snap" command in the hookmanager (#2992) <Created by mvo5> <https://github.com/snapcore/snapd/pull/2997>07:14
mupPR snapd#2998 opened: tests: do not nuke the entire snapd.conf.d dir when changing store settings <Created by mvo5> <https://github.com/snapcore/snapd/pull/2998>07:35
mupPR snapd#2999 opened: snapstate: revert PR#2958, run configure hook again everywhere <Created by mvo5> <https://github.com/snapcore/snapd/pull/2999>07:43
mupPR snapd#3000 opened: snapstate: revert PR#2958, run configure hook again everywhere (2.23) <Created by mvo5> <https://github.com/snapcore/snapd/pull/3000>07:43
mupPR snapd#2991 closed: packaging: add opensuse permissions files <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2991>07:47
mupPR snapd#3001 opened: partition: deal with grub{,2}-editenv in tests <Created by mvo5> <https://github.com/snapcore/snapd/pull/3001>07:56
mupPR snapd#2989 closed: many: some opensuse patches that are ready to go into master <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2989>07:58
ogra_jdstrand, thanks for digging into it ... i'm traveling this week but will look into why the dragonboard does this once i'm home08:18
mupPR snapd#3002 opened: Add support for dbus::ObjectManager session paths <Created by vosst> <https://github.com/snapcore/snapd/pull/3002>08:46
mupPR snapd#2999 closed: snapstate: revert PR#2958, run configure hook again everywhere <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2999>09:12
mupPR snapd#2998 closed: tests: do not nuke the entire snapd.conf.d dir when changing store settings (2.23) <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2998>09:13
mupPR snapd#3003 opened: packaging, tests: use "systemctl list-unit-files --full" everywhere <Created by mvo5> <https://github.com/snapcore/snapd/pull/3003>09:54
Son_Gokumeep09:55
Son_Gokumvo, left feedback on https://github.com/snapcore/snapd/pull/300109:57
mupPR snapd#3001: partition: deal with grub{,2}-editenv in tests <Created by mvo5> <https://github.com/snapcore/snapd/pull/3001>09:57
mvoSon_Goku: \o/10:06
mvoSon_Goku: makes perfect sense, I will fix it10:07
Son_Gokuthe joys of GRUB, eh?10:07
Son_Goku:P10:07
Son_Gokuwe just dropped GRUB Legacy as an option for fresh installs in Mageia, so I *know* this can be a problem :/10:07
Son_Gokufor whatever reason, some people seem to think GRUB Legacy is better than GRUB 2 :(10:08
mupPR snapd#3000 closed: snapstate: revert PR#2958, run configure hook again everywhere (2.23) <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3000>10:08
kalikiana_liuxg: Can you elaborate? What has changed?10:19
liuxgkalikiana_, it seems to be that the platform interface is automatically connected.10:19
liuxgkalikiana_, just take a look at https://bugs.launchpad.net/snappy/+bug/167037110:20
mupBug #1670371: Configure hook breaks content interface plug <Snappy:Confirmed> <https://launchpad.net/bugs/1670371>10:20
kalikiana_liuxg: So what exactly is the question here? Does the configure hook change the connection behavior of the ubuntu-app-platform?10:23
kalikiana_The comments in the bug seem contradictory to me, so I feel I'm missing some context10:24
liuxgkalikiana_, you may try a test app at https://github.com/ubuntu/snap-tutorials-code/tree/master/webapp-ubuntu/final. it does use the platform interface. It seems that I do not need to manually connect the interface10:24
mupPR snapd#3004 opened: tests: do *not* nuke the entire snapd.conf.d dir when changing store settings <Created by mvo5> <https://github.com/snapcore/snapd/pull/3004>10:24
kalikiana_liuxg: That snap has no hooks... so it's an unrelated change then?10:25
liuxgkalikiana_, yes, this one does not have the hooks. but it shows the change.10:25
kalikiana_liuxg: So you can install it for the first time and it automatically connects?10:26
mupPR snapd#2997 closed: hookstate: run the right "snap" command in the hookmanager (2.23) <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2997>10:26
kalikiana_liuxg That didn't work like 2 weeks ago I'm pretty sure10:26
liuxgkalikiana_, yes, that is the case..10:26
kalikiana_liuxg: Did you by chance check if it also works if uap isn't installed?10:27
liuxgMirv, I am now developing a Qt tutorial. in the app, it needs to use qml and quick module. would you please add it the qt remove part? thanks The modules should be commonly used.10:27
liuxgkalikiana_, what is uap?10:28
liuxgkalikiana_, http://paste.ubuntu.com/24137373/10:28
kalikiana_liuxg: ubuntu-app-platform10:28
liuxgkalikiana_, yes, it is installed..10:29
kalikiana_liuxg: That's pretty cool then10:29
kalikiana_Will have to try it here10:30
liuxgkalikiana_, what do you mean? so this is a designed feature for it? or it is a bug?10:30
liuxgkalikiana_, ok. thanks10:30
Mirvliuxg: those modules are in both Qt and u-a-p remote parts10:30
Mirvliuxg: with u-a-p however you'll need to have the overlay PPA versions installed on your local machine to build, u-a-p is runtime only10:30
liuxgMirv, but when I compiled my Qt app, it complains that the modules are not there.10:31
liuxgMirv, I have install the overlay for sure..10:31
liuxgMirv, I did it in a container, let me show you the result of it.10:31
Mirvliuxg: qtdeclarative5-dev should have qml/quick development files10:31
Mirvliuxg: however you need to specify whether you are using u-a-p or qt57/qt58 remote parts, which are different10:32
liuxgMirv, oh really? sorry, I do not know that.10:32
kalikiana_liuxg: That's what was planned for a while, content iface snaps should be connected and downloaded automatically if needed10:32
liuxgMirv, what are the differences?10:32
Mirvliuxg: if your tutorial is about app targeting Ubuntu Personal, you should probably be using u-a-p. if not targeting Ubuntu Personal, then maybe qt57/qt5810:32
Mirvliuxg: u-a-p has lots of Ubuntu specific things like UI Toolkit, qt57/qt58 are for pure Qt applications10:33
liuxgMirv, for my case, it is a ubuntu phone app10:33
liuxgMirv, so what should be the right thing to use? how to use it?10:34
liuxgMirv, this is the output from building my project http://paste.ubuntu.com/24137400/10:36
liuxgMirv, the source code is at https://github.com/ubuntu/snap-tutorials-code/tree/master/snap-qt-app10:36
liuxgMirv, just take the final version of it https://github.com/ubuntu/snap-tutorials-code/tree/master/snap-qt-app/final10:37
Mirvliuxg: for phone app, indeed use u-a-p (runtime) and install whatever is needed from overlay PPA when compiling, including qtdeclarative5-dev10:38
liuxgMirv, but the qml and quick are not there. I installed the phone overlay for sure.10:39
Mirvliuxg: if you have qtdeclarative5-dev package installed, then I can't think of a reason it wouldn't find them when compiling. it works for me.10:39
Mirv(on 16.04 LTS + overlay PPA)10:39
liuxgMirv, I used a 16.04 LTS container to build it. Inside it, I installed the overlay ppa10:41
Mirvzbenjamin: ^ if you want to help10:41
Mirvliuxg: ok10:42
liuxgMirv, if I manually install them, I can build it through. I just want to have it there from the remote part. that would be the best..10:42
Mirvliuxg: the remote part is for runtime, it's not related to build time. that why you need to install the dependencies where you build.10:43
mupPR snapd#3003 closed: packaging, tests: use "systemctl list-unit-files --full" everywhere <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3003>10:43
zbenjaminliuxg: i assume you did run apt update and apt dist-upgrade after adding the overlay?10:44
liuxgzbenjamin, I did10:44
liuxgzbenjamin, I just did it once again, and it showed me the same error..10:46
zbenjaminwhat error10:46
liuxgzbenjamin, http://paste.ubuntu.com/24137400/10:47
liuxgzbenjamin, basically, it complains that the qml and quick modules are not there..10:48
liuxgzbenjamin, the source code is at https://github.com/ubuntu/snap-tutorials-code/tree/master/snap-qt-app/final10:48
zbenjaminliuxg: try installing ubuntu-sdk-qmake-extras10:48
liuxgzbenjamin, Mirv the problem is that it would be good to have it in the remote part so that developers do not worry to put the packages as build-packages in the snapcraft.yaml.10:49
liuxgzbenjamin, Mirv, we can install the packages manually to resole the problem. the intention is to have it in the remote part. what do you think?10:50
Mirvliuxg: you just said it's working for you when you install qtdeclarative5-dev. like I said, remote part is for runtime, it's not related to your local development environment.10:51
zbenjaminliuxg: forget the remote part for build time... it has nothing to do with that. The remote part is just there to provide your modules at runtime10:52
zbenjaminyou still need to tell snapcraft the build deps10:52
liuxgMirv, if I understand correctly, the remote part will help to install some needed packages to the development environment, right?10:52
Mirvliuxg: that is, currently remote part cannot specify extra build-package from what I know. if you want to contribute such a feature to snapd, that'd be great.10:52
Mirvliuxg: no, it does not install needed packages10:53
mupPR snapcraft#1175 opened: demo files for snaping the bitcoin-qt client <Created by torusJKL> <https://github.com/snapcore/snapcraft/pull/1175>10:53
liuxgMirv, didrocks, what do you think?10:53
liuxgzbenjamin, didrocks, Mirv, I know. qml and quick module are so commonly used. I think it would be good idea to inclu.de it in the remote part as a dependence so that it can be installed automatically10:54
Mirvliuxg: the 16.04 + overlay PPA requirement do make it quite manual anyway, but yes if adding to remote part works then not only those but everything included in runtime should be added10:56
liuxgMirv, for qt apps, qml + quick are just the basic modules. if they can be include, that would be the best :)10:57
Mirvliuxg: basically all or nothing. so yes if can be added, also those will be added and everything that is included in the runtime.10:58
liuxgMirv,  I have seen some modules are already there. but for the qml app support is not much.11:00
Mirvliuxg: no actually there's nothing currently, only stage-packages11:01
liuxgMirv, will stage-packages be finally installed onto the development environment?11:02
liuxgMirv, if it works, can we add them into the stage-packages?11:02
liuxgMirv, it is just for building the project. I think it is not part of the runtime, am I right? having them in the stage-packages should be fine. what do you think?11:05
Mirvliuxg: no, they are all in the stage-packages already, and nothing there helps in building the project11:07
Mirvliuxg: what you might be missing is that there's "ubuntu-sdk-libs" in stage packages which means everything Qt you can think of11:07
liuxgMirv, how is it different from ubuntu-sdk-qmake-extras?11:08
liuxgMirv, in the error message, it says that the qml and quick are missing. build-packages is designed for setting up the build env, right?11:09
Mirvliuxg: you can check both packages and see what they are, they are not related11:10
liuxgMirv, just now zbenjamin pointed that it was the  ubuntu-sdk-qmake-extras. so, I just wanted to know the difference.11:10
liuxgMirv, do you mean that stage-packages will not install the packages into the development env?11:15
Mirvliuxg: he was just thinking if you have missing dependencies locally, but it's not related11:15
liuxgMirv, OK. my question is whether stage-packages help to install the needed debian pacakges into the development env. if yes, we can add the packages for qml+quick11:16
Mirvliuxg: no, it should be build-packages, and not in ubuntu-app-platform but in snapcraft-desktop-helpers. I think thought in the latter it could be expanded.11:18
liuxgMirv, sorry, I got wrong. I mean the build-pacakges :)11:18
liuxgMirv, clearly, qml+quick now are not in the build packages.11:19
Mirvliuxg: yep, but it's indeed the snapcraft-desktop-helper where those are missing, not u-a-p. anyway, technical details to you, check again tomorrow, there might be something improved by then.11:21
liuxgMirv, thanks for helping.. we need the build packages for building apps :)11:22
liuxgMirv, once you get it done, please let me try it.11:22
Mirvliuxg: ok11:22
liuxgMirv, thanks a lot!11:22
liuxgMirv, one more thing. I using uap for my qt/website apps. it shows the platform is connected, however, it always shows an error like http://paste.ubuntu.com/24137751/11:25
Mirvliuxg: that is unfortunately a snap bug, you need to ping zyga for the status of the bug11:31
Mirvliuxg: it sometimes doesn't work correctly11:31
liuxgMirv, yes, it is very annoying11:31
Mirvliuxg: I only find bug #1652369 now but I've seen a similar more visibly tracked bug too11:32
mupBug #1652369: Cannot connect to ubuntu-app-platform package on consecutive installs <Snappy:New> <https://launchpad.net/bugs/1652369>11:32
Mirvliuxg: I agree11:32
Mirvliuxg: right, this is the actual bug, in progress by zyga: https://bugs.launchpad.net/snappy/+bug/164573111:32
mupBug #1645731: Fail to access the shared content if app starts before connect interface <Canonical System Image:Confirmed for pat-mcgowan> <Snappy:In Progress by zyga> <Ubuntu App Platform:Confirmed> <https://launchpad.net/bugs/1645731>11:32
liuxgMirv, yeah, I know the bug. it affects my creating of tutorial :(11:33
mupBug #1652369 changed: Cannot connect to ubuntu-app-platform package on consecutive installs <Snappy:New> <https://launchpad.net/bugs/1652369>11:35
mupBug #1671062 opened: Cannot open rocketchat-server on a VM <Snappy:New> <https://launchpad.net/bugs/1671062>11:35
kalikiana_liuxg: Do you know the namespace work-around? At least that lets you fix it without re-installing the snap12:04
liuxgkalikiana_, yes, I know the workaround. I still need to reinstall the snap,right?12:05
liuxganyway, I just make sure everything is right. remove clear install12:05
kalikiana_liuxg: No you don't, that's the point12:06
liuxgkalikiana_, ?12:07
zygao/12:07
kalikiana_liuxg: You don't reinstall, that is the point of the work-around ;-)12:07
liuxgkalikiana_, the solution is not stable sometimes.12:07
mupPR snapd#3004 closed: tests: do *not* nuke the entire snapd.conf.d dir when changing store settings (2.23) <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3004>12:11
didrocksMirv: not sure what you mean, but if yu add build-packages: it's part of the build definitions and it will installed what's needed12:25
didrocksMirv: remote parts are not for runtime, they are at build time12:25
didrocksMirv: so basically, you can specify such -dev packages (you already specify qtbase5-dev btw)12:26
Mirvdidrocks: yeah I just got got confused by the discussion spreading in many directions, you have a pull request already12:26
didrocksMirv: oh great! Didn't get to that yet. Thanks :)12:27
didrocksMirv: merged, many thanks!12:28
=== tinwood_swap is now known as tinwood
mupPR snapd#2996 closed: interfaces: fix default content attribute value (2.23) <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2996>12:44
mupPR snapd#3005 opened: packaging, tests: use "systemctl list-unit-files --full" everywhere <Created by mvo5> <https://github.com/snapcore/snapd/pull/3005>12:45
Mirvthanks!12:52
jdstrandogra_: thanks :)13:02
zygajdstrand: hello13:06
jdstrandhey zyga :)13:15
mupPR snapd#3005 closed: packaging, tests: use "systemctl list-unit-files --full" everywhere <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3005>13:28
mupPR snapcraft#1172 closed: demos, tests: add the mount-observe plug to be able to run godd <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1172>13:35
Son_Gokudamn it zyga, you can't hide from me! :P13:41
mupPR snapd#3006 opened: interfaces browser-support,mir,opengl,unityy: updates for mir-kiosk <Created by jdstrand> <https://github.com/snapcore/snapd/pull/3006>14:38
jdstrandpmcgowan: good news, ^14:39
jdstrandpmcgowan: I was able to get the dragonboard setup and work through some policy issues. there are a couple of things you should be aware of though14:39
pmcgowanjdstrand, listening14:40
lutostaganybody got an idea how to fix https://launchpadlibrarian.net/310093787/buildlog_snap_ubuntu_xenial_amd64_juju-crashdump_BUILDING.txt.gz ?14:41
jdstrandpmcgowan: the first is that something in the webdemo snap is making it so that the first run succeeds, but all subsequent runs segfault. this is not caused by security policy denials. I resorted to doing this in webdemo: http://paste.ubuntu.com/24139053/14:41
jdstrandpmcgowan: notice how if the script finds SNAP_USER_DATA, it removes a bunch of stuff14:41
pmcgowanjdstrand, thats odd, I am not seeing that with y latest version14:42
jdstrandpmcgowan: I don't know which of those things is the problem, but something is saved so that the next time a different code path is taken (I think it starts to think X is around) and then it segfaults14:42
jdstrandpmcgowan: this is in strict mode14:42
jdstrandfor both sides14:43
pmcgowanah ok, so I need to see14:43
jdstrandpmcgowan: but there are no denials, so it is weird14:43
jdstrandpmcgowan: the other thing is that webdemo wants to save stuff in XDG_RUNTIME_DIR. snapd correctly sets this to /run/user/<uid>/snap.$SNAP_NAME, but snappy doesn't create that directory14:44
ogra_just rename the demo to suicidal-browser ... done ...14:44
jdstrandpmcgowan: so webdemo tries to mkdir -p $XDG_RUNTIME_DIR14:44
pmcgowanjdstrand, where does it do that?14:45
jdstrandpmcgowan: and while the policy correctly allows creation of /run/user/<uid>/snap.$SNAP_NAME, it (correctly) does not allow creation of /run/user/<uid>/, in this case /run/user/014:45
jdstrandpmcgowan: some library14:45
jdstrandit's a freedesktop thing14:45
jdstrandpmcgowan: so, the snap dies trying to create /run/user/014:46
jdstrandpmcgowan: if you do 'sudo mkdir -m 0700 /run/user/0' then start the snap, and have the policy from the above PR, then it all works in strict mode14:47
pmcgowanjdstrand, but where is it that needs that folder?14:47
jdstrandpmcgowan: so, we had code for creating XDG_RUNTIME_DIR properly in a PR, but it was backed out. I need to track that down14:47
pmcgowanjdstrand, is that just a snap bug?14:47
jdstrandpmcgowan: I don't know the specific library. it is a standard xdg thing. Somewhere in Qt14:48
pmcgowanjdstrand, it seems to make a snap folder there, which hass nothing in it14:48
pmcgowannot really getting how thats a qt thing14:48
jdstrandpmcgowan: it is just a snap bug. snappy should be doing it. zyga had concerns with how it was being done and that part of the XDG_RUNTIME_DIR PR was reverted. I don't recall the details, but I'll chase it down14:49
pmcgowanok14:49
jdstrandpmcgowan: it's a qt thing because how these libs are written is that if XDG_RUNTIME_DIR is not set, it uses a default value, if it is set, it uses that value. if the value doesn't exist, it creates it14:50
mupPR snapd#3007 opened: merge the 2.23.1 release back into master <Created by mvo5> <https://github.com/snapcore/snapd/pull/3007>14:50
jdstrandpmcgowan: but it isn't limited to qt. this is needed by some gnome stuff. eg, dconf14:50
pmcgowanjdstrand, ok but not clear to me why it needs it? or is it just that it may need it14:50
jdstrandpmcgowan: I don't think it does need it (I never saw anything in there), it is just Qt making sure it is there in case your app needs it14:51
pmcgowanright14:51
jdstrandit is being overly helpful in this case14:52
jdstrandnormally, /run/user/<uid> is going to be created by something in the user's session14:52
jdstrandthat is not confined14:52
pmcgowanjdstrand, I really want to retest once all the content interface issues are fixed as I am never sure if we are hitting those14:52
ogra_cant youjust point it to /tmp as workaround ?14:52
jdstrandbut we don't have a concept of user sessions in core, so nothing is doing that, so snappy needs to14:53
pmcgowanok14:53
jdstrandpmcgowan: you could adjust the wrapper script to do:14:54
jdstrandexport XDG_RUNTIME_DIR=/tmp14:54
jdstrandlike ogra_ said14:54
pmcgowanjdstrand, in the latest snapd/core, can I try to run confined or do you have more to land?14:55
pmcgowanjdstrand, I am using a shared helper so not sure I can override it14:55
jdstrandpmcgowan: yes, that content bug was annoying. I found myself doing this: sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.webdemo-jdstrand.webdemo ; sudo service snap.webdemo-jdstrand.webdemo stop ; sudo /usr/lib/snapd/snap-discard-ns webdemo-jdstrand ; sudo service start snap.webdemo-jdstrand.webdemo14:55
jdstrandpmcgowan: that's a bit unwieldy ;)14:56
pmcgowanwow14:56
jdstrandpmcgowan: you can test it yourself let me get you a paste14:57
jdstrandpmcgowan: http://paste.ubuntu.com/24139271/15:05
jdstrandpmcgowan: note, snapd will periodically regenerate the profiles so you might have to re-add the apparmor rules15:06
pmcgowanjdstrand, thanks I will try it later on, I updated my snap to run as a daemon again and support a configure script15:06
jdstrandpmcgowan: also, be sure to use a new enough core15:06
pmcgowanjdstrand, stable core ok?15:06
jdstrandpmcgowan: yes, all of this is presupposing 'daemon: simple'15:07
jdstrand(that's why <uid> is 0 in /run/user/<uid> )15:07
pmcgowanah of course15:07
jdstrandpmcgowan: which brings me to my final point. there is a check in the review tools aboug using browser-support with 'daemon'. I'll be fixing that15:08
pmcgowanjdstrand, I assume you added browser-support to the list of plugs?15:09
jdstrandpmcgowan: oh yes, I did15:09
jdstrandpmcgowan: and pulseaudio15:09
pmcgowanjdstrand, yeah I saw why pulse?15:09
jdstrandpmcgowan: it was trying to use it so I put it there15:10
jdstrandpmcgowan: this is my snapcraft.yaml: http://paste.ubuntu.com/24139303/15:10
pmcgowanok, prolly a browser things15:10
jdstrandpmcgowan: wc.wrapper is in bin/wc.wrapper and is http://paste.ubuntu.com/24139053/ (chmod 755)15:11
jdstrandpmcgowan: yeah15:11
RumpleHow do you get a --classic snap into the stable branch>15:11
Rumple?15:12
pmcgowanjdstrand, ok will play around with it, did you need that mir-socket loop? I haent had an issue, and I worry about defining the socket path since the wrapper figures that out15:12
jdstrandpmcgowan: in all, I think kiosk with oxide is in really good shape in terms of snappy with that pr (XDG_RUNTIME_DIR notwithstanding, but that is easily worked around)15:12
pmcgowanjdstrand, thanks a lot for hammering on it15:12
jdstrandpmcgowan: I just did it as a precaution. note that hardcoding it is basically ok cause the mir interface only allows that path15:13
pmcgowanjdstrand, I thought there were two possible paths depending15:13
jdstrandpmcgowan: so it is set in stone for series 1615:13
pmcgowanoh15:13
jdstrandthere is a second unprivileged one somewhere that is exposed when you have a session like unity815:14
pmcgowanright I think thats what I recall15:14
jdstrandbut the kiosk scenario found and used that one15:15
jdstrand(/run/mir_socket that is)15:15
pmcgowanyep, so I will add it with some comments15:15
jdstrandpmcgowan: it might be worth double checking with the mir team if in the kiosk scenario /run/socket is what should be used. kgunn wrote this interface with kiosk in mind, so I suspect this is all correct15:16
jdstranderr, /run/mir_socket15:16
jdstrandpmcgowan: right, /run/user/<uid>/mir_socket is what was used on Touch15:19
jdstrandpmcgowan: but for kiosk, it is /run/mir_socket. we probably need to adjust the interface to use /run/user/<uid>/mir_socket, perhaps as an attribute, for things like the unity8-session snap (cc mterry and tedg) ^15:20
tedgjdstrand: Oh, we changed that for you :-)15:21
tedgThat way the mir interface would be generic.15:21
jdstrandtedg: oh. please give details and I'll update the comment in the interface15:21
tedgjdstrand: So the idea was that there was a standard mir interface, I think an attribute or something would work.15:23
tedgjdstrand: I think the change we made was to move it out of the unity8-session subdirectory as well.15:23
tedgjdstrand: Though if it was an attribute, we could keep it there.15:23
jdstrandtedg: I think I misunderstood. this is future stuff, not today stuff? (in terms of snapd)15:24
jdstrandtedg: sorry, if you responded, I missed it15:29
tedgjdstrand: No, I saw you disconnected, so I waited :-)15:29
tedgjdstrand: so I'm not sure what "future" and "today" is. But I'd be all for the mir interface having an attribute for the socket path. I think it'd give us good flexibility.15:30
tedgjdstrand: We really need interface hooks to apply it though, as apps would need to be able to turn that property into a MIR_SOCKET variable.15:30
tedg(on connection)15:30
tedgWhat's awesome about that is that an application switches from kiosk mode to unity8 mode based on who its mir interface is connected to.15:31
* tedg has a dream of a calculator kiosk to compete with the TI-81 ;-)15:31
jdstrandtedg: heh, ok, cool, we are on the same page then. when unity8-session slots mir, we can discuss the attribute15:35
cjwatsondidrocks: do you know if there's something special required to make snaps work that want to make HTTP requests using GIO?15:42
cjwatsondidrocks: I have a silly little snap (http://paste.ubuntu.com/24139502/) that I've got as far as being able to show a UI, but when it tries to make any requests it says stuff like "** (telegnome:20336): WARNING **: http.vala:63: Unable to fetch 'http://www.ceefax.tv/cgi-bin/gfx.cgi?page=100_0&font=big&channel=bbc1': Operation not supported", which I think is GIO's way of saying that it doesn't ...15:44
cjwatson... have the modules it needs to talk to that particular kind of GFile15:44
didrockscjwatson: hum, I didn't try this, but yeah, I bet that the warning is a consequence of a missing module for GIO, like gvfsd-http maybe?15:47
didrockssounds like it's in gvfs-backends15:48
cjwatsonaha, that could be, I was thinking of gio rather than gvfs15:49
didrocksyeah, but IIRC, it's using gvfs to transparently map to a file system access15:49
didrockswhich… I doubt strongly will work easily with snaps15:49
didrocks(daemons outside, providing a path on the system…)15:49
didrocksdo you want me to have a deeper look as time permits?15:50
cjwatsonI *thought* that gio was supposed to be able to talk HTTP itself without gvfs15:51
cjwatsonbut it's been a while since I imported that stuff into my brain15:51
didrocksit's possible that my memory is blurry and you are right. I would need to dig into the glib code15:51
cjwatsonyeah, if you have any time to have a look I'd appreciate it - it's totally not urgent for my thing which is unimportant, but maybe it affects other snaps too?15:51
cjwatsonor things that aren't yet snaps but could be15:52
didrocksyeah, I guess15:52
didrocksok, adding to my list :)15:52
cjwatsoncheers15:52
didrocksyw! I'll keep you posted (probably next week)15:52
cjwatsonsure, np15:52
mupPR snapd#3008 opened: testutils: address review feedback from PR#2997 <Created by mvo5> <https://github.com/snapcore/snapd/pull/3008>16:10
popeytesthello world16:32
kyrofapopeytest, that appears successful16:32
owen_*sigh*16:45
benjamin_Curious16:46
HumbleBeaverIs anyone here using tpaws blender snap?16:52
kyrofaHumbleBeaver, I'm not using it anyway-- is something wrong?16:53
HumbleBeaverkyrofa, It has a massive slow down when working with larger files. Like its not accessing the GPU16:54
HumbleBeaverWas curious if anyone else was using it on a daily basis, I don't have the same issue with the non-snaped version.16:58
kyrofaHumbleBeaver, hmm, yeah I'm not sure16:58
ogra_probably GPU related ... we used to have issues with nvidia and the GL interface in the past16:58
ogra_(not sure if all bits have been sorted yet)16:58
kyrofaHumbleBeaver, I'd suggest logging a bug against the snap in question, but the URL in the snap seems to be invalid17:00
kyrofaHumbleBeaver, looks like this might be it: https://github.com/TPaw/TPawSnaps17:01
kyrofaHumbleBeaver, and it's README seems to confirm your suspicions: https://github.com/TPaw/TPawSnaps/tree/master/snaps/blender17:02
kyrofaAt least... I think that's what is meant by SoftwareGL mode17:03
HumbleBeaverThanks, kyrofa, I'll send him a request for an update.17:05
lutostagI'm guessing this bug https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1662357 is causing the launchpad build to fail for https://launchpadlibrarian.net/310093787/buildlog_snap_ubuntu_xenial_amd64_juju-crashdump_BUILDING.txt.gz, is that correct or am I off base?17:23
mupBug #1662357: Can't use lsb_release on Ubuntu Core 16 <lsb:Confirmed> <Snappy:New> <Snappy Ubuntu Core:New> <lsb (Ubuntu):Confirmed> <https://launchpad.net/bugs/1662357>17:23
kyrofalutostag, builds on LP don't happen within Ubuntu Core17:24
lutostagso its still calling lsb_release -a on the xenial system as a whole which is seemingly falling over17:24
kyrofalutostag, indeed, perhaps cjwatson has some insight there17:25
cjwatsonlutostag: no idea why that would fail; it should work.  have you tried it in snapcraft cleanbuild on a non-Ubuntu-Core system?17:30
lutostagcjwatson: yeah local builds are 100% fine17:31
lutostagyakkety on xenial lxds17:31
lutostag(yakkety host) w/ xenial lxds17:31
cjwatsonlutostag: I guess file a bug on launchpad-buildd to start with, though not quite sure when I'll find time :-/17:32
lutostagcjwatson: yeah I thought it was a borked core-16 release build w/ lsb_release, but if that's not the case not an 'easy' fix, will file17:33
cjwatsonyou can deploy a Launchpad builder unit using https://jujucharms.com/u/launchpad/launchpad-buildd (for some reason you have to be logged into the charm store to see that URL), but working out how to operate it is still a bit of a chore17:35
cjwatson(that's not how real builders are deployed, but it's good enough for most purposes)17:36
mupPR snapd#3009 opened: interfaces/builtin: small refactor of dbus tests <Created by zyga> <https://github.com/snapcore/snapd/pull/3009>17:43
kyrofaHey kgunn, I need some qmake advice if you have a sec?17:59
naccstokachu: did you end up doing the conjure-up transition from deb to snap? istr you talking about it in here a while ago18:27
stokachunacc: yea we're full on snap now18:28
stokachunacc: if you see documentation that still mentions the ppa way to install lemme know18:28
stokachuneeds to be updated18:29
naccstokachu: oh i was just curious if you did packaging changes to transition / how you went about it18:29
naccstokachu: as in, did you forcibly install the snap via a postinst of the dummy package or something?18:29
stokachunacc: yea i basically put a postinst in the deb package to say "remove this, snap install conjure-up"18:29
stokachui still had them run the snap install commands, i just errored18:29
naccstokachu: ah, in the PPA version? or in the published version18:30
stokachuyea in the ppa version18:30
naccstokachu: ok, thanks! is there a reason you didn't transition them for you (beyond it being a bit abnormal)18:30
nacc*them for them18:30
naccI guess you would have to ensure you can install snaps, etc. (user could have removed snapd)18:30
stokachunacc: yea18:33
stokachunacc: if they run snap install and it fails to find snap they get directed to apt-get install snapd :)18:33
stokachuthat's what i rely on for making sure they can install snaps18:33
stokachubrb lunch18:33
naccstokachu: ah ok -- thanks!18:33
jdstrandkyrofa: hey, is this supported: http://paste.ubuntu.com/24141235/20:11
kyrofajdstrand, that grammar is only supported for stage-packages20:11
jdstrandkyrofa: basically, on amd64 I need those packages to use the preload part, but libc6-dev-i386 only exists on amd64, not say, armhf20:12
jdstrandkyrofa: hmm, is that a missing feature or should I do this differently?20:12
kyrofajdstrand, so can this even be built on armhf?20:13
jdstrandkyrofa: yes20:14
kyrofajdstrand, but with a different set of build-packages?20:14
jdstrandI didn't test it yet, but I have https://myapps.developer.ubuntu.com/dev/click-apps/7180/rev/5/20:14
jdstrandkyrofa: if I remove the build-packages, it builds on everything but amd6420:15
kyrofajdstrand, I think you're the first person who has run into this for build-packages. All the previous requests were for stage-packages. So yeah, I say log a bug20:15
jdstrandkyrofa: for amd64 I used build-packages with those 4. I was wanting to then add those 4 for only amd6420:15
jdstrandok20:15
jdstrandkyrofa: fyi, https://bugs.launchpad.net/snapcraft/+bug/167123820:20
mupBug #1671238: please support selectors in build-packages too <Snapcraft:New> <https://launchpad.net/bugs/1671238>20:20
kgunnkyrofa: hay back, sorry...lunch and then super distracted helping my 18 yo with his laser etching project involving inkscape ;)20:20
kyrofaThanks jdstrand, I'll bring that up in standup20:20
kyrofakgunn, ooo, that sounds like a fun project!20:20
kgunnwhat advice can i help with?20:21
* kgunn worries about kyrofa asking me for advice :)20:21
kyrofakgunn, we got https://bugs.launchpad.net/snapcraft/+bug/1670146 logged against the qmake plugin snapcraft20:21
mupBug #1670146: QMake plugin should allow specifying custom Qt paths <Snapcraft:New> <https://launchpad.net/bugs/1670146>20:21
* kgunn reads20:22
kyrofakgunn, do you have any thoughts about how to best approach that? Does my comment sound promising?20:22
pmcgowankyrofa, what is simpler than what example [1] there is doing?20:27
pmcgowanjust use the existing qt part for the version you need?20:28
pmcgowanor he may be using the qt lite stuff to make a custom one20:28
kyrofapmcgowan, and using QTDIR? Is that the best way to do this?20:28
kyrofapmcgowan, would we need to set QMAKESPEC and QT_PLUGIN_PATH as well? Not sure if there are others20:29
pmcgowankyrofa, Mirv is the best one to ask20:31
OlympionexDoes anyone know what is required to be running inside a docker container in order for snap to install the core image?  I have snapd running inside the docker, but when I try to install core it downloads fine but fails to mount.  I'm just trying to build a classic confinment snap inside a docker image, but it looks like snapcraft needs the core image for linking in libs.20:33
kgunnkyrofa: pmcgowan ...ah his issue is, it's a local part, but he's wanting to use the system provided plugin..is that the issue?20:33
Olympionexsorry, didn't mean to interrupt right there20:33
kgunndon't apologize...it's always messy on irc :)20:34
kyrofakgunn, pmcgowan indeed, the problem is that the system plugin (shipped in snapcraft) only supports qt from the system, and _specifically_ only qt4 and qt520:34
kgunnright20:34
kgunnso he's kind of wanting to "override" that with his local stuff20:34
kyrofakgunn, at least, that's what's happening in [1] on the bug. Not sure what the deal is with [2], but it looks like it's available somewhere on the system20:35
kgunnto me, i don't think it's completely wrong to say...copy over the plugin and modify it20:35
pmcgowanoh I see20:36
kgunni used to do that with qt stuff for mir-kiosk in early days20:36
kyrofaOlympionex, I don't think running snaps inside docker is supported20:36
kyrofakgunn, yeah that's always an option if there's no easy way to make this work20:37
kyrofaOlympionex, you're right in that snapcraft needs the core snap, but it supports a magical flag for exactly your situation20:38
kyrofaOlympionex, try `SNAPCRAFT_SETUP_CORE=1 snapcraft`20:38
Olympionexawesome, i'll try it20:39
kyrofaOlympionex, and it'll download the core snap itself and unpack it instead of expecting it to be mounted into place20:39
kgunnkyrofa: in the second one, he's also modified the plugin...basically to build local20:39
kgunnso...that might be a reasonable request like....20:39
kgunnplugin will do qt4, qt5 or custom qt setup local to your snap20:40
kgunnat this point, it's prolly a Mirv proposal we'd want on how exactly to do that...20:40
kgunnnot sure who originally wrote the qmake plugin?20:40
kyrofakgunn, me, with your testing. You don't remember that?20:41
kyrofakgunn, that's why you're my qmake guy!20:41
kgunnlol20:41
kyrofaTeach you to help me20:41
kgunnah...so all my complaints ended up on your desk...oops20:41
kyrofakgunn, pmcgowan alright, thank you both for your help! It's super late for Mirv so I'll get in contact with him20:44
pmcgowanjdstrand, I am back to testing ont he dragonboard and of course nothing works like it did on amd64, I am getting all sorts of denials in devmode20:45
pmcgowanand I dont see my configure hook run20:46
=== ddstreet_away is now known as ddstreet
Olympionexthanks very much kyrofa!20:47
kyrofaOlympionex, did that work out okay?20:48
Olympionexkyrofa: yeah, doing final testing, but seemed to start it building20:49
kyrofaOlympionex, good deal. And yeah, don't apologizing for jumping in-- you'd never get a word in sometimes if you didn't!20:49
kgunnkyrofa: you bet.... i was still noodling inthe background...kind of wonder if there's not a way to do the override from within his yaml20:50
kgunnlike isn't there a configflags: field20:50
kyrofakgunn, options, yeah20:50
kgunnthen just looking at this20:50
mupPR snapcraft#1128 closed:  tests: support bzr branches for external tests <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1128>20:50
kgunnhttp://doc.qt.io/qt-5/qmake-variable-reference.html20:50
Olympionexthanks20:51
kgunna-la "DEFINES += USE_MY_STUFF"20:51
kgunnanyhoo..just an idea20:51
kyrofakgunn, that would end up being handed to the compiler though, right?20:53
kgunnyes20:53
kyrofakgunn, the "application type" is interesting, though: "The target is a Qt application or library and requires the Qt library and header files. The proper include and library paths for the Qt library will automatically be added to the project. This is defined by default, and can be fine-tuned with the \l{#qt}{QT} variable."20:53
kgunnbut my presumption is, he's just wanting to point to his local Qt like a tool for the qmake to run20:53
kyrofakgunn, if he uses a precompiler definition, he'd have to somehow handle that in his code, no? That won't actually affect qmake, unless I'm misunderstanding20:55
kgunnah, i think you might be right20:56
* kgunn thinks some more20:56
mupPR snapcraft#980 closed: sources: add optional "source-checksum" property <Created by pachulo> <Merged by kyrofa> <https://github.com/snapcore/snapcraft/pull/980>21:02
mupPR snapcraft#1176 opened: demos, tests: remove the tomcat demo snap <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1176>21:11
mupPR snapcraft#1177 opened: sources: update documentation for source-subdir <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/1177>21:29
=== JanC_ is now known as JanC
pmcgowankyrofa, is there a way to reinit the snapctl config for a snap, to work around that bug21:44
kyrofapmcgowan, I think you need to stop snapd, then update that json file, then start snapd again21:44
pmcgowanoy21:44
pmcgowankyrofa, thanks21:45
kyrofaAny time21:45
mupBug #1671266 opened: rfkill should be included in the core snap <Snappy:New> <https://launchpad.net/bugs/1671266>22:43
mupPR snapcraft#1163 closed: docs: update the directory where the API pages are generated <Created by elopio> <Merged by kyrofa> <https://github.com/snapcore/snapcraft/pull/1163>23:02
kyrofanessita, noise][ we are having some terrible connectivity issues with the store right now that's wreaking havoc with CI. status.snapcraft.io looks clear... are there any known issues?23:04
kyrofaLots of "Connection reset by peer"23:05
elopiokyrofa nessita noise][: this bug https://bugs.launchpad.net/snapstore/+bug/166606123:13
mupBug #1666061: snapcaft tests that download the core snap fail sometimes <tests> <Snapcraft:New> <Snap Store:New> <https://launchpad.net/bugs/1666061>23:13
kyrofaelopio, WAY more than 1 out of 10 today. It's been like 8/10 for me23:14

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