/srv/irclogs.ubuntu.com/2016/05/25/#snappy.txt

=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
zygao/07:36
noizerogra_: Hi I installed yesterday my new build of snappy08:04
noizerbut when I'm trying to use snappy as command then i got : command not found08:04
zyganoizer: snappy is now "snap"08:08
zyganoizer: (the command)08:08
noizerow dam08:08
noizerzyga excuse me08:08
noizerzyga when I'm starting up my ssh tunnel then it comes : It's a brave new world here in snappy Ubuntu Core! This machine08:09
noizerdoes not use apt-get or deb packages. Please see 'snappy --help'08:09
noizerfor app installation and transactional updates.08:09
noizermaybe change that?08:09
zyganoizer: yes, stale motd most likely08:09
noizerzyga :p shell classic does that changed too?08:10
zyganoizer: ?08:11
zygacurrently there's no classic shell08:11
noizerok08:11
noizerso the builds needs to be developed from somewhere else?08:11
zyganoizer: you can get a chroot and use that08:13
zyganoizer: I have a simple script, not tested really08:13
zygahttp://paste.ubuntu.com/16675069/08:13
zyganoizer: if you take that and test it you could help me out08:13
zygathis is poor man's classic08:13
noizerok I'l try it out for you08:14
zyganoizer: that dpkg --print-architecture was suppoed to be 'uname -m'08:15
zyganoizer: anyway, you get the idea08:15
noizerzyga So when its not working I need to change somethings?08:16
zyganoizer: yeah, there's no dpkg on the image08:16
mwhudsonmvo: good morning, did i talk to you about go shared libraries and snappy recently?08:16
zyganoizer: change it to use uname -m instead of dpkg --print-architecture08:16
zygamwhudson: o/08:16
noizerok08:16
mwhudsonzyga: hi08:17
noizerzyga little mistake wget isn't available on newest xenial build08:19
noizerI'l will download it myself xd08:20
noizerzyga hyperlink doesn't work ether08:21
zyganoizer: hmm :)08:22
zyganoizer: the link was okay when I checked it, perhaps the arch is wrong,08:23
zyganoizer: in any case, please use that as a starting point08:23
noizerok thx08:25
zyganoizer: note, perhaps, ironically, the easiest way for this is to create a snap08:29
zyganoizer: that has minimal tooling (wget) to setup classic08:29
zygathis is just a stop gap before classic returns as a built-in thing though08:31
noizerzyga lol xD08:41
noizerOk i try to make the snap and send you the snap for other developers08:41
zyganoizer: well, whatever helps you move your snaps around :)08:48
noizerzyga heheh it's a pleasure to help ubuntu snappy :D08:49
noizerwith such good support08:49
zyganoizer: did you get luck with that armel snap you were working earlier?08:50
noizerzyga didn't get it snapped but my TTS of nuance works now08:51
noizeron a ubuntu LTS08:51
noizerand on the classic shell of an older snappy08:51
noizerso when i got it snapped I'll let you know about this08:51
noizerzyga thx for all the help of that it is a very good cost changer for us08:52
nimoovHello everybody. I was wondering how to properly package LLVM/Clang with Snapcraft. LLVM & Clang are separated in two different git repositories, and Clang needs to be git cloned into a subdirectory of LLVM. I couldn't find any doc about parts with multiple git sources. Is it necessary to write a snapcraft plugin?08:55
zyganimoov: you can create a snapcraft plugin that understands this08:56
zyganimoov: you can use makefiles to create symlinks08:56
zyganimoov: you can build everything with a script on the side and just copy bits with snapcraft08:56
zyganimoov: anything that rocks your boat :)08:56
nimoovWell that is great. Loads of options. I like that. Thank you for the help ;)08:59
zyganimoov: good luck, I was exploring with a rust-in-a-snap package09:01
zyganimoov: and I just started with prebuilt rust as a starting point09:01
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
noizerzyga snap install noizersnap.snap --allow-unauthenticated               what is wrong about this?09:21
zyganoizer: is that 16 or 15.04?09:22
noizer1609:22
zyganoizer: on 16 that's snap install --devmode ...09:22
zyganoizer: --allow-una.adsasdads (terrible word) is gone :)09:23
noizerzyga niceee09:23
zyganoizer: :-)09:23
noizerzyga I tried to make the snap on my Virtual Machine Ubuntu 16.04 LTS and install it on my rpi 2 but thin its incompatible is there some way to cross snap it?09:24
zyganoizer: no, not in general yet09:25
zyganoizer: I would recommend to get two PIs09:25
zyganoizer: one with something like ubuntu mate09:25
zyganoizer: and one with an all-snap image09:25
zyganoizer: or just an all-snap image and that classic script09:25
zyganoizer: (I did that last weekend)09:25
noizerhehe got 4 rpi so no problem09:26
noizermaybe i build it on a prev version of snappy it will work too09:26
zyganoizer: cool, ping me if you get stuck, I was through that experience :)09:26
zyganoizer: you cannot quite run snaps on mate yet, we're working on fixing some things that prevent that today09:26
noizerzyga ok nicee. maybe an other question about the release date of snappy. It is for my bosses. when will there be a LTS of snappy?09:27
noizeris that Ocotober?09:27
noizer*October09:28
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
zyganoizer: I don't know, we keep trying to release periodically (weekly)09:51
zyganoizer: we just need to get better at it09:51
noizerok09:52
noizersnap install wget should working just now finding the correct hyperlink09:52
noizerzyga it works I will snap it and sent it too you10:34
zyganoizer: woot, great10:35
noizerjust did some changes on you shell script10:35
noizermaybe not the best ones but is worked on my ubuntu :D10:36
mvomwhudson: no, you did not talk about shared libraries with me recently10:51
mvoJamesTait: do you happen to know if the new /api/v1/metadata branch made it to staging yet? mbordese was working on this and I would love to run curl against it to validate10:52
mvoJamesTait: validate my mock data I put in my tests if they actually match what the store is sending10:52
JamesTaitmvo, it's there, yes.10:54
JamesTaitmvo, it's even in Production.10:54
mvoJamesTait: there is a new-new version of it that takes a dict instead of the previous version that just took ids, is that also available?10:59
mvoJamesTait: it complains in production that I did not send ids, do you know what staging server I should use?10:59
JamesTaitmvo, not yet, no, but I believe the work is scheduled.10:59
mvoJamesTait: search.stagging.apps.ubuntu.com ?10:59
JamesTaitsearch.apps.staging.ubuntu.com11:00
mvoJamesTait: aha, ok. I will just wait for it to happen then. thank you!11:00
JamesTaitmvo, in somewhat-related news: I've noted your bug report about searching for "_" behaving oddly.11:01
JamesTaitmvo, I can explain that: we recently switched to a different type of query on the back-end, and also took a more aggressive approach to cleansing queries.11:02
JamesTaitmvo, this was to reduce the several thousand OOPS reports we were getting daily, mostly from what looks like people accidentally pasting code snippets into the search bar, or leaning on their keyboards.11:03
JamesTaitmvo, because, frankly, since we enabled snaps on the desktop, the daily OOPS report has been useless.11:03
JamesTaitmvo, now we've got that under control and can see if there's an *actual* problem, I'm working on re-enabling "special" characters, or at least as many of them as I can.11:04
mvoJamesTait: ok, thats fine, I think we will add some client side filtering to that as well then11:04
mvoJamesTait: just wanted to double check that this is intended bevhaior11:05
* mvo can't type and gets lunch :)11:05
noizerzyga: how does i need to send you the snap and even the script?11:40
zyganoizer: email to zygmunt.krynicki@... at canonical.com11:41
noizerzyga: sended11:45
zyganoizer: btw, I have something new11:45
zyganoizer: if you want to give it a quick spin before I publish it11:45
noizersure11:46
noizerzyga what is the new thing xD11:49
zyganoizer: https://github.com/zyga/devtools/blob/classic/refresh-bits11:49
zyganoizer: refresh-bits 2.011:49
zyganoizer: I would appreciate any testing you can do11:49
noizerzyga I want to do that but honestly I didn't used refresh-bits 1.0 but I'l give it a shot11:51
noizerzyga is that the thing that you explained a while ago?11:52
zyganoizer: ah, if you don't hack on snapd itself then this is of no use11:52
zyganoizer: thanks11:52
noizeris that for the REST api? snapd?11:53
noizerzyga11:53
noizerzyga: I will do that later but then it should be intresting to test it right now11:53
zyganoizer: that's okay, I will also test this :)11:55
zyganoizer: and after all, there's always 2.0.1 ;)11:55
noizerzyga yes sure xD thats development11:56
noizerzyga does ubuntu searches people for snappy xD11:56
noizersnappy is so intresting for me xD11:56
zyganoizer: I think snappy is interesting to many people :)12:00
noizerzyga sure xD12:00
noizerzyga Does ubuntu recruit many people for snappy?12:01
zyganoizer: what do you mean by that?12:03
* zyga has improved classic.sh to just be a script, no deps required12:03
noizerIf ubuntu searches people to work on snappy12:03
zyganoizer: canonical or ubuntu?12:04
zyganoizer: anyone can work on snappy12:05
noizercanonical xD12:05
zyganoizer: build snaps, send pull requests12:05
zyganoizer: for working for canonical, check out http://www.canonical.com/careers12:05
noizerzyga ok thx I will have alook tonight xD12:06
noizerzyga after my dayjob xD12:06
noizerzyga what does i need to test of the refresh bits?12:11
=== JanC is now known as Guest85398
=== JanC_ is now known as JanC
noizerzyga because i saw i used 1.0.* before12:23
zyganoizer: well, it's just useful if you are patching snapd locally12:40
zyganoizer: you have to first have the full source tree12:40
zyganoizer: don't worry about that if you're not interested in hacking on go12:40
noizerzyga ooh ok12:41
noizerif you have other stuff where you need some help you can contact me and we see then if i can do that12:42
zyganoizer: thanks12:43
josephton ubuntu core images (i.e. u-d-f core ...) /snap/bin is in root's PATH but not on ubuntu classic images (snapd 2.0.3)  Is that expected?  Will that change?13:02
zygajosepht: probably a bug13:06
zygajosepht: can you please report it13:06
zygahttps://github.com/zyga/devtools/blob/master/classic.sh13:07
zygaogra_: ^^13:07
zygaogra_: fire away and tell me if that is sane13:07
zygathis gives you classic on any snappy device13:07
josephtzyga: there's already bug 1576716 if that's not sufficient let me know and I'll file a separate bug.13:07
ubottubug 1576716 in snap (Ubuntu) "Snap application requires root privileges " [Undecided,Confirmed] https://launchpad.net/bugs/157671613:07
zygahmmm13:07
zygajosepht: that's not it I think13:08
zygaalthough13:08
zygayes it might be the same13:08
ogra_zyga, hehm your use of TRAP is interesting13:08
zygaogra_: oh, did I make a mistake?13:08
ogra_doesn6t that EXIT after the first unmount ?13:09
zygano13:09
zygait really work13:09
zygait will EXIT when the shell quits13:09
zygaI don't exec13:09
ogra_you should call some kind of cleanup function that loops over the mounts and only have one trap13:09
ogra_are you sure it unmounts them all ?13:10
zygaogra_: ohhh, maybe not !13:10
zygaogra_: I see what you mean now13:10
* zyga checks13:10
ogra_i would guiess it stops after proc13:10
ogra_leaving 7dev and sys behind13:10
zygaogra_: thanks, it is broken indeed13:10
ogra_jzst create a cleanup() function you call from the trap ...13:11
zygayep, thanks13:11
noizersergiusens: Hi is that normal when I'm downloading snapcraft from github and install it that there many dependencies missing?13:11
ogra_the rest looks sane13:11
zygaogra_: better?13:12
kyrofanoizer, you probably shouldn't install from github, just run out of its bin/13:13
noizerkyrofa: Ok13:14
ogra_zyga, probably unmount -l ... then it doesnt fall apart iof it cant unmount cleanly13:14
kyrofanoizer, to make sure you have the right dependencies, you can use apt-get build-dep snapcraft13:15
zygaogra_: thanks13:15
zygadone13:15
ogra_cool13:16
ogra_zyga, oh, you might want a sudo check13:16
ogra_ahm there is one, sorry13:17
=== chihchun is now known as chihchun_afk
ogra_scrolled off screen13:17
ogra_zyga, http://paste.ubuntu.com/16680321/13:19
ogra_zyga, you want a mkdir xenial/dev/pts between line 50 and 5113:20
ogra_or better mkdir -p13:20
zygaogra_: maybe you want to send me a patch? you seem to know this better than I do13:21
ogra_(the subdir isnt there by default)13:21
* zyga isn't sure what /dev/pts does really13:21
zygaah13:21
ogra_just add: mkdir -p xenial/dev/pts13:21
ogra_between these two lines ... thats all13:22
ogra_oh13:23
ogra_and you probably want to umount xenial/dev/pts before unmounting xenial/dev :P13:24
zygaogra_: oh, man I'm glad I showed you the code :)13:26
zygalooking at fixing this13:26
ogra_zyga, http://paste.ubuntu.com/16680569/ take that one :)13:27
ogra_the umount order matters a bit :)13:28
ogra_(proc should be last since it has /proc/mounts)13:28
zygaogra_: trying13:29
zygaogra_: yeah13:31
ogra_awesome13:31
zygaogra_: I also improved earlier bits to make more sense13:31
zygaogra_: tested on aarch64 and armhf13:31
zygaI wonder if this could be snap install classic :)13:32
ogra_i'm runing it in a 6 weeks old pi3 install :)13:32
ogra_well, mvo wants to ship the delta of the os inside the snap13:32
zygaogra_: aarch64 chroot on pi3?13:32
ogra_nah armhf13:32
zygaogra_: ah, I remember that13:32
zygaogra_: yeah, small download13:33
ogra_to save the downloading13:33
ogra_no download at all13:33
mvozyga: we had this (we still have it in the store, its just unpublished)13:33
mvozyga: a snap that includes this script (well, not this script, a similar one :)13:33
ogra_we just ship a tar,xz somewhere inside the rootfs ...13:33
mvozyga: but the current agreement on this is to have the delta and generate classic from that13:33
ogra_i'm fiddling with the build scripts currently to make that work by friday ...13:34
zygamvo: I see, thanks for clarifying that13:39
zygaogra_: well the snap would still contain the delta, right?13:39
mvozyga: the dellta is part of the OS snap itself13:39
zygaactually it might be useful to say ./classic --precise :)13:39
zygaaaah13:39
zygaso all pre-shipped13:39
zygaThanks13:39
mvozyga: yeah13:39
zygaanyway, devtools are not end-user tools, they are for hackers to hack :)13:40
mvozyga: having a different approach is actually nice, we could still have this as a normal snap13:40
zygaso I look forward to proper classic13:40
mvozyga: like zygas-classic or something13:40
ogra_right, we'll just ship the delta as compressed tarall in ... say /usr/lib/snapd/classic13:40
mvozyga: i.e. feel free to just snap it and put it into the store13:40
mvoogra_: \o/13:40
ogra_and if you enable classic it unpacks it13:40
mvoogra_: plus something like removed_files (if we need that) - not sure if we have files we create in the livecd-rootfs and that we need to remove when building classic13:41
ogra_mvo, though hwo do you plan to run that ?13:41
ogra_that will be a ton of additional bindmounts, no ?13:41
ogra_to create a proper chroot dir13:41
zygakgunn: hey, I wanted to ask about mir13:44
jdstrandroadmr: fyi if you're more comfortable with pushing r667 as a revision, feel free to pull that (it is not at all time-sensitive so feel free to skip if you've already pushed r666)13:44
zygakgunn: I made some improvements to tooling, you should be able to run ./run-devel-vm --visual now to test your mir snap13:45
zygakgunn: (and mir interface)13:45
roadmrjdstrand: I have but it's not deployed yet, I can somewhat easily update to 667.13:45
roadmrjdstrand: (we've been having some molasses issues in the pipeline - working on it!)13:46
kgunnzyga: awesome! i will give it a try13:47
jdstrandroadmr: ack, thanks :)13:47
mvoogra_: how do you mean? how do I plan to "run that"? create classic from the delta? remove the extra files? not sure I follow13:51
mvoogra_: my plan is to actually unpack the squashfs not take the running image13:51
ogra_mvo, well, we will have a tarball that has the missing files ...13:51
mvoogra_: because the running image is full of bind mounts that are confusing13:51
ogra_ah, so you unsquash and then untar on top oif that ?13:51
mvoogra_: yeah and maybe (if we need to) apply something like removed_files13:52
mvoogra_: i.e. remove stuff we create in the squashfs but don't actually want on classic classic13:52
mvoogra_: does this sound sensible? or am I overlooking something?13:52
ogra_no, sounds fine13:53
ogra_i was just ont understanding the approach to get a chroot dir13:53
ogra_didnt think about unpacking :)13:53
mvoogra_: great, thanks for double checking!13:54
=== chihchun_afk is now known as chihchun
noizersergiusens: Hi I tried now with bin/snapcraft (download from github) and go the error no module named yaml. but I installed pyyaml already what now?14:36
kyrofanoizer, you need the python3-yaml package14:41
qenghonoizer: did you get the rest of the snapcraft files? I think one of them is called "yaml.py", e.g.14:41
kyrofanoizer, did you install build-deps as I suggested?14:41
kyrofanoizer, or you can just look in the debian/control file and you'll see a list of dependencies14:41
kyrofanoizer, by the way, I didn't ask: why are you wanting to run from source?14:42
noizerkyrofa: I made a new image of xenial xerus for my rpi 2  and made a chroot with zyga his script and when i'm trying to install snapcraft with apt-get it won't work14:43
noizerkyrofa: so I tought maybe from source14:44
kyrofanoizer, can you define "won't work" ?14:44
noizerkyrofa: when I did apt-get install snapcraft. he won't find the snapcraft package14:45
kyrofanoizer, did you run `apt-get update` first?14:46
noizerkyrofa: yes i will do it again14:46
kyrofanoizer, make sure you have universe enabled14:46
noizerkyrofa: OK and how will i do that14:48
noizerkyrofa: sudo add-apt-repository universe14:48
kyrofanoizer, pastebin your /etc/apt/sources.list14:48
noizertried this but he won't find the add-apt-repository command14:48
noizerkyrofa: http://paste.ubuntu.com/16683077/14:50
kyrofanoizer, uncomment lines 17-2014:50
kyrofanoizer, run `apt update` again and then try `apt install snapcraft` again14:51
beowulfkyrofa: hi! in relation to node-engine pr, would you know what's causing this? https://pastebin.canonical.com/157244/15:01
plarselopio: fgimenez: have anything to discuss today? or are you too busy?15:01
=== charles_ is now known as charles
kyrofabeowulf, well that's not a helpful error. Try running snapcraft -d snap15:02
kyrofaDoes it give you any more information?15:02
fgimenezplars, nothing from my side, elopio?15:02
beowulfkyrofa: oh, that's more helpful, thanks15:03
kyrofabeowulf, yeah I don't see anything obviously wrong with the yaml15:04
beowulfkyrofa: oops, found it https://github.com/earnubs/snapcraft/commit/c21679fe34fee068fedf8c80d8488ad518b4905e15:38
kyrofabeowulf, ahh, ah ha. Note you could just use `extend` there if you like having them both15:39
noizerkyrofa: that worked for now but got an other error when I'm trying to use snapcraft http://paste.ubuntu.com/16683077/15:44
noizerow wrong pastebin15:44
noizerkyrofa: http://paste.ubuntu.com/16684897/15:45
kyrofanoizer, snapcraft 2.9 hasn't made it to release yet, which means you're still running out of source (at least partially)15:46
kyrofanoizer, not sure exactly what happened there, so I'm not sure how to fix it I'm afraid15:47
noizerkyrofa: ok dammed15:47
kyrofanoizer, might be easiest to toast the chroot and try again15:47
jdstrandsergiusens: hey, so I saw you take a bug from zyga recently and thought I'd offer up bug #1577514. zyga has a poc for an ld preload lib that I think could just fit in snapcraft (at least, I think that is what zyga was envisioning-- he could give more details)16:05
ubottubug 1577514 in Snappy "Allow out of the box use of chromium based apps" [Undecided,Confirmed] https://launchpad.net/bugs/157751416:05
jdstrandsergiusens: see comment #2 and #3 in particular16:05
jdstrandsergiusens: note, I'm only offering that info as 'fyi'16:13
zygaogra_: hey17:06
zygaogra_: I need to hug you17:06
zygaogra_: before I do what I need to do :)17:07
=== chihchun is now known as chihchun_afk
wililupyHello zyga.18:56
ogra_zyga, that bad ?19:06
ogra_zyga, lol ... just saw my bugmail ... its all fine19:11
qenghoWhen is next snapd landing? Ideas?19:51
zygaogra_: yes19:52
zygaogra_: :)19:52
zygaogra_: great, any help you can render is appreciated19:52
zygaogra_: I'm not super faimilar with how this works19:53
elopiokyrofa: http://paste.ubuntu.com/16694248/21:07
kyrofaelopio, that's typically what I see when I forget to specify --target-arch21:08
kyrofa(or it's an arch that isn't supported)21:08
kyrofaelopio, that's what you should see when you specify armhf, but arm64 should work21:09
elopiokyrofa: oh wait, that might be the output I got after running amd6421:09
kyrofaelopio, ah, yeah that would be expected21:09
elopioI tried many commands :)  Let me rerun it.21:09
kyrofaHahaha21:10
elopiokyrofa: http://paste.ubuntu.com/16694497/21:21
kyrofaelopio, hmm, we may be missing a build-package there21:22
kyrofalibopenssl-dev maybe21:22
kyrofaelopio, libssl-dev rather21:23
kyrofaelopio, new bug though21:23
elopiolet me try that21:25
kyrofaelopio, dinner time here, ping me on telegram if you hit more issues there21:30
elopiokyrofa: it's building, but it will take a long time in this vm. I think we are done here, enjoy the night.22:00

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