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

elopiokallisti5: hello. Our core is 16.04.01:38
elopioyou can install xenial, and run sudo snap install hello-world.01:38
sergiusenselopio can you `gbp buildpackage` master?03:09
=== chihchun_afk is now known as chihchun
sethjshoot, accidentally ctrl+c'd snap remove, now it won't remove the snap because "there are changes in progress".04:31
sethjis there a lockfile somewhere?04:31
sethjoh huh, seems to have fixed itself. Must have still been doing stuff. Nice.04:37
zygao/05:54
zygablackout24: hey05:54
didrockselopio: hey! do you need anything from me?06:04
elopiodidrocks: we were trying to land your branch yesterday, but Sergio already went to bed.06:05
elopiothere is one error on simple fix in your branch, that's updating the debian/tests. The big problem is that it throws a bad system call.06:06
didrockselopio: yeah, I have no idea on this06:06
elopiodidrocks: and anyway, we'll have to skip them until IS opens the proxy.06:06
didrockselopio: ok, let me repull on my PR if Sergio already went to bed and I can try having a look, just in case I can find what bad system calls it is (running in autopkgtests)06:06
didrocksmaking sense?06:07
elopiodidrocks: sure. If you can fix it before he wakes up, awesome. Otherwise we can land it to get started and fix it in the following version.06:07
didrockselopio: yeah06:07
didrockssounds work, echo should be the built-in version in shell06:07
didrocksweird*06:08
elopiodidrocks: building the package in a lxc I'm getting this error: https://paste.ubuntu.com/16941250/06:18
elopiodoesn't seem critical, because the build works in the ppa.06:18
didrockselopio: hum, will look as well, I wonder if others path are screwed as well when building inside the container06:20
didrockselopio: you should probably go to bed btw :)06:21
elopiodidrocks: yes, I'm done now. I just build your branch, installed the deb and verified that all looks good. This will be released for sure when Sergio gets up.06:29
elopiothanks, and see you later.06:29
didrockselopio: thanks to you! I'm working on this test meanwhile06:30
* zyga -> off07:22
davidcalleMorning o/07:48
didrockshey davidcalle07:50
dholbachdavidcalle, nice work on the summary!07:53
davidcalleHopefully, next week's will be much bigger thanks to the playpen :)07:59
dholbach:-)08:05
dholbachdavidcalle, dpm, mhall119, popey: I set up https://gitter.im/ubuntu/snappy-playpen (as an experiment)08:05
davidcalledholbach: nice! Waiting for you in there :P08:07
dpmthanks dholbach!08:08
=== chihchun is now known as chihchun_afk
zyga-phoneo/08:33
zyga-phoneIrc from ubuntu phone :-)08:33
ysionneautyhicks: hi! Will you be working on the issue some more or are you stuck?08:36
=== chihchun_afk is now known as chihchun
=== FourDollars_ is now known as FourDollars
=== Trevinho_ is now known as Trevinho
dholbachplease share:09:04
dholbachhttps://plus.google.com/u/0/b/107265043789873157543/107265043789873157543/posts/PhXG5s7nBEQ09:04
dholbachhttps://www.facebook.com/ubuntudev/posts/113335071338321509:04
dholbachhttps://twitter.com/ubuntudev/status/73865811310089420809:06
ePierredholbach, cool! Shared on G+09:25
dholbach<309:26
didrocksdholbach: tuesday, midnight? :)09:44
dholbachdidrocks, it asked me for a time09:46
dholbachthe best I could do was 0:00 → 23:5909:46
* didrocks sends a pager to dholbach :)09:47
didrocks0:00 sharp! :)09:47
davidcalle!remindme telegram dholbach at 0:00 on tuesday10:10
ubottudavidcalle: I am only a bot, please don't think I'm intelligent :)10:10
* didrocks wants a dholbachnugger snap10:10
didrocksnagger*10:11
=== Saviq_ is now known as Saviq
dholbachdidrocks, dholbachhugger you wanted to say, right?10:27
didrocksdholbach: oh right, right, right… :)10:27
=== pmp is now known as Guest76230
dpmogra_, zyga, sergiusens, have you or would you happen to know someone who has tried snapping Java apps for the desktop? A contributor submitted a Java example for the snappy-playpen repo, and I'm wondering if we could give them a hand with getting the snap to start11:05
dpmhttps://github.com/ubuntu/snappy-playpen/pull/22/files11:06
* ogra_ has never packaged any java11:23
ogra_i think lool has ... but quite a while ago (pre snapcraft iirc)11:24
dpmok, thanks ogra_, I'll ask him. Or jamiebennett, do you know if someone on the team has looked at snapping java apps and could give a hand to a community member? https://github.com/ubuntu/snappy-playpen/pull/22/files11:41
sgclarkhi all. I have a bunch of frameworks ( libraries ) that I would like to snap and use those snaps inside snaps rathers than rebuilding them a billion times. Is this possible? if so please point me to the docs, I cannot find them.11:42
ogra_i'm not sure that is possible yet (it is definitely planned) ... zyga would know if the necessary interfaces exist already11:44
sergiusenssgclark it will be possible, not just yet. As ogra_ mentions, zyga has the timelines for that11:51
sgclarkah ok.11:51
sgclarkI look forward to it then lol11:52
sergiusenssgclark as do we all :)11:56
mhall119sgclark: are you talking about KDE frameworks?12:11
sgclarkmhall119: yep12:11
mhall119if so, I think the content-sharing interface will allow us to share those libs with other snaps12:11
mhall119but, as they said above, it's not available yet12:11
sgclarkok cool12:12
mhall119sgclark: for now we can just bundle them in the apps, like I did for Krita12:12
sgclarkI am breaking them out12:12
sgclarknot using archive for anything kde12:13
mhall119sgclark: take a look at my final snapcraft.yaml for Krita: https://quickgit.kde.org/?p=krita.git&a=blob&h=821060a782043dd134c6975182830d29dea8e87c&hb=b11ca95c668a99e4c07c39641a0e85d5f24c3dee&f=packaging%2Flinux%2Fsnap%2Fsnapcraft.yaml12:13
mhall119I split kdeframeworks and qt into separate parts12:13
mhall119the just use archive packages now, but you could replaced the nil plugin with cmake or whatever KDE frameworks use, and point them to a git source12:14
mhall119I actually have that on my list of things to try with Krita to get the newest Qt12:14
sgclarkok12:14
sgclarkyeah I tried to break out qt but it failed, needs new plugin but I could not get it sorted yet12:15
mhall119Qt doesn't use cmake?12:15
sgclarknope12:15
mhall119oh, right, it's qmake isn't it12:16
sgclarkit uses it's own form of configure and autotools plugin barfed12:16
sgclarkit needs a new plugin basically.12:16
mhall119ok12:16
sgclarkI will hack at it more.12:16
mhall119let me know if I can help, but it sounds like you know more about this than I do12:17
sgclarkty12:17
mhall119sgclark: is there a specific app your working on currently?12:18
sgclarkkdevelop12:18
mhall119oh, that's a big one12:18
sgclarkaye12:18
sgclarkgot it running and all, but some usage kinks I am working out.12:19
=== JanC is now known as Guest27710
=== JanC_ is now known as JanC
sgclarkAlso I need to know where I can upload snaps for others to test12:19
sgclarkI prefer not testing in the store haha12:20
mhall119there's actually a testing channel in the store, but I don't know if that's all working now or not12:20
mhall119you can pretty much put the snap anywhere, even people.ubuntu.com12:21
sgclarkok12:22
kyrofasgclark, a qmake plugin is scheduled for the next snapcraft release12:24
kyrofaYou can use a local qmake plugin temporarily until it's in place. Are you familiar with local plugins?12:24
sgclarkah cool12:24
sgclarkyes I am familiar12:24
kyrofaOkay good deal12:24
sgclarkpart/plugins/myplugin.py12:25
kyrofaYep, you got it12:25
=== hikiko is now known as hikiko|ln
ysionneauzyga: I'm reading this: https://github.com/CanonicalLtd/ubuntu-image/blob/master/docs/image-yaml.rst12:55
qengho_Could there any mechanism for a snappy package to open a web page in the user's browser without providing a browser, or is that philosophically outside of snaps?12:55
ysionneauwhat is it you call "an assertion" or "the model assertion" ?12:56
ysionneaunot clear to me (not native speaker)12:56
* ogra_ notes that qengho_ wears a ponytail today12:56
=== qengho_ is now known as qengho
ogra_oh, chopped off !12:56
ogra_qengho, i'd say thats the job of an outside service ... but snappy/snapd should be able to invoke it and hand the url to it12:57
ogra_much like we do on the phone12:57
qengho"Connection lost to chat.freenode.net" <- hair source12:58
ogra_heh12:58
qenghoogra_: So, "One day, maybe."13:01
ogra_yeah13:01
ogra_well, once we switch to unity8 we'll get such stuff for free ... i guess it will only need some minor adjustments and some oof zyga's time to plumb an interface on top of the existing parts13:02
qenghoHmm. 8. I bet there's some DBus thing that will do it now.13:02
ogra_there is xdg-open as well13:03
ogra_not sure that is considered secure enough though13:03
qenghoxdg utils would run inside the snap and try to search for one there.13:04
ogra_no, i mean an interface to the desktop side that would spawn xdg-open with an url you hand to it13:05
ogra_i guess that could work13:06
qenghoYeah! Something could pretend to be xdg-open. xdg utils are hilariously primitive shell scripts, though.13:07
ogra_the point is that snapd needs to trigger it through the unity7 interface or some such13:08
* ogra_ has no deep insight inot interfaces or how they actually work internally though ... probably i'm on the wrong track, thats zyga land :) )13:09
ogra_oh13:12
ogra_i wasnt aware jospoortvliet is actually lurking here :)13:12
kyrofaogra_, how do you think the owncloud snap started? :P13:13
ogra_with you running after the guys in their channels :)13:13
ogra_awesome to see him aound here13:14
=== hikiko|ln is now known as hikiko
Chipacajdstrand: if a snap says confinement:devmode the user must provide either --devmode or --confined13:16
Chipacajdstrand: (i'm implementing that now)13:16
Chipacait's going to be ~3 branches, fwiw13:16
jdstrandack13:17
jdstrandChipaca: though the yaml has confinement:devmode|strict. shouldn't the flags be --devmode|--strict?13:18
Chipacajdstrand: well, no: as a user, what does `snap install foo --strict` do?13:18
Chipacait's --confinement={devmode,strict}, with --devmode and --confined shortcuts for those13:19
Chipaca*handwaving for things that are not implemented*13:19
jdstrandChipaca: fair point, though, I thought --confined was the default13:19
Chipacajdstrand: it is13:19
jdstrandwhen would you use --confined?13:19
Chipacajdstrand: when you want to override the snap13:20
jdstrandChipaca: but if it is always installed confined unless you specify --devmode?13:20
Chipacajdstrand: if the snap specifies "confinement:devmode", asking to install it on its own will fail13:20
jdstrandbasically, my understanding was that you always had to use --devmode to install in devmode13:20
jdstrandoh I see13:21
Chipacajdstrand: it's more a ux thing, i guess: if the snap says devmode, it probably won't work without --devmode, so bail13:21
jdstrandif confinement:devmode, no args, fail with msg, --devmode installs, --confined allows install13:21
Chipacajdstrand: but still have a way for dev to override for testing or whatever13:21
Chipacaexactly13:21
jdstrandok, that makes sense13:22
jdstrandthough, --confined does feel exactly right to me, but if that is what's designed, I certainly won't block on it13:22
jdstranddoesn't*13:22
=== Guest76230 is now known as pmp
kyrofaogra_, FYI, Mark invalidated #1586400. I know you weren't a huge fan13:46
kyrofaDarn pattern patching. bug #158640013:47
ubottubug 1586400 in Canonical Click Reviewers tools "Snap type: change from "os" to "core"" [Wishlist,Fix committed] https://launchpad.net/bugs/158640013:47
ogra_kyrofa, well, i wasnt a fan of the rename13:47
ogra_(teh package rename ... i dont really care about the internally used type)13:47
kyrofaOh, okay13:47
ogra_the package will still have to be renamed13:47
kyrofaIndeed, yes13:47
elopiodidrocks: https://launchpadlibrarian.net/263311094/buildlog_ubuntu-xenial-amd64.snapcraft_2.9~ppa5-1_BUILDING.txt.gz13:48
elopiothe gettour test failed /o\13:48
ysionneauI guess the kernel/ubuntu-core fallback mechanism only works if u-boot supports the saveenv command?14:01
didrockselopio: seriously? (in a meeting, looking)14:03
didrockselopio: it did build in your ppa though?14:04
didrocksit seems that PKGBUILDDIR wasn't expanded, any idea?14:04
elopiodidrocks: yesterday. But if failed today, not sure what's the difference.14:05
didrockselopio: this code isn't enabled, we can skip it to not block release14:05
elopioI think PKGBUILDDIR is the name of the dir, isn't it.14:05
didrocksyeah14:05
elopiodidrocks: ok, let me make the PR.14:05
didrocksnormally, setup.py expands it14:05
elopiodidrocks: sergiusens: https://github.com/ubuntu-core/snapcraft/pull/54714:14
didrockselopio: sorry for the additional work I'll have a look to the build system later14:14
* popey waves https://github.com/ubuntu/snappy-playpen/pull/24 at dholbach / didrocks :)14:14
dholbachpopey, nice one14:16
looldpm, ogra_: Re: java – there's a maven example in snapcraft (has been one of the first plugins :-)14:16
dholbachpopey, oh, can you add a line to https://github.com/ubuntu/snappy-playpen#current-project-status?14:16
elopiodidrocks: no worries. I'm ok with getting all these unskipped for the next week. And the tour is looking great, so I'm happy.14:17
looldpm, ogra_: it would need some love post xenial (moving to newer jre, allowing for oracle jre etc.) and I'm sure there are plenty of other systems which would need wrapping – I believe there's also an ant plugin14:17
dpmlool, I'm not familiar with maven, but if I understand it correctly, it does not have a GUI? The issue we've got is with getting a Java (GUI) app run on the destkop14:18
tyhicks`ysionneau: I will be the one working on the issue but the problem is time14:19
tyhicks`ysionneau: I've got a few too many things needing my attention today and I'm off all next week14:19
didrockspopey: in meeting, will do next :)14:21
looldpm: maven is a build system14:21
looldpm: it might be used to build any piece of java software14:21
looldpm: I'm not sure java gui app is much different from any GUI app (outside of the interfaces you want to require)14:22
popeydholbach: done https://github.com/ubuntu/snappy-playpen/pull/2514:22
loolsorry I meant from any Java app14:22
dpmlool, assuming we're running it in devmode, I'm guessing that a Java GUI app should have its own set of fonts and X env variables, though14:23
looldpm: X env is the same as for other GUI snaps; fonts is a good question, it depends on which java stack is being used; I would think the runtime pulls in enough by default though14:25
didrockssergiusens: elopio: I'll ensure I understand what the issue is in the build system14:25
dholbachthanks popey14:25
looldpm: I guess it's a case for trying it out really; we can see how to best deal with the general case from there?14:26
popeydholbach: np, thanks for reviewing14:26
ogra_ysionneau, yes, but the enforced use of uboot.env makes sure that saveenv always works14:26
ogra_ysionneau, thats one of the reasons we switched to it14:27
dpmlool, I'm not sure, I'm not familiar with Java GUI apps at all, but with the experience of having snapped a couple of Qt apps that required 40+ lines of env variables being set, I would imagine that Java GUI apps would be similar in that regard14:27
dholbachpopey, so far the process and everything is working out quite nicely14:27
popeyya14:27
popeyi agree14:27
popeyits fun14:27
popeyI am _starting_ to like github14:27
dpmgood work guys14:28
popeyi like doing ninja inline edits directly on github.com and turning those into PRs14:28
popeywhich is what i did for the readme14:28
ogra_popey, if only it would support bzr :P14:28
popeycvs forever!14:28
ogra_or that !14:28
fgimenezhey jdstrand :) iirc you were asking a few days ago about security related integration tests, if you have any test cases in mind pls let me know and i can begin writing them14:31
didrockspopey: "I am _starting_ to like github" -> I remember what you told during the sprint :p14:40
didrockssee, you are getting at it!14:40
ysionneauogra_: so if I use default config (built in) and disable saveenv, fallback won't work14:44
ysionneaugood to know14:44
ysionneau(for some reason we deactivated the uboot.env stuff)14:44
=== chihchun is now known as chihchun_afk
ogra_well, just ennable it and you should be fine :)14:44
ysionneauyep14:44
ogra_i guess snapd would fall over when you do kernel snap updates ... it actually wants to update uboot.env14:45
jdstrandfgimenez: oh I have a list!14:46
jdstrandfgimenez: let me email you. should I CC anyone?14:47
fgimenezjdstrand, great, sure elopio will be interested too14:47
jdstrandok, let me get that to you14:47
didrocksofc minetest14:51
mhall119sgclark: is your kdevelop snapcraft.yaml available somewhere for me to try?14:52
ysionneauogra_: I could just put a fake uboot.env, that's what I do right now :p14:56
sgclarknope, not done14:57
sgclarkmhall119: and I cannot get your sections thing to work with frameworks being parts14:58
mhall119sgclark: are you using the nil plugin and archive packages like mine, or are you trying ot build from source?14:59
sgclarkno, I am using upstream source for frameworks14:59
popeyhey sgclark !14:59
mhall119ok, what's not working? does it compile the upstream source?14:59
sgclarkupstream source for kde*14:59
popeysgclark: you back from vacation / visiting family?14:59
sgclarkhi popey :)15:00
sgclarkyeah15:00
sgclarksponsered to work on snappy, I am a happy camper15:00
sgclarksponsored*15:00
mhall119\o/15:00
popeyWat! That's awesome news!15:00
sgclarkit is :)15:00
popeyI'm so happy for you!15:00
ogra_ysionneau, well, there is code that calls fw_setenv in snapd15:00
popeyToday is a good day.15:00
ogra_ysionneau, not sure what happens if it cant actually set the vars15:01
sgclarkty15:01
ogra_ysionneau, so i'd suggest to just support it15:01
ysionneauI think even "snap list" just fails without a uboot.env15:08
ysionneauhow can I put a file in a directory using the gadget snap? (boot-assets)15:09
ogra_yeah15:09
ogra_(to both)15:09
ysionneaulike creating dir_a/file_b15:09
ogra_:)15:09
ogra_oh15:09
ogra_subdirs ?15:09
ogra_not supported15:09
ysionneauso far the syntax I use is : - path: boot-assets/uboot.env15:09
ogra_(currently)15:09
ysionneaubut I don't specify the target dir15:09
ysionneauarg, too bad I needthis :x15:10
ogra_right, everything will go into the toplevel of the vfat15:10
ogra_file a bug please ...15:10
ysionneauon which project?15:10
ogra_(it would help for raspberry pi overlay dtbs too)15:10
ogra_just snappy15:10
ogra_(see topic)15:10
ysionneauah good, thanks15:11
ogra_let me know the bug # ... i'll confirm it15:11
ysionneauhttps://bugs.launchpad.net/snappy/+bug/158886415:12
ubottuLaunchpad bug 1588864 in Snappy "unable to specify target directory for boot-assets in gadget snap" [Undecided,New]15:12
ogra_thanks !15:13
ysionneauyou're welcome!15:13
ogra_zyga, ^^^ thats technically a u-d-f limitation that we need to weed out in ubuntu-image15:15
sergiusenselopio https://github.com/ubuntu-core/snapcraft/pull/54715:19
sergiusenselopio master is just missing that now15:19
elopiocrazy jenkins error15:21
elopiosergiusens: updated, the tests are running again.15:22
sergiusenselopio rebased even?15:23
elopiothis is good to merge as soon as the travis execution is good.15:23
sergiusenselopio sounds good15:24
qenghoWhat's a good way to test from inside a snap if it's in devmode or not?15:36
ogra_do something that would normally be confined and check the exit code ?15:37
qenghoYeah. Trying to pick something good.15:38
ysionneauhmmm15:54
ysionneauI'm generating an image with ubuntu-device-flash for my Paros board. the initrd's init fails because it cannot mount the gadget/kernel/core snaps15:54
ysionneauitsearches for them in system-data/var/lib/snappy/snaps instead of system-data/var/lib/snapd/snaps15:55
ysionneau:o15:55
kgunnjdstrand: hey, finally back to working on mir interface and it's trying to fire up now....so i'm seeing denials for aa "open" "r" on "/run/udev/data/+drm:card0-virtual1", 2,3,415:57
ysionneauwhat could make UDF generate wrong init in the initrd?15:58
kgunnbut i have in my aa slot /run/udev/data/* r,15:58
kgunnand / run/udev/** rw,15:58
ysionneauFYI I'm generating with : sudo ./ubuntu-device-flash --verbose core 16 -o paros.img --channel edge --gadget ../paros_1.0_all.snap --kernel ../paros_kernel/tmp/paros-kernel_3.10.67_armhf.snap --os ubuntu-core --enable-ssh15:59
jdstrandkgunn: /dev/run/** rw, would cover it. I suspect it isn't in the right part of your policy (permanent vs connected slot and permanent vs connected plug)16:02
mhall119hey guys, what's the process for getting a new interface added to snappy?16:04
kyrofamhall119, a zyga question16:16
kyrofamhall119, this might get you part of the way there: http://www.zygoon.pl/2016/04/anatomy-of-snappy-interface.html16:16
mhall119thanks kyrofa16:18
mhall119and am I correct in thinking that snaps can't deliver new interfaces?16:18
kgunnthey all have to builtin atm16:19
kyrofamhall119, correctly snaps don't deliver interfaces (they're a snapd thing), but they can deliver slots for interfaces16:19
kgunnthey==interfaces in my response16:19
kyrofas/correctly/correct/, not sure how I messed that one up16:19
mhall119here's my use-case: ElementaryOS apps use a thing called Contractor, which is a dbus service for content-sharing between their apps, it's provided by ElementaryOS and Pantheon desktop, but not part of a stock Ubuntu16:19
kyrofaYeah, perfect candidate for an interface16:19
mhall119kyrofa: ok, but ubuntu-core doesn't provide the actual service, so how will apps know if the system they're installed on actually has that dbus service?16:20
kyrofamhall119, there are a few options16:21
kyrofamhall119, first of all, while all interfaces have to be explicitly supported by snapd, there's also the concept of interface connections, i.e. there's the slot (the producer side of the interface) and a plug (the consumer side). If you install a snap with a plug for this interface, but there's no snap install providing the slot, that interface simply cannot connect16:23
kyrofaSo if a snap expects this dbus service to be present but nothing is serving it, snapd won't connect them and you'll see that reflected in `snap interfaces`16:24
kyrofamhall119, this may also fit into the new "assumes" work, which is a set of features that a snap can request of the system; if they're missing installation will fail16:25
kyrofamhall119, though I'm a little more fuzzy on that one16:25
kyrofamhall119, finally, we have some sort of content sharing interface planned, though not spec'd just yet. Those two things may overlap16:30
sergiusenskyrofa mhall119 the scenario you describe seems pretty similar to what kgunn did with mir16:30
mhall119kyrofa: ok, so if I understand correct, we would add a "contractor" interface to snapd, and then an actual snap that contains the dbus service and provides the "contractor" slot16:30
sergiusensthe interface is added to snapd, but the implementation of a slot for that interface would be a snap16:31
sergiusenscould be16:31
kyrofamhall119, you got it16:31
mhall119sergiusens: ack, what I was thinking16:31
mhall119ok, cool16:31
=== tyhicks` is now known as tyhicks
ysionneauogra_: I just recompiled the kernel snap and the initrd seems to be still old :o16:37
ogra_oh ?16:38
ogra_sergiusens, ^^ does the kernel plugin not pull the latest initrd when you re-build ?16:38
sergiusensysionneau ogra_ just like it doesn't pull new code from the kernel sources, pulling (as stated in your message) is a pull step ;-)16:39
ogra_sergiusens, i assume deleting the initrd would pull it automatic ? or do you still need a manual pull ?16:40
ysionneauI deleted the snap directory and the .snap file and did "snapcraft --target-arch arm64 snap"16:40
sergiusensogra_ same as if you deleted something from vcs16:40
sergiusenswe could make it warn you16:40
ogra_(assuming initrd is an essential part, i would expect snapcraft to make sure it is there)16:40
ogra_yeah, we definitely should16:41
ogra_or make it fail the build even16:41
ogra_it wont boot without initrd ...16:41
ogra_so there is no use in building it16:41
ysionneauexcept I do have an initrd :o16:41
ogra_we have a long term plan for booting with two initrds ... the script bits would then come from the os snap16:42
ogra_so you get the latest with an os upgrade ... (to de-couple the kernel snap )16:42
sergiusensogra_ the kernel plugin is experimental, so errors are allowed :-P16:42
ogra_but thats a bit further down the roead16:43
ysionneauis there any quick thing I can do to unblock me?16:43
sergiusensogra_ I don't feel like adding a bunch of logic for something that is scheduled to go away, so all I can say is, hurry up!16:43
sergiusens;-)16:43
ogra_sergiusens, well, we shouldnt allow building unbootable kernel snaps imho :)16:43
sergiusensogra_ they will be unbootable as soon as the spec changes16:43
ogra_go away ?16:43
ogra_it will change ... why would it go away16:43
sergiusensogra_ the need to download the generic initrd is going away16:43
ogra_ah16:44
ogra_well, but thats definitely post GA16:44
ogra_so rather far out16:44
sergiusensso there is not much logic there; and we won't spend precious time on that16:44
ogra_ok16:44
sergiusensin the meantime, don't delete files in `parts`16:44
sergiusensysionneau to get around it, snapcraft clean is what you would need to do16:45
sergiusenskyrofa we should consider making an explicit call on a command do it again and mark what follows dirty16:45
ysionneauhmm ok, isn't it the same as removing all directories?16:45
ysionneaubecause I did that :o16:45
sergiusensysionneau sort of, sometimes, depends on the directories removed16:46
ysionneauok let's rebuild16:46
sergiusenselopio kyrofa https://github.com/ubuntu-core/snapcraft/pull/54816:47
kyrofaysionneau, snapcraft does a lot of state tracking for the directories and files it deals with. It currently doesn't do a good job of handling your blowing stuff out from under it16:48
kyrofaysionneau, if you can use the `snapcraft clean` command it'll keep it happy16:48
kyrofaysionneau, for example, if you stage two parts, you can actually `snapcraft clean partA --step=stage` and it'll unstage only partA's stuff16:49
kyrofaysionneau, try doing that by hand ;)16:49
=== Aria|away is now known as Aria
ysionneaunice!16:51
ysionneauwell done16:51
ysionneauogra_ sergiusens still using old paths in initrd16:55
ogra_did it actually download an os snap ?16:55
ysionneauI don't think so16:55
ysionneaulet me c/c16:55
ogra_i wonder if you have an old cached os snap somewhere16:56
ysionneauhttp://pastebin.com/DLbSHvcy16:56
ysionneauI did a snapcraft login before, and a snapcraft pull16:56
ogra_weird16:57
ysionneauwhere would this os snap be cached?16:57
ysionneauI also unsquafs'ed it, to modify meta/snap.yaml to adapt the architecture because of some UDF bug and then resquashfs'ed . But I doubt it is causing my issue16:59
ogra_yeah16:59
ogra_well ... https://github.com/ubuntu-core/snapcraft/blob/master/snapcraft/plugins/kernel.py has17:01
ogra_        snapcraft.download(17:01
ogra_            'ubuntu-core', 'edge', self.os_snap, self.project.deb_arch)17:01
ogra_no idea where the snap it downloads goes though17:01
ysionneauI have snapcraft 2.8.717:01
ogra_thats rather old ...17:02
ogra_though i dont think that specific part of it changed actually17:03
ogra_probably kyrofa knows where such downloads go17:04
ysionneauahah17:04
ysionneauI think I got it17:05
ogra_explicit "pull" ?17:05
ysionneaudownload() is downloading in .... self.sourcedir + 'os.snap'17:05
ogra_ah17:05
ysionneauso os.snap is in my kernel source dir17:05
ysionneauwhich I didn't clean17:05
ysionneauand I bet snapcraft clean didn't remove it17:05
ogra_evil17:05
ysionneau"downloading ubuntu-core" ...17:06
ysionneauo/17:06
ogra_yay17:06
ysionneauwho was bragging about "snapcraft clean" again ? :p17:07
ogra_lol17:07
ysionneauogra_: IT BOOTS17:17
ysionneau\o/17:18
ogra_yay17:18
ysionneaulet's call it a day17:19
ysionneauthanks a lot17:19
ysionneausee youhave a nice weekend17:19
ogra_np :)17:19
ogra_yeah, enjoy17:19
ysionneau(shall I file a bug for os.snap being in kernel source ?à)17:19
ogra_sergiusens, kyrofa ^^ ?17:19
ogra_(sounds like a bug to me ... but might fall under the same "it will all change anyway" clause from sergiusens )17:20
ysionneauyep17:20
ysionneauafk!17:21
kyrofaogra_, yeah, probably a sergiusens question17:23
sergiusensysionneau kyrofa ogra_ that is easy to fix, but it is also all going away, right?17:23
ogra_sergiusens, yeah, in a few months17:25
ogra_(definitely post GA or earliest "around GA")17:26
gouchihi17:28
gouchican somebody test a snap package http://www.hastebin.com/jerahisuva.hs ?17:28
gouchiI can't test it because there is an issue when I try to install it on live usb17:29
sergiusensgouchi building works?17:49
gouchisergiusens: yes17:49
sergiusensgouchi I can later today17:49
gouchisergiusens: thank you17:49
sergiusensgouchi if not, just upload and publish to the edge channel of the store only ;-)17:49
gouchisergiusens: I need to see if we can launch it17:50
sergiusensok, building now, but my connection is slow17:52
gouchisergiusens: thank you17:54
gouchisergiusens: the software can work with drm/kms and egl17:54
gouchisergiusens: so not sure if need x11 for interfaces, I just added it for devices running on X17:55
ogra_you surely want the gl interface17:56
gouchiogra_: yes I put it17:56
jdstrandroadmr (cc beuno and noise): can you pull r669 into the store? I've got another couple of things I'm working on and may request another pull before that lands, but wanted to get r669 on the books as it helps with developer velocity18:02
roadmrjdstrand: will do18:02
jdstrandthanks!18:02
jdstrandroadmr: note, this isn't an emergency pull, but sooner is better18:02
jdstrandif that makes any sense18:03
jdstrand:)18:03
roadmrjdstrand: ok, I think we were looking into deploying in the next couple of days18:03
roadmrjdstrand: yea : "Not in a hurry but would prefer not to wait until next month" :)18:03
jdstrandgreat. also note the conversation with nessita-- the the lp team name changed from click-reviewers to store-reviewers18:03
jdstrandroadmr: ^18:04
jdstrandhehe, yeah, something like that :)18:04
roadmrjdstrand: yes, I'm aware of that (*painfully* aware... haha)18:04
jdstrandoh hrmm.. I didn't mean to cause pain. sorry18:04
roadmrjdstrand: no worries, we'll get it fixed - honestly our code/spec/infrastructure shouldn't be so vulnerable to branches moving around, so this is a good time to figure that out18:05
jdstrandI'm glad I could 'help' then :)18:05
roadmryeah :) thanks :D18:06
sethjcan anyone help me figure out why this check fails inside the snap, but works just fine when installed from a .deb? https://github.com/colinkeenan/silentcast/blob/master/genffcom#L4818:10
sethjThe files are where they're supposed to be..18:10
sergiusenselopio https://launchpad.net/~snappy-dev/+archive/ubuntu/snapcraft-daily/+build/9858103/+files/buildlog_ubuntu-yakkety-amd64.snapcraft_2.10+16.10_BUILDING.txt.gz18:10
sergiusensI do have your test skip too18:11
sergiusenselopio it might seem like we need to remove the test modulee18:12
elopiosergiusens: hum, I don't understand.18:13
kyrofasethj, I assume /usr/share/silentcast something that's supposed to be shipped within the project?18:13
elopiolet me enable the daily on yakkety, to give it a try18:14
kyrofasethj, but if it's contained within the snap, it's not in /usr/share18:14
sergiusenselopio sure18:14
* sergiusens raises fist at didrocks :-P18:14
sethjkyrofa, I thought that was the whole point of contained, isolated, snaps?18:15
kyrofasethj, indeed, what I mean to say is that silentcast isn't in /usr/share. It's in /snap/<snapname>/<snapversion>/usr/share (I assume)18:15
kyrofaSo that's why the check is failing18:15
kyrofasethj, snaps aren't chroots18:16
sethjah. well I guess that is where I went wrong..18:16
sethjI was assuming they were like chroots.18:16
kyrofasethj, nope, they're not containers, they're just confined18:16
sethjkyrofa, in which case how would I snap that app successfully then?18:17
kyrofasethj, so you could use the $SNAP environment variable in that check18:17
elopiosergiusens: ah, I skipped the set tour. We have to skip also the get tour.18:17
elopiopff, this will never end.18:17
sethjkyrofa, doesn't seem like a successful packaging method if you have to modify the source.18:17
kyrofasethj, not a lot you can do with hard-coded source18:18
kyrofasethj, it'd be nice if it was more configurable18:18
sethjhehe, well blaming the source because the packaging method doesn't allow you to set it up properly seems a bit silly ;)18:18
elopiosergiusens: https://github.com/ubuntu-core/snapcraft/pull/54918:19
kyrofasethj, you have source that is hard-coded for an FHS that doesn't apply to snaps. /usr/share is for architecture-independent data. It was created as a place where packages can place their data side-by-side without interfering with one another18:21
kyrofasethj, however, snaps don't have to deal with that-- they're isolated18:21
kyrofasethj, I'm not saying your source is broken, I'm saying it's making assumptions that don't apply :)18:22
sethjI'm not sure I would call it isolated if it doesn't act like a chroot.. but that's beside the point. I'm not sure the few pluses of snaps is worth the work of rewriting the app to fit your system, when it already works with the majority of the other packaging systems..18:24
sethjI liked the idea originally :/18:25
kallisti5elopio: oh... I was hoping for a minimal install we can base our product appliances on :-(18:35
kallisti5we have an agreement with ubuntu, however we're starting to look to stripping down the ubuntu install iso18:35
kallisti5a lot of the automaton on install media generation that Debian provides doesn't work with ubuntu stuff18:36
kallisti5so we're stuck manually trimming down the os install media :-\18:36
elopiokallisti5: you can create a minimal image too. We are currently working on the ubuntu-image tool that will make it easier. But you can generate an image only the three snaps: kernel, os and gadget.18:37
elopioI'm not sure if that's what you are after, though.18:37
kallisti5elopio: aahh.. that's right18:38
kallisti5I saw the tool18:38
kallisti5last time I played with it, it gave a disappointing "this doesn't work right now" :P18:39
sergiusenskallisti5 the whole image building story in in flux right now, should happen soon though18:39
sergiusensbut not real soon, just soon18:39
kallisti5huh.  That seems like a pretty important story :P18:39
elopioogra_: are you around? I don't know how to dput something to a PPA, for both xenial and yakkety. Only the xenial one appears.18:40
kallisti5anyway, not judging.18:40
kallisti5we have a hardware appliance that is BYOH18:40
kallisti5I get tired of doing battle with ubuntu preseeds :-)18:40
elopiokallisti5: I would recommend you to jump into the mailing list and explain what you want. You'll get tips of how to do it know, and you'll be able to influence how the new things will be.18:42
kyrofakallisti5, we agree that it's a super important story! That's why we're working to make sure the underlying requirements are in place :)18:44
AndyWojoIs the snappy store live?18:55
kyrofaAndyWojo, indeed it is18:57
AndyWojoWhere is it at?18:57
kyrofaAndyWojo, still undergoing development, but definitely in a usable state18:57
kyrofaAndyWojo, you can upload/publish snaps at http://myapps.developer.ubuntu.com/18:57
AndyWojocool18:59
AndyWojothanks18:59
AndyWojoI want to create a snap for some scripts I'm writing in ruby that will just work so the user doesn't need to worry about gems etc19:00
kallisti5kyrofa: i'd voice these in #ubuntu but I got banned long ago :-)19:01
kyrofaAndyWojo, excellent idea! You may be the first person to try a snap with ruby, I'd be very curious to see how it goes!19:02
AndyWojokyrofa: cool.19:02
AndyWojoIt's a script that is used to copy config files and log files from an OpenStack environment, in a way so you can send to support / pastebin / irc19:02
kyrofaAndyWojo, where are the config and log files typically located?19:03
kyrofaAndyWojo, /etc and /var/log ?19:04
AndyWojoyup19:04
AndyWojoalso does a ps -ef19:04
AndyWojoto see what's running etc19:04
AndyWojocustom openstack commands to see whats running19:04
kyrofaAndyWojo, by default snaps can't reach outside of itself, so make sure you read up on interfaces for how to extend its capabilities: https://github.com/snapcore/snapd/blob/master/docs/interfaces.md19:07
kyrofaAndyWojo, also keep in mind that you can install with --devmode to run unconfined19:07
kyrofa(should ease development of the snap so you can worry about confinement later)19:08
elopiomaybe it's not appearing because there is already a snapcraft 2.10 in the PPA. I'll wait until the changelog is landed to retry.19:09
* elopio lunch.19:09
sergiusenselopio after lunch, mind going over the bugs to see if they have correct descriptions?19:23
sergiusensIt shouldn't be needed in theory, but who knows.19:23
elopiosergiusens: like the SRU template? I've already done that for all 2.1019:23
sergiusenselopio really? I thought some were missing when I was tagging19:24
sergiusensI guess it is fine19:24
elopioI might have missed one, the list is big. But I went one by one. I can quickly check again.19:24
elopioyep, all good.19:26
elopiosergiusens: I put the impact under the original description, so maybe you have to scroll to see some.19:26
vejmarieok I have been able to fix my free cad font issue20:44
vejmariestill need to fix the theme issue20:44
vejmarieand we will have a fully functional snap exactly like the original app20:45
sergiusenselopio thanks. The only problem I have now is https://launchpad.net/ubuntu/yakkety/+queue?queue_state=0&queue_text=snapcraft :-P20:45
elopiowell, that's a better problem to have than the others.20:53
vejmarie(the font thing is ugly, but this can help you to understand what is needed)20:53
sergiusensvejmarie when you say "you" who do you mean?21:28
vejmarieargh sorry: people who are developing snapcraft21:29
vejmarieI am trying to track down all the system file that are needed to make it work properly from a graphical perspective to either turn on AppArmor21:29
vejmariewhich in some way I believe is not the right way to proceed I had rather prefer to see the applications coming with there own fonts and theming system (which is the current broken part on freecad)21:30
vejmarie)21:30
vejmarieSo I am pretty closed to have everything into the snap (by everything I mean things which are needed)21:30
vejmarieI am checking the GTK theme but it shall be good by sunday night21:31
eriohello!21:43
vejmariehello21:43
eriovejmarie: I am having a little doubt on writing the snapcraft.yaml21:44
vejmarieif this is just one it might be good ;) (I am kidding)21:44
vejmarieI am not a specialist21:44
vejmariebut let's try to see where is your issue (I am not the only one connected)21:45
eriook! I am using plugin: python321:45
eriodamn21:45
eriook21:45
erioI am using plugin: python321:46
erioand there I wrote python-packages:21:46
eriobut I also set a source (from github)21:46
eriomy problem is that my script is getting the source and trying to build things21:47
erioinstead of getting the python-packages first21:47
eriothe source contains a setup.py21:47
erioand it works when I download and use `pip3 install .`21:47
eriowait... it worked.21:53
erioI forgot a dependency needed nevermind.21:55
eriothe end of this tutorial should include how to install22:00
eriohttps://developer.ubuntu.com/en/snappy/build-apps/your-first-snap22:00
vejmariegood to see it working ;) congrats22:04
erioyeah22:05
erioI am getting...22:05
erioFatal Python error: Py_Initialize: Unable to get the locale encoding22:05
erioImportError: No module named 'encodings'22:05
eriowhen running...22:05
erioI added locales as stage-packages22:06
eriocould you guys add a python3 plugin hello world example for snapcraft.yaml somewhere?22:23
eriois Python 3 the default python inside a snap ?22:23
=== Aria is now known as Aria|away

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