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

fusion809Hi, I'm attempting to build (using snapcraft) the Atom package in the snappy-playpen repo of Ubuntu (https://github.com/ubuntu/snappy-playpen/tree/master/atom) on Arch Linux but I'm getting the error message: 'Loaded local plugin for nodejs00:39
fusion809Could not find a required package in 'build-packages': "The cache has00:39
fusion809no package named 'fakeroot'"'00:39
fusion809Guessing it's related to my OS. Do I have to adjust the dependencies in snapcraft.yaml to the corresponding ones on Arch Linux?00:39
fusion809I know I can download the finished snap package for Atom and without a need for building it manually, but I'm attempting to build this package to get some practise in building snaps00:42
qenghofusion809: fakeroot is indeed a Debian-specific package. That cross-distro package-name problem is still in progress, so I'm sad to say you might have to use a tweaked YAML to build on various systems. Sorry.00:53
fusion809I tweaked the package names from Ubuntu -> Arch package names and now I'm getting the error: 'Loaded local plugin for nodejs00:55
fusion809Could not find a required package in 'build-packages': "The cache has00:55
fusion809no package named 'npm'"'00:55
fusion809even though npm is a valid Arch package00:55
fusion809in the [community] repo00:55
fusion809it doesn't seem to be downloading packages to the cache00:56
fusion809I set up a Ubuntu 16.04 Docker container and tried out building it and it's working fine. So I think that snapcraft is having difficulty working with pacman to download dependencies01:22
tsimonq2fusion809: weird, I'll play with it when I have the time01:43
samerYhello! how does one include an older release of python as part of a snap that runs a simple python program?02:48
samerYwould I need to create a separate plugin (aside from python2 & python3)?02:49
fusion809I also have a query. How do I run sed and otherwise modify (or in other words, prepare for the build) source files before building from them in a snapcraft.yaml? The only way of doing this I have come up with is by adding lines like self.run('prepare.sh') to a plugin script in parts/plugin so that a shell script called 'prepare.sh' is run before th02:52
fusion809e build. In this prepare.sh file I would have my sed commands02:53
tsimonq2samerY: what release?03:04
tsimonq2fusion809: what are you trying to modify?03:05
=== ShibaInu is now known as Shibe
fusion809Well I'm working on the Atom package still and I want to edit its package.json file. There's so many different package versions listed there that it would be impractical for me to use a patch03:05
fusion809so it's more efficient to use sed03:06
tsimonq2fusion809: I honestly don't know how you would go about doing that, it would be wise to wait around for someone tomorrow to answer that question :)03:18
fusion809tsimonq2: Thanks, I may be able to solve this myself, but do you know if I can specify more than one source? If I can specify a shell script as a second source I may be able to get somewhere with this.03:37
=== chihchun_afk is now known as chihchun
=== JanC is now known as Guest35692
=== JanC_ is now known as JanC
jaygeethhello06:00
dholbachhey hey06:50
fusion809I just created my first snap package, atm the only way I can make it publicly available for download is using a file storage service / GitHub. So I chose to store it on GitHub https://github.com/fusion809/snapcraft/releases07:02
fusion809How else can I share it? Is it possible to contribute these packages to the official snappy repo?07:02
dholbachYes07:04
dholbachand it's actually quite easy: https://developer.ubuntu.com/en/snappy/build-apps/upload-your-snap/ :-)07:04
fusion809Ah. I already tried that method (sorry I should have said, I was just assuming the method I was using had to not be the official one, but now I see this guide I see I was using the official method rofl) and it gave the error https://gist.github.com/fusion809/c7f14595e29af20d3c422a3e4638029f07:06
fusion809It is a 165MB snap though. Maybe that's too large for it?07:07
dholbachNo it should be fine07:25
dholbachcan you go to https://myapps.developer.ubuntu.com/dev/account/?07:25
dholbachand set something in "Developer namespace"07:25
zygagood morning07:41
Doc_was hoping someone could stupify the explanation of snap by telling me if in broad terms a snap and an .exe on windows are teh same .... ish o.O07:42
fusion809dholbach: Just set something and now I'm getting a different error: https://gist.github.com/fusion809/0ae01640ea318dbff8c93834e4c1700607:44
dholbachDoc_, no, they're not - a snap would be more like a special .zip file07:45
zygaDoc_: snaps are compressed, read only filesystems that contain one or more application and services and run in a special environment that is not tightly coupled with the host distribution07:45
dholbachfusion809, we're getting closer07:45
dholbachfusion809, can you go to https://myapps.developer.ubuntu.com/dev/click-apps/register-name/?07:46
dholbachI think there's a bug open for the store/snapcraft to give you better instructions about this07:46
dholbachthe doc could be more explicit here too07:47
dholbachlet me file a bug for this07:47
dholbachI filed https://bugs.launchpad.net/snapcraft/+bug/1594273 if you want to subscribe to it07:48
ubottuLaunchpad bug 1594273 in Snapcraft "Docs: upload-your-snap article should point out myapps URLs to get stuff done" [Undecided,New]07:48
fusion809Is there any temporary workaround for this problem? Like is it possible to upload the snap in the web browser07:50
Doc_sweet thank you for the concise explanation dholbach07:50
dholbachfusion809, yes, you can upload it there too07:51
dholbachfusion809, just register the name of the app07:51
fusion809How? Which website do I go to in order to do this?07:52
fusion809https://uappexplorer.com/?07:52
fusion809https://uappexplorer.com/ ?07:52
fusion809dholbach if https://uappexplorer.com/ is the URL then I keep getting redirected to https://uappexplorer.com/me and this is what I see there http://i.imgur.com/g88rhUx.png. I'm working on Arch Linux (running snapcraft in a Docker container for 16.04 Ubuntu) and from what I can tell I can't get Caxton07:59
fusion809on Arch07:59
dholbachI have no idea what Caxton is07:59
dholbach^ can anyone else help?07:59
dholbachAh no..07:59
dholbachit's https://myapps.developer.ubuntu.com/dev/ - sorry08:00
dholbachmyapps, always myapps08:00
dholbachuappexplorer is a 3rd party site which just lists all the available click and snap apps08:00
fusion809Thanks08:00
zygafusion809: o/ -- it is great to see snaps originating from the arch community!08:01
fusion809Yeah. My current PC is a HP Envy 17 laptop with two HDDs, one has Arch installed and the other has Ubuntu 16.04 installed. Ubuntu was the first distro I ever used (and I started in mid 2012), but Arch is my favourite.08:06
fusion809Solus OS uses a similar build file to snapcraft's yaml file.08:07
Chipacamorning all08:11
hamiltinocan somone help me i installed snap hello but when i run the command hello it says command not found08:11
fusion809Aha, just published my first snap package https://myapps.developer.ubuntu.com/dev/click-apps/5248/08:11
zygawoot!08:12
Chipacahamiltino, can you pastebin the output of "snap list"?08:12
zygafusion809: tha'ts something that only you can see08:12
zygafusion809: what is the name of the snap?08:12
hamiltinoyes here08:13
hamiltinohttp://pastebin.com/iW6YBNQB08:13
fusion809atom-fusion is its name.08:13
Chipacahamiltino, what distro are you on?08:14
hamiltinodebian08:14
Chipacahamiltino, have you logged in since you installed snapd?08:14
hamiltinojessie but added sid repo and installed snapd08:14
Chipacahamiltino, otherwise /snap/bin might not be in your path08:14
Chipacahamiltino, if starting a new shell, or logging in again, doesn't end up with /snap/bin in your path, then we need to figure out why :-)08:15
zygahamiltino: which shell do you use?08:16
Chipacaah, good q08:16
hamiltinohey i just added /snap/bin to /etc/profile and then ran source /etc/profile. Its working now thanks08:18
Chipacahamiltino, the snapd package should have done that already08:18
Chipacahamiltino, via /etc/profile.d08:18
Chipacahamiltino, /etc/profile.d/apps-bin-path.sh in particular08:18
Chipacabah, that's what it is in ubuntu; in debain it might be /etc/profile.d/snapd ? not sure08:19
Chipacahamiltino, dpkg -L snapd | grep profile08:19
hamiltinoyeah i see apps-bin-path.sh08:20
hamiltinoit has PATH=$PATH:/snap/bin08:20
hamiltinowonder why it didn't work08:20
zygahamiltino: are you running bash or some other shell?08:25
hamiltinognome-terminal08:25
zygahamiltino: echo $SHELL08:25
hamiltinoyea running bash08:26
zygaok08:26
zygahmmmm08:26
zygacan you please source /etc/profile.d/apps-bin-path.sh (. /etc/profile.d/apps-bin-path.sh )08:26
zygaand then try to run any of the snaps you've installed08:27
hamiltinook08:27
hamiltinoahh that works thaks08:29
hamiltinothanks08:29
fusion809Is my atom-fusion package published now cause I think it is09:09
tsimonq2fusion809: you made an Atom snap? :)09:14
fusion809Yeah, but I had to use an inpractical method see I created a fork of the official Atom repo to https://github.com/fusion809/atom-1/ and applied my edits to it so I could create a source code tarball for it.09:16
fusion809It's impractical as everytime a new release comes out it'll be a bit of a nuisance to update.09:17
fusion809But hopefully someone will come up with a way of sedding the source09:17
zygafusion809: I don't think it is yet09:31
zygafusion809: I just did a lookup with 'snap find atom' and only found atom-cwayne09:31
fusion809Ah, thanks.09:31
zygafusion809: double check the myapps website09:32
zygafusion809: last time I looked there was a publish button at the bottom but afair the UI changed09:32
fusion809I published it, it says "Package status is Published".09:38
fusion809Been published for an hour or more.09:39
matteohi all09:39
matteohi zyga09:39
matteozyga: I have a problem with download from the store09:40
zygamatteo: what kind of proble09:42
matteohttp://pastebin.ubuntu.com/17586014/09:42
zygafusion809: did you publish it to the 16 series?09:43
zygafusion809: and if so, to which channel?09:43
zygafusion809: I cannot download it yet09:43
zygamatteo: hmm, not sure, maybe cdn issue09:43
zygamatteo: are you using a proxy?09:43
1JTAAFARKHi - I want to try delta updates. Is there a resource where I can read up on them?09:43
matteozyga: no proxies09:44
fusion809http://i.imgur.com/4DSzVP6.png09:45
fusion809That screenshot hopefully answers that question09:45
zygaOK09:46
pandaadb(managed to rename myself to something normal) - don't know if I missed it. I wanted to read up on delta updates for snappy packages if someone can point me to a resource :)09:46
zygapandaadb: today snaps are not using delta updates, given the snap architecture this is very natural and we have some experiments but this is not released yet09:47
matteozyga: how can we know if it's a CDN issue?09:47
matteoit happens every time09:47
zygamatteo: no idea really, I'll ask around09:48
pandaadbzyga, ah okay. I was reading an article mentioning that that feature exists. Next update then :)09:48
pandaadbthanks!09:48
pandaadbFor completeness, that's what I've been reading: http://www.omgubuntu.co.uk/2016/04/ubuntu-16-04-lts-snap-packages09:49
slvnHello, I have tried to add the interface "pulseaudio" to my snap, but it doesn't seem to play sound09:57
slvnI have message from app armor09:57
ogra_does it play if you install the snap with --devmode ?09:57
slvn\me is trying ...09:59
ogra_just to verify it works at all :)09:59
slvnyes10:00
slvnit's working with --devmode10:00
ogra_good, then it is definitely an interface problem ...10:00
slvnin fact there is two issues (for me), I need to add the stage-package "libpulse0" to have acces to the libpulse, then it's blocked by app armor ...10:01
slvnit tries to open/mknod the file /dev/shm/pulse-shm-1888657987 according to the log10:02
* ogra_ sees bug 159355810:03
ubottubug 1593558 in Snappy "sox not configured for pulseaudio when packaged in a snap" [Undecided,New] https://launchpad.net/bugs/159355810:03
zygapandaadb: I think there are some misconceptions about this, we never announced it yet10:05
pandaadbThat's interesting. I also saw that info on some answers on stackexchange10:05
pandaadbwell actually, they just link to the article so that makes sense10:06
zygapandaadb: since snaps are read only squashfs files that are always present on the device all you need is an xdelta to get get another revision10:07
zygapandaadb: we'll release it when everything is ready10:08
pandaadbSounds great :)10:08
zygaslvn: currently pulseaudio gives you the followng permission:10:09
zyga/{run,dev}/shm/pulse-shm-* rk,10:09
zygaso you cannot create buffers there10:09
zygasvij: can you please do a small tweak, edit /var/lib/snapd/apparmor/profiles/snap.$snap.$app10:09
zygasvij: and patch a line that looks like the one I pasted above10:10
zygasvij: to read10:10
zygasvij:  /{run,dev}/shm/pulse-shm-* rwk,10:10
zygaslvn: then run sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.$snap.$app10:10
svijzyga: ?10:11
zygasvij: sorry, I meant slvn10:11
svijah ok10:11
zygaslvn: ^^ then see if your app works10:11
slvnok I try!10:11
zygaslvn: and report a bug wiht this information please, we should be able to fix it quickly10:12
slvnzyga, I have less message from app armor, but it's still doesn't work:10:19
slvnI have this message10:19
slvnJun 20 12:17:47 jupiter kernel: [14994.957426] audit: type=1326 audit(1466417867.433:1620): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=12090 comm="PulseHotplug" exe="/snap/mahjong/x1/bin/Mahjong" sig=31 arch=c000003e syscall=141 compat=0 ip=0x7efe3a8ed4a7 code=0x010:20
slvnsyscall 141= setprioritysys_setpriority ?10:21
slvnalso an access to "/etc/timidity/freepats.cfg"10:21
slvnnot sure if it's pulse audio, or SDL2 which access to this ..10:22
zygaslvn: that's setpriority10:23
zygaslvn: that will only work after syscall argument filtering works :/10:23
zygaslvn: if you want to ship timidity in your snap you will have to change its configuration to look at some other place10:23
zygaslvn: timidity is the midi thing10:23
slvnI don't use midi, so probably no needed for me10:25
slvnso I open a bug for the pulse app armor configuration ?10:26
slvnit wont work, but it's needed ..10:27
matteozyga: I've added a line in snapcraft10:28
matteoprint ("Downloading from" + package['download_url'])10:28
matteobefore downloading the snap10:28
matteonow I'll try to download it to see if it's a CDN issue10:29
slvnzyga, https://bugs.launchpad.net/snapcraft/+bug/159431810:34
ubottuLaunchpad bug 1594318 in Snapcraft "pulseaudio interface is missing permissions" [Undecided,New]10:34
zygaslvn: thanks10:41
zygajdstrand: hey10:43
zygajdstrand: ^^ if you agree with the proposed policy change I will make it happen10:43
slvnzyga, also I need to add to my snapcraft.yaml the line "stage-packages: [libpulse0]" to have access to libpulse010:49
slvnwhereas I could be granted to have acces to the system lib10:49
slvnlibs are : /usr/lib/x86_64-linux-gnu/libpulse.so and /usr/lib/x86_64-linux-gnu/libpulse-simple.so ( I guess)10:56
centyHi all10:56
centyWhats a good resource to understand how snap works? - I would like to see what it would take to make it work on CentOS.10:57
zygaslvn: can you report that as a bug, I'll add this to the pulseaudio interface documentation10:58
zygacenty: hey10:58
zygacenty: I'd love to get snappy on centos10:58
zygacenty: I can help you out10:58
centyzyga: I'm targeting more like Cent5 not sure if that is even possible.10:59
centyThanks11:00
zygacenty: so snappy has two components, snap-confine that's written in C and snapd that's written in go11:00
zygacenty: I have a bunch of spec files for fedora, I think they can be a good starting point for centos and EL distros11:00
zygacenty: one thing I dind't figure out is how to proceed with snapd and go in that environment11:01
zygacenty: should I use something that provides golang-go, what does software like docker do/11:01
slvnhttps://bugs.launchpad.net/snapcraft/+bug/159432411:02
ubottuLaunchpad bug 1594324 in Snapcraft "pulseaudio interface needs access to pulse libraries" [Undecided,New]11:02
zygaslvn: thanks11:02
matteozyga: while : ; do [ "$(curl -sL https://public.apps.ubuntu.com/anon/download-snap/b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_123.snap |sha512sum)" = '44752755393319233917bfbd6c7802c3c3810ddb3f94091acf16f8ca0c9afaf6c6746eb33f3911d1aaaad52d2045bf9ba6af8e25b49cf5bc3d413d8d13046b45  -' ] && echo correct || echo fail; done11:03
matteoI have this running for a while11:03
matteonever had a fail until now in about 30 downloads11:04
centyzyga: I guess go would need a runtime installed, but what kind of kernel support (if any) would snap need (stuff like cgroups and things?)11:04
seb128mvo, hey, did you see my message the other day about i386 snaps still not working?11:04
zygacenty: snappy can run in two modes, in devmode, that is easy to get up and running and in non-devmode11:05
zygacenty: for devmode pretty much nothing special is required11:05
zygacenty: for non-devmode you need seccomp and apparmor11:05
zygacenty: snappy is modular and it is possible to add a selinux backend but nobody started this work yet11:06
zygacenty: I would suggest starting with devmode and then looking at how to either enable apparmor or what needs to happen in snapd to enable selinux11:06
centyzyga: I guess I'm looking for some documentation on how it accomplishes sandboxing to see even if that is possible on my target platform11:07
zygacenty: it is but full selinux support will not happen overnight11:07
zygacenty: AFAIR centos ships with selinux and apparmor is not available along with selinux11:08
zygacenty: without apparmor you can still enable seccomp but some part of the confinement will not work11:08
zygacenty: all of the confinement bits are defined in snapd source code, in the interfaces/ directory11:08
zygacenty: look at interfaces/apparmor/template.go and at particular interfaces/builtin/*.go files11:08
zygacenty: each interface defines confinement and other security details for a given backend11:09
zygacenty: there are numerous backends, most interfaces use seccomp and apparmor today11:09
zygacenty: note that none of this affects actual snaps, if you have a snap that declares it needs networking, it can be made to work just by patching snapd11:09
centyzyga: looks like I'll just have to read through the code and figure this out. I'm more on the administration side and not very in to c/go coding. I was mainly interested in the ability to package newer apps using snapd and deploy to hundreds of existing cent5 system.11:10
zygacenty: I can work with you on this11:10
zygacenty: but I'm not very used to centos, if you can help me with packaging11:10
zygacenty: I can help you out with the security bits11:10
zygacenty: does centos5 have docker?11:11
zygacenty: and if so, are those spec files for docker available anywhere to read?11:11
centyzyga: what kind of help you need with packaging? Building RPMs?11:11
zygacenty: mostly figuring out how to support go on centos/rhel11:11
zygacenty: the snap-confine .spec for feodora is here;11:11
zygahttps://github.com/zyga/snapcore-fedora/blob/master/snap-confine.spec11:11
zygacenty: the same repository has a few other specs files that were prerequisties for snapd and the snapd.spec itself11:12
zygacenty: I've also created where I'd like to put spec files for centos https://github.com/zyga/snapcore-centos11:12
zygacenty: I also have a copr repo that works for fedora 23 and 24 at https://copr.fedorainfracloud.org/coprs/zyga/snapcore/packages/11:13
centyzyga: apparently go isn't supported on Cent5 http://dave.cheney.net/2013/06/18/how-to-install-go-1-1-on-centos-511:13
zygacenty: since snapd is just one binary, it would be possible to ship a copy built on fedora for centos11:14
zygacenty: does centos5 have systemd?11:14
zygacenty: reading the article I see that it might be difficult to support because of older userspace and kernel11:15
centyzyga: apparently lost my connection - sorry11:19
zygano worries, this is irc ;)11:19
ogra_zyga, does the home interface not auto-connect when sideloading a snap ?11:24
zygaogra_: it should, are you on yakkety by any chance, AFAIR we didn't release anything there yet because of unrelated regression11:25
ogra_zyga, i got a gitter snap that works fine in devmode ... but dropping it i get http://paste.ubuntu.com/17588690/11:25
ogra_and no, i'm on xenial11:25
zygaogra_: dconf, hmmm, looks like gsettings interface to me11:25
zygaogra_: if you remove the snap entirey and reinstall it, does it auto-connect11:26
ogra_oh, wiat, snap interfaces shows all gitter connections11:26
ogra_seems i'm missing some interface11:27
zygahmm?11:27
ogra_well, home, x11 and network and network-bind are apparently not enough :)11:28
* ogra_ rebuilds with more added11:28
ogra_hmm, still not starting ... but the set of errors changed11:31
willcookeHi gang, the snap I'm working on hosts some of its data in Github which then needs to be cloned and copied in to (I think) $SNAP_USER_DIR.  Can I do this with existing plugins or will it need a custom one?11:42
* ogra_ would use a launch-wrapper for that 11:43
zygawillcooke: you can also copy it to $SNAP_DATA btw11:44
willcookezyga, $SNAP_DATA is not writable by the user is it?  The app updates its data from github on some cadence so would need to be writable11:45
zygahmm, AFAIR snaps can write there11:45
ogra_servers ... but can the UID ?11:47
willcookeah, yeah, SNAP_DATA should be writable, and is a better location11:53
willcookeso question remains; whats the correct way to get files from Github -> $SNAP_DATA.  Really I only want to do this once at build time, then the app takes care of keeping it up to day11:54
willcooke*date11:54
zygahmmm11:56
zygawillcooke: that's not sensible11:56
zygawillcooke: that's a snapcraft side (building)11:56
zygawillcooke: do you want the app to download stuff at runtime?11:56
willcookeindeed it is a snapcraft thing.  The app does download things during its lifecycle, that's just how it works.11:57
didrockswhy wouldn't the app proceed the first download?11:57
didrocks(when it starts)11:57
zygawillcooke: so snapcraft, not sure, write a makefile, write a custom plugin, in either case that's not $SNAP_DATA becausethat only exists at runtime11:57
willcookezyga, ahh!  I see,  I'll have a play.  thanks zyga11:58
didrockswillcooke: see my question about first download on first service start11:59
mvoseb128: still not working at all? what example snap? or not working for network? or network-bind?12:15
seb128mvo, not working for snaps not using the network plug since that's where you defined socketcall12:21
seb128or maybe I should make my snap use that12:22
mvoseb128: so this also affect snaps that do not use the network  :/ ?12:32
ogra_well, loopback network is also network :)12:32
seb128mvo, let me redo a round of testing, but I think I tried to start bash on friday12:32
seb128which wasn't working12:33
seb128but maybe that requires the network?12:33
=== Tristit1a is now known as Tristitia
mvoseb128: heh, that would be odd :)12:38
mvoseb128: its more a jdstrand or tyhicks question really, I'm not sure I fully grasp the implications of opening this syscall up12:39
seb128mvo, yeah, ideally somebody needs to fix bug #157606612:41
ubottubug 1576066 in libseccomp (Ubuntu) "32bit glibc calls old socketcall() syscall, causing seccomp problems" [High,Confirmed] https://launchpad.net/bugs/157606612:41
Perry____hi,there, can you guys know how to install snappy to x86 machine? from the official site, only try through USB.12:45
croephasnapcraft.io not loading12:46
croepha:(12:46
didrockscroepha: it does here :) (but layout broken)12:46
didrocksPerry____: if you have Ubuntu desktop 16.04 LTS, it's already installed12:47
didrocksPerry____: you can have a look at http://snapcraft.io/ for other distros (mind the layout, temporarly broken for now)12:47
croephawhat is snapcraft.io resolving to for you guys? for me its 162.213.33.140, 162.213.33.14212:48
Perry____didrocks do you means snappy tool? or snappy os?12:50
croephanevermind, now mine is loading12:50
didrocksPerry____: snapd12:50
didrockscroepha: ah, was transient12:50
didrocksPerry____: which is to install/use snappy technology12:50
croephadidrocks, yep, YAY! now I can snap all the things12:51
didrockssweeet! :)12:51
Perry____ubuntu also have a IoT OS snappy12:51
didrocksPerry____: there is no release 16 images available yet though, you can use a server image and install snapd on it12:52
didrocksto experiment12:52
ogra_i think snapd is actually seeded on server images12:53
ogra_so you dont need to separately install it12:53
Perry____didrocks ok, thank you12:53
didrocksyw ;)12:53
didrocksogra_: oh, you're right12:53
ogra_:)12:53
Perry____i just wanna try the IoT :)12:54
carifnow that several other distros might adopt snap as a packaging format, does that mean they will run their own app stores?13:10
ogra_perhaps13:10
croephaThere are going to be multiple stores, even if the distros don't want their own13:12
carifI've always been somewhat hazy on this, does a store mean a different snap repository? or some "segment" of the official canonical one? the wisdom when last I looked was that you "sideloaded" your own snaps otherwise you installed from the one official place13:16
ogra_thats still the case ... until someone implements another store ...13:18
ogra_the APi is open and i would expect that other distros prefer to have their own, so it is likely you see more stores at some point13:18
zygajoc_: hey13:20
zygajoc_: do you plean to make any changes to https://github.com/snapcore/snapd/pull/1301/files13:20
joc_zyga: no plans to, unless you have anything that needs to change13:20
zygajoc_: I left a few comments that I don't think you've addressed13:25
zygaah, wait13:26
zygastale tab, thanks13:26
* zyga reads for real :)13:26
joc_hehe, phew :)13:27
pstolowskizyga, hey13:40
carifogra_, can a company run its own snap repo internally? does snappy have something like /etc/apt/sources.list.d/?13:41
zygajoc: joc_ https://github.com/snapcore/snapd/pull/1301/files#r6769085013:42
zygapstolowski: hey13:42
zygapstolowski: how can I help you? :)13:42
didrockskyrofa: FYI, I just tried integration_tests/snaps/simple-make-filesets, which is using organize:, snap:13:42
didrockskyrofa: typed snapcraft stage13:43
didrockschanged stage/new/dir2/file1 and append something13:43
didrocksthen "snapcraft"13:43
didrocksprime/new/dir2/file1 contains my changes13:43
kyrofadidrocks, indeed, files are pulled from stage13:43
didrocksso it really seems that prime is pulling files from stage13:43
didrockswasn't the contrary you were telling with seb128 the other day?13:43
kyrofadidrocks, but fileSETS (i.e. WHAT it pulls) is determined from each part13:43
pstolowskizyga, thanks for your comments to scopes as snapps doc! can you help me understand point #1 a little better?13:43
kyrofadidrocks, no, but I perhaps wasn't explaining it well13:44
zygapstolowski: sure13:44
didrockskyrofa: you mean, before organize, the reference?13:44
didrocksah13:44
didrocksso, if in snap: I'm using fileset13:44
pstolowskizyga, actually, HO would be best. do you have a moment now?13:44
didrocksthat would be from install/ ?13:44
zygayep, lets do it13:44
kyrofadidrocks, so: a file travels from parts/foo/install -> stage -> prime13:45
kyrofadidrocks, however, the WAY it travels is not "copy from parts/foo/install -> stage -> prime"13:45
kyrofadidrocks, instead snapcraft keeps track of all files provided by part foo, and moves them from parts/foo/install -> stage, and then moves them from stage -> prime13:46
ogra_carif, no, not atm13:46
kyrofadidrocks, that makes it possible to UNstage or UNprime something with snapcraft clean -s stage|prime13:46
kyrofadidrocks, but it means that if you move files around in stage, snapcraft won't be able to find the collection of files it expects13:46
pstolowskizyga, https://hangouts.google.com/call/mvw6y5n4wnf6titz4hjodeyldee13:46
kyrofaBecause it pulls the files themselves from stage, but uses what the part provided in parts/foo/install to determine what it's supposed to migrate from stage -> prime13:47
didrockskyrofa: ok, I see what you mean, but if we only use the snapcraft feature, with organize and such, those moves/renamed are tracked as expected13:47
kyrofadidrocks, indeed13:47
didrocksbut yeah, messing directly with the stage/ dir won't reflect the change if files are added or move/renamed13:47
didrocksthat makes sense :)13:48
kyrofaYou got it13:48
didrocksthanks for clearing that up kyrofa!13:48
kyrofadidrocks, hey any time. I still think at the very least the `snap` keyword should by default inherit the `stage` keyword13:48
didrocksI wonder if we have cases with new files created into stage/ that we want to ship13:48
didrocksas per another build13:48
didrocksyeah13:48
didrockswe need to find a real use case for this though13:49
didrockskyrofa: however, so, if snap: is refering to a filesets13:49
kyrofadidrocks, well that means whatever is creating those files is totally bypassing the snapcraft lifecycle of putting things in parts/foo/install first13:49
didrocksand you renamed those via organize13:49
didrocksthat's going to be difficult if you copy directly from stage/13:49
didrockslike, what should it refer to?13:49
didrockskyrofa: correct13:50
kyrofadidrocks, first, a warning: you've probably used organize and filesets more than I have13:50
croephacarif: by looking at the code, it looks like you can specify a store via environmental variables (https://github.com/snapcore/snapd/blob/edc1296463ab8e12c464f7c436d390bbeb5dc117/store/store.go) but I cant find any documentation, so its off the beaten path13:51
kyrofadidrocks, but I believe organize happens first, then the stage or snap keywords are applied, which means they should refer to the organized named13:51
kyrofanames*13:51
didrockskyrofa: indeed, I just mean: if we have snap referring to stage/ directory, and you set snap: - $fileset1, then this filesets1 (source) doesn't exist13:53
didrocksonly the dest13:53
kyrofadidrocks, heh, sorry, I need more coffee-- you lost me :P13:54
kyrofadidrocks, man this is complicated13:54
kyrofadidrocks, "snap referring to stage/ directory" isn't making sense to me13:54
didrockskyrofa: I need to head out13:55
didrockswill be back in 30s13:55
didrocksI'll take an example :)13:55
didrocksget your coffee meanwhile!13:55
kyrofadidrocks, yeah good idea!13:55
didrocks;)13:55
kyrofadidrocks, oh I am ;)13:55
didrocks:p13:55
mhall119no sergio today?13:58
kyrofamhall119, I believe he's on holiday until tomorrow13:59
kyrofamhall119, can I help you with something? Or are you still stuck on pkg-config stuff?14:00
mhall119kyrofa: still the pkg-config stuff, can't figure it out for the life of me, but I'm pretty sure it has something to do with the PKG_CONFIG* env variables that snapcraft is using14:00
kyrofamhall119, yeah I suspect it's something related as well14:01
mhall119I can *almost* get it to find the right packages if I manually muck with those14:01
kyrofaHaha, it fails less badly?14:01
mhall119well, it fails differently, and I *think* further down the road14:03
mhall119it fails on trying to find different dependencies anyway14:03
matteowhat differs go from gccgo?14:04
hguantkyrofa, some one said yesterday that you were the person to ask about building custom plugins/where to find docs on such a thing14:16
kyrofahguant, hey there! I am indeed14:16
kyrofahguant, this should get you started: https://github.com/ubuntu-core/snapcraft/blob/master/docs/plugins.md14:16
kyrofahguant, I also have many examples for you to check out if you're interested, though you should be able to also refer to the plugins included within snapcraft itself14:17
hguantkyrofa nifty! Thanks very much14:17
kyrofahguant, which are here: https://github.com/ubuntu-core/snapcraft/tree/master/snapcraft/plugins14:17
kyrofahguant, no problem, please let me know if you have any questions14:17
hguantkyrofa will do, thanks again. be back after I read through all this14:18
samerYkyrofa - thanks also!14:18
kyrofahguant, samerY any time14:19
kgunnzyga: hey, made significant changes to my PR14:30
kgunnhttps://github.com/snapcore/snapd/pull/129914:30
kgunnmight be ready for another pass14:30
didrockskgunn: ohhhh, organize is actually applied in parts/part/install14:30
didrockssorry14:30
didrockskyrofa: ^14:31
kgunn:)14:31
didrockskyrofa: so, it would work, even if snap: only refers to stage/14:31
kyrofadidrocks, ah, that makes sense14:31
kyrofadidrocks, indeed14:31
didrocksyeah, I don't know why it doesn't then, it's counter-intuitive, and I don't see good reason for not doing it that way14:31
zygakgunn: I'll review them today, thank you for iterating on it14:35
kgunnzyga: thank you for your patience !14:35
croephabtw, I was having some wierd issues that I think were related to running snapcraft in a network mounted dir, I moved it out, and now im getting much more sensible errors :) I filed a bug (https://bugs.launchpad.net/snapcraft/+bug/1594374) with some ideas14:36
ubottuLaunchpad bug 1594374 in Snapcraft "Use a user directory for temporary files" [Undecided,New]14:36
=== chihchun is now known as chihchun_afk
jdstrandseb128, mvo: we'll fix 1576066 but it is prioritzed after other work since people should be unblocked now that we added socketcall15:08
seb128jdstrand, we added it only to the network interface though15:09
seb128jdstrand, should we add network to the plugs in i386 even when not needed as a workaround?15:09
jdstrandzyga: re bug #1594318, that was the small pulseaudio change I mentioend over the weekend15:10
ubottubug 1594318 in Snappy "pulseaudio interface is missing permissions" [Undecided,In progress] https://launchpad.net/bugs/159431815:10
jdstrandseb128: I would prefer to add it to the default template as a work around by why is it so onerous to add "plugs: [ network ]"? are you sure it doesn't actually need network?15:12
jdstrandif it actually needs it, then adding to default policy with a huge comment makes more sense15:12
seb128jdstrand, I'm rebuilding with a modified wrapper to test, but I think it was hitting the bad syscall even when trying to start bash15:15
seb128jdstrand, it's not onerous to add network, just a non obvious workaround to make your snap work15:15
jdstrandsnappy-debug would tell you to do so. if the app actually doesn't need network except for socketcall, then yes, it should be in template.go15:17
elopioogra_: mvo: is this OK for you? https://github.com/ubuntu-core/snappy-jenkins/pull/179/files15:18
jdstrandI'm actually off today, so feel free to comment in backscroll and I'll get back to you15:18
seb128jdstrand, k, no worry, I hope you had a nice travel back, enjoy your day off!15:18
mvoelopio: yes, this actually makes more sense15:18
seb128jdstrand, you are back to work tomorrow?15:18
mvoelopio: sorry that I did not propose/catch this earlier15:18
jdstrandthanks!15:18
ogra_elopio, yeah, that looks a lot better15:18
jdstrandyes back tomorrow15:18
seb128jdstrand, I want to talk to you about getting dconf to work if we can15:18
seb128great15:18
seb128talk to you tomorrow then :-)15:19
elopiomvo: not your fault, at all. /me updates the live job.15:19
elopiobeowulf: do you have some time for me today? :)15:20
beowulfelopio: what's up? :)15:20
beowulfelopio: have you seen https://github.com/snapcore/snapweb/pull/1715:21
elopiobeowulf: you are too fast for me!15:21
elopiothanks!!!15:21
beowulfelopio: np15:21
beowulfelopio: check it does what you want first though :)15:21
seb128jdstrand, mvo, yeah, verified, /bin/bash fails to start on i386 without the network plug, hiting the syscall error, adding socketcall fixes it15:21
jdstrandseb128: if there isn'15:21
elopioI will try, but looks way better than mine already.15:21
jdstrandt a bug, file it, add snap-interface tag, mark it Triaged and assign to me please15:22
seb128jdstrand, k15:22
jdstrandI'll have a PR tomorrow then15:22
seb128and on that I let you to your day off work ;-)15:22
seb128thanks15:23
pdurbinhttps://www.happyassassin.net/2016/06/16/on-snappy-and-flatpak-business-as-usual-in-the-canonical-propaganda-department/ is interesting. It was linked from http://irclog.perlgeek.de/crimsonfu/2016-06-2015:23
elopioogra_: There's now new package in there: https://launchpad.net/~snappy-dev/+archive/ubuntu/edge15:23
ogra_elopio, perfect, and all of a sudden it is newer :)15:28
matteowhere the snap t15:34
matteodownload is actually done?15:35
croephayou guys are really trying to sell the "package for any Linux platform" feature, but I think the real boon is transactional updates and delta transfers...  The benefit for snappy that I see, is that I can (hopefully) be able to push apps to devices without having to worry about issues related heterogeneous states of those devices15:49
ogra_there are many strong points about snappy ... indeed transactional updates fall into that catregory too15:51
ogra_like rollbacks do15:52
croephayea15:52
joc_zyga: hey, i made a change for your last comment and pushed, the checks appear to have failed but with some error related to access to go repositories15:53
zygajoc_: hmm15:55
zygajoc_: looking15:55
samerYhello, how does one include an older release of python to run a simple python program?16:00
samerYI've been able to unpack release with copy plugin16:01
croephasamerY: what version of python?16:02
samerYsay 2.6.916:02
zygasamerY: I guess you could look at "oldsnakes" ppa16:02
zygasamerY: and perhaps somehow use that16:02
zygasamerY: ideally someone would make a part for each version of python16:02
zygasamerY: that is built straight from upstream tarballs16:02
croephacan you specify a PPA for a stage-packages?16:03
zygacroepha: I don't know but I know there's a way to use your host PPA settings somehow16:05
zygacroepha: ask kyrofa; maybe he knows16:05
croephakk, thanks16:05
croephaill dig some more16:05
kyrofazyga, croepha indeed, snapcraft will by default use your host settings16:05
kyrofasamerY, did you download debs then and copy them in via the copy plugin?16:06
samerYkyrofa: yes, I've been able to do that16:07
kyrofasamerY, does it not work?16:08
samerYoh wait, I feel like I'm overcomplicating this.. let me see16:08
samerYnever mind..16:10
samerYI guess my next problem is how would I build Python2.6.916:11
samerYas on host computer, I'd have to run "./configure" and then run make to produce interpreter16:12
kyrofasamerY, wait... why are you building it? I thought you got it from debs?16:12
samerYI'm not sure.. I assume to run a python file, I need to have python executable produced by building it16:15
zygacwayne, joc: https://github.com/snapcore/snapd/pull/1301 merged :)16:15
samerYall I have are the 2.6.9 files from tarball?16:15
cwaynezyga <316:16
cwaynejoc_: ^16:16
zygaI'm sorry it took so long16:17
zygalet's do another :)16:17
cwaynezyga: no need to apologize, thanks for getting it done (and sorry for bugging you so much :P)16:19
cwaynezyga: joc's workin' on the next one already :)16:19
joc_thanks zyga16:19
matteozyga: is possible to build snap with gccgo?16:19
ayanit is possible for a program to properly call seccomp() from within a snap?16:20
Chipacajdstrand, do you know the answer to ayan's question without going and testing it?16:28
Chipacajdstrand, he's trying to package the tor browser i think? (not 100% sure)16:28
croephabeing able to run a shell in the same context of snapcraft stage would be useful for debugging18:02
mhall119hi all, is there a generic gtk-launch script like we have for qt?18:04
BeornmarIs there any way to get snapd on a Debian system other than downloading the source and building it?18:12
josephtBeornmar: there's a version in universe for sid: https://packages.debian.org/sid/snapd18:13
Beornmarjosepht: Thanks!18:14
josephtBeornmar: np18:14
croephais snappy-remote still a thing?19:05
croephaso, is current snapcraft incompatible wth 15.04 snappy ?19:24
svijcroepha: yes19:28
croephaok, thanks, that explains some things :)19:28
croephaif I wanted an updated (16) version of ubuntu core to test my snapcraft images, would I want to use ubuntu-device-flash with these files: http://cdimage.ubuntu.com/ubuntu-core/xenial/daily-preinstalled/20160620/ ?19:32
ehbellowhere is `snappy service [start|restart|stop|etc]` command in last snapd???19:56
mhall119kyrofa: do you know how I can get a Gtk snap to send it's window menu over dbus to unity7?20:03
kyrofamhall119, e.g. for the global menu?20:03
Trevinhomhall119: indeed it can20:03
Trevinhomhall119: just ensure you've proper libs in it and unity-gtk-menu lib installed20:03
Trevinhomhall119: check the hello-unity/calculator snaps20:04
mhall119Trevinho: ah, ok, and if I include that in the snap, will it be smart enough not to use is when running in non-unity DEs?20:04
Trevinhomhall119: sure20:04
Trevinhomhall119: it's up to u-p-s to enable or disable that20:05
mhall119ok20:06
tedgjdstrand: I'm getting a weird error that I think is coming from snap-confine20:12
tedgjdstrand: It is "failed to create user data directory. errmsg: Permission denied"20:12
tedgjdstrand: Could it be because of my encrypted home directory?20:13
tedgjdstrand: Jun 20 15:11:29 roku kernel: [195193.397698] audit: type=1400 audit(1466453489.213:95): apparmor="DENIED" operation="open" profile="/usr/bin/ubuntu-core-launcher" name="/home/.ecryptfs/ted/.Private/" pid=28973 comm="ubuntu-core-lau" requested_mask="r" denied_mask="r" fsuid=1001 ouid=100120:13
tyhickstedg: see bug #159269620:15
ubottubug 1592696 in ubuntu-core-launcher (Ubuntu) "snaps dont work with encrypted home: failed to create user data directory. errmsg: Permission denied" [Undecided,Fix released] https://launchpad.net/bugs/159269620:15
tyhickstedg: a workaround is listed in the comments20:15
* tedg is reading20:16
swartzrSnapcraft seems to be manipulating my shebang line at the start of a script, hardcoding my home directory into it. Am I missing something or is this not supposed to be happening?20:18
swartzrIs preventing my snap from running on other systems20:19
tedgtyhicks: Cool, that works for me. Thanks!20:20
tyhicksnp20:21
croephaubuntu-device-flash says it cant make an image for 16... any workarounds?20:31
ehbellocroepha: https://lists.ubuntu.com/archives/snappy-devel/2016-January/001400.html21:13
croephaehbello: Thanks very much!21:25
ehbellocroepha: np ;)21:26
johnselhello everyone21:51
johnseli want to ship a device with an openvpn client + configuration21:53
johnselwhat would be the high level tasks to integrate it?21:53
johnselI see there's a gadget snap that supposedly can do system configuration21:54
johnselnot sure how i should approach it though21:54
example6Hi all -- I was wondering what would be the best way to connect to a wireless network from the command line, since /etc/network/interfaces seems to be on a readonly mount. I've read up a bit on wpa_supplicant, but am not sure where the best place to keep the file would be22:13
zygaexample6: /etc/network/interfaces.d22:29
zygaexample6: put a file in there22:29
zygaexample6: it looks like typical ifupdown file22:29
ehbelloI have a question... can we put a source block to build boot files inside a gadget snap package?22:38
wililupyQuestion--Has anyone seen this before? When I type my command for my snap, I get the proper command line output, but the command needs to run as sudo, so when I try that, it says it can't find the command. Any ideas?23:53
kirklandwhere can I find a beta image of Ubuntu Core 16, for 64-bit intel?23:56
kirklandto download23:56
kirklandbasically, I want the latest test image of Ubuntu 16 equivalent, of http://people.canonical.com/~platform/snappy/ubuntu-core-15.04-intel-nuc.img.xz23:56
wililupykirkland: you look in http://people.canonical.com/~mvo/all-snaps?23:56
wililupykirkland: or you can build it with ubuntu-device-flash from the same location23:57

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