/srv/irclogs.ubuntu.com/2017/02/13/#snappy.txt

olympionexin my snapcraft project folder, I have a src dir.  After I run snapcraft, the contents of this folder gets copied to the src dir of every single part.  Is there a way to control this behavior? Organize or something?01:32
olympionexactually, for every single part in project/parts its in the build, src, and install dir01:40
olympionexscratch that, it happens for parts that use my custom plugin as well as the dump plugin01:43
=== Sir_Gallantmon is now known as Son_Goku
=== markusfluer1 is now known as markusfluer
knight__yeah i need to figure that out too02:31
olympionexknight__: are you referring to the question I asked?02:35
knight__olympionex, yep02:40
knight__this channel is pretty sleepy... been asking questions the last 3 days with basically no answers :)02:40
olympionexknight__: I believe I made some progress just now.  When you create a custom plugin it inherits from snapcraft.BasePlugin which has a member called 'source'02:41
olympionexby default, it seems to copy whatever is in source to the project/parts/src dir02:41
olympionexand by default that source parameter is the project directory itself02:41
knight__Oh I see, that's for custom plugin.02:41
knight__I have a src dir in my snapcraft project folder02:41
olympionexwell it works the same with dump I believe, testing it out02:42
knight__Then a subdir, and a script, that i'm trying to use dump to move into destination app command02:42
olympionexif you don't specify the source option for the plugin, it appears to copy the entire project directory to that part's source dir02:42
knight__my source is defined as "src/"02:42
olympionexi'm still verifying.  I suspect what you want to do is create a project/src/script_dir02:42
olympionexand set the source for the dump plugin to src/script_dir02:43
olympionexthen use organize to decide exactly where to copy it02:43
knight__yeah02:43
knight__i did source: src/ and then organize with item: item_dir/item02:43
knight__but maybe that's wrong?02:43
olympionexwell previously I was using this:02:45
olympionexhttp://pastebin.com/LxRDzRUz02:45
olympionexi'm currently working on modifying / testing to make a specific directory project/src/netconf that only has the file netconf.py02:45
olympionexso that it doesn't copy everything in the whole project/src directory to src of that part02:46
knight__yeah that's similar to what i want02:46
olympionexyeah, that appears to work for me02:47
olympionexyou just need to create subdirs for each part under src02:47
olympionexand be careful that for any part which you don't specify source, it will probably copy the whole project dir in02:48
knight__maybe we need to do:02:48
knight__organize:    item_dir:    item02:48
olympionexthats not what I'm doing02:50
olympionexthe key should be the filename relative to the source dir02:50
olympionexand the value should be the full path where it will end up in a fileset02:50
knight__Yes, that's what I'm saying02:51
olympionexwhether that is stage or prime02:51
knight__We can add another level to represent the subdir02:51
knight__i.e. source + subdir + item02:51
knight__organize:    item_dir:    item: item.py02:51
olympionexah, you mean a suggestion to modify the snapcraft source itself?02:52
knight__the yaml02:56
knight__organize statement02:56
olympionexall I had to do to fix it was this:02:57
olympionexhttp://pastebin.com/F2ar752n02:57
olympionexbasically just change src to src/netconf02:57
olympionexand move netconf.py from src to src/netconf02:57
knight__yep02:57
knight__my suggestion is if you have other files in src/ with other subdirs and don't want to isolate the source to that02:58
olympionexah, we were just talking past each other.  Thats what I meant by modifying the snapcraft source -- would require changing the operation of snapcraft02:59
knight__?03:00
knight__i guess dump copies all03:00
knight__you can't cherrypick03:01
olympionexyeah, as far as I can tell, the default behavior of possibly all plugins is to copy everything from source03:01
olympionexI haven't looked yet, but it must be in BasePlugin03:01
knight__there's got to be a way to be able to pull something down from a dir or remote, and cherrypick03:02
olympionexI think it would require something like having filesets for the pull operation03:03
=== chihchun_afk is now known as chihchun
knight__need to figure out how to cross-build armhf support04:05
ffoxis there any way to force snapd to skip a task in a changeset?04:21
ffoxI'm trying to bring up a board and it keeps hanging on "Run configure hook of "core" snap if present"04:22
olympionexknight__: I just noticed that you have to do the same for the nil plugin, which is kind of annoying -- otherwise it will copy the whole project directory to the part source06:24
mupPR snapd#2834 opened: release: add galliumos support <Created by mvo5> <https://github.com/snapcore/snapd/pull/2834>07:54
zygagood morning09:02
mupPR snapd#2835 opened: strutil: support version compare with empty strings <Created by mvo5> <https://github.com/snapcore/snapd/pull/2835>09:06
mupPR snapd#2836 opened: release: assume higher version of supported distros will still work <Created by mvo5> <https://github.com/snapcore/snapd/pull/2836>09:14
zygapopey: thank you for the bug reports on distro support sir!09:22
=== rvr_ is now known as rvr
sborovkovjdstrand: Hi! So I tried to declare plugs and slots as you described. Ended up with this. https://hastebin.com/rijasoyoxo.pl But when uploading to the store automatic review fails with this now human review required due to 'deny-connection' constraint for 'slot-attributes' from base declaration10:11
sborovkovjdstrand: did I do something wrong?10:11
popeyzyga: no worries, thanks for fixing them :)10:26
zygapopey: mvo did all the work with a fantastic future-proof branch10:27
popey\o/10:27
davmor2zyga: pfff /me sets up linux from scratch to test the wild claims I'll be back in two whole years with reports ;)10:43
=== chihchun is now known as chihchun_afk
zygadavmor2: I expect nothing less than utter success :)10:46
mvojibel: quick question about #1663666 - do you run zesty as well? the bugreport is originally on a zesty system, I tried various things to reproduce but no luck so far10:54
mupBug #1663666: max-format is not a positive integer assertion installing unity8-session snap <snapd:New> <Snap Store:New> <Unity8 Session Snap:Confirmed> <https://launchpad.net/bugs/1663666>10:54
jibelmvo, yes on zesty too10:57
mvojibel: excellent, let me test it there10:57
jibelmvo, I wondering if it happens after a package or snap upgrade. After a reboot the problem was gone10:58
mvojibel: ohhh, that is super useful information10:59
mvojibel: let me try with that10:59
mupPR snapcraft#1138 closed: python plugin: exclude the RECORD files <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1138>11:23
joedborghello all!  quick question; is it possible to change the user running the app inside the snap?11:42
mupPR snapd#2837 opened: interfaces/apparmor: allow reading from ecryptfs <Created by zyga> <https://github.com/snapcore/snapd/pull/2837>11:42
zygajoedborg: not at this time11:43
joedborgzyga: thanks, do you know what user the application inside sees?11:43
joedborgi assumed it was the user who initiated it, but doesn't seem to be the case11:44
joedborgeven though if i run with --shell and do a `whoami` it does say the same11:45
zygajoedborg: yes, when it is a normal command it runs as the user who started it11:46
zygajoedborg: when it is a service/daemon it runs as root11:46
joedborgzyga: aaaah, thanks, that makes sense (i'm running a daemon)11:46
brunch875I just noticed hexchat uses ~/snap/hexchat/17/.config instead of ~/.config11:48
zygabrunch875: that's correct11:48
zygabrunch875: for snaps that are not using confinement:classic the HOME environment variable is changed11:48
zygabrunch875: since most apps correctly derive $XDG_CONFIG_DIR from $HOME you end up with what you said11:48
brunch875aaah, so I shouldn't worry about the application defaults11:48
zygabrunch875: note that snaps don't normally have access to your home directory11:49
zygabrunch875: no, that's fine11:49
brunch875ah thank you, didn't really know how to ask the question but you read my mind :)11:49
zygaI know ;)11:49
=== jkridner|pd is now known as jkridner
deanmanogra_, thanks for the answer to my question the other day. In fact, it was mentioned in a different document on developer.ubuntu.com that the first install should take place with a wired connection.11:59
ogra_yeah, i hope we nail that bug some day12:00
deanmanogra_, some day? It can't be that huge, can it ? By the way, is it worth filing a change request on "https://developer.ubuntu.com/core/get-started/raspberry-pi-2-3"?12:01
ogra_does that point to wlan stuff ?12:01
deanmanIt can be frustrating for first time users when they are following that guide and somehow stumble on that configuration step.12:01
deanmanIt's step #3, i guess we could add a note saying that first setup should be wired ?12:02
deanmanI found a similar note on this https://developer.ubuntu.com/en/snappy/start/installation-tips/ but no reference to the first user-guide12:04
mupPR snapd#2838 opened: allow core_support interface to modify /etc/hostname using hostnamectl <Created by ogra1> <https://github.com/snapcore/snapd/pull/2838>12:04
ogra_davidcalle, ^^^ should we have a known issues castegory on these pages ?12:05
jamespagehi all12:11
deanmanogra_, is there a dedicated launchpad group that is working to polish things out with snappy ?12:11
jamespageI've been comparing performance of commands provided as snaps vs debs12:11
ogra_deanman, depends ... there is a github team for the snapd related bits and there is snappy-dev on launchpad for the image builds12:12
jamespageeven a classic confinement snap appears to have some overhead that I don't see with a deb - would the use of squashfs have some impact here or am i looking at something else?12:12
jamespage1.6 s vs 0.5 seconds for example - thats just to run neutron --version12:12
jamespageso no network ops in the way12:12
zygajoedborg: can you say what you are measuring exactly?12:13
zygaer12:13
zygajamespage: ^^12:13
jamespagezyga, my tests are12:13
zygajoedborg: I'm sorry, irssi confusion12:13
jamespagetime /snap/bin/neutron --version12:13
joedborgzyga: no worries :)12:13
jamespagevs12:13
ogra_jamespage, i doubt it is the filesystems fault but rather the way of executing12:13
jamespagetime /usr/bin/neutron --version12:13
ogra_there is surely some extra overhead in that bit12:14
zygajamespage: snap adds three execs along the way: snap-run -> snap-confine -> snap-exec12:14
zygajamespage: two go and one C executables12:14
zygajamespage: there's bound to be some overhead but typically it is hard to even measure12:14
zygajamespage: I'd be interested to know more12:14
jamespagezyga, me to12:15
zygajamespage: can you run a /bin/true test?12:15
zygainstall a snap that just runs /bin/true)12:15
zygajamespage: e.g. snapd-hacker-toolbelt12:15
zygajamespage: it ships snapd-hacker-toolbelt.busybox12:15
zygajamespage: then you can just say snapd-hacker-toolbelt.busybox true12:15
zygajamespage: and see how "fast" that is12:15
ogra_and have a local busybox to compare ?12:16
zygajamespage: that should be a good ballkpart number for the overhead itself12:16
zygaogra_: well, true just takes 0.00 seconds I bet :)12:16
ogra_dont we have a bash in the hacker toolbelt for direct comparison ?12:16
zygajamespage: do a 100 runs and see what you get12:16
zygaogra_: I think there's bash as well12:16
zygaogra_: because snapcraft :/12:17
* ogra_ wouldnt trust busyboax and bash "true" to be the same12:17
deanmanogra_, is this for the image builds ? https://launchpad.net/~snappy-dev12:17
zygaogra_: but that does run busybox "true" applet12:17
ogra_deanman, thats the team managing the builds ...12:17
zygaogra_: it's the busybox true12:17
jamespagezyga, looks like about 0.033s vs 0.001s (snap vs /bin/true)12:17
ogra_zyga, right, and to compare with a std true you would have to have the busybox classic deb installed12:17
zygajamespage: how many runs did you measure?12:17
jamespagezyga, ~20 on each12:18
jamespagezyga, first hit on snap was a bit more expensive12:18
zygaogra_: I'd say that std true is "0.00" in this case12:18
jamespage0.485s12:18
zygajamespage: yes, the first run of snap-confine does way more12:18
zygajamespage: can you stick this in a repository12:18
zygajamespage: we could benchmark this periodically12:18
zygajamespage: and try to come up with a way to lower those numbers12:18
jamespagezyga, I'm pondering whether the fact its python is making a diff there12:19
zygajamespage: is the app shipping .pyc files?12:19
zygajamespage: maybe that is a factor?12:19
jamespagezyga, that was my thinking12:20
jamespagethere are no pyc's in the snap itself12:20
zygajamespage: or the pyc files it ships are for different interpreter and python recompiles everything anyway12:20
zygajamespage: there you go12:20
zygajamespage: my idea: ship python _and_ just pyc files, skip .py12:20
zygajamespage: small and faster12:20
jamespagezyga, well we should make that the default for the snapcraft python plugin then12:21
deanmanogra_, on that team's page there are no bugs for the wlan. Are they reporting them elsewhere? github ?12:21
ogra_deanman, in launchpad, but it is a kernel bug ...12:21
zygajamespage: would be nice to have this as an option12:21
zygajamespage: anyway, just an idea12:21
ogra_deanman, https://bugs.launchpad.net/ubuntu/+source/linux-raspi212:22
deanmanogra_, thanks12:24
jamespagesergiusens, ^^ any thoughts on the conversation above re perf of python apps in snaps?12:25
davidcalledeanman: indeed, for the record, the source of the raspi setup page is here https://github.com/ubuntudesign/developer.ubuntu.com/blob/master/templates/pages/core/get-started/raspberry-pi-2-3.md, if you want to file a bug/make a PR12:25
deanmandavidcalle, got it, thanks!12:27
deanmandavidcalle, PR filled, added small description with that as well. Feel free to rephrase as English is not my native tongue.12:38
davidcalledeanman: thanks a lot, I'll have a look!12:39
sergiusensjamespage: .pyc? You should be able to force add them through filesets. We don't by default because many people complained about conflicts when using N python parts as all the pyc files (coming from the same py) would be different12:39
jamespagesergiusens, what happens if they are not shipped? does the python in the snap compile them with every invocation?12:44
zygajamespage: yes12:46
zygajamespage: and discards them12:46
zygasergiusens: you could set a variable for python to store .pyc files in $SNAP_DATA/$SNAP_USER_DATA12:47
zyga(or just .cache)12:47
zygasergiusens: could be a nice compromise12:47
jamespagezyga, sergiusens: I wsa digging to see if that was possible12:48
zygajamespage: I bet it is12:51
zygait's just software :)12:51
=== plars-away is now known as plars
=== perrito667 is now known as perrito666
sergiusenszyga: given classic we are removing env vars as a default in our plugins, but people are welcome to do so if they want14:45
=== JanC_ is now known as JanC
mupPR snapd#2828 closed: tests: increase service retries <Created by fgimenez> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2828>15:21
=== Mirv_ is now known as Mirv
mupPR snapd#2831 closed: interfaces: add missing recvfrom syscall to dbus interface <Created by mvo5> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/2831>15:32
=== balloons26 is now known as balloons
didrockssergiusens: hey! do you know if the parts importer will check as well for snap/snapcraft.yaml?16:07
* didrocks creates a new parts and would like to know16:08
didrocks(for cloud parts)16:08
mupPR snapd#2839 opened: debian/tests: map snapd deb pockets to core snap channels for autopkgtest <Created by fgimenez> <https://github.com/snapcore/snapd/pull/2839>16:10
elopiojdstrand: there was a bug to let me write in /dev/shm/envoy_shared_memory_0, right? I find similar things, but I'm not sure which one that was.16:13
jdstrandelopio: I'm strugging to parse that question, but you can write to:16:14
jdstrand/{dev,run}/shm/snap.@{SNAP_NAME}.**16:15
jdstrand/{dev,run}/shm/sem.snap.@{SNAP_NAME}.*16:15
jdstrand/{dev,run}/user/[0-9]*/snap.@{SNAP_NAME}/**16:15
jdstrandelopio: so if you follow any of those naming schemes, it is allowed16:15
ogra_/dev/user ??16:15
jdstrandogra_: yeah, that is wrong16:16
* jdstrand will fix16:16
ogra_:)16:16
elopiojdstrand: so, I need to patch upstream? We are never going to let a snap write to /dev/shm/envoy_shared_memory_0 ?16:16
jdstrandI shouldn't have pasted that anyway cause it wasn't in shm, but glad I did :)16:16
ogra_on linux everything is a file ... even the user ;)16:16
sergiusensdidrocks: about that, josepht would know for sure16:18
sergiusensbut iirc, it uses the general mechanics we have for part loading16:18
jdstrandelopio: I don't know what /dev/shm/envoy_shared_memory_0 is, but it is not snap-specific so we won't add a rule to the default template or a plugs side interface for that. if this is for a particular slot implementation, we could. you probably want to look at https://github.com/sergiusens/snapcraft-preload if you want to avoid patching16:18
elopiojdstrand: I thought I read a discussion about this, but it's all too fuzzy. I think we can suggest them to patch their shm path when in a snap, doesn't sound too bad.16:20
elopioI'll play with preload too. Thanks for the pointer.16:21
jdstrandelopio: if you are looking for the bug, it is: https://bugs.launchpad.net/snapcraft/+bug/157751416:21
mupBug #1577514: Support preloading to make snaps feel at home <snapd-interface> <Snapcraft:Triaged by sergiusens> <https://launchpad.net/bugs/1577514>16:21
jdstrandelopio: sergiusens wrote https://github.com/sergiusens/snapcraft-preload to help with that16:21
sergiusenswell, I ripped off from deb2snap as suggested by mterry and not quite finished16:22
didrocksjosepht: do you know if the part importer handles the snap/ subdirectory?16:23
elopiothanks. I think this is enough info to restart the conversation with them. This is a project from lyft :)16:23
josephtdidrocks: I don't think so.  Let me check to be certain though.16:24
josephtdidrocks: no, it does not yet support snap/snapcraft.yaml.  Do you mind filing a bug and I'll get that added.16:25
didrocksjosepht: is there any way to workaround, like pointing to a subdir?16:25
didrocks(meanwhile?)16:25
josephtdidrocks: sorry not that I know of.  can you add a symlink to snap/snapcraft.yaml?16:28
mupBug #1663175 opened: chroot not allowed in strict <Snappy:New> <https://launchpad.net/bugs/1663175>16:28
didrocksjosepht: yeah, good idea16:35
brunch875is it fine to install something with apt-get when there's already its snap installed?16:39
brunch875I have some strange freeze with hexchat and I want to see if it also occurs out of confinement16:39
ogra_regarding the binray thats totally fine ... note that /snap/bin is last in your PATH though ... the deb version will be prefererred16:40
ogra_regarding the app configuration it totally depends on the snap though16:41
ogra_(and cache... data etc)16:41
niemeyerjoc, jdstrand: Provided a comment on snapd#2626.. can we please try to review/finalize it so we get this one through?16:41
mupPR snapd#2626: interfaces: relax path requirements for serial <Created by jocave> <https://github.com/snapcore/snapd/pull/2626>16:41
* brunch875_ is back from crashing16:42
jdstrandniemeyer: ack (responded)16:50
mupPR snapd#2840 opened: unity7: support missing signals and methods for status icons <Created by 3v1n0> <https://github.com/snapcore/snapd/pull/2840>16:57
mupBug #1664297 opened: Snapped indicators using custom themes or actions doesn't properly work <snapd-interface> <Snappy:In Progress by 3v1n0> <https://launchpad.net/bugs/1664297>16:58
Trevinhojdstrand: ^ about that.... I was also wondering that maybe we should instead move all the xdg-desktops related features to a different policy, and inheriting that in unity7, isn't it?16:59
Trevinhojdstrand: I see some kde apps only depending on that while it wouldn't be needed, as they only care about indicators, appmenu and few others17:00
Trevinhonotifications, of course...17:00
jdstrandTrevinho: well, unity7 is meant to be a transitional interface and I think it is ok for it to have things that kde apps won't use. there are quite a few things in there that are expected to work in a unity7 environment but that an application may choose to not use17:01
jdstrandTrevinho: interfaces also don't imply other interfaces, so if it was split out, everyone would have to use 'plugs: [unity7, xdg-desktops]' instead of just 'plugs: [unity7]', which could be fine, but we can't break people now by moving stuff out17:03
jdstrandperhaps for series 18 we could do that, but my first point still stands17:03
jdstrandTrevinho: you have that bug marked in progress. does that mean you are preparing a PR?17:04
Trevinhojdstrand: I mean at code level.... So that unity7 definition reusess xdg-desktop, then if you mention just one it will work. While mentioning both is pointless17:04
Trevinhojdstrand: it's linked17:04
Trevinhoerrr... or maybe not yet :-D17:04
Trevinhojdstrand: https://github.com/snapcore/snapd/pull/284017:05
mupPR snapd#2840: unity7: support missing signals and methods for status icons <Created by 3v1n0> <https://github.com/snapcore/snapd/pull/2840>17:05
niemeyerjdstrand: Thanks17:16
niemeyerjdstrand: Seems okay that AA is stating something else17:16
niemeyerjdstrand: We'll never even ask AA to mediate if we don't get a proper path that passes the Go one17:17
Trevinhojdstrand: fixed17:18
niemeyerjoc: Can we please get back to having more controlled paths there, as suggested in the PR?17:18
Pharaoh_Atemzyga: ping17:19
jocniemeyer: we can do. ogra's argument about the maintenance burden not strong enough for you?17:20
niemeyerjoc: Thanks17:21
jdstrandniemeyer: that's correct. the aa rule is only there as an additional protection for the cgroup anyway. both need to agree of course, but the go one is the really important one for udev tagging and the cgroup17:21
niemeyerjoc: I've just spent the past 6 hours reviewing snapd PRs.. I'm all for avoiding the burden of maintenance :)17:22
jochehe17:22
niemeyerjoc: But giving away unknown devices with names we didn't bother to consider sounds like a poor plan17:23
niemeyerjoc: *tty* happens to match things such as PEOPLES CONSOLES17:23
zygaPharaoh_Atem: hi17:27
Pharaoh_Atemzyga: did you see the bug filed about the lack of snapd builds in Fedora?17:28
zygaPharaoh_Atem: I replied to it17:28
mupPR snapd#2838 closed: allow core_support interface to modify /etc/hostname using hostnamectl <Created by ogra1> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/2838>17:28
Pharaoh_Atemzyga: so have you made any progress on rebasing snapd and snap-confine patches?17:29
zygaPharaoh_Atem: no, I'm still stick and I was really not doing much this weekend :/17:29
zygaPharaoh_Atem: (or weekdays for that matter)17:29
Pharaoh_Atemokay17:29
mupPR snapcraft#1139 opened: plainbox-provider plugin: filter out sitecustomize <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1139>17:39
mupPR snapd#2737 closed: tests: add more debug if ubuntu-core-upgrade fails <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2737>18:01
jocelopio: have you seen any collisions between file etc/python3.5/sitecustomize.py in python parts?18:05
jocelopio: it seems these changes to support classic are breaking things for parts that pull in python but don't use the python plugin18:15
niemeyerjdstrand: ping re snapd#271418:58
mupPR snapd#2714: interfaces: interface to allow autopilot introspection <Created by sbaldassin> <https://github.com/snapcore/snapd/pull/2714>18:58
niemeyerjdstrand: Sent some comments there19:15
Cynervaanyone available to help us figure out permission errors on the kubelet snap? zyga?19:22
jdstrandniemeyer: re autopilot> ack19:28
OerHekssnap install ohmygiraffe # finally a game i master .. oh wait, those lions19:49
=== testing is now known as Guest95827
knight___anyone have documentation on how to cross-build to armhf in snapcraft?19:55
kyrofaknight___, snapcraft doesn't really support cross-building19:57
kyrofaknight___, your best bet is probably to either build on-device or use the Launchpad snap builders19:58
knight___well how are people building snaps for other platforms then?19:58
knight___ha build on-device? yikes.19:58
kyrofaknight___, personally, the LP snap builders19:58
sborovkovknight___: you can actyually using docker and qemu19:58
knight___sborovkov, that's what i heard. any docs on that?19:58
kyrofaYeah, qemu is an option as well, but it's brutally slow19:58
knight___Can't be any slower than building on device.19:58
kyrofaFair enough19:59
kyrofaknight___, I can't recommend the LP builders enough. They can even auto-upload to the store when the build has completed19:59
sborovkovknight___: let me search. I am sure it was in mailing list19:59
knight___Ok, open to using launchpad snap builders. Docs on that too?19:59
kyrofaknight___, https://kyrofa.com/posts/building-your-snap-on-device-there-s-a-better-way20:00
sborovkovknight___: https://github.com/chihchun/snapcraft-docker20:00
kyrofaknight___, note that since that article was written LP added support for auto-syncing git repos from elsewhere20:00
knight___Would be really cool if we had a snapcraft flag to kick off a cross-build ... like snapcraft cleanbuild --platform armhf and then it kicks it off, either on launchpad or in the snapcraft backend or in a qemu locally.20:01
kyrofaknight___, so you can set things up such that new snaps are built when you push to X branch on github, for example (what I do personally)20:01
knight___ahh yeah that's a good idea20:01
knight___thanks @sborovkov20:01
lutostagAre there any snapd bindings for other languages? (for instance if I wanted to run "snap download" "snap find" programatically, or do I have to wrap the cli manually?)?20:04
zygalutostag: yes20:04
zygalutostag: we have gio/glib bindings so you should be able to use this from any language that supports this20:04
zygalutostag: the package is (I believe) snapd-glib or something like it20:05
zygalutostag: let me know if you need something20:05
lutostagzyga: neato, couldnt find them on https://github.com/snapcore, any link to to a sweet blog-post?20:05
zygalutostag: ah, I should make one :)20:05
zygalutostag: and we should move the project, it is on https://code.launchpad.net/snapd-glib20:05
Pharaoh_AtemI wonder where the qt/c++ bindings are?20:07
knight___thanks kyrofa, i'm reading up and registering on Launchpad now20:07
Pharaoh_Atemthose and the snapd-glib project need to move out of LP20:07
lutostagzyga: much thanks!20:07
zygaPharaoh_Atem: not sure, I wonder if the KDE folks wrote some for the app store20:08
Pharaoh_Atemthey didn't20:08
zygaPharaoh_Atem: btw; I'm still sick so instead of coding I write text instead20:08
zygaPharaoh_Atem: have a look at new.zygoon.pl20:08
Pharaoh_Atemsupposedly the guy who wrote snapd-glib also wrote qt/c++ bindings too20:08
zygaPharaoh_Atem: I'll add comments over time20:08
zygaPharaoh_Atem: ah, I don't know anything about that20:08
Pharaoh_Atemzyga: afaik, my understanding about debian and file caps is that there's no way to express them in dsc packaging20:13
Pharaoh_Atemdpkg-deb just winds up stripping them :/20:13
zygaPharaoh_Atem: does .dsc care? I though that this is a tarball / weird FS someone may want to use issue20:13
zygaPharaoh_Atem: in any case, whatever it is....20:14
zygajust annoying20:14
Pharaoh_AtemI use "dsc packaging" as shorthand for debian source control20:14
zygadivergence20:14
zygaahh20:14
knight___hey kyrofa, that's pretty slick. i'm all set up and building through it now !20:14
zygaright20:14
Pharaoh_Atemaka, the way debian packages are made officially20:14
Pharaoh_Atemzyga: nice post :)20:29
lutostagIn snapd's help for snap install (for the revision arg) it states: "to which you must have developer access", what precisely does that mean?20:32
Pharaoh_Atemlutostag: it must be run as root20:33
zygalutostag: I believe that as a developer of a snap you can install any revision from the store20:33
zygaPharaoh_Atem: no, not that :)20:33
Pharaoh_Atemno?20:33
Pharaoh_AtemI thought it was referring to superuser access, since nothing in snapd works without it20:33
zygalutostag: but as a consumer you can just install the revision that is published in a channel20:33
zygalutostag: the exception is that if you have it installed already you can switch between revisions with refresh20:33
lutostagzyga: and this will disable auto-updating with the regular 4x a day refreshes?20:33
zygalutostag: but just among the set you already have on your disk20:34
zygalutostag: honestly, I don't know :)20:34
lutostagehhe20:34
zygalutostag: chipaca is the person to ask20:34
zygalutostag: I work on other areas and this particular detail is a bit obscure20:34
lutostagmotivation... juju snap testing and switching between lots of versions when we want20:34
zygalutostag: but the general idea is that as a devleoper you see all the revisions but users just see what you publish20:34
mwhudsonsigh, where can i download ubuntu core images again?20:35
zygamwhudson: snap download20:35
mwhudsonzyga: that downloads a snap surely20:35
mwhudsoni want something to give to kvm20:36
lutostagehhe20:36
zygamwhudson: ah, you want the big image?20:36
zygahmmmm20:36
mwhudsonyes20:36
zygammm20:36
zygathere must be a place :)20:36
zygasorry, I don't recall where we publish those20:36
zygaogra_: ^^20:36
lutostaghttp://people.canonical.com/~ogra/snappy/all-snaps/daily/current/20:36
mwhudsonthere is http://releases.ubuntu.com/ubuntu-core/16/ubuntu-core-16-amd64.img.xz but i bet that's old20:36
mwhudsonlutostag: thanks20:36
zygamwhudson: you can just use it and it will update itself but you surely know that20:36
mwhudsonzyga: want to test what console-conf is doing in current releases so that won't help :)20:37
linggaoHi all, this my firt time in this channel. Is this a place to ask Ubuntu snap questions?20:52
lutostaglinggao: indeed it is! welcome!20:52
kyrofaHey there linggao20:54
linggaolutostag, kyrofa thanks!  We have developed a snap.  There is problem refreshing the snap on an arm device like a Rasberry Pi.20:55
linggaoThe process died on monting.20:55
linggaoMounting.20:55
linggaoHere is the detail.20:55
linggaoI ran "snap refresh --devmode --edge mysnapname" on my rpi2 to pick up the latest snap. It downloaded the new snap, and sometime after displaying [|] Mount snap "mysnapname" (53) it threw me into kdb on the console. After rebooting, the new snap seems to be working ok.20:56
linggaoThe refresh works on an x86 machine though.20:57
linggaoThe kernel debug showed this "[336032.404195] Unable to handle kernel NULL pointer dereference at virtual address 00000008"20:59
kyrofalinggao, you're saying you tried to refresh a snap and when it was mounting you were thrown into a kernel debugging session?20:59
linggaoyes, exactly.20:59
kyrofalinggao, would you mind logging a bug against snapd? https://bugs.launchpad.net/snapd/+filebug21:00
kyrofalinggao, please include whatever logs you have21:00
kyrofaI've never seen that before21:00
linggaoSure. I will.21:00
kyrofalinggao, are you running the official image? Or a custom kernel of some kind?21:00
kyrofalinggao, a better question is probably: what distro are you running on the rpi?21:01
linggaoLet me find out.21:02
linggaoWe are using this image: ubuntu-16.04-preinstalled-server-armhf+raspi2.img.  It is on arm architecture.21:04
linggaoWe got it from here: https://wiki.ubuntu.com/ARM/RaspberryPi21:05
linggaoUnder Ubuntu 16.04 LTS 'classic'21:05
kyrofalinggao, okay good deal, please make sure you mention that on your bug21:05
linggaook.21:06
linggaokyrofa, thanks a lot. I will file a bug report.21:08
linggaoOk, I have summitted the but report. https://bugs.launchpad.net/snapd/+bug/166436821:17
mupBug #1664368: snap refresh hangs on arm architecture <snapd:New> <https://launchpad.net/bugs/1664368>21:17
kyrofaThank you linggao21:24
iceysergiusens: should I be able to use OpenGL inside of a classic snap?21:50
stokachuquestion, should snap list <snap> return 1 if no snaps are installed yet?21:53
kyrofastokachu, that's not really an error condition...21:54
stokachukyrofa, i just noticed it trying to do a if ! snap list conjure-up; then snap install conjure-up21:55
stokachuso ill just grep for that output then21:55
kyrofastokachu, ah, snap list <snap> is a little different21:56
kyrofastokachu, if I run `snap list foo` I get "error: no matching snap installed" and it exits non-zero21:56
stokachuif you run it before ever snap installing anything it says no snap installed21:56
stokachuexits 021:56
kyrofastokachu, that seems inconsistent21:57
kyrofastokachu, I'd log a bug21:57
stokachukyrofa, thanks, i thought it was a little weird21:57
kyrofastokachu, I agree, let's see what the devs think21:57
sergiusensicey: hey, Brandon Schaeffer was working on that21:58
iceysergiusens: I'm working on getting alacritty fully and truly working; I can get it to work on my system but not when I hand it to somebody else :-/21:58
iceyif I do it in devmode, we both get an error about not being able to create a window, so the software itself can run21:58
sergiusensicey: use snapcraft master (or soon to be 2.27)21:59
iceybut it seems like a display issue21:59
mupBug #1664383 opened: running snap list <snap> on a system that has no snaps installed exits 0 <conjure-up> <Snappy:New> <https://launchpad.net/bugs/1664383>22:00
iceywhen do you think that 2.27 release will be cut sergiusens?22:01
sergiusensicey: it was supposed to get into proposed on thursday but I got sick and there was necessary fix that I could only craft today; so -proposed today or tomorrow and count 2 days and it will be in -updates22:05
sergiusensicey: do you have your anatine project anywhere btw?22:07
iceyanatine?22:07
sergiusensicey: err, lol, wrong name22:07
sergiusensicey: alarcity22:07
iceynope :-P22:07
iceyI'm about to try building it on master22:07
iceyeither way, I'll put a branch on GH22:08
sergiusensicey: can you? It might be easier if we have a snapcraft.yaml we can work out of.22:08
iceyso sergiusens... now when I run the alacritty snap after building with master, it hangs22:18
iceyadding snapcraft to alacritty: https://github.com/ChrisMacNaughton/alacritty22:20
sergiusensicey: and it did work with 2.26? The only interesting thing we are doing with 2.27 is not exporting variables in the wrappers, you can add it with the environment keyword in apps (a dictionary)22:21
sergiusenswill look later tonight or tomorrow morning22:21
iceysergiusens: building with the package that apt gave me on 16.10, it was working _for me_, building from master zeems to hang22:22
iceysergiusens: https://gist.github.com/ChrisMacNaughton/fb6748767443f24da14658e3a8122c2a22:23
iceyit is showing me "runtime/cgo: pthread_create failed:" over and over22:24
elopiojoc: sorry, I missed your ping. https://github.com/snapcore/snapcraft/pull/113922:49
mupPR snapcraft#1139: plainbox-provider plugin: filter out sitecustomize <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1139>22:49
mupPR snapd#2841 opened: interfaces: allow recv* and send* by default, accept4 with accept and other cleanups <Created by jdstrand> <https://github.com/snapcore/snapd/pull/2841>22:50
=== jkridner|pd is now known as jkridner
mupBug #1663565 changed: Media Keys do not work in strictly confined snaps <isv> <snapd-interface> <snapd:In Progress by jdstrand> <https://launchpad.net/bugs/1663565>23:34
mupPR snapd#2842 opened: interfaces: misc updates for network-control, firewall-control, unity7, x11 and default policy <Created by jdstrand> <https://github.com/snapcore/snapd/pull/2842>23:39

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