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

=== JanC is now known as Guest74845
=== JanC_ is now known as JanC
erioHi00:35
erioI lost connection later...00:35
=== lpotter_ is now known as lpotter
stevebiscuitkyrofa: great post, cheers!04:26
ayanstevebiscuit: which article?04:27
stevebiscuitayan: I'm in the process of getting Launchpad to build snaps of WebDM so this was useful: https://kyrofa.com/posts/building-your-snap-on-device-there-s-a-better-way04:32
ayanstevebiscuit: ah -- that is useful.04:39
=== sarnold is now known as sarnold_
dholbachhey hey07:16
didrocksmorning dholbach07:18
dholbachsalut didrocks07:19
seb128lut dholbach07:26
dholbachsalut seb12807:26
seb128dholbach, did you change from https://github.com/ubuntu/snappy-playpen/commit/7c6f2275 work as you wanted?07:29
seb128I though about that yesterday evening and now I see you already did it :p07:29
dholbachno, it doesn't :-/07:33
zygao/08:27
joc_morning zyga08:28
joc_zyga: just a reminder that I would like your feedback on latest serial interface, when you have time :)08:38
_morphiszyga: snapcraft@lists.ubuntu.com being the right one these days to discuss that?08:42
zygajoc_: I know, believe me08:45
zyga_morphis: yes, I think so08:45
_morphiszyga: ok08:46
* zyga had a super rough night, is barely awake08:46
_morphis.-)08:46
joc_zyga: sure, look after yourself08:47
=== Aria22|away is now known as Aria
=== Aria is now known as Aria22
=== Aria22 is now known as Aria22|away
pmpI asked this two weeks ago and couldn't work on it - as things are changing fast currently I'm asking again ;-)11:39
pmpI'd like to boot a custom kernel (4.7-rc2) for raspberry pi211:40
pmpI build one for raspian and it works as I'd like to11:40
ogra_use snapcraft and the snapcraft kernel plugin to create a snap11:41
ogra_here is a demo snapcraft.yaml using that plugin https://github.com/ubuntu-core/snapcraft/tree/master/demos/96boards-kernel11:42
pmpogra_: thx, that's what you told me two weeks ago, I somehow hope there now a faster-better-newer way to do it - OK I go with snapcraft11:44
ogra_pmp, i doubt there will be any easier and faster way (i actually doubt it is easier to solve than via such a snapcraft.yaml )11:47
pmpogra_: iirc, you told me that currently the pi2-kernel.snap is generated as a side-product of the deb-build11:48
ogra_nope11:48
ogra_it is created as a side product of the os snap build11:48
pmpis there a dedicated snapcraft.yaml in there for building a kernel for pi?11:50
seb128dholbach, sorry I didn't see you reply earlier, what doesn't work?11:50
seb128with the troltech conf11:50
pmpogra_: I'm afraid starting from the 96boards-kernel won't give me a nice working snap...11:52
ogra_pmp, well, it works for many other people ... why do you think it wouldnt work for you ?11:52
pmpogra_: good question ;-)11:53
dholbachseb128, copying the file over12:18
seb128dholbach, I can have a look if you want12:23
pmpogra_: actually what I meant was I don't know what to put into the snapcraft.yaml12:23
pmpogra_: I'd like to use the standard raspi2-kenrel and just add the missing CONFIG_'s12:24
dholbachseb128, it's basically https://github.com/ubuntu/snappy-playpen/tree/musique/musique12:24
ogra_pmp, well, isnt the snapcraft.ymal in the demo self explaning ? ...12:25
seb128dholbach, k, just finishing something else and having a look12:26
dholbachthanks a lot seb12812:27
ogra_for defconfig: [defconfig, distro.config] you probably only want "defconfig" and define the additional bits in kconfigs ... you wont need any initrd firmware so you can remove that block and can also drop the last few lines that are about specific dragonboard firmware12:27
seb128dholbach, yw!12:27
ogra_and indeed you want to point the source option to your own kernel tree12:27
ogra_(as well as adjusting the device trees to point to the right ones)12:27
pmpogra_: you see, not that easy.. for example: dtbs/overlays.tgz12:30
ogra_ignore that for the start12:30
pmpno, I need an overlay12:30
ogra_well, but the rpi doesnt allow overlays anywhere but in the bootloader ... so they need to go into the gadget snap anyway12:30
ogra_so ignore that bit ... you will later need to use your own gadget for that12:31
ogra_*after* you have a kernel snap that boots12:31
pmpok12:31
ogra_('m currently trying to play with the new dtb loading feature from uboot, that might solve this issue but it is still in its early stages)12:32
=== hikiko is now known as hikiko|ln
bsperesWhat is the correct way to go about deleting the default ubuntu user from snappy? I'm able to create a new user using useradd with the --extrausers flag, but there doesn't seem to be such a flag for the userdel comand.13:15
seb128dholbach, the config file is there for me ... what error do you get?13:15
dholbachseb128, can you launch musique?13:15
seb128yes13:15
dholbachoh?13:15
dholbachin my case it explodes and wants to access /etc/xdg/Trolltech.conf13:16
ogra_bsperes, i'd just leave it around and simply use "passwd -l" to lock it down13:16
seb128dholbach, I used --devmode though13:16
ogra_bsperes, http://paste.ubuntu.com/17116610/ is a script i used to use in 15.04 installs13:17
dholbachseb128, ok13:18
ogra_(when snappy config was still a thing though)13:18
seb128dholbach, works without devmode as well13:18
dholbachhohum...13:18
=== hikiko|ln is now known as hikiko
dholbachin that case I must be doing it wrong :)13:18
seb128dholbach, ignore me, I didn't test right13:18
seb128dholbach, the host /etc is mounted on the snap and I've qt4 installed13:18
seb128let me try to move that away13:18
seb128dholbach, still work though13:20
seb128Fontconfig error: Cannot load default config file13:20
seb128QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.13:20
seb128QSqlDatabase: QSQLITE driver not loaded13:20
seb128it displays those but starts13:20
dholbachok... I'll test it locally again13:20
dholbachit starts now as well13:21
dholbach... with --devmode that is13:21
seb128and without?13:21
bsperesogra_, ok sounds good, thanks for your help!13:21
seb128dholbach, well in any case let me know if you get the error again13:22
dholbachseb128, tries to access /etc/xdg/Trolltech.conf13:22
seb128but it errors out on that?13:22
dholbachyep13:23
dholbachBad system call13:23
dholbachand tries to write to /snap/musique/100001/usr/share/data/...13:23
dholbachwhich is something I guess I can patch in the source, or there might be a config for it13:23
dholbachbut the XDG thing is something which might be a problem deeper down the stack13:23
seb128dholbach, does it work if you edit /var/lib/snapd/seccomp/profiles/snap.musique.musique and uncomment the "socketcall" line before starting it?13:24
seb128when does it try to write13:24
seb128I wonder why I don't get those issues :-/13:24
dholbachseb128, it's a message on stdout when you start it with --devmode13:24
dholbachwants to create a .db there13:25
dholbachin which case would the socketcall bit help?13:26
dholbach(it doesn't change anything)13:26
seb128I don't know, I just need to do that because I'm on i386 and there is a seccomp bug13:26
seb128I was wondering if the workaround was making me not see your bug13:27
dholbachok13:28
seb128well, wfm :-/13:29
dholbachcan you import a small directory of files and does it show up next time you start?13:30
seb128no, import seems to fail13:34
seb128I get those writable share warning now13:34
seb128dholbach, I think it's because it can't connect to the database13:37
dholbachI'm trying to figure out which variable to change to make it use $SNAP_USER_DATA instead13:38
kyrofasergiusens, how would you feel about a `godeps_file` key being added to the go plugin to pull down godeps for a package before building?13:38
seb128dholbach, you mean the write to /usr error?13:38
dholbachyep13:38
seb128dholbach, that's because of export XDG_DATA_HOME=$SNAP/usr/share13:38
kyrofa`godeps-file` I guess. The name is of course up for discussion13:38
dholbachseb128, ok, let me see13:39
seb128dholbach, see https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html13:40
seb128that's supposed to be a writable directory13:40
seb128but indeed, seems that export is copied around13:40
seb128it was in the calculator snap from jdstrand when we picked it up as well13:40
dholbacheven removing them doesn't make it work13:41
dholbachI think the path is put together by using QDesktopServices::DataLocation in src/database.c13:41
seb128dholbach, for me unsetting XDG_DATA_HOME removes the warning13:46
seb128but adding files doesn't work because it can't access the database13:47
dholbachI'm doing a clean build again13:47
dholbachseb128, it works :)13:52
seb128nice13:53
sergiusenskyrofa should it be a new plugin or an extension of the go plugin?13:57
sergiusenskyrofa a new plugin would make more sense or we will soon get parameter overload13:57
kyrofasergiusens, probably a good point-- lots of ways to handle go dependencies13:58
kyrofasergiusens, but then you need to filter code out of the stage dir13:58
kyrofaRather, you need to filter it using the `prime` keyword so it doesn't end up in the snap13:59
sergiusenskyrofa huh? Why can't the plugin take care of that?14:00
kyrofasergiusens, hmm. Do you mean make a `go-with-godeps` plugin or some kind?14:00
kyrofaof some kind*14:00
kyrofasergiusens, I thought you meant a `godeps` plugin14:01
sergiusenskyrofa yeah, a `godeps` plugin14:02
sergiusenskyrofa what does that have to do with `prime`?14:02
pmpogra_: I build the snap with snapcraft --target-arch=armhf snap14:02
pmpogra_: I snap install14:03
kyrofasergiusens, I may be missing something here. If we have a `godeps` plugin, the `go` part will need to use the after keyword to make sure it uses the stuff pulled in by godeps, which would put the deps in the stagedir. No?14:03
ogra_pmp, i dont think that works ... you would need to use ubuntu-device-flash to actually create an image with it14:03
ogra_not sure if/how well sideloading kernel snaps actually works14:04
pmpogra_: and uboot now says: Bad ARM zImage magic or similar14:04
kyrofasergiusens, which means the code pulled by godeps will by default end up in the snap14:04
ogra_pmp, is that with our gadget snap in use ?14:04
dholbachok, music playback doesn't work in musique now, but I guess that's a known issue, even with --devmode?14:05
ogra_pmp, i really think you need to create the image from scratch with that kernel snap in use14:05
kyrofasergiusens, though now that I mention it, I think adding to that filter is in the plugin API14:05
pmpogra_: I'm u-d-f'ing just now14:07
pmpEven after u-d-f'ing I have Bad Linux ARM zImage magic14:13
ogra_hmm, did it actually produce a proper vmlinuz ?14:14
pmpWell, in the same folder I build the image I used ealier with raspbian14:14
pmpI14:14
pmpwill check14:14
ogra_oh, you might need "kernel-image-target: zImage"14:15
ogra_in your snapcraft.yaml14:15
ogra_arm64 devices can not use compressed kernel binaries ... so the 96boards demo uses a plain Image ... not zImage14:15
pmpcan I just re-run the install-part of the installation?14:17
pmpinstead of recompiling everything14:18
pmp(which takes a long time - unfortunately)14:18
ogra_not sure, i think you need to fully clean the tree14:18
ogra_really ?14:19
ogra_i thought you cross-build14:19
pmpyeah, it seems the bcm2709-defconfig for 4.7 has enabled much more modules than the one of 4.6 (and before)14:20
pmpAnd I'm running Ubuntu inside a docker14:21
ogra_ah14:23
episensorhi all - quick question. we're running some tests with snapcraft. with out current build system, our .jar files are located in /lib/ - is it reasonable to edit line 48 of the ant.py plugin and point it at /lib/? is there any other location where this can be configured?14:38
episensor*our14:38
dholbachepisensor, maybe file a bug?15:02
ogra_i guess running the copy plugin first to get the files copied in place might work15:02
dholbachor that... right15:02
ogra_not sure though if that can actually pull from outside the snapcraft tree15:03
croephaWhat are some good ways to manage several similar sanppy  installations?  Are things like Chef and Puppet recommended? what would be the recommended way to install snappy on a device with some set configurations? (like versions of things installed, configurations...) What would be the recommended way push new configurations to existing snappy installations?15:03
mhall119where do snaps put their .desktop files?15:03
ogra_mhall119, inside the snap your mean ?15:04
ogra_or after install15:04
mhall119I mean, where does the Dash find them15:04
mhall119after install15:04
ogra_/var/lib/snapd/desktop15:04
ogra_see XDG_DATA_DIRS in your env15:04
ogra_croepha, once snappy config is back you should be able to use the REST api of snapd to manage configs i guess ... Chipaca might know more15:05
croephaSweet thanks, I didn't know about snapd, now I got something to research!15:06
ogra_croepha, though if you talk about appliance devices that all use the same/a similar image, you would do all this inside a specific gadget snap for your image15:06
ogra_in either case i think snappy config coming back is required first though15:06
ogra_(it is on the TODO, i dont know with what prio though)15:07
mhall119thanks ogra_15:07
netphreakhi, guys!15:14
croephahi netphreak15:17
netphreakhas snappy enable-classic been reintroduced?15:18
pmpogra_: the kernel boots - thanks for your help - what to do now with the overlay? could it be as simple as unsquashing the gagdet and then squashing it again after add the overlay15:29
pmpogra_: recreating the overlay.tgz with the *-overlay.dtb from my kernel?15:32
ogra_pmp, well, the gadget also only allows a tgz file ... that wont help you to load the overaly in the end15:36
ogra_just create an overlay subdir in the system-boot partition and copy the dtbs there15:37
ogra_the rest is config.txt hacking15:37
atrivHi all, Not sure if any core devs are in... I noticed recently that gpio and i2c support was added for the raspberry pi. i'm curious if there's support for samsung's artik modules and if not if there's a roadmap16:14
=== chihchun_afk is now known as chihchun
=== Aria22|away is now known as Aria
arosalesHello, is this the place for the Snap Caffe?17:22
=== Aria is now known as Aria22
elopioarosales: welcome, have a sit.17:24
* arosales waves at elopio17:24
elopioatriv: hello. I bet you'll get better luck with your question in the mailing list.17:25
elopiopeople who know more details about that seem to be afk now.17:25
atrivthanks elopio17:26
arosalesI wanted to check here if Caffe would be a good candidate to snap17:26
arosalesI have been following http://caffe.berkeleyvision.org/install_apt.html17:26
arosalesto get it built myself I have that done with GPU support, and I am working on non-gpu support17:27
arosalesnote, compilation steps continue @ http://caffe.berkeleyvision.org/installation.html#compilation17:28
arosalesso its not a super straight forward process17:28
arosalesthoughts?17:28
elopioarosales: everything is a good candidate. That one seems awesome.17:28
elopioarosales: you can start trying that cmake they mention there. We have a cmake plugin in snapcraft.17:29
arosaleselopio: thanks for the feedback, do you have a pointer to plugins in general and the cmake one specifically?17:32
elopioarosales: snapcraft help cmake17:48
elopioand there are some examples using cmake in https://github.com/ubuntu/snappy-playpen17:49
arosaleselopio: thanks. I'll take a whack at it17:52
marcoceppiDoes snappy work on S390X ?18:51
qenghomarcoceppi: No. Nothing technical in the way. Just demand and attention. You can use: amd64, i386, armhf, arm6418:53
marcoceppiqengho: I have a demand ;)18:53
qenghomarcoceppi: come back with 1e6 others.18:54
* marcoceppi registers 1e6 more irc accounts18:54
elopiomarcoceppi: I haven't tested it there yet.18:54
qenghomarcoceppi: It is probably possible, and we would love to see it. Please contribute something.18:56
marcoceppiqengho: like what?19:13
qenghomarcoceppi: I am wrong. I apologise! We do have s390x images. http://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/19:21
marcoceppi\o/19:41
ogra_marcoceppi, only snappy on classic, we dont build boot images for s390x IoT devices ;)20:09
ogra_marcoceppi, i havent found anyone to test them yet, so please report bugs20:10
AndyWojoWow mark is really active on the snappy mailing lists. That's cool.22:51
mhall119sergiusens: https://bugs.launchpad.net/snapcraft/+bug/1590599 has been killing me all day23:00
ubottuLaunchpad bug 1590599 in Snapcraft "snapcraft prerequites are slow to resolve" [Undecided,New]23:00
sergiusensmhall119 yeah, that can be troublesome on bigger projects. kyrofa want to have a look at that one?23:03
sergiusensmhall119 it is not the prereq itself btw, it is the calculation involved to really know the prereq has really run or became dirty along the way23:04
mhall119sergiusens: is there any way it would become dirty between one check and the next?23:23
mhall119in the same call23:23
mhall119sergiusens: kyrofa: anyway, I hope the profile data helps, I can give you the raw cProfile data file if you want23:32

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