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

wililupyQuestion: With snapcraft, is there a way to run make oldconfig when snapping a kernel?02:31
wililupyOr should I do that before and then run make [menu]config and save the config and point to the kconfigfile in my snapcraft.yaml?02:32
=== chihchun_afk is now known as chihchun
qenghowililupy: Does "snapcraft help kbuild" answer your question? You should provide your config and snapcraft will run "make oldconfig" after installing it.03:55
wililupyqengho: That makes more sense now. I was reading that and wasn't quite sure what it meant.04:02
wililupyI'll give it a shot tomorrow to see how that works since I know that defconfig is very minimal, and I need to add a bunch of kconfigs to make my kernel work.04:03
qenghowililupy: cool.04:07
wililupyIt's almost easier for me to just follow the directions here: https://wiki.ubuntu.com/KernelTeam/GitKernelBuild and then in menuconfig, save the config and copy it to my snapcraft.yaml location and build using kconfigfile: in snapcraft.yaml.04:08
wililupyqengho: However, I think the way you mention is cleaner and the better way to do it :)04:09
wililupyqengho: Or, use the /boot/config-`uname -r` for the kdefconfig: and then use kconfigs: for the specific ones I need since it will then use yes "" | make oldconfig when creating a new .config.04:17
dholbachgood morning06:34
seb128hey dholbach06:35
dholbachsalut seb12806:35
dholbachcomment ça va?06:35
tsimonq2hey it's dholbach \o/06:36
tsimonq2dholbach: how are you?06:36
dholbachhi tsimonq206:36
dholbachgood good :) how are you?06:36
tsimonq2great :)06:36
tsimonq2dholbach: look at what I've been working on: https://github.com/tsimonq2/lubuntu-distro-snaps06:37
tsimonq2I have the parts defined, now for the apps tag06:37
seb128dholbach, good, and you?06:37
dholbachseb128, I need a bit more mate tea to fully wake up, but I'm doing well :)06:38
seb128:-)06:38
dholbachtsimonq2, nice work - so this snap bundles all lubuntu core related packages and their dependencies, is that what it does?06:39
dholbachtsimonq2, does it work?06:39
didrocksgood morning dholbach, tsimonq206:43
dholbachsalut didrocks06:43
tsimonq2o/ didrocks06:44
tsimonq2didrocks: I might as well show you too :) https://github.com/tsimonq2/lubuntu-distro-snaps06:44
tsimonq2dholbach: well currently, the lubuntu-core snap is meant to make a very minimal Lubuntu snap06:45
tsimonq2dholbach: it is pretty much the lubuntu-core metapackage06:45
tsimonq2!info lubuntu-core06:45
ubottulubuntu-core (source: lubuntu-meta): Lubuntu Desktop environment - minimal installation. In component universe, is optional. Version 0.65 (xenial), package size 3 kB, installed size 14 kB (Only available for i386; amd64; powerpc; armhf)06:45
dholbachtsimonq2, right06:45
tsimonq2dholbach: it doesn't work right now because I don't have apps: tags yet, working on that now06:45
dholbachnice06:45
tsimonq2but soon :)06:45
didrockstsimonq2: nice! can't wait to see apps there )06:45
tsimonq2didrocks: I basically took the .travis.yml and ci-run files from the snappy-playpen repo and modified them to set up Travis for mine06:47
didrocksyeah, saw that, sweet reuse! :)06:47
tsimonq2so I'm using your docker container if you don't mind ;)06:47
didrocksI'm ofc really really upset! :-)06:48
tsimonq2:P06:48
tsimonq2hmm, how do I do systemd services?06:48
didrocksdaemon: simple06:49
didrocksin your apps declaration06:49
didrocks(look at snapcraft.io, there is an example of this)=06:49
tsimonq2oh okay thanks :)06:49
tsimonq2didrocks: I'm asking because the lubuntu-core snap has lightdm06:49
didrocksdholbach: so, here are 2 new "gtk" parts, sharing most of their code. Reviewed with seb128 and pulling the minimum deps needed for the launcher: https://wiki.ubuntu.com/Snappy/Parts07:00
didrocksI think I need to migrate it as well to the new wiki for 2.1107:00
dholbachyes07:01
didrocksI'm going to integrate then qt4 & 5 to it07:01
didrocksusing the same template07:01
didrocksdholbach: who should we set as a maintainer for those parts? it's under the ubuntu/ snapcraft07:02
didrockswe can maybe set it under snapcraft.io ML?07:02
dholbachdidrocks, sounds good07:04
dholbachdidrocks, seb128: nice work!07:04
didrockswill do :)07:04
didrocksthx!07:04
seb128thanks :-)07:06
=== chihchun is now known as chihchun_afk
tsimonq2alright, apps: tag added, waiting for a build on Travis, and if it works, then it's time to test!07:17
tsimonq2CC dholbach, didrocks ^07:18
didrockstsimonq2: crossing fingers!07:19
tsimonq2didrocks: tell me about it :D07:19
=== chihchun_afk is now known as chihchun
tsimonq2didrocks: if you want to cross fingers with me :P https://travis-ci.org/tsimonq2/lubuntu-distro-snaps/builds/14100297507:19
didrockstsimonq2: ahah, I have other stressing builds in progress ;)07:20
tsimonq2didrocks: :)07:20
=== hikiko is now known as hikiko|bbl
didrocksdholbach: do you have snapcraft 2.12 already?07:50
dholbachdidrocks, https://launchpad.net/ubuntu/+source/snapcraft07:51
dholbachit's in -proposed still07:51
didrocksdholbach: yeah, the question was if you installed it manually :)07:52
didrocks(as I'm still on 2.11 and I saw that the wiki parts are already moved, I wondered if you tried it with it)07:52
dholbachyes, I did for testing one of the sru bugs07:52
didrocksdholbach: do you mind looking for my "desktop" parts?07:53
didrocksand ensuring that desktop.gtk2 and desktop.gtk3 returns content?07:54
dholbachdidrocks, http://paste.ubuntu.com/18083742/07:56
didrocksdholbach: nice!07:58
didrocksthanks a lot :)07:58
tsimonq2didrocks: I'm on Yakkety, I got it from the archive, FWIW07:59
didrockstsimonq2: sweet! I think the output from dholbach confirms it work, but if you have a minute, do you mind:08:01
didrocks1. git clone https://github.com/ubuntu/snapcraft-desktop-helpers08:01
didrockscd snapcraft-desktop-helpers/demo/gtk308:01
didrocks2. vi snapcraft.yaml08:01
tsimonq2s/vi/vim/ *AHEM* ;)08:01
didrocks3. replacing "gtk3" with "desktop.gtk3" in the after part08:01
didrocks4. trying to snapcraft it :)08:02
didrocksdidrocks@tidus:~$ ls -l /usr/bin/vi08:02
didrockslrwxrwxrwx 1 root root 20 mai   28  2012 /usr/bin/vi -> /etc/alternatives/vi08:02
didrocksdidrocks@tidus:~$ ls -l /etc/alternatives/vi08:02
didrockslrwxrwxrwx 1 root root 16 août  12  2013 /etc/alternatives/vi -> /usr/bin/vim.gtk08:02
didrocks-> same on my machine :p08:02
tsimonq2didrocks: error:08:05
tsimonq2$ snapcraft cleanbuild08:05
tsimonq2Issue detected while analyzing snapcraft.yaml: Cannot find definition for part 'desktop.gtk3'. It may be a remote part, run `snapcraft update` to refresh the remote parts cache08:05
tsimonq2I'll run snapcraft update then08:05
dholbachit still can't be found08:06
didrocksyeah, you need to refresh08:06
tsimonq2still :/08:06
didrockshum, interesting08:06
didrocksbut the definition appears though08:06
didrocksas per dholbach's output08:06
didrockscan be a snapcraft bug?08:06
didrockssergiusens: once you are back ^08:07
didrockssergiusens: also, I would like to just use the namespace without having to declare a stupid part "desktop, plugin: nil part" ;)08:07
tsimonq2didrocks: http://img.ctrlv.in/img/16/06/29/577381bf95606.png08:07
didrockstsimonq2: did you try "snapcraft define desktop" and "snapcraft define desktop.gtk2" for instance?08:08
tsimonq2didrocks: http://img.ctrlv.in/img/16/06/29/5773827e686af.png08:10
didrocksthis is after snapcraft update, right?08:11
tsimonq2yep08:12
didrockssergiusens: ^08:13
=== hikiko|bbl is now known as hikiko
didrockstsimonq2: mind retrying? We may have scheduled importer09:46
tsimonq2didrocks: sure09:56
tsimonq2didrocks: \o/ works fine now09:58
didrocksphew, that was just an importer cron thingy though09:59
didrockssergiusens: I guess it worth a mention on this on the wiki page or anything ^10:00
didrocksthanks tsimonq210:00
tsimonq2np didrocks :)10:00
zygajdstrand: https://bugs.launchpad.net/snappy/+bug/159725910:06
ubottuLaunchpad bug 1597259 in Snappy "Access to /lib/ denied" [Undecided,Triaged]10:06
zygajdstrand: feel free to assign to me if you think this should be in the base template10:06
willcookeseb128, for my gedit310 snap, I've worked around the missing libs issue, but now I'm getting:10:29
willcooke(gedit:20800): GLib-GIO-ERROR **: Settings schema 'org.gnome.gedit.preferences.editor' is not installed10:29
willcookeany suggestions for a way I can work around that one?10:30
ogra_i think there was work going on for a dbus interface10:32
ogra_zyga, ^^10:33
zygammm10:39
zygaso yes, there was some work on gsettings proxy10:39
zygabut I don't know if this is actually something the proxy would handle, this seems like it wants to access the schema files10:39
willcookeI've just copied the schema files over from my local fs in to the stage dir and am going to rebuild and see if that helps10:40
seb128willcooke, do you use the standard gtk wrapper?11:30
willcookeseb128, yeah11:31
seb128weird11:31
seb128can you share the snapcraft.yaml?11:32
willcookeseb128, https://github.com/8none1/gedit31011:37
seb128willcooke, oh, you coimmented the prefix option, that's the issue11:38
seb128it's looking for schemas in the standard location11:38
seb128and the default prefix from snappy is buggy in that regard11:39
seb128willcooke, https://bugs.launchpad.net/ubuntu/+source/snapcraft/+bug/159083111:39
ubottuLaunchpad bug 1590831 in snapcraft (Ubuntu) "having prefix='' by default is non standard and confusing" [Undecided,Confirmed]11:39
willcookeseb128, hmm, I think I commented them out for a reason, lemme try11:39
seb128willcooke, it might create issue, did you try to combine it with the organize I suggested?11:40
seb128let me try to build it with those11:40
willcookeseb128, hmm11:43
willcookeit works now :D11:43
willcookesorry11:43
seb128lol11:43
seb128no worry11:43
seb128you already rebuilt?11:43
willcookeseb128, I think I should copy the themes over11:44
willcookeah, but... I had to do11:44
willcookeLD_LIBRARY_PATH=$LD_LIBRARY_PATH:./usr/lib/gedit/ gedit11:44
willcookeso maybe I will need another customer launcher there?11:44
seb128likely11:44
seb128I don't know if you can add an env like that in the apps: section of the snapcraft.yaml11:45
willcookeand for themes, is there and env var for that, and shall I just copy them over from my fs?11:45
seb128you can stage light-themes11:46
seb128which is what others do11:46
=== dpm_ is now known as dpm
dpmhey didrocks, I just noticed your new gtk launchers, good work. Are these ready to replace the 'gtkconf' part?, and if so, do we want to start migrating apps from the playpen to them?11:48
seb128willcooke, you should also stage libglib2.0-bin for the schemas compile11:54
seb128dconf-gsettings-backend as well for dconf to work11:54
seb128willcooke, oh and you want to use the "gsettings" interface, it's not included under unity711:56
willcookeseb128, thank you!! Added and rebuilding11:57
seb128yw11:58
didrocksdpm: yes and yes :) I just have to give a try at pulseaudio, but the rest is good and should replace yours and so, playpen!12:00
didrocksdpm: do you know of a good pulseaudio simple demo btw?12:00
willcookeooh, new gtk launcher?  didrocks what's new in your one?12:01
dpmdidrocks, cool, you might have done it already, but if not, seb128 had been working on things like translations, you might want to talk to him12:01
didrockswillcooke: it's based on the existing ones, just cleaned up (like dynamic gtk2/3 detection, keeping xdg cache on upgrade and such) while being able to share base functionality with Qt ones12:01
dpmdidrocks, I don't know any short and sweet pulseaudio off the top of my head, sorry :/12:02
didrocksdpm: yeah, we did a review on it yesterday evening :)12:02
dpmpulseaudio *demo, I mean12:02
willcookenice one, thanks didrocks seb12812:02
dpmexcellent12:02
didrocksyeah, that's my issue, seb128 and I are unsure we need to export LD_LIBRARY_PATH to it12:02
didrocksor add the library itself12:02
didrockshence a demo would be great for testing :)12:02
seb128didrocks, we can maybe have a simple snap with pavucontrol or something12:05
seb128though playing sound and controling the channels etc is not the same12:05
seb128so maybe just paplay and ubuntu-sounds12:05
didrocksseb128: yeah, I had the same issue with pavumeter12:05
didrocksso yeah, let's try paplay + ubuntu-sounds12:06
seb128current snapd is buggy though12:07
seb128you need https://github.com/snapcore/snapd/pull/135912:08
didrocksah?12:08
seb128which hasn't been rolled out in distro version yet12:08
didrocksok, so next snapd12:08
seb128yes12:08
* didrocks puts that on side thus12:08
didrockslet enable me creating a placeholder for now12:08
seb128you can probably try a daily snapd if you want12:09
seb128is the next version due tomorrow?12:09
didrocksI think it is12:09
didrocksand I have enough with working on helping others + qt4/5 launchers + converting existing stuff for keeping me occupied until then :)12:09
seb128yeah12:11
didrocksdpm: willcooke: oh, also another difference on this launcher: it's pulling the base launcher dependencies for you, so no need to overload them anymore in your parts (build- and stages-)12:19
willcookenice!12:20
willcookedidrocks, where can I see a list of those?12:20
didrockswillcooke: snapcraft 2.11 or 2.12?12:21
didrocksit's built in in 2.12, but the definition is taken from https://github.com/ubuntu/snapcraft-desktop-helpers/blob/master/snapcraft.yaml12:21
didrocksit's strictly the launcher requirements + what flavor you wants (gtk2 or gtk3 here)12:22
willcookedidrocks, thanks!12:23
seb128didrocks, just curious but what's the desktop part about?12:23
willcookewillcooke, grep - new gtk launcher list of packages - ^12:23
seb128it only has a nil plugin12:23
didrocksseb128: nothing, but it seems to be required to have then desktop.<something> namespace12:25
didrocksI feel that's a snapcraft bug, it shouldn't12:25
=== chihchun is now known as chihchun_afk
seb128you mean you can't name a part desktop.gtk3?12:26
seb128directly12:26
didrocksnot if there is no desktop part12:26
seb128I see12:26
seb128but your parts are named gtk2/gtk312:27
didrocksyeah, see https://wiki.ubuntu.com/snapcraft/parts12:27
seb128how do they translate to their real name?12:27
seb128is that from the wiki?12:27
didrocksyou have a project-part: desktop12:27
didrocksthen, for exposing other parts, it's parts: [gtk2, gtk3]12:27
seb128I see12:27
didrockswhich is using the project-part namespace12:27
seb128similar to the commands12:27
didrocksI read it from http://blog.sergiusens.org/posts/The-Snapcraft-Parts-Ecosystem/12:27
didrocksyes12:28
seb128thanks12:28
didrocksI find it counter-intuitive though12:28
didrocksyw12:28
seb128I'm that blogpost in my list of things to read12:28
seb128going to do that now ;-)12:28
didrocksand you can even see sergio had the same issue with mttq btw :p12:28
didrocksmqtt*12:28
seb128:-)12:28
didrocksheh, happy reading!12:28
jdstrandzyga: 1597259 already has a PR12:55
jdstrandzyga: hehe, and you merged it (https://github.com/snapcore/snapd/pull/1435)12:57
kyrofajdstrand, is it a known issue that a home dir mounted via NFS results in u-c-l denials trying to create the user data directory?13:00
zygajdstrand: ohh, right13:04
zygajdstrand: that's good13:04
zygajdstrand: release is today13:04
willcookeseb128, halp!  I just did a snapcraft clean and then tried to rebuild that snap....  libtool: warning: 'libgedit-private.la' has not been installed in '/usr/lib/gedit'13:12
willcookeI don't get it, it was working find a moment ago :)13:12
seb128urg13:12
seb128dunno about this one13:12
willcookeseb128, I think this is why I commented out the prefix stuff originally13:13
willcookestupid brain can't remember though13:13
willcookeWill play with it...13:14
seb128doesn't make sense why gedit would fail to build with a prefix13:14
willcookemake[3]: Entering directory '/home/will/source/gedit/gedit310/gedit310/parts/gedit/build/gedit'13:14
willcooke /bin/mkdir -p '/usr/bin'13:14
willcooke  /bin/bash ../libtool   --mode=install /usr/bin/install -c gedit '/usr/bin'13:14
willcookelibtool: warning: 'libgedit-private.la' has not been installed in '/usr/lib/gedit'13:14
willcookelibtool: install: /usr/bin/install -c .libs/gedit /usr/bin/gedit13:14
willcookeMakefile:879: recipe for target 'install-binPROGRAMS' failed13:14
willcookecould be a makefile issue13:15
jdstrandkyrofa: heh, that would not surprise me. what is the denial?13:16
kyrofajdstrand, http://pastebin.ubuntu.com/18097641/13:17
jdstrandkyrofa: I think that is going to be fixed in the pending upload because that directory will no longer be created by the confined launcher13:20
kyrofajdstrand, ah right, snap run13:20
kyrofajdstrand, that would be operating under a similar profile?13:20
kyrofawon't rather13:20
jdstrandit is unprivileged13:20
jdstrandI don't believe it has a profile13:21
jdstrandzyga: can you comment? ^13:21
kyrofaAlright good deal13:22
kyrofaThanks jdstrand!13:22
zygajdstrand: looking13:38
zygajdstrand: I'm not sure what to make of it13:40
zygajdstrand: which directory is no longer created, I don't see anything that snap would create?13:40
jdstrandzyga: ~/snap/foo/... is no longer created by snap-confine. The question is, what is doing that now (assuming 'snap-run') and is that thing confined (assuming not)13:44
zygahmmmm13:46
zygaI don't think it is doing that13:46
zygaah, wait, snap run might be indeed doing that13:46
juanrubiohi all, I'm wondering if anyone would know why there is a 'parts/myapp/install' and a 'parts/myapp/installlib' folders?. My app contains a mix of c, c++ and python libs and the python modules show up in the 'installlib' dir.13:48
mhall119sergiusens: did you see my response last night?13:48
sergiusensmhall119 yes, thanks13:48
mhall119sergiusens: will that make it into the next snapcraft release?13:53
didrockstsimonq2: did you retried with 2.12?13:59
didrocksretry*13:59
zygajdstrand: what confused me is this: name="/home/xcore/mberger/13:59
didrockssergiusens: hey, I still don't see my desktop. parts appearing on https://parts.snapcraft.io/v1/parts.yaml13:59
zygajdstrand: that's not a $HOME/snap/$SNAP_NAME13:59
didrockssergiusens: should I start getting nervous? :)13:59
didrocks(I updated the wiki this morning, like 7h before)13:59
juanrubiofor some reason I get my python modules in 'parts/mayapp/installlib/python2.7' and I would expected to show up in 'parts/mayapp/install/lib/python2.7'14:00
juanrubio.. is this a snapcraft bug?#14:00
juanrubio.. is this a snapcraft bug?14:00
jdstrandzyga: no, it isn't. the user is using an alternative directory for HOME which would be a problem if the process creating the dir is confined, but it isn't any more aiui14:01
didrocksjuanrubio: do you use the python plugin? if so, I would says it can be, sergiusens ^14:01
jdstrandzyga: fyi, not sure if this could be snuck in: https://github.com/snapcore/snapd/pull/144114:01
jdstrandzyga: if not, 2.0.11 is fine14:01
zygajdstrand: checking14:02
=== JanC is now known as Guest53913
=== JanC_ is now known as JanC
juanrubioI'm using the autotools plugin.. all my project built with autotools14:02
didrocksah, and you stage-packages: [python2] ?14:02
didrocksI guess if it's in install/ it's due to your build tools installing them there14:03
juanrubiowhen I build everything outside snapcraft with make, make install, the python packages are installed under 'prefix/lib/python2.7'14:05
juanrubiodidrocks: I stage with a fileset, 'libraries: lib/*', but the python packages got installed in 'parts/installlib/python2.7'14:07
didrocksjuanrubio: interesting, maybe sergiusens could have a look later in if you post your snapcraft.yaml here :)14:08
didrocksand maybe open a bug report against snapcraft on launchpad about it? https://launchpad.net/snapcraft14:09
didrocks(post your snapcraft.yaml there)14:09
juanrubiomy file is here is anyone wants to have a look: https://github.com/tizonia/tizonia-openmax-il/blob/master/tools/snapcraft.yaml14:10
juanrubioI've just started with this, so I'm probably getting something wrong...14:10
didrockshum14:11
didrocks      modules:14:11
juanrubioI'll open the ticket in launchpad as well... thanks14:11
didrocks        - installlib/python2.7/dist-packages/*.py14:11
didrocksthis is due to the wrong install path I guess you are encountering :)14:11
juanrubiodidrocks: yes, that was an attempt to get the python modules staged, but that does even work... if you remove that line, there is no change14:12
didrocksyeah, I guess open the ticket with your clean snapcraft.yaml14:12
didrocks(without this then)14:12
didrocksI'm sure we'll get to it quickly14:12
juanrubiosure, I will, thanks again!14:12
didrocksyour .yaml looks good otherwise14:12
didrocksyw! :)14:12
didrocksjust a tip: you don't need source-type: git14:13
didrocksas you ended up your url with .git, snapcraft is smart enough for this :)14:13
juanrubiogreat, I'll remove that too14:13
=== chihchun_afk is now known as chihchun
kyrofajuanrubio, you might try providing --prefix=/ as a configflag to see if anything chnges14:20
juanrubiolet me try that14:21
juanrubiokyrofa: that worked beautifully.. now my python packages are under 'parts/tizonia/install/lib/python2.7/site-packages'14:41
juanrubioshould I still open the launchpad bug report?. can do if that helps...14:41
kyrofajuanrubio, good deal. Means the problem is within the build system for that project, not snapcraft14:42
juanrubioI see, I'll have to investigate that...14:43
juanrubio...but for now I have a solution in place... so now on to another question:14:44
sergiusenselopio any idea when our infra will catch up with the repo move?14:44
sergiusensmhall119 yes14:44
sergiusensdidrocks did it show?14:45
sergiusensdidrocks I see some issue from the parser, josepht mind looking?14:45
juanrubiowhat would be the best practice here... my project depends on some pip packages, e.g. gmusicapi, these change rapidly, so no chance I can get them as debs... can I add parts that download and install these python modules using pip?14:46
ogra_kyrofa, i'm just answering a question about the nextcloud snap and was wondering if you wouldnt like to add another blog post about how to migrate your data from a former install to the shiny new snappy system14:48
juanrubioI could not find a snapcraft 'demo' project with 'pip' in it.. if there is one, I would appreciate pointers..14:48
kyrofaogra_, that's a good idea, thanks!14:48
ogra_(for people coming from classic etc)14:48
elopiosergiusens: we are waiting for niemeyer to add the bot to the team.14:50
elopioeverything else seems good.14:50
niemeyerDoing that now14:50
sergiusenselopio coveralls as well?14:51
niemeyer@elopio What bot do you want there?14:51
nothalniemeyer: No such command!14:51
didrockssergiusens: thx for looking at it with josepht :)14:52
niemeyersergiusens: What bot do you want there?14:53
josephtsergiusens: I'll take a look14:53
niemeyersergiusens: I also added you as a team maintainer now, so you should be able to do that yourself btw14:53
wililupyIs there a way to create a udev rule in my snap so that it is installed in /etc/udev/rules.d?14:54
wililupyOr should I just use the copy plugin?14:54
ogra_how would the copy plugin help ?14:55
ogra_you cant copy anything outside of your snap root14:55
josephtdidrocks, sergiusens: fwiw, there's a tab in the wiki.14:55
wililupyAhh, gotcha ogra_14:55
sergiusensniemeyer oh goodie, thanks. For the bot name we have to wait elopio to provide it though14:56
ogra_wililupy, i know there were discussions beween zyga and jdstrand about udev rules in snaps, not sure where that ended14:56
elopioniemeyer: snappy-m-o.14:57
niemeyersergiusens, elopio: Coveralls enabled, repo token dJaU2S3FSEyMoRkrV4bxhOmIjOUyWMbBq14:57
elopioniemeyer: hum, the token should be secret :) Can you regenerate it and send it privately, please?14:57
niemeyerelopio: Yeah, I know.. public channel, duh14:57
* ogra_ lols14:58
didrocksjosepht: outrageous! :)14:58
jdstrandogra_: what we talked about was less about that and more about enumerating devices and files from udev queries. most of what you referred to would be in the gadget snap realm which afaik is still being designed14:58
niemeyerelopio: You got a new one privately14:58
didrocksjosepht: feel free to change it14:58
ogra_jdstrand, ah, i thought there was a discussion about udev rules to allow symlinks so apps find the properly named devices etc14:58
ogra_which wuold kind of touch that area14:59
niemeyerelopio: Any chance we can stop snappy-m-o from spamming everyone on GH issues?14:59
josephtdidrocks, sergiusens: nm, that was me being dense.14:59
niemeyerAlternatively, can we rename it to spammy-m-o?14:59
jdstrandogra_: I recall that, but that isn't something I'm personally driving is all I meant15:00
ogra_ah15:00
elopioniemeyer: not if you want to keep the jenkins tests running. If you are ready to disable those tests, I can disable the bot for snapd.15:01
niemeyerelopio: I was hoping we could get the bot fixed instead of disabling it15:02
elopioniemeyer: that would require patching the jenkins plugin, which is an ugly java thing. We can do it, but not this week. Report a bug and we'll get to it.15:03
niemeyerReport where?15:03
elopioniemeyer: short term solution, add people to the whitelist.15:03
elopioniemeyer: github.com/ubuntu-core/snappy-jenkins15:04
niemeyerelopio: Doesn't work.. the bug reference I mentioned to you had "add to whitelist" on the history, and it continued nevertheless15:04
niemeyerelopio: https://github.com/snapcore/snapd/pull/137915:05
elopioniemeyer: when you comment add to whitelist, it is stored in the jenkins running instance. But it is redeployed often. In order to add to the whitelist permanently, it needs to be changed in the source of the job: https://github.com/ubuntu-core/snappy-jenkins/tree/master/containers/jenkins-master/config/jobs15:05
niemeyerI guess we should just work to take down that tool altogether then..15:06
elopioalso, people from the team snapcore should be whitelisted, so alternatively you can add people there. I see a bug, that we didn't update from ubuntu-core there, I'll quickly change that.15:06
elopioniemeyer: that works too. I don't enjoy jenkins. But we need a tool for general pipelines and triggers.15:07
niemeyerI'm talking about that java plugin, not jenkins, to be clear15:08
josephtdidrocks, sergiusens: I had to upgrade the snapcraft code on the parts service.  The desktop parts are now in the parser output15:08
didrocksnice! thanks josepht15:09
josephtdidrocks: np15:09
elopioniemeyer: I'm not sure if there's a way to do it differently. Improve the plugin can be done for sure, but some things are just blocked by jenkins architecture. Like stopping a test if a newer push arrived, that's not doable in a nice way, afaik.15:10
elopiosergiusens: niemeyer: PR tests are working as before. Thanks!15:10
elopioniemeyer: can you please disable the coveralls comment? There's a switch in the settings page.15:11
niemeyerelopio: It's software.. everything is doable.. the question is how much we care to fix it15:12
niemeyerelopio: Comments disabled15:13
elopioty.15:13
niemeyerhttps://github.com/ubuntu-core/snappy-jenkins/issues/184, FWIW15:14
sergiusenselopio kyrofa please don't merge anything just yet15:17
elopiosergiusens: ack15:18
joc_sergiusens: with respect to python3 plugin not creating entry_points, i filed a bug, and proposed this alternative to using pip3 --target https://github.com/snapcore/snapcraft/pull/61415:35
sergiusensjoc_yup cwayne already got me up to speed15:35
joc_ah cool15:35
sergiusensjoc_ I do recall tedg debating wether to use root or target there. I guess this outweighs the original logic15:36
tedgsergiusens: Haha, I think I used root and you changed it! ;-)  (I have no clue why I used root though really, probably cargo culted it from somewhere)15:38
tedgInteresting that you can pass an install option like that, that was probably the bug with my implementation.15:39
joc_sergiusens: tedg obviously would appreciate you checking the command i used15:39
tedgjoc_: Oh, not me. Everything I know about python is because barry answered a question about it for me.15:41
=== chihchun is now known as chihchun_afk
elopiodidrocks: you added gtk and gtk3 to the old wiki. 2.12 uses wiki.ubuntu.com/snapcraft/parts instead.15:54
elopiodidrocks: scratch that, I'm just not subscribed to the new one :)15:56
elopio*was15:56
roadmrjdstrand: hey, reviewer-tools r687 is live on the store \o/15:58
didrockselopio: heh :)15:58
jdstrandroadmr: woohoo! :) thanks16:08
tsimonq2elopio: hey, ping, you around?16:22
tsimonq2sergiusens: what does it mean to have a bug nominated for a release of snapcraft? does that mean that all the bugs targeted have to be fixed for the release? how does a bug get nominated?16:36
tsimonq2sergiusens: ( https://launchpad.net/snapcraft/+milestone/2.13 for example)16:37
sergiusenstsimonq2 we like to have a fixed focus to work on16:41
sergiusenstsimonq2 nothing is really set in stone though. And yes, the goal is to try and fix them for the next release16:41
sergiusenstsimonq2 do you have something in mind that you would want to tackle?16:44
tsimonq2sergiusens: just a couple suggestions :) bug 1590807 bug 159677716:50
ubottubug 1590807 in Snapcraft "doesn't store build logs" [Medium,In progress] https://launchpad.net/bugs/159080716:50
ubottubug 1596777 in Snapcraft "trying to upload a snap without signing the agreement prints the error twice" [Undecided,In progress] https://launchpad.net/bugs/159677716:50
tsimonq2sergiusens: both assigned to me16:50
tsimonq2sergiusens: I'll get them fixed for 2.13, I was just wondering if you wanted to tag them16:51
sergiusenstsimonq2 the first one might be tricky to get in to 2.13 timing wise, but yes do work on it16:57
sergiusenstsimonq2 I'll just move to 2.14 if not done in time16:57
sergiusenstsimonq2 Ideally our milestones last 1 week, give or take depending on holidays, sickness, unexpected issues, etc.16:57
tsimonq2sergiusens: ah okay, it's been slow recently?17:03
tsimonq2just looking at https://github.com/snapcore/snapcraft/releases :)17:03
sergiusenstsimonq2 yes, travel and holidays account for that ;-)17:04
tsimonq2sergiusens: alright :)17:04
tsimonq2sergiusens: elopio gave a +1 on https://github.com/snapcore/snapcraft/pull/616 , can you second that?17:08
=== dpm is now known as dpm-afk
niemeyerjdstrand: New spread snap up for review..17:15
jdstrandniemeyer: was it not auto-approved? I don't see it17:16
niemeyerjdstrand: IT WAS \o/17:17
jdstrandnice :)17:17
jdstrandthe review tools branch landed a bit earlier today for that17:17
niemeyerFirst time in my life I upload something that is available on Ubuntu without manual interaction!17:18
* niemeyer does the happy dance17:18
jdstrandcongrats! :)17:18
niemeyerjdstrand: ... to us all! ;)17:18
ogra_s/happy/snappy/ no ?17:18
jdstrand:)17:18
jospoortvlietjamiebennett - any clue on the timeline for the first Core release?17:18
jospoortvlietas in, a clue you're willing to share, I'm sure you know how/where things stand :D17:19
jospoortvlietI'm asking to get an idea when we could do the first Nextcloud Pidrive version for end users ;-)17:19
jospoortvliet(the WD Labs collaboration we have, continueing from ownCloud)17:20
ogra_jospoortvliet, i'd guess still a few weeks til the first images appear ... and then 4-6 additional weeks til we call it a stable release (provably more, probably less), we explicitly didnt put to many constraints on this to make sure we do it the debian way "when it is ready and rocksolid"17:22
ogra_if you need something to play with you can use an rpi server install in the meantime, it comes with snap support too :)17:22
ogra_http://cdimage.ubuntu.com/releases/16.04/release/ubuntu-16.04-preinstalled-server-armhf+raspi2.img.xz ...17:23
jospoortvlietogra_: well the thing is, we want to ship this on a product to users so it's not a great idea to have something we're not 100% confident about ;-)17:23
jospoortvlietit isn't a super critical thing on one hand, but upgrades have to work entirely smooth and I'm guessing that that is the hard part right now?!?!17:24
ogra_yeah, understood17:24
ogra_we are making damned sure that the images we will release will always be upgradeable indeed ;)17:24
jospoortvlietit's the big draw of snappy, from my perspective17:25
ogra_that is also the reason we are still holding back, kernel and gadget snaps are not 100% finalized ... as long as they can change there is a potential risk you need to re-flash17:25
jospoortvlietthat way you can have a zero maintenance solution for end users17:25
ogra_yeah, thats the plan17:25
jospoortvlietexcellent17:25
jospoortvlietso you're saying 2-3 months still, though17:25
jospoortvlietor am I reading it too pessimistically?17:25
ogra_i say less than a month for the first images where we can say "yu dont need to re-flash, but it is probably not feature complete and has bugs"17:26
ogra_so you could start prototyping by that date ... but not push it to production yet17:26
jospoortvlietach, minor bugs aren't a huge deal, we'll update in production :P17:27
ogra_:)17:27
jospoortvlietthe first 500 devices we'll sell are still kind'a pioneer devices17:27
jospoortvlietso that 'under a month' is good enough for us. We just want to be able to fix everything automatically rather than requiring a re-flash17:27
ogra_cool ...17:27
ogra_dont nail me down on it though :) thats just a guesstimate17:28
niemeyerjospoortvliet: What sort of device is it, out of curiosity?17:28
ogra_niemeyer, the Wd thingie we worked on with owncloud ... a NAS type device17:28
jospoortvlietit is a WD PiDrive with custom box (with Nextcloud logo), 1TB hard drive. On the SD/Harddrive will be Core with Nextcloud.17:28
jospoortvlietbring-your-own-Pi17:29
ogra_with owncloud preinstalled (now with nextcloud i guess :) )17:29
jospoortvlietyeah...17:29
jospoortvlietthe new box is compattible with oDroid C2, btw, that gives it quite some more power.17:29
ogra_niemeyer, https://owncloud.org/blog/wd-labs-raspberry-pi-owncloud-and-ubuntu/17:29
niemeyerThanks, and nice!17:29
jamiebennettjospoortvliet: Sorry, was just grabbing dinner. I think ogra_ has told you all the rationale behind the decision to get things right before final release. I would not go to production without our final release though unless your customers are PoC/early adopters. Still, there will be pain. I think by the end of July is optimistic so don't plan around that just yet. Of course you can use classic for now.17:32
jospoortvlietwell, we're doing a small batch for about 500 people. They will be able to deal with bugs, even a potential dataloss issue (rather not, of course) as long as they don't need too many skills to get it fixed. That is, if the auto-upgrade works and can be used to fix issues, we're good for the early adopters.17:33
jospoortvlietafter them we will do a bigger batch of course17:34
jospoortvlietBasically I'm happy to warn people to not yet use the devices for super important files and backup regularly as long as I can promise that if they just wait the software will improve.17:35
sergiusenskyrofa josepht care to review https://github.com/snapcore/snapcraft/pull/615/files ?17:48
GeoffWI'm struggling to get the Snappy image working on a Raspberry Pi - anybody know what I'm doing wrong?!17:49
jamiebennettjospoortvliet: OK. Happy to work with you on the details nearer the time.17:57
svijdo I understand correctly that "parts" in snapcraft 2.12 can be some kind of librarys/dependencies of another snap?18:49
kyrofasvij, yes, but only build-time dependencies. They still get bundled for run-time18:55
svijah18:56
svijthat would have been my follow up question :)18:56
kyrofasvij, the idea is that library devs can ship parts that essentially tells snapcraft how to best build it18:56
svijright18:57
szszszszhi! I have made something bad apparently. After snappy package installation I do not have commands in my path. Do you have any tips?19:07
szszszszIt worked before I have purged snapd and used reset script19:08
szszszszBy no commands I mean no possibility to run applications installed with snappy from command line19:09
szszszsz(mentioned reset script https://github.com/zyga/devtools/blob/master/reset-state)19:11
szszszszalternatively, could someone tell me how to run snap application when its not in the path? should I search /snap/ for a wrapper to run or somewhere else?19:17
netphreakwhat's the latest version of snaps?19:29
netphreaksnapd?19:29
sergiusensnetphreak if you are on ubuntu, just run `rmadison snapd`19:32
sergiusensfor xenial  snapd | 2.0.9       | xenial-updates   | source, amd64, arm64, armhf, i386, ppc64el, s390x19:32
szszsz_@szszszsz ^ reboot has helped (its like with windows, yay!)19:35
nothalszszsz_: No such command!19:35
szszsz_u dont say19:36
netphreakthx19:37
thomihi everyone. I'm trying to help an upstream snap something that requires wxPython 2.8. It seems I need to build this from source (it's not in pypi), but that requires building wxPython, wxWidgets, Gtk, glib, atk, gobject-introspection and a whole bunch more.19:48
thomiMy question is - is there an easier way that creating a part for each library in the chain?19:48
thomiI'm guessing the answer is 'no', but thought I'd ask anyway19:48
=== Mani is now known as Guest897
mhall119sergiusens: kyrofa: when a snap's binary looks at /usr/ does it see /snap/<snap>/current/usr/ or the actual /usr/ on the host?20:00
kyrofamhall119, the actual /usr/20:00
kyrofamhall119, we're experimenting with ld preload stuff to change that, but that's the way it is right now20:00
mhall119ok, thanks20:01
sergiusensthomi can't you use the glib/gtk in xenial20:06
thomisergiusens: no, it's too new (3.x vs 2.x)20:06
sergiusensmhall119 kyrofa also, "actual user on the host" is the core snap, not the classic ubuntu system20:07
thomisergiusens: and anyway - wouldn't that break confinement?20:07
kyrofasergiusens, ah yes, thank you20:07
sergiusensthomi it wouldn't break confinement, they'd be added to the resulting snap (automagically if using build-packages)20:07
sergiusensthomi I have some ideas about prebuilt parts kind of like docker layers20:08
sergiusensbut that is still in dreamland20:08
thomisergiusens: ahh, gotchya20:10
mhall119sergiusens: ok, still doesn't help me though, will find a work-around20:14
tsimonq2sergiusens: would you be able to point out the obvious here? I'm not getting how to fix this and it seems really obvious. I have https://github.com/tsimonq2/snapcraft/tree/downloaded-files-checksum-bug-1585913 built on Travis here: https://travis-ci.org/tsimonq2/snapcraft/builds/140983815 and I'm missing where to define source_checksum. It's a work in progress fix of bug 158591320:17
ubottubug 1585913 in Snapcraft "Snapcraft should allow to verify downloaded files with a sha checksum" [Undecided,In progress] https://launchpad.net/bugs/158591320:17
sergiusenselopio https://github.com/snapcore/snapcraft/pull/617 can you tell me how to get the FakeLogger to not show urllib logs?20:25
elopiosergiusens: with a filter maybe? http://stackoverflow.com/a/879937/266532220:29
elopiofrom that link, I have no idea what you are trying to do.20:32
sergiusenstsimonq2 you need to update all the constructors and their call to super https://github.com/tsimonq2/snapcraft/commit/273c8fde9f59dfb3f66f8a68a86911d6aac0b84b#diff-e6205a80af76b4faec1d9241dc3b3b7cR16020:32
sergiusenstsimonq2 also, please use the checksum python module instead of subprocess20:33
sergiusenstsimonq2 something like https://github.com/snapcore/snapcraft/blob/master/snapcraft/storeapi/__init__.py#L20920:34
tsimonq2thanks sergiusens for the feedback :)20:35
* tsimonq2 sleeps20:35
sergiusenselopio the fixture code seems to not like what I have to say21:02
popeysergiusens: congratulations on the snapcraft release!21:47
mcphailTrying the gedit snap from Will Cooke's G+ posting. There is still an issue with snappy where an invoked snap "cd's" to the install directory, thereby messing up paths supplied as parameters. Is there a plan to fix or change this?21:55
popeyi filed a bug for that21:57
mcphailpopey: great. Can you link so I can +1 it?21:57
popeyhmm21:57
popeyi filed one against qt launcher21:57
popeyhttps://github.com/sergiusens/qt5conf/issues/321:57
popeyi guess the gtk-launch also has the issue21:58
popeycd $SNAP21:58
popeyexec "$@"21:58
popeyyup21:58
mcphailYes, the bug ismore generic than that. I think Imoaned on here about it a year ago when I was making a silversearcher snap21:59
popeyok, will poke people tomorrow about it21:59
popeyit breaks a bunch of things, you're not alone21:59
mcphailta.21:59
popeynp21:59
popeythanks for testing that with the gtk launcher!21:59
popeyi dont actually know where the upstream for gtk-launch is22:00
mcphaillooks neat. Don't know how we're going to get around the --devmode flag though22:00

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