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

qenghoayan: Yes. Instead of extending snapcraft.BasePlugin, extend snapcraft.plugins.existingpluginmodulename.ExistingPluginClassName00:36
ayanah  -- so also import snapcraft.plugins.existingplugin as well?00:42
ayanfor for nil:00:43
ayanimport snapcraft.plugins.nil00:43
ayanclass Foo(snapcraft.plugins.nil.NilPlugin):00:43
ayan  ...00:43
qenghoayan: Yeah, s.plugins doesn't import all of its children or something, perhaps because it's trying not to pretend to know all of them that could be found, because plugins. Import the whole thing instead of trying to walk down the path from "snapcraft".00:46
qengho^whole thing^specific thing00:47
qenghoZzzz00:47
* ayan nods.00:47
lathiatwhen does snappy day start, uk time?05:13
Hichhikerdo snaps allow/designed for permanent data storage across updates? I see $SNAP_APP_DATA_PATH - but it appears that that is a per-version location. Where does one place data to be kept with the app but not be lost due to update05:20
didrocksgood morning05:49
stevebiscuitlathiat: the core team is mostly in mainland Europe, UK and S. America06:01
popeymorning06:42
didrockshey popey06:43
dholbachhello hello06:50
didrockshey dholbach06:51
popeywhat's the most advanced (in terms of working) GTK app which has been snappified, which I could use as a template for another app? Is it seb128's GNOME calculator work from Prague?06:55
popeyI assume Krita is the most advanced (in terms of working) KDE app?06:55
dpmgood question - I think we really need at least one GTK app in the playpen, seb128 (morning!) where does the code for the desktop's team snaps live?06:58
didrocksargh, if I snapcraft clean an older project with newer snapcraft, it doesn't clean the parts/ directory06:59
didrocksI guess it's because they renamed it to prime but didn't handle older formats06:59
dholbachdpm, https://code.launchpad.net/~ubuntu-desktop/+junk/gnome-calculator-snap07:01
dpmthanks dholbach :)07:02
dpmI wonder if we should make http://bazaar.launchpad.net/~ubuntu-desktop/+junk/gnome-calculator-snap/view/head:/calc a part as we did with the qt5 wrapper07:02
dpmI mean a wiki part07:03
didrocksthat was my plan (but it seems my plan for the day changed)07:04
dpmhey, morning didrocks! - you mean you no longer think it's a good idea, or something in snapd has changed... or that you've got other things to do for the day?07:05
didrocksdpm: other things that happened unexpectly07:05
dpmok ok07:05
dpmI was originally planning to have a go ad snapping Dekko, but I might actually give this a go instead07:06
popeyThe reason I asked is because there's a couple of gnomeish apps like Ardour and Inkscape which would be interesting to snap.07:15
popeyand some KDEish ones like Kdenlive.07:16
* dpm tries to build GNOME calc first07:16
seb128hey dpm dholbach popey07:39
dholbachsalut seb12807:39
popeymorning!07:40
seb128dpm, we don't have a shared space for snaps, just one main example which is the one dholbach pointed07:40
seb128and it's not hackish enough yet07:40
dholbachmaybe we can add it to snappy playpen too?07:40
seb128like translations, input methods, etc don't work07:40
dholbachit'll be a WIP snap07:40
seb128dholbach, your call, as long as those ^ are not working I'm not "advertizing" anything07:40
dholbachright07:41
dholbachwe want to collect best practices in there07:41
seb128"best"07:41
seb128don't use that calculator snap then :p07:41
seb128that's hackiest hacks07:41
dholbachI feel like we're currently in the stage, where we need to find hacks to make stuff work07:43
dholbachand then figure out how to make things work more generally07:43
dpmindeed07:43
seb128yeah, I'm just not able to find hacks that work for some of the things07:46
seb128I feel like hacks are not enough to get things fully working07:46
seb128we need more support from snappy itself07:47
seb128dpm, dholbach, I'm fine moving things to another place if you feel like it would be better07:52
dpmthanks seb128, for now we'll try to make a gtk part that can be edited in one place and reused by gtk apps07:55
seb128good luck getting one to work07:56
seb128I'm not wanting to recommend anyone to copy the shell hacks in the calculator used to copy schemas&co though07:56
dpmok ok :)07:58
=== Kaleo_ is now known as Kaleo
d_edis there a way of handling i18n in the snapcraft descriptions?09:50
ogra_d_ed, see http://bazaar.launchpad.net/~ogra/+junk/nethack/view/head:/nethack.sh and http://bazaar.launchpad.net/~ogra/+junk/nethack/view/head:/snapcraft.yaml09:57
ogra_that deals with basic locale support09:57
didrocksogra_: I think d_ed is asking about the snapcraft.yaml file itself09:58
didrocksgetting that translated09:58
ogra_didrocks,  well, there was support added for env vars inside snapcraft.yaml ....09:58
ogra_but i'm not sure that got released yet09:58
didrocksogra_: how is it related to translating strings in snapcraft.yaml itself?09:59
didrockslike description09:59
didrocksor summary09:59
ogra_so 2/3 from the script above could live in snapcraft.yaml09:59
ogra_didrocks, aaah !09:59
ogra_got it :)09:59
ogra_(ignore me then :) )10:00
d_edAFAIK debian packages didn't, but it's an important part of appstream10:00
didrocks:p10:00
d_edand snapcraft metadata is sort of halfway between the two10:00
ogra_d_ed, definitely worth having a whishlist bug against snapcraft for that10:01
didrocksyeah10:01
JamesTait👋  Morning, folks!10:03
d_edack, will do10:04
d_edlaunchpad?10:04
ogra_yep10:05
JamesTaitCan anybody offer advice to help me package ejabberd? https://github.com/jamestait/snappy-playpen/blob/master/ejabberd/snapcraft.yaml is what I have so far, but I then need to tweak a couple of files in snap/ to prepend $SNAP to some file locations.10:05
ogra_https://bugs.launchpad.net/snapcraft10:05
JamesTaitI've got as far as an installable snap for amd64 with that, but only with the default config (I just need to relocate the config dir to $SNAP_DATA I think).10:06
ogra_JamesTait, use a wrapper script that parses the config ?10:12
ogra_(i'd use the config from SNAP_DATA, then have a startup wrapper script that checks if the target has a config file, if not, parse $SNAP/etc/ejabberd into $SNAP_DATA/etc/ejabberd and adjust the paths)10:14
JamesTaitogra_, maybe!  I'm not quite sure what the "standard" approach would be.  ejabberdctl is a bash script, which sets up some environemtn and calls erl, which is another bash script that sets up some environment and calls erlexec.10:16
JamesTaitogra_, so a wrapper would definitely work, but I wasn't sure it was the right approach - it feels a lot like replicating the functionality of ejabberdctl, so I wondered if I could just set some autoconf parameters and have it all magically work.10:17
JamesTaitBut for handling the config file, that makes a lot of sense - "if none exists, copy from the default location."10:18
ogra_well, if the builtin scripts can be handled by vars you can indeed just set the vars10:20
ogra_and use the default scripts10:20
JamesTaitI'll give that a try then, as a next step.  I think I tentatively poked at that before and got some complaint about something needing to be an absolute path.10:23
sabdflhi all, nice to be visiting the playpen from tokyo :)10:51
dpm\o/10:52
sabdflhi dpm10:53
dpmhi10:53
dpmwe're at https://gitter.im/ubuntu/snappy-playpen too, getting more apps added to the playpen10:56
=== hikiko is now known as hikiko|ln
=== chihchun is now known as chihchun_afk
sabdflsergiusens, you were right, moving those deps to build-packages cleared the issue on gpsd11:38
ogra_hmm, i wonder ... if i put a desktop ... say lubuntu inside a snap ... and add aethercast and bluetooth support and some scrpitery ... if that could become a wireless thing client server ...11:43
ogra_thin11:44
=== hikiko|ln is now known as hikiko
kyrofaToo many chat clients open...11:55
ogra_heh11:56
AndyWojoAre system monitoring tools not great to make snaps of? Can they see the performance counters within the kernel?12:00
AndyWojoI wanted to create a snap of nmon12:01
ogra_you will definitely bbe able to use it in --devmode12:01
ogra_beyond that you will likely need some interfaces that might not be there yet ... (but without you creating a snap we wont know which ones you need, so go ahead, start with the snap and file bugs for the non --devmode cases)12:02
AndyWojoGreat12:03
AndyWojoThanks12:03
sgclarkhi all12:19
kyrofaHey there sgclark12:20
dpmmorning sgclark o/12:21
dpmd_ed, not as far as I know. However, the store supports translations for descriptions of phone clicks, so I'm thinking it should support translations for descriptions of snaps too12:25
dpmJamesTait, that might be a question for you? ^12:25
netphreakHi, guys!12:50
ogra_hey netphreak12:53
dpmhi netphreak :)12:54
kgunnmvo: you about?12:54
kgunnmvo: not sure what's going on (altho i was an early user?) but snap on classic i'm getting12:56
kgunnhttps://pastebin.canonical.com/158168/12:56
JamesTaitdpm, sorry, what was the question?12:57
mvokgunn: does it make a difference if you run this with sudo?12:57
JamesTaitMetadata translations?12:58
d_edJamesTait: yeah12:58
JamesTaitThere's a translations section in the package details page on myapps where you can add localised metadata for the phone scope and snap client to use.12:59
dpmJamesTait, exactly, are these supported in the store for snaps?12:59
dpmexcellent12:59
JamesTaitThe snaps API works in exactly the same way as the clicks API in that regard - if the client sends the Accept-Language header, the response should be automatically translated.13:00
JamesTaitAssuming the developer has entered the translations, of course.13:00
kgunnmvo: nope, same response13:01
JamesTaitWe currently don't support extracting translations from, say, snap.yaml or .desktop files.13:01
ogra_looks like snapd isnt running ?13:01
mvokgunn: hm, in a meeting right now, could you please check the last few lines of /var/log/syslog13:06
kgunnack13:06
mvokgunn: and if there is nothing interessting in there, could you mail me the full syslog ? I will inspect it then and see if it gives me some clues13:06
dpmthanks JamesTait, d_ed hopefully that answers your question?13:07
d_edyep13:07
dpmin short, you can enter translations in the store's web UI13:07
dpmok, cool13:07
kgunnmvo: ta13:11
kgunnmvo: i just uploaded it here https://drive.google.com/a/canonical.com/file/d/0B4GvOYxwuvpFTllJdk9QYS1vQUk/view?usp=sharing13:11
kgunnmvo: fwiw, a couple of confessions...i have stable-phone-overlay ppa applied13:12
kgunnfor unity813:12
kgunndesktop-session-mir, and i also ran the little script for "early users" as advertised in13:12
kgunnhttps://docs.google.com/document/d/1LsWd76jH9pEep8tz1SI4UPBFmbFTJGec9u518UJnW9Y/edit#heading=h.qxx7ico5okhd13:13
mvokgunn: ta, I can't see anything obvious here, hmmm13:14
slvnsergiusens, Hello! you suggested me to set an env variable for this issue. https://bugs.launchpad.net/snapcraft/+bug/157558213:15
ubottuLaunchpad bug 1575582 in Snapcraft "Snap package, using SDL2, needs access to libGL.so and DRI dependencies" [Undecided,Incomplete]13:15
slvnI tried, but there is still some erros ... If you have some more ideas ..13:15
sergiusensslvn have you checked for any errors and/or debug messages?13:16
sergiusensso vejmarie solve gl a while back, my recomendation was based on what was done for freecad13:17
slvnsergiusens, I don't know much about gl ... I have written the new errors on the tickets13:18
sergiusenssabdfl using build-packages you also get a smaller snap :-)13:18
sergiusenskyrofa agreed, it is like to many channels but worse as each has its own mechanics :-P13:19
kyrofasergiusens, no kidding13:19
ogra_hmm, so how do i convinnce my snap to have a .desktop file13:24
kgunnmvo: i'll take any advice, i did a remove and reinstall of ubuntu-snappy-cli and ubuntu-core.... but i'd like to get back to a state where i can work on unity8 interfaces with ted13:27
dpmogra_, perhaps with something like this? (files under setup/gui) -> http://bazaar.launchpad.net/~dpm/ubuntu-clock-app/snap-all-things/files/head:/setup/gui/13:29
ogra_dpm, ah, that was the bit i was missing13:29
ogra_thanks13:29
dpmexcellent13:29
netphreakHas the classic mode been reintroduced again?13:32
mvokgunn: can you please run sudo systemctl stop snapd.service snapd.socket  ;  sudo /lib/systemd/systemd-activate -E SNAPD_DEBUG=1 -l /run/snapd.socket /usr/lib/snapd/snapd on a terminal and run snap list in a different terminal and see if this debug switch helps and prints something useful?13:32
kyrofastevebiscuit, I forgot we had wgrant there, he could tell you everything about the builders13:38
kyrofastevebiscuit, https://kyrofa.com/posts/building-your-snap-on-device-there-s-a-better-way if you haven't done it before13:38
kgunnmvo: hmmm, now list works :) https://pastebin.canonical.com/158171/13:39
kgunnthe debug out for snapd is here https://pastebin.canonical.com/158172/13:39
kgunnin case your interested13:39
sergiusensogra_ if you need help go to gitter :-P13:42
ogra_sergiusens, i am there ...13:48
ogra_sergiusens, my prob is that i start running out of free space on my desktop for the different chat clients :P13:52
Mikaelais gitter also open for curious idlers?13:52
kyrofaogra_, make more virtual workspaces, duh13:52
kyrofaMikaela, certainly!13:52
ogra_kyrofa, i have 6 already :)13:53
kyrofaMikaela, https://gitter.im/ubuntu/snappy-playpen13:53
ogra_Mikaela, definitely !13:53
kyrofaogra_, try 913:53
ogra_haha13:53
Mikaelathanks, I will take a look on PC13:53
kyrofaogra_, it will satisfy your desire for symmetry13:53
ogra_i guess then i'll slowly start running out of ram for snapcraft13:53
kyrofaHahaha13:53
=== chihchun_afk is now known as chihchun
kyrofaAnd now my wife starts talking to me on hangouts. Now I have telegram, xchat, gitter, and hangouts14:23
ogra_kyrofa, join us on slack in the warthogs chat !14:24
ogra_:P14:25
kyrofaOh man, I was on there but forgot about it14:25
mvokgunn: hm, list works but it is empty, is that expected?14:29
kgunnmvo: got distracted with a meeting...lemme check more14:30
mvokgunn: same problem, long phonecall :)14:30
kgunnmvo: so weird, find worked ok, but install problematic14:35
kgunnhttps://pastebin.canonical.com/158177/14:36
mvokgunn: hm, 500 error is a store side thing14:36
mvokgunn: is that reproducable?14:36
seb128kgunn, is your (hotel?) internet filtered in some ways?14:37
kgunnseb128: well, we're on classic canonical wifi14:39
seb128k, asking in case14:39
seb128you might have reconnected to the hotel one or something14:39
seb128oh14:40
seb128kgunn, mvo, install errors 500 here as well14:40
seb128seems like a store issue14:41
seb128nessita, ^14:41
sergiusenskyrofa tell her to use telegram :-P14:46
kgunndpm: hey what's the lp branch where i can rebuild calc/clock snap to attempt side load ?14:46
dpmkgunn, `bzr branch lp:~dpm/ubuntu-clock-app/snap-all-things`14:47
kgunnta14:47
dpm`bzr branch lp:~dpm/ubuntu-calculator-app/snap-all-things`14:47
dpmnp14:47
kyrofasergiusens, :P14:47
nessitaseb128, sorry otp, can you please join the internal store channel and report there?14:48
seb128kgunn, ^14:49
SutterHi!..14:53
SutterSo... How Can i Do a snappy app?:D14:55
elopioSutter: hello.14:59
elopioSutter: you can start here: https://developer.ubuntu.com/en/snappy/build-apps/15:00
jamieben_Sutter: you could also join the playpen initiative going on right now with experts to guide you through the experience - https://lists.ubuntu.com/archives/snapcraft/2016-June/000090.html15:01
jamieben_Sutter: and the details on how to connect - https://lists.ubuntu.com/archives/snapcraft/2016-June/000119.html15:01
Sutterwow!..ok! tnx15:01
ogra_Sutter, all conversation currently happens in https://gitter.im/ubuntu/snappy-playpen15:19
ogra_oh, he's gone15:19
ogra_(or she)15:20
evkgunn: is snap install working for you now?15:25
kgunnbout to check15:29
evcheers15:30
kgunnev: appears to be working....15:31
evexcellent15:31
evreally sorry that this happened. We’re working on an incident report now to ensure it doesn’t repeat15:31
kgunnev mvo fwiw, interesting i was trying to install sideload style...but grabbed from the store?15:32
kgunnhttps://pastebin.canonical.com/158193/15:32
kgunnbut at least the store works ;)15:38
sethjcan someone confirm this is a bug in snapcraft and not in Unity Tweak Tool? https://bugs.launchpad.net/snapcraft/+bug/158719315:41
ubottuLaunchpad bug 1587193 in snapcraft (Ubuntu) "build of python3 snap fails with 'error: option --single-version-externally-managed not recognized'" [Undecided,New]15:41
evkgunn: I don’t think that’s correct. Your first pastebin tries to install a snap from the store and fails15:45
evoh wow no15:45
evI see what you mean now15:45
evmvo: https://pastebin.canonical.com/158193/ - any idea why it’s fetching from the store instead of sideloading here?15:46
mvoev: does it make a difference if you do sudo snap install ./ubuntu-calculator-app_2.1+snap3_amd64.snap15:47
mvokgunn: -^15:47
mvoev: this looks like a bug I'm not entirely sure yet about the details15:47
kgunnmvo: yes, ./ worked to sideload...i shoulda tried that15:48
dpmhey, can someone help us answer this question from the community team Q&A?15:49
dpm<ahayzen> QUESTION: Due to snappy using A/B partitioning, when we get system updates will that mean that we will have to reboot to install these? Or will we be able to have live system updates?15:49
dholbachhey attente - how are you? do you have any experience with qt4 apps?15:49
dpmahayzen, ^ :-)15:49
dholbachqt4 snaps I should say15:49
ahayzendpm, \o/15:49
dholbachI'm working on https://github.com/ubuntu/snappy-playpen/tree/musique right now15:49
dholbachand it looks for /etc/xdg/Trolltech.conf instead of its $SNAP/... counterpart15:50
dholbachand I can't find that in its source code15:50
mvokgunn: thanks for confirming still a bug on our side15:51
kgunnmvo: want me to file one?15:51
kgunnjust to have it...15:51
kgunnrealize not a huge deal15:51
dpmdholbach, you might wanto to have a look at how we deal with qt5.conf in the qt5-launcher part. Perhaps we can do something similar for qt4 apps?15:54
dholbachdpm, it's what I borrowed a lot of ideas from :)15:54
dpmok ok :)15:55
attentedholbach: can you try setting $XDG_CONFIG_DIRS in the wrapper script?15:55
attentedholbach: alternatively, maybe there's some way to set $sysconfdir at build time?15:56
dholbachattente, like this?15:56
dholbachexport XDG_CONFIG_DIRS=$SNAP/etc/xdg:$XDG_CONFIG_DIRS15:56
dholbachexport XDG_CONFIG_DIRS=$SNAP/usr/xdg:$XDG_CONFIG_DIRS15:56
attentedholbach: yeah, does that do anything?15:57
dholbachno15:57
dholbachI couldn't find the lookup in the source, so I suspect its further down the stack somewhere15:57
dholbachbut $sysconfdir sounds like something I should try15:57
dholbachno mention of sysconf anywhere15:59
dholbachattente, ^ do you know of any other qt4 snaps?16:06
attentedholbach: no, sorry. if you want, i can help take a look at your snap16:09
verterokmvo: doing a rollout, might get a couple 500's from downloads ATM16:11
dholbachattente, I'll need to run in a few, but if you have a bit of time, that'd be great16:12
dholbachI suspect this might be similar in other qt4 apps16:12
seb128dholbach, attente, http://sources.debian.net/src/qt4-x11/4:4.8.7%2Bdfsg-8/src/corelib/io/qsettings.cpp/?hl=2672#L353116:13
seb128dholbach, attente, basically you need to rebuild your qt4 with different buildtime option16:13
dholbachouch16:14
attenteseb128: thanks16:14
seb128that's back to the issue I'm trying to point on the mailing list16:14
ogra_seb128, well, but datadir is defined at build time ... you can just set it to the right snap dir :)16:14
dholbachok, I'll take a look at that tomorrow morning16:14
dholbachand see if that helps16:14
seb128rebuilding?16:14
seb128or the list discussion?16:14
ogra_seb128, all your complaints assume you just (ab)use the debs16:15
seb128ogra_, no they don't16:15
ogra_would you build from source you could adjust the built time env16:15
seb128right16:15
seb128but that wouldn't work16:15
ogra_which would immediately solve all yoour issues16:15
ogra_why not ?16:15
seb128no16:15
seb128because what value would you use?16:15
seb128--sysconfdir=/snap/currrent/software/etc ?16:16
ogra_yeah,something like that ...16:16
seb128that directory has no garantie to not change in a futur snapd version16:16
seb128and that would make the file installed in "/snap/currrent/software/etc16:16
ogra_i thinnk it is supposed to stay stable over the iteration of 1616:16
seb128in the squashfs16:16
seb128so be on "/snap/currrent/software//snap/currrent/software/etc"16:17
seb128in the mounted snap16:17
ogra_an you cant use ./software/etc ?16:17
seb128well then the code would try to open /software/etc/config16:17
seb128which doesn't exist16:17
ogra_it would remove the dot ?16:18
ogra_that sounds like a broken build system16:18
seb128I don't understand what you mean16:18
seb128it tries to open the conf at $sysconfdir/config16:18
ogra_make your dirs relative, cd too the workdir from a wrapper script16:18
attentethink ogra_ is suggesting using a relative path for $sysconfdir16:18
ogra_yeah16:18
ogra_for all dirs16:19
seb128so your program would only work if you start if from some specific dir?16:19
seb128also I don't think that would work16:19
ogra_well, from its confined dir ...16:19
seb128make install would get confused16:19
ogra_it cant work anywhere else anyway16:19
zygao/16:19
seb128k16:19
seb128well, make install is the issue there16:19
seb128it's going to try to install to a relative path16:20
ogra_i'm sure you can trick it sommehow to DTRT16:20
seb128it's like the locales right?16:20
seb128again I'm happy if you find the "somehow"16:20
attenteis there a way to tell qt4 to check a different dir at runtime? no envvar?16:20
ogra_(i totally agree about the distro patch complaint btw)16:20
ogra_qt4 ? is that still a thing ?16:21
seb128attente, seems not, did you see the url I shared?16:21
* ogra_ thought qt4 would have been gone the way of gtk1.2 by now :)16:21
attenteseb128: yeah, i saw. but i was wondering if there's some codepath that overrides it at runtime16:21
seb128not that I found16:21
attenteseb128: what about https://sources.debian.net/src/qt4-x11/4:4.8.7%2Bdfsg-8/src/corelib/io/qsettings.cpp/?hl=2672#L110716:23
seb128attente, that's only for the user config?16:24
ogra_grrr ... upstreams ... even canonical peoplle hardcode paths in their upstream code !!!16:25
* ogra_ tries to cook up a patch for the webbrowser app so it becomes usable in snaps16:25
seb128lol16:25
ogra_and this one is really evil ... "cant find my app in /usr/share/webbrowser-app ... so i *must* be on a developer system ... lets hardcode all paths to ./src then !"16:27
seb128that's common practice16:27
seb128well not unseen at least16:28
ogra_(but indeed lets expand the path to the full absolute one starting at / before we inject it into the binary)16:28
attenteseb128: XDG_CONFIG_HOME=/ASDF strace musique 2>&1 | grep ASDF16:28
evmvo, kgunn: heads up that the store is down again16:28
attenteit seems to be looking there after defining it16:28
evwe’re in the process of rolling back the bad deployment16:28
seb128attente, yes, that's what the url I share was documenting?16:29
attenteseb128: yes, but it doesn't require a rebuild of qt416:29
seb128attente, well it's the user config16:31
seb128attente, it's trying to append .config to it no?16:31
seb128like /ASDF/.config/Trolltech.conf ?16:31
seb128(I didn't try here, just my reading)16:31
seb128unsure if relative paths would work16:32
attenteseb128: it looks at "/ASDF/Trolltech.conf" for me16:32
seb128oh oh16:32
seb128ah, makes sense16:32
attenteso i guess just defining XDG_CONFIG_HOME=/snap/<name>/current/etc/xdg should work16:32
seb128that seems wrong16:33
seb128but yeah, could work16:33
seb128well it would need to be made a list16:33
seb128so it still find the real user config if there is one16:33
attenteyeah16:34
wililupyQuestion: Is anyone else getting http error 500 when trying to snap refresh ubuntu-core?16:42
wililupyI'm getting this error on my 16.04 laptop and from my Ubuntu-core KVM's.16:42
popeywililupy: i just tried and it worked here16:44
wililupyInterresting....16:44
popeynot in a kvm, but on bare metal, if that matters16:45
wililupyThat is so weird, I have been trying for 30 minutes and as soon as I question it here it is working.16:45
popeyhah16:45
popeymagic16:45
wililupyI should have asked sooner ;P16:45
wililupyThanks popey16:46
seb128there was an issue with the store earlier it seems16:46
seb128but yeah, it has been fixed16:46
popeynp16:46
ogra_ev, is the store supposed to be ok again ? all my phones just spin endless "looking for updates" now17:17
ogra_hmm, snap find on the desktop also hangs hard17:19
noise][ogra_: looks like a connectivity outage17:20
ogra_ah, finally timed out with a horrible 5 line traceback error message17:20
ogra_Chipaca, ^^ could we make that a little less scary looking ?17:20
ogra_noise][, lovely17:21
hichhikerhi, what is the _proper_ location to store snap-specific data to make it keep across version updates (in Snappy)? Specifically I am playing around with making a Redis snap package - but want to know where do I put the data dumps, etc17:22
hichhikerAPP_USER_DATA seems to be versioned along with the app, so each time I update the app I seem to get a new user data directory :-(17:23
kyrofahichhiker, indeed, each version gets a new directory, but the old version's data should be copied into the new one17:26
kyrofahichhiker, this helps in case the snap needs to be rolled back17:26
hichhikerhmm,  I will check on that. How does old data in USER_DATA is cleaned up then? I get current and 1 last version of the app, but it seems that every version of the user data is still there17:27
kyrofahichhiker, I believe it will keep three versions before pruning them17:28
hichhikerkyrofa, thanks, I am just starting out with Core/Snappy and find the learning curve is a bit steep - (mostly because of lack of documentation and conflicting docs)17:29
kyrofahichhiker, yeah docs are a known weak point-- we're working on that :)17:29
hichhikerkyrofa, not the case on my box, I get at least 16 versions of data17:30
kyrofahichhiker, hmm, that may have changed. Or it may only apply to snaps in the store17:30
hichhikerkyrofa, could be... I am on 15.04 if it matters (could not find 16.04 release to download) - also, for whatever reason my snap version is ignored and version looks like a hash of some sort - like this: 'IVMeYWXTaHdc' - the package.yaml has the right value, so not sure why that is happening17:34
kyrofaOh!17:34
kyrofaThat's the difference then17:34
hichhiker15.04 or hash?17:34
kyrofaYou should just use snappy on 16.04 desktop or server while waiting for images17:34
kyrofaThe fact that you're using 15.04 invalidates a lot of assumptions I was making. The hash means your app is sideloaded17:35
hichhikerthe key thing I need from it is the Core read-only OS deployment - is that part of desktop now?17:35
kyrofaNo, the desktop OS is not read-only, but you can use snaps on it just like you can in the images17:36
hichhikerBTW, the device I am working on will not be connected directly(or more likely at all) to internet - is there a way to deliver snaps beside sideloading?17:36
kyrofaThere are probably other ways that will be supported, but sideloading is likely the easiest17:37
hichhikerOk, my hope is to deliver snaps (preferably signed/encrypted) on removable media that is automatically recognized on insert and updated if needed - but I am sure we are far away from that dream yet :-)17:39
hichhiker16.04 seems like it is going to be drastically different, but since it is not out yet, I may switch back to using ubuntu server for now as a half-way step. It is just too tempting to just give up on snaps and go back to .debs once I do that :-/ I really like the Core idea for appliances17:41
hichhikerI assume server 16.04 has snappy as well?17:41
qenghoYes.17:41
qenghoNot "snappy" program. Some renaming. Just "snap".17:42
hichhikerquengho - is that true of Core 16.04 as well?17:43
hichhikerone more question, is the Grub for Core custom or off-the-shelf? It is possible to replace it with another grub fork or is there Core specific stuff there?17:44
sergiusenshichhiker if you do snaps now, you will be ready for when ubuntu core comes out17:45
sergiusensyou will be able to migrate transparently17:45
gouchiis it possible to know if you are in mobile or desktop environment with snapcraft ? So that we can push different configuration file ?17:45
qenghohichhiker: Yes. Ubuntu 16.04 was released with our progressing work on snappy. It's the best place to work on snaps.17:45
hichhikerThanks17:46
kyrofahichhiker, the grub question is one for ogra_ I think17:47
qenghohichhiker: ubuntu-core will want to manage the bootloader configuration, so I would be scared of messing around with it much.17:48
hichhikerqungho - I wanted to see if I can get TrustedGrub(1 or 2) to work (it uses TPM to store drive encryption/boot signing keys) - but it is another pipe dream :-/17:50
qenghohichhiker: I know pretty much nothing about this, but I am pretty sure there will be a way for you. It might be that you create your own os or grub package too.17:53
wililupyI'm trying to build a .snap for armhf so I tried snapcraft --target-arch armhf snap and I get the following error: http://pastebin.ubuntu.com/17098210/19:03
wililupyits the hello world example from snapcraft-examples git.19:03
wililupyNot sure what it means. Do I need to add the arch to the snapcraft.yaml for the hello part?19:04
qenghowililupy: The "hello" plugin doesn't implement building another architecture. It lacks a function that says it supports it, and it lacks test and settings in build() that implement it.19:05
mrasifhello sir19:05
mrasifI developed an app.19:06
qenghowililupy: You need a armhf machine or to borrow one from launchpad's builders for branches there.19:06
sergiusenswililupy is there a hello plugin in there?19:06
mrasifthen I upload it to ubuntu distro19:07
mrasifbut it still in review section19:07
wililupysergiusens: no, the hello-world example uses cmake plugin19:07
niemeyer_jdstrand: Curious about why my spread snap hit the review queue19:10
wililupyqengho: so your saying I should build my .snap on an armhf device instead of an amd64 server?19:10
niemeyer_jdstrand: Are we reviewing for home?19:10
qenghowililupy: The best thing is to help implement cross-platform support, but the fastest thing is to use a real or virtual machine to make your package.19:11
dpmjdstrand, do you use askubuntu?19:14
dpmjdstrand, if so, what you just posted in the mailing list would be a perfect answer to http://askubuntu.com/questions/783979/how-to-debug-snaps ? :)19:14
jdstrandniemeyer_: I approved19:17
qenghowililupy: in a plugin, implement enable_cross_compilation(), which peeks at self.project to set values in self that inform the build() about architecture.19:25
wililupyI'm using the cmake plugin, shouldn't that already be implemented?19:26
wililupyqengho ^^19:26
qenghowililupy: cmake doesn't mean anything about what you're compiling. Are you passing the right flags to the Fortran compiler or whatever?19:27
qenghowililupy: That's my way of saying, no, knowing that you're running cmake to run a compiler doesn't mean the compiler knows enough to switch architecture targets.19:29
qenghoIt *could* be enough. It might not be.19:29
wililupyqengho, that makes sense, which is why snapcraft wants me to make sure that I have the arch in the hello parts section.19:30
qenghowililupy: and today, the cmake plugin doesn't try to know...19:30
wililupyThat is extremely helpful qengho.19:30
qenghowililupy: waaaait, snapcraft doesn't require arch. Not any recent version. Are you on 16.04?19:31
wililupyqengho. Yes.19:31
qenghowililupy: make a new dir. and cd there. Run "snapcraft init". Does the new yaml have arch in it?19:32
wililupyqengho no.19:33
qenghowililupy: it's not required.19:33
wililupythe snapcraft.yaml file I was using was from a clone from github.com/ubuntu-core/snapcraft-examples19:34
wililupyI'm just trying to snap the hello world cli example, which works fine from amd64, but when I try to make it for armhf I get the errors.19:34
qenghowililupy: I'm very sorry, but that example must be older than dirt.19:35
wililupymost of the examples are ;)19:35
sergiusenswililupy cmake plugin has no cross compilation support either19:36
sergiusenswililupy we don't expect it any time soon either19:36
wililupysergiusens: ok. I'm going to try to build my .snap on my pi2 running 16.04 server.19:36
erioHello20:52
erioCouldn't solve the locale error the other day20:52
eriohttp://askubuntu.com/questions/783758/snap-build-fail-on-locale-error20:52
erioLeaving here in case someone has seen this already and know how to solve20:53
wililupysergiusens, qengho: I successfully got the hello world example to build on my pi2 and it works on my test device. I'm going to read more up on the --target-arc flag on snapcraft to see what exactly it does work on.21:45
sergiusenswililupy it only really works for building kernels21:51
sergiusensit is rather low priority everywhere else21:51
wililupysergiusens: Ok. I was just hoping that porting a app snap or gadget snap from one arch to another would be as simple as just the --target-arch flag in snapcraft. Its like you say, not a high priority since I can build on either arm or x86.21:54
eriowCould one use ELDK to build, throw the binaries in the same folder and call snapcraft snap after?21:59
eriowhttps://wiki.ubuntu.com/ARM/RootfsFromScratch22:04
eriowGood luck wililupy22:04
=== lpotter_ is now known as lpotter

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