[01:32] <olympionex> in 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:40] <olympionex> actually, for every single part in project/parts its in the build, src, and install dir
[01:43] <olympionex> scratch that, it happens for parts that use my custom plugin as well as the dump plugin
[02:31] <knight__> yeah i need to figure that out too
[02:35] <olympionex> knight__: are you referring to the question I asked?
[02:40] <knight__> olympionex, yep
[02:40] <knight__> this channel is pretty sleepy... been asking questions the last 3 days with basically no answers :)
[02:41] <olympionex> knight__: 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] <olympionex> by default, it seems to copy whatever is in source to the project/parts/src dir
[02:41] <olympionex> and by default that source parameter is the project directory itself
[02:41] <knight__> Oh I see, that's for custom plugin.
[02:41] <knight__> I have a src dir in my snapcraft project folder
[02:42] <olympionex> well it works the same with dump I believe, testing it out
[02:42] <knight__> Then a subdir, and a script, that i'm trying to use dump to move into destination app command
[02:42] <olympionex> if you don't specify the source option for the plugin, it appears to copy the entire project directory to that part's source dir
[02:42] <knight__> my source is defined as "src/"
[02:42] <olympionex> i'm still verifying.  I suspect what you want to do is create a project/src/script_dir
[02:43] <olympionex> and set the source for the dump plugin to src/script_dir
[02:43] <olympionex> then use organize to decide exactly where to copy it
[02:43] <knight__> yeah
[02:43] <knight__> i did source: src/ and then organize with item: item_dir/item
[02:43] <knight__> but maybe that's wrong?
[02:45] <olympionex> well previously I was using this:
[02:45] <olympionex> http://pastebin.com/LxRDzRUz
[02:45] <olympionex> i'm currently working on modifying / testing to make a specific directory project/src/netconf that only has the file netconf.py
[02:46] <olympionex> so that it doesn't copy everything in the whole project/src directory to src of that part
[02:46] <knight__> yeah that's similar to what i want
[02:47] <olympionex> yeah, that appears to work for me
[02:47] <olympionex> you just need to create subdirs for each part under src
[02:48] <olympionex> and be careful that for any part which you don't specify source, it will probably copy the whole project dir in
[02:48] <knight__> maybe we need to do:
[02:48] <knight__> organize:    item_dir:    item
[02:50] <olympionex> thats not what I'm doing
[02:50] <olympionex> the key should be the filename relative to the source dir
[02:50] <olympionex> and the value should be the full path where it will end up in a fileset
[02:51] <knight__> Yes, that's what I'm saying
[02:51] <olympionex> whether that is stage or prime
[02:51] <knight__> We can add another level to represent the subdir
[02:51] <knight__> i.e. source + subdir + item
[02:51] <knight__> organize:    item_dir:    item: item.py
[02:52] <olympionex> ah, you mean a suggestion to modify the snapcraft source itself?
[02:56] <knight__> the yaml
[02:56] <knight__> organize statement
[02:57] <olympionex> all I had to do to fix it was this:
[02:57] <olympionex> http://pastebin.com/F2ar752n
[02:57] <olympionex> basically just change src to src/netconf
[02:57] <olympionex> and move netconf.py from src to src/netconf
[02:57] <knight__> yep
[02:58] <knight__> my suggestion is if you have other files in src/ with other subdirs and don't want to isolate the source to that
[02:59] <olympionex> ah, we were just talking past each other.  Thats what I meant by modifying the snapcraft source -- would require changing the operation of snapcraft
[03:00] <knight__> ?
[03:00] <knight__> i guess dump copies all
[03:01] <knight__> you can't cherrypick
[03:01] <olympionex> yeah, as far as I can tell, the default behavior of possibly all plugins is to copy everything from source
[03:01] <olympionex> I haven't looked yet, but it must be in BasePlugin
[03:02] <knight__> there's got to be a way to be able to pull something down from a dir or remote, and cherrypick
[03:03] <olympionex> I think it would require something like having filesets for the pull operation
[04:05] <knight__> need to figure out how to cross-build armhf support
[04:21] <ffox> is there any way to force snapd to skip a task in a changeset?
[04:22] <ffox> I'm trying to bring up a board and it keeps hanging on "Run configure hook of "core" snap if present"
[06:24] <olympionex> knight__: 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 source
[07:54] <mup> PR snapd#2834 opened: release: add galliumos support <Created by mvo5> <https://github.com/snapcore/snapd/pull/2834>
[09:02] <zyga> good morning
[09:06] <mup> PR snapd#2835 opened: strutil: support version compare with empty strings <Created by mvo5> <https://github.com/snapcore/snapd/pull/2835>
[09:14] <mup> PR snapd#2836 opened: release: assume higher version of supported distros will still work <Created by mvo5> <https://github.com/snapcore/snapd/pull/2836>
[09:22] <zyga> popey: thank you for the bug reports on distro support sir!
[10:11] <sborovkov> jdstrand: 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 declaration
[10:11] <sborovkov> jdstrand: did I do something wrong?
[10:26] <popey> zyga: no worries, thanks for fixing them :)
[10:27] <zyga> popey: mvo did all the work with a fantastic future-proof branch
[10:27] <popey> \o/
[10:43] <davmor2> zyga: pfff /me sets up linux from scratch to test the wild claims I'll be back in two whole years with reports ;)
[10:46] <zyga> davmor2: I expect nothing less than utter success :)
[10:54] <mvo> jibel: 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 far
[10:54] <mup> Bug #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:57] <jibel> mvo, yes on zesty too
[10:57] <mvo> jibel: excellent, let me test it there
[10:58] <jibel> mvo, I wondering if it happens after a package or snap upgrade. After a reboot the problem was gone
[10:59] <mvo> jibel: ohhh, that is super useful information
[10:59] <mvo> jibel: let me try with that
[11:23] <mup> PR snapcraft#1138 closed: python plugin: exclude the RECORD files <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1138>
[11:42] <joedborg> hello all!  quick question; is it possible to change the user running the app inside the snap?
[11:42] <mup> PR snapd#2837 opened: interfaces/apparmor: allow reading from ecryptfs <Created by zyga> <https://github.com/snapcore/snapd/pull/2837>
[11:43] <zyga> joedborg: not at this time
[11:43] <joedborg> zyga: thanks, do you know what user the application inside sees?
[11:44] <joedborg> i assumed it was the user who initiated it, but doesn't seem to be the case
[11:45] <joedborg> even though if i run with --shell and do a `whoami` it does say the same
[11:46] <zyga> joedborg: yes, when it is a normal command it runs as the user who started it
[11:46] <zyga> joedborg: when it is a service/daemon it runs as root
[11:46] <joedborg> zyga: aaaah, thanks, that makes sense (i'm running a daemon)
[11:48] <brunch875> I just noticed hexchat uses ~/snap/hexchat/17/.config instead of ~/.config
[11:48] <zyga> brunch875: that's correct
[11:48] <zyga> brunch875: for snaps that are not using confinement:classic the HOME environment variable is changed
[11:48] <zyga> brunch875: since most apps correctly derive $XDG_CONFIG_DIR from $HOME you end up with what you said
[11:48] <brunch875> aaah, so I shouldn't worry about the application defaults
[11:49] <zyga> brunch875: note that snaps don't normally have access to your home directory
[11:49] <zyga> brunch875: no, that's fine
[11:49] <brunch875> ah thank you, didn't really know how to ask the question but you read my mind :)
[11:49] <zyga> I know ;)
[11:59] <deanman> ogra_, 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.
[12:00] <ogra_> yeah, i hope we nail that bug some day
[12:01] <deanman> ogra_, 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] <deanman> It can be frustrating for first time users when they are following that guide and somehow stumble on that configuration step.
[12:02] <deanman> It's step #3, i guess we could add a note saying that first setup should be wired ?
[12:04] <deanman> I found a similar note on this https://developer.ubuntu.com/en/snappy/start/installation-tips/ but no reference to the first user-guide
[12:04] <mup> PR snapd#2838 opened: allow core_support interface to modify /etc/hostname using hostnamectl <Created by ogra1> <https://github.com/snapcore/snapd/pull/2838>
[12:05] <ogra_> davidcalle, ^^^ should we have a known issues castegory on these pages ?
[12:11] <jamespage> hi all
[12:11] <deanman> ogra_, is there a dedicated launchpad group that is working to polish things out with snappy ?
[12:11] <jamespage> I've been comparing performance of commands provided as snaps vs debs
[12:12] <ogra_> deanman, depends ... there is a github team for the snapd related bits and there is snappy-dev on launchpad for the image builds
[12:12] <jamespage> even 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] <jamespage> 1.6 s vs 0.5 seconds for example - thats just to run neutron --version
[12:12] <jamespage> so no network ops in the way
[12:13] <zyga> joedborg: can you say what you are measuring exactly?
[12:13] <zyga> er
[12:13] <zyga> jamespage: ^^
[12:13] <jamespage> zyga, my tests are
[12:13] <zyga> joedborg: I'm sorry, irssi confusion
[12:13] <jamespage> time /snap/bin/neutron --version
[12:13] <joedborg> zyga: no worries :)
[12:13] <jamespage> vs
[12:13] <ogra_> jamespage, i doubt it is the filesystems fault but rather the way of executing
[12:13] <jamespage> time /usr/bin/neutron --version
[12:14] <ogra_> there is surely some extra overhead in that bit
[12:14] <zyga> jamespage: snap adds three execs along the way: snap-run -> snap-confine -> snap-exec
[12:14] <zyga> jamespage: two go and one C executables
[12:14] <zyga> jamespage: there's bound to be some overhead but typically it is hard to even measure
[12:14] <zyga> jamespage: I'd be interested to know more
[12:15] <jamespage> zyga, me to
[12:15] <zyga> jamespage: can you run a /bin/true test?
[12:15] <zyga> install a snap that just runs /bin/true)
[12:15] <zyga> jamespage: e.g. snapd-hacker-toolbelt
[12:15] <zyga> jamespage: it ships snapd-hacker-toolbelt.busybox
[12:15] <zyga> jamespage: then you can just say snapd-hacker-toolbelt.busybox true
[12:15] <zyga> jamespage: and see how "fast" that is
[12:16] <ogra_> and have a local busybox to compare ?
[12:16] <zyga> jamespage: that should be a good ballkpart number for the overhead itself
[12:16] <zyga> ogra_: 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] <zyga> jamespage: do a 100 runs and see what you get
[12:16] <zyga> ogra_: I think there's bash as well
[12:17] <zyga> ogra_: because snapcraft :/
[12:17]  * ogra_ wouldnt trust busyboax and bash "true" to be the same
[12:17] <deanman> ogra_, is this for the image builds ? https://launchpad.net/~snappy-dev
[12:17] <zyga> ogra_: but that does run busybox "true" applet
[12:17] <ogra_> deanman, thats the team managing the builds ...
[12:17] <zyga> ogra_: it's the busybox true
[12:17] <jamespage> zyga, 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 installed
[12:17] <zyga> jamespage: how many runs did you measure?
[12:18] <jamespage> zyga, ~20 on each
[12:18] <jamespage> zyga, first hit on snap was a bit more expensive
[12:18] <zyga> ogra_: I'd say that std true is "0.00" in this case
[12:18] <jamespage> 0.485s
[12:18] <zyga> jamespage: yes, the first run of snap-confine does way more
[12:18] <zyga> jamespage: can you stick this in a repository
[12:18] <zyga> jamespage: we could benchmark this periodically
[12:18] <zyga> jamespage: and try to come up with a way to lower those numbers
[12:19] <jamespage> zyga, I'm pondering whether the fact its python is making a diff there
[12:19] <zyga> jamespage: is the app shipping .pyc files?
[12:19] <zyga> jamespage: maybe that is a factor?
[12:20] <jamespage> zyga, that was my thinking
[12:20] <jamespage> there are no pyc's in the snap itself
[12:20] <zyga> jamespage: or the pyc files it ships are for different interpreter and python recompiles everything anyway
[12:20] <zyga> jamespage: there you go
[12:20] <zyga> jamespage: my idea: ship python _and_ just pyc files, skip .py
[12:20] <zyga> jamespage: small and faster
[12:21] <jamespage> zyga, well we should make that the default for the snapcraft python plugin then
[12:21] <deanman> ogra_, 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] <zyga> jamespage: would be nice to have this as an option
[12:21] <zyga> jamespage: anyway, just an idea
[12:22] <ogra_> deanman, https://bugs.launchpad.net/ubuntu/+source/linux-raspi2
[12:24] <deanman> ogra_, thanks
[12:25] <jamespage> sergiusens, ^^ any thoughts on the conversation above re perf of python apps in snaps?
[12:25] <davidcalle> deanman: 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 PR
[12:27] <deanman> davidcalle, got it, thanks!
[12:38] <deanman> davidcalle, PR filled, added small description with that as well. Feel free to rephrase as English is not my native tongue.
[12:39] <davidcalle> deanman: thanks a lot, I'll have a look!
[12:39] <sergiusens> jamespage: .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 different
[12:44] <jamespage> sergiusens, what happens if they are not shipped? does the python in the snap compile them with every invocation?
[12:46] <zyga> jamespage: yes
[12:46] <zyga> jamespage: and discards them
[12:47] <zyga> sergiusens: you could set a variable for python to store .pyc files in $SNAP_DATA/$SNAP_USER_DATA
[12:47] <zyga> (or just .cache)
[12:47] <zyga> sergiusens: could be a nice compromise
[12:48] <jamespage> zyga, sergiusens: I wsa digging to see if that was possible
[12:51] <zyga> jamespage: I bet it is
[12:51] <zyga> it's just software :)
[14:45] <sergiusens> zyga: given classic we are removing env vars as a default in our plugins, but people are welcome to do so if they want
[15:21] <mup> PR snapd#2828 closed: tests: increase service retries <Created by fgimenez> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2828>
[15:32] <mup> PR snapd#2831 closed: interfaces: add missing recvfrom syscall to dbus interface <Created by mvo5> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/2831>
[16:07] <didrocks> sergiusens: hey! do you know if the parts importer will check as well for snap/snapcraft.yaml?
[16:08]  * didrocks creates a new parts and would like to know
[16:08] <didrocks> (for cloud parts)
[16:10] <mup> PR 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:13] <elopio> jdstrand: 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:14] <jdstrand> elopio: I'm strugging to parse that question, but you can write to:
[16:15] <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] <jdstrand> elopio: so if you follow any of those naming schemes, it is allowed
[16:15] <ogra_> /dev/user ??
[16:16] <jdstrand> ogra_: yeah, that is wrong
[16:16]  * jdstrand will fix
[16:16] <ogra_> :)
[16:16] <elopio> jdstrand: so, I need to patch upstream? We are never going to let a snap write to /dev/shm/envoy_shared_memory_0 ?
[16:16] <jdstrand> I 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:18] <sergiusens> didrocks: about that, josepht would know for sure
[16:18] <sergiusens> but iirc, it uses the general mechanics we have for part loading
[16:18] <jdstrand> elopio: 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 patching
[16:20] <elopio> jdstrand: 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:21] <elopio> I'll play with preload too. Thanks for the pointer.
[16:21] <jdstrand> elopio: if you are looking for the bug, it is: https://bugs.launchpad.net/snapcraft/+bug/1577514
[16:21] <mup> Bug #1577514: Support preloading to make snaps feel at home <snapd-interface> <Snapcraft:Triaged by sergiusens> <https://launchpad.net/bugs/1577514>
[16:21] <jdstrand> elopio: sergiusens wrote https://github.com/sergiusens/snapcraft-preload to help with that
[16:22] <sergiusens> well, I ripped off from deb2snap as suggested by mterry and not quite finished
[16:23] <didrocks> josepht: do you know if the part importer handles the snap/ subdirectory?
[16:23] <elopio> thanks. I think this is enough info to restart the conversation with them. This is a project from lyft :)
[16:24] <josepht> didrocks: I don't think so.  Let me check to be certain though.
[16:25] <josepht> didrocks: no, it does not yet support snap/snapcraft.yaml.  Do you mind filing a bug and I'll get that added.
[16:25] <didrocks> josepht: is there any way to workaround, like pointing to a subdir?
[16:25] <didrocks> (meanwhile?)
[16:28] <josepht> didrocks: sorry not that I know of.  can you add a symlink to snap/snapcraft.yaml?
[16:28] <mup> Bug #1663175 opened: chroot not allowed in strict <Snappy:New> <https://launchpad.net/bugs/1663175>
[16:35] <didrocks> josepht: yeah, good idea
[16:39] <brunch875> is it fine to install something with apt-get when there's already its snap installed?
[16:39] <brunch875> I have some strange freeze with hexchat and I want to see if it also occurs out of confinement
[16:40] <ogra_> regarding the binray thats totally fine ... note that /snap/bin is last in your PATH though ... the deb version will be prefererred
[16:41] <ogra_> regarding the app configuration it totally depends on the snap though
[16:41] <ogra_> (and cache... data etc)
[16:41] <niemeyer> joc, jdstrand: Provided a comment on snapd#2626.. can we please try to review/finalize it so we get this one through?
[16:41] <mup> PR snapd#2626: interfaces: relax path requirements for serial <Created by jocave> <https://github.com/snapcore/snapd/pull/2626>
[16:42]  * brunch875_ is back from crashing
[16:50] <jdstrand> niemeyer: ack (responded)
[16:57] <mup> PR snapd#2840 opened: unity7: support missing signals and methods for status icons <Created by 3v1n0> <https://github.com/snapcore/snapd/pull/2840>
[16:58] <mup> Bug #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:59] <Trevinho> jdstrand: ^ 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?
[17:00] <Trevinho> jdstrand: I see some kde apps only depending on that while it wouldn't be needed, as they only care about indicators, appmenu and few others
[17:00] <Trevinho> notifications, of course...
[17:01] <jdstrand> Trevinho: 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 use
[17:03] <jdstrand> Trevinho: 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 out
[17:03] <jdstrand> perhaps for series 18 we could do that, but my first point still stands
[17:04] <jdstrand> Trevinho: you have that bug marked in progress. does that mean you are preparing a PR?
[17:04] <Trevinho> jdstrand: 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 pointless
[17:04] <Trevinho> jdstrand: it's linked
[17:04] <Trevinho> errr... or maybe not yet :-D
[17:05] <Trevinho> jdstrand: https://github.com/snapcore/snapd/pull/2840
[17:05] <mup> PR snapd#2840: unity7: support missing signals and methods for status icons <Created by 3v1n0> <https://github.com/snapcore/snapd/pull/2840>
[17:16] <niemeyer> jdstrand: Thanks
[17:16] <niemeyer> jdstrand: Seems okay that AA is stating something else
[17:17] <niemeyer> jdstrand: We'll never even ask AA to mediate if we don't get a proper path that passes the Go one
[17:18] <Trevinho> jdstrand: fixed
[17:18] <niemeyer> joc: Can we please get back to having more controlled paths there, as suggested in the PR?
[17:19] <Pharaoh_Atem> zyga: ping
[17:20] <joc> niemeyer: we can do. ogra's argument about the maintenance burden not strong enough for you?
[17:21] <niemeyer> joc: Thanks
[17:21] <jdstrand> niemeyer: 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 cgroup
[17:22] <niemeyer> joc: I've just spent the past 6 hours reviewing snapd PRs.. I'm all for avoiding the burden of maintenance :)
[17:22] <joc> hehe
[17:23] <niemeyer> joc: But giving away unknown devices with names we didn't bother to consider sounds like a poor plan
[17:23] <niemeyer> joc: *tty* happens to match things such as PEOPLES CONSOLES
[17:27] <zyga> Pharaoh_Atem: hi
[17:28] <Pharaoh_Atem> zyga: did you see the bug filed about the lack of snapd builds in Fedora?
[17:28] <zyga> Pharaoh_Atem: I replied to it
[17:28] <mup> PR 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:29] <Pharaoh_Atem> zyga: so have you made any progress on rebasing snapd and snap-confine patches?
[17:29] <zyga> Pharaoh_Atem: no, I'm still stick and I was really not doing much this weekend :/
[17:29] <zyga> Pharaoh_Atem: (or weekdays for that matter)
[17:29] <Pharaoh_Atem> okay
[17:39] <mup> PR snapcraft#1139 opened: plainbox-provider plugin: filter out sitecustomize <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1139>
[18:01] <mup> PR 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:05] <joc> elopio: have you seen any collisions between file etc/python3.5/sitecustomize.py in python parts?
[18:15] <joc> elopio: it seems these changes to support classic are breaking things for parts that pull in python but don't use the python plugin
[18:58] <niemeyer> jdstrand: ping re snapd#2714
[18:58] <mup> PR snapd#2714: interfaces: interface to allow autopilot introspection <Created by sbaldassin> <https://github.com/snapcore/snapd/pull/2714>
[19:15] <niemeyer> jdstrand: Sent some comments there
[19:22] <Cynerva> anyone available to help us figure out permission errors on the kubelet snap? zyga?
[19:28] <jdstrand> niemeyer: re autopilot> ack
[19:49] <OerHeks> snap install ohmygiraffe # finally a game i master .. oh wait, those lions
[19:55] <knight___> anyone have documentation on how to cross-build to armhf in snapcraft?
[19:57] <kyrofa> knight___, snapcraft doesn't really support cross-building
[19:58] <kyrofa> knight___, your best bet is probably to either build on-device or use the Launchpad snap builders
[19:58] <knight___> well how are people building snaps for other platforms then?
[19:58] <knight___> ha build on-device? yikes.
[19:58] <kyrofa> knight___, personally, the LP snap builders
[19:58] <sborovkov> knight___: you can actyually using docker and qemu
[19:58] <knight___> sborovkov, that's what i heard. any docs on that?
[19:58] <kyrofa> Yeah, qemu is an option as well, but it's brutally slow
[19:58] <knight___> Can't be any slower than building on device.
[19:59] <kyrofa> Fair enough
[19:59] <kyrofa> knight___, I can't recommend the LP builders enough. They can even auto-upload to the store when the build has completed
[19:59] <sborovkov> knight___: let me search. I am sure it was in mailing list
[19:59] <knight___> Ok, open to using launchpad snap builders. Docs on that too?
[20:00] <kyrofa> knight___, https://kyrofa.com/posts/building-your-snap-on-device-there-s-a-better-way
[20:00] <sborovkov> knight___: https://github.com/chihchun/snapcraft-docker
[20:00] <kyrofa> knight___, note that since that article was written LP added support for auto-syncing git repos from elsewhere
[20:01] <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] <kyrofa> knight___, 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 idea
[20:01] <knight___> thanks @sborovkov
[20:04] <lutostag> Are 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] <zyga> lutostag: yes
[20:04] <zyga> lutostag: we have gio/glib bindings so you should be able to use this from any language that supports this
[20:05] <zyga> lutostag: the package is (I believe) snapd-glib or something like it
[20:05] <zyga> lutostag: let me know if you need something
[20:05] <lutostag> zyga: neato, couldnt find them on https://github.com/snapcore, any link to to a sweet blog-post?
[20:05] <zyga> lutostag: ah, I should make one :)
[20:05] <zyga> lutostag: and we should move the project, it is on https://code.launchpad.net/snapd-glib
[20:07] <Pharaoh_Atem> I wonder where the qt/c++ bindings are?
[20:07] <knight___> thanks kyrofa, i'm reading up and registering on Launchpad now
[20:07] <Pharaoh_Atem> those and the snapd-glib project need to move out of LP
[20:07] <lutostag> zyga: much thanks!
[20:08] <zyga> Pharaoh_Atem: not sure, I wonder if the KDE folks wrote some for the app store
[20:08] <Pharaoh_Atem> they didn't
[20:08] <zyga> Pharaoh_Atem: btw; I'm still sick so instead of coding I write text instead
[20:08] <zyga> Pharaoh_Atem: have a look at new.zygoon.pl
[20:08] <Pharaoh_Atem> supposedly the guy who wrote snapd-glib also wrote qt/c++ bindings too
[20:08] <zyga> Pharaoh_Atem: I'll add comments over time
[20:08] <zyga> Pharaoh_Atem: ah, I don't know anything about that
[20:13] <Pharaoh_Atem> zyga: afaik, my understanding about debian and file caps is that there's no way to express them in dsc packaging
[20:13] <Pharaoh_Atem> dpkg-deb just winds up stripping them :/
[20:13] <zyga> Pharaoh_Atem: does .dsc care? I though that this is a tarball / weird FS someone may want to use issue
[20:14] <zyga> Pharaoh_Atem: in any case, whatever it is....
[20:14] <zyga> just annoying
[20:14] <Pharaoh_Atem> I use "dsc packaging" as shorthand for debian source control
[20:14] <zyga> divergence
[20:14] <zyga> ahh
[20:14] <knight___> hey kyrofa, that's pretty slick. i'm all set up and building through it now !
[20:14] <zyga> right
[20:14] <Pharaoh_Atem> aka, the way debian packages are made officially
[20:29] <Pharaoh_Atem> zyga: nice post :)
[20:32] <lutostag> In 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:33] <Pharaoh_Atem> lutostag: it must be run as root
[20:33] <zyga> lutostag: I believe that as a developer of a snap you can install any revision from the store
[20:33] <zyga> Pharaoh_Atem: no, not that :)
[20:33] <Pharaoh_Atem> no?
[20:33] <Pharaoh_Atem> I thought it was referring to superuser access, since nothing in snapd works without it
[20:33] <zyga> lutostag: but as a consumer you can just install the revision that is published in a channel
[20:33] <zyga> lutostag: the exception is that if you have it installed already you can switch between revisions with refresh
[20:33] <lutostag> zyga: and this will disable auto-updating with the regular 4x a day refreshes?
[20:34] <zyga> lutostag: but just among the set you already have on your disk
[20:34] <zyga> lutostag: honestly, I don't know :)
[20:34] <lutostag> ehhe
[20:34] <zyga> lutostag: chipaca is the person to ask
[20:34] <zyga> lutostag: I work on other areas and this particular detail is a bit obscure
[20:34] <lutostag> motivation... juju snap testing and switching between lots of versions when we want
[20:34] <zyga> lutostag: but the general idea is that as a devleoper you see all the revisions but users just see what you publish
[20:35] <mwhudson> sigh, where can i download ubuntu core images again?
[20:35] <zyga> mwhudson: snap download
[20:35] <mwhudson> zyga: that downloads a snap surely
[20:36] <mwhudson> i want something to give to kvm
[20:36] <lutostag> ehhe
[20:36] <zyga> mwhudson: ah, you want the big image?
[20:36] <zyga> hmmmm
[20:36] <mwhudson> yes
[20:36] <zyga> mmm
[20:36] <zyga> there must be a place :)
[20:36] <zyga> sorry, I don't recall where we publish those
[20:36] <zyga> ogra_: ^^
[20:36] <lutostag> http://people.canonical.com/~ogra/snappy/all-snaps/daily/current/
[20:36] <mwhudson> there is http://releases.ubuntu.com/ubuntu-core/16/ubuntu-core-16-amd64.img.xz but i bet that's old
[20:36] <mwhudson> lutostag: thanks
[20:36] <zyga> mwhudson: you can just use it and it will update itself but you surely know that
[20:37] <mwhudson> zyga: want to test what console-conf is doing in current releases so that won't help :)
[20:52] <linggao> Hi all, this my firt time in this channel. Is this a place to ask Ubuntu snap questions?
[20:52] <lutostag> linggao: indeed it is! welcome!
[20:54] <kyrofa> Hey there linggao
[20:55] <linggao> lutostag, kyrofa thanks!  We have developed a snap.  There is problem refreshing the snap on an arm device like a Rasberry Pi.
[20:55] <linggao> The process died on monting.
[20:55] <linggao> Mounting.
[20:55] <linggao> Here is the detail.
[20:56] <linggao> I 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:57] <linggao> The refresh works on an x86 machine though.
[20:59] <linggao> The kernel debug showed this "[336032.404195] Unable to handle kernel NULL pointer dereference at virtual address 00000008"
[20:59] <kyrofa> linggao, you're saying you tried to refresh a snap and when it was mounting you were thrown into a kernel debugging session?
[20:59] <linggao> yes, exactly.
[21:00] <kyrofa> linggao, would you mind logging a bug against snapd? https://bugs.launchpad.net/snapd/+filebug
[21:00] <kyrofa> linggao, please include whatever logs you have
[21:00] <kyrofa> I've never seen that before
[21:00] <linggao> Sure. I will.
[21:00] <kyrofa> linggao, are you running the official image? Or a custom kernel of some kind?
[21:01] <kyrofa> linggao, a better question is probably: what distro are you running on the rpi?
[21:02] <linggao> Let me find out.
[21:04] <linggao> We are using this image: ubuntu-16.04-preinstalled-server-armhf+raspi2.img.  It is on arm architecture.
[21:05] <linggao> We got it from here: https://wiki.ubuntu.com/ARM/RaspberryPi
[21:05] <linggao> Under Ubuntu 16.04 LTS 'classic'
[21:05] <kyrofa> linggao, okay good deal, please make sure you mention that on your bug
[21:06] <linggao> ok.
[21:08] <linggao> kyrofa, thanks a lot. I will file a bug report.
[21:17] <linggao> Ok, I have summitted the but report. https://bugs.launchpad.net/snapd/+bug/1664368
[21:17] <mup> Bug #1664368: snap refresh hangs on arm architecture <snapd:New> <https://launchpad.net/bugs/1664368>
[21:24] <kyrofa> Thank you linggao
[21:50] <icey> sergiusens: should I be able to use OpenGL inside of a classic snap?
[21:53] <stokachu> question, should snap list <snap> return 1 if no snaps are installed yet?
[21:54] <kyrofa> stokachu, that's not really an error condition...
[21:55] <stokachu> kyrofa, i just noticed it trying to do a if ! snap list conjure-up; then snap install conjure-up
[21:55] <stokachu> so ill just grep for that output then
[21:56] <kyrofa> stokachu, ah, snap list <snap> is a little different
[21:56] <kyrofa> stokachu, if I run `snap list foo` I get "error: no matching snap installed" and it exits non-zero
[21:56] <stokachu> if you run it before ever snap installing anything it says no snap installed
[21:56] <stokachu> exits 0
[21:57] <kyrofa> stokachu, that seems inconsistent
[21:57] <kyrofa> stokachu, I'd log a bug
[21:57] <stokachu> kyrofa, thanks, i thought it was a little weird
[21:57] <kyrofa> stokachu, I agree, let's see what the devs think
[21:58] <sergiusens> icey: hey, Brandon Schaeffer was working on that
[21:58] <icey> sergiusens: 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] <icey> if I do it in devmode, we both get an error about not being able to create a window, so the software itself can run
[21:59] <sergiusens> icey: use snapcraft master (or soon to be 2.27)
[21:59] <icey> but it seems like a display issue
[22:00] <mup> Bug #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:01] <icey> when do you think that 2.27 release will be cut sergiusens?
[22:05] <sergiusens> icey: 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 -updates
[22:07] <sergiusens> icey: do you have your anatine project anywhere btw?
[22:07] <icey> anatine?
[22:07] <sergiusens> icey: err, lol, wrong name
[22:07] <sergiusens> icey: alarcity
[22:07] <icey> nope :-P
[22:07] <icey> I'm about to try building it on master
[22:08] <icey> either way, I'll put a branch on GH
[22:08] <sergiusens> icey: can you? It might be easier if we have a snapcraft.yaml we can work out of.
[22:18] <icey> so sergiusens... now when I run the alacritty snap after building with master, it hangs
[22:20] <icey> adding snapcraft to alacritty: https://github.com/ChrisMacNaughton/alacritty
[22:21] <sergiusens> icey: 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] <sergiusens> will look later tonight or tomorrow morning
[22:22] <icey> sergiusens: building with the package that apt gave me on 16.10, it was working _for me_, building from master zeems to hang
[22:23] <icey> sergiusens: https://gist.github.com/ChrisMacNaughton/fb6748767443f24da14658e3a8122c2a
[22:24] <icey> it is showing me "runtime/cgo: pthread_create failed:" over and over
[22:49] <elopio> joc: sorry, I missed your ping. https://github.com/snapcore/snapcraft/pull/1139
[22:49] <mup> PR snapcraft#1139: plainbox-provider plugin: filter out sitecustomize <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1139>
[22:50] <mup> PR 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>
[23:34] <mup> Bug #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:39] <mup> PR 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>