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

=== verterok` is now known as verterok
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
qenghoAre there any Classic RPi kernel images that support the apparmor snapd requires?04:01
niemeyerqengho: ogra_ will know the answer when he's around05:36
=== devil is now known as Guest57113
Girishhello06:15
Girishanybody is there?06:16
=== Guest57113 is now known as devil_
=== devil_ is now known as devil__
=== devil__ is now known as devil_
qenghoGirish: Why?06:16
Girishi have question to ask.06:17
seb128what about asking it then?06:17
seb128instead of asking if somebody is interested in you to ask06:17
Girishhow to download source codes for kernel version 3.19.0-15-generic?06:18
seb128that's not really a snappy question06:19
seb128Girish, unsure if that's the one you want but https://launchpad.net/ubuntu/+source/linux/3.19.0-15.1506:20
dholbachhey, good morning!06:24
seb128hey dholbach06:25
dholbachhey seb12806:33
didrockshey dholbach!06:38
dholbachsalut didrocks06:38
qenghoGirish: You should not expect anyone to commit to answering your unasked question. When on IRC, just ask, and say what you tried already to find the answer.06:47
niemeyerMorning dholbach, seb12806:55
dholbachhey niemeyer06:55
niemeyerqengho: Probably a good life advice too, even if a bit raw.. ;)06:56
tsimonq2!help | Girish07:07
ubottuGirish: Please don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-) See also !patience07:07
tsimonq2qengho: ^ that's a thing :)07:08
niemeyerFolks.. that's enough do-not-ask-to-ask advice for a life time :)07:13
niemeyerGirish: Sorry about that..07:14
tsimonq2yes, I apologize Girish :)07:16
seb128hey niemeyer07:30
niemeyerseb128: o/07:30
zygagood morning07:49
seb128hey zyga, how are you today?07:50
tsimonq2o/ zyga07:50
zygahey guys, I'm good :-)07:51
tsimonq2that's good :)07:51
ogra_qengho, http://cdimage.ubuntu.com/releases/16.04/release/ubuntu-16.04-preinstalled-server-armhf+raspi2.img.xz08:38
=== chihchun is now known as chihchun_afk
zygaara: coming09:02
arazyga, I am running late as well09:02
=== cpaelzer is now known as cpaelzer_away
=== hikiko is now known as hikiko|bbl
Girishhello anybody is there?09:38
Girishhow to make a kernel module from a source code ?09:39
zygahi09:40
zygaGirish: you have to build the whole kernel snap, you cannot ship one module09:40
Girishwhat does it mean? actually i am new in linux environment09:41
Girishactually i have to modify the source code in order to detect a LTE modem in its USB interface but the linux (ubuntu 15.10, kernel version 3.19.0-15-generic) that i m using have option.ko file instead of option.c file so i download the option.c file and modify it now i am confused how do i make its make file?09:46
Girishzyag are you there?09:47
zygaGirish: yes09:48
nhainesGirish: are you doing this for a desktop system or an Ubuntu Core system?09:48
zygaGirish: I think the question nhaines asked is crucial09:48
Girishactually i m using lenovo desktop which is boot into linux through UEFI/LEGACY09:49
nhainesThen this is the wrong channel, although I'm not sure which would be the right one.09:50
zygaGirish: then you just want to fix the issue in the ubuntu kernel, snappy is not a part of this09:51
Girishhow to do this?09:51
ogra_Grtry asking in the #ubuntu or #ubuntu-kernel channel then09:52
=== chihchun_afk is now known as chihchun
zygajdstrand: do you think we can allow sched_setparam or switch seccomp to EPERM instead of killing the process?10:15
=== dpm_ is now known as dpm
zygakyrofa: is this something we still want? https://code.launchpad.net/~kyrofa/snap-confine/create_user_common_data/+merge/29355511:01
=== cpaelzer_away is now known as cpaelzer
=== cpaelzer is now known as cpaelzer_away
=== hikiko|bbl is now known as hikiko
sborovkovHi. From what I understand currently systemd logs on snappy are written to SD card (in case of RPI at least). Is it possible to configure it to use tmpfs for logs?12:21
jdstrandzyga (cc tyhicks): we can probably allow sched_setparam with seccomp arg filtering (sched_setparam 0). as for EPERM, that is on the security team's todo list12:22
kyrofazyga, no. It's no longer necessary with snap run12:26
ogra_hmm, do we have any interface that allows setpriority ?12:31
zygajdstrand: thanks12:32
qengho...probably from chromium.12:40
tsimonq2kyrofa: changed12:42
ogra_qengho, heh, well, i'm packahing nw.js .. so chromium is kind of involved (in case you talked to me above)12:42
ogra_runs fine in --devmode ... and makes an awesome webapp container ;)12:43
jdstrandniemeyer, zyga: hey, I'm having some trouble with go accessing the data in []interface{}. Can you look at: http://paste.ubuntu.com/18023741/12:46
zygajdstrand: looking12:47
jdstrandniemeyer, zyga: I feel like I am being dense or missing a critical piece of info12:47
jdstrandzyga, niemeyer: dang it, that had a typo. use this: http://paste.ubuntu.com/18023866/12:48
zygajdstrand: interface{} is "anything" but the real object behind is has its true type, what you want to do is to progressively check that the type is of a given kind until you reach the data you want12:48
zygalooking again12:49
jdstrandzyga: yes, I have no problem with interface{}. that is easy. eg: something.(string)12:49
zygajdstrand: "baz" is a []interface{} probably12:49
jdstrandzyga: the problem is []interface{}. I can't .([]string) it and I can't range or iterate on it12:50
jdstrandzyga: it is12:50
zygajdstrand: so you want baz, ok := slot.Attrs.([]interface{})12:50
jdstrandI say that in the paste :)12:50
zygaand then access items in baz the same way12:50
jdstrandok, let me try that12:50
zygait's not a []string!12:50
zygait's a []interface{}12:50
zygaand baz[0] may be a .(string)12:50
zygaright?12:50
zygathat's distinct from []string12:50
zygabecause baz[1] may be .(int)12:51
qenghoGo is still martian to me.12:51
jdstrandbaz[0] is a .(string), yes. I understand why .([]string) doesn't work. I just couldn't figure out what *would* work12:51
jdstrandlet me try the thing you mentioned12:51
jdstrandzyga: baz, ok := slot.Attrs.([]interface{})12:54
jdstrandinvalid type assertion: slot.SlotInfo.Attrs.([]<inter>) (non-interface type map[string]interface {} on left)12:54
jdstrandfor baz, ok := range slot.Attrs.([]interface{}) doesn't work either12:55
jdstrandzyga: sorry, I've looked at this for far longer than I care to admit but I just can't seem to pull out the data. it seems like I need to iterate on slot.Attrs["baz"] so I can .(string) on baz[0], baz[1], but I can't figure out how to do that and I'm not sure if I should be doing something else13:00
zygajdstrand: let me help you after the standup13:02
zygajdstrand: can you push something more concrete? do you have a branch with a new interface?13:23
=== cpaelzer_away is now known as cpaelzer
jdstrandzyga: well, I have a branch that I am converting to using the yaml as described and it is severely broken because I'm blocked on this, but give me a few minutes and I can push that somewhere13:35
zygajdstrand: ok13:35
zygajdstrand: I'll help you out13:35
jdstrandzyga: https://github.com/jdstrand/snapd/tree/dbus-bind-broken14:00
zygajdstrand: thanks14:01
jdstrandzyga: I'm using: go build -tags=excludeintegration -v github.com/snapcore/snapd/... && go test -tags=excludeintegration -v github.com/snapcore/snapd/interfaces/builtin14:01
zygaFYI, test implies build14:01
jdstrandzyga: you'll see soon enough, the problem is in SanitizeSlot14:02
zygajdstrand: looking :)14:02
sabdflzyga, hi14:09
zygasabdfl: hey :-)14:09
tsimonq2o/ sabdfl, how are you?14:10
sabdflwell thank you, sad at brexit14:11
sabdflunderstandable frustrations, incomprehensible response14:11
sabdflon the bright side... SNAPS! :)14:11
tsimonq2yes! :)14:12
tsimonq2sabdfl: have you seen the increasing amout of snaps in the playpen? https://github.com/ubuntu/snappy-playpen14:12
jamiebennettsabdfl: lets not mention the England football result either14:12
tsimonq2*amount14:12
sabdfljamiebennett, there are some games where one side HAS to lose14:13
sabdflother gae where everybody CAN win14:13
sabdflgames, that is14:13
sabdfllet's just say this was not a game where penalty shootouts were called for :)14:14
sabdfltsimonq2, yes, great traction, and with distros too14:14
tsimonq2sabdfl: I'm curious, speaking of other distros, what's your opinion on Flatpak?14:15
sabdfltsimonq2, it will end up duplicating snaps, judging from the roadmap they announced, unfortunately14:16
sabdflcant really prevent it, the nature of competitive instincts14:16
tsimonq2sure, I get it :)14:17
tsimonq2just wondering your opinion14:17
sabdfli wish they wouldn't say nasty things about us to try to get support for their own efforts14:17
sabdflit's fine to NIH stuff if you feel you have to do that14:17
sabdfli uspect most fedora / rhel user will choose to use snaps if they are high quality14:17
tsimonq2yeah, I recently started contributing to Snapcraft, and now I love snaps. I used to find them confusing, but I became pleasantly surprised14:17
sabdflbut it's fine that to have other options too14:18
sabdfltsimonq2, :D14:18
sabdflwe just have to blog loudly about the great thinking that underpins the snap architecture14:18
sabdfltechnology and quality should win these races, and we should challenge the other guys to leave the politics at home14:18
tsimonq2yes, agreed14:19
tsimonq2it's sort of ironic how we are supposed to have a universal package format now14:19
tsimonq2but there is multiple formatsd14:19
tsimonq2*formats14:19
tsimonq2Snappy, Flatpak, and I hear of more14:20
ogra_appimage ?14:20
tsimonq2yeah I think that :)14:20
tsimonq2sabdfl: on the note of me contributing, I am really glad I decided to work with the people in the Snapcraft team to get som code in14:21
tsimonq2*some14:21
tsimonq2I've learned a lot14:21
ogra_pay it back by teaching someone else in the community later ;)14:22
tsimonq2that's my plan :)14:22
ogra_:D14:22
sabdfltsimonq2, did you make a plugin?14:23
tsimonq2sabdfl: well no, I added Subversion support14:24
sabdfljust as useful :)14:25
tsimonq2\o/14:25
tsimonq2sabdfl: but I have a couple bugs assigned to me right now14:25
tsimonq2for example, I'm adding checksum support for tar and zip sources14:25
sabdflthat's nice, will help all the different user communities14:26
sabdflgtg14:26
tsimonq2o/14:27
jdstrandzyga: any luck?14:40
zygajdstrand: I was pulled into a few meetings14:52
zygajdstrand: I have vim open but I didn't touch it much14:52
jdstrandheh, ok, no worries14:52
jdstrandI have a meeting myself soon14:53
zygajdstrand: ok, I'm more available now14:59
zygajdstrand: sorry, this is a pretty interesting day15:41
zygajdstrand: I'll be with you shortly15:41
ysionneauhi, about socket activated services in Snappy. Are they automatically started at bootup?15:42
ysionneauOr only when socket is accessed?15:42
jdstrandzyga: no worries. out of meeting and have a bunch of other stuff I can work on15:42
ysionneauThe behaviour I am seeing here is : it's started at bootup. is this normal?15:42
jdstrandzyga: I am quite curious what I'm missing though15:43
=== chihchun is now known as chihchun_afk
zygajdstrand: hacking on it now16:07
zygajdstrand: quick note, pulsaudio 9.0.1 changes APIs a lot, we could drop the shm stuff entirely16:08
zygajdstrand: we should have a backlog item for it16:08
zygajdstrand: arch has it today16:08
sergiusenselopio hey, thinking about migrating the sources while we wait; is it just a matter of movinf the organization?16:11
elopiosergiusens: yes, afaik. You can ask niemeyer if he had to do something else.16:11
joc_sergiusens: hey, i'm trying to use the python3 plugin to pull in plainbox to my snaps, as per the plugin discussion, however i don't get entry points for the programs in the package created like i do if just run pip3 on my host - do you know why that might be?16:11
elopiosergiusens: oh, and reset the jenkins hook, set the team permissions, that too.16:12
elopiore-enable coveralls, update the badges in the README.16:13
pcocaChipaca, Hi! I've been trying to make a snap of httpie16:13
pcocaChipaca, I just realised that you did one a few weeks ago16:14
pcocaChipaca, But with a very different approach.16:14
pcocaChipaca, I am struggling with the relative modules and this snapcraft.yaml: https://github.com/pedrococa/httpie_snap/blob/master/snapcraft.yaml16:15
niemeyersergiusens: Moving the repo? Yeah, it's straightforward, and GH internally maps the old links to the new place16:15
pcocaChipaca, Do you know how to overcome the relative modules issues with httpie, when you point to the repo and use the python3 plugin?16:18
sergiusensniemeyer yup. already done ;-) Sent an email and it is kind of cool that redirects happen automatically and all PRs just DTRT16:24
sergiusenselopio ok, I can take care of badges et.al. but no idea how to reset the jenkins stuff16:25
tsimonq2wooooooooooooah16:25
tsimonq2https://github.com/snapcore/snapcraft !!!16:25
elopiosergiusens: In setting of the project > hooks. Set http://162.213.35.179:8081/ghprbhook/, with permission to Pull Request and Issue comment.16:28
elopiosergiusens: I'm leaving now, I can help when I'm back.16:28
sergiusenselopio sure; all good16:28
sergiusenselopio heh, lost my admin :-P16:32
sergiusensniemeyer can you make me admin of snapcraft?16:32
niemeyer@sergiusens Of course16:33
nothalniemeyer: No such command!16:33
sergiusensjoc_ they all have those script entries in setup.py, right?16:33
niemeyerOops :)16:33
niemeyersergiusens: Of course :)16:33
sergiusensthanks niemeyer16:35
joc_sergiusens: not too familiar with the format of setup.py but i think so, there are entry points declared like this: http://bazaar.launchpad.net/~checkbox-dev/checkbox/trunk/view/head:/plainbox/setup.py#L9516:35
sergiusensjoc_ yeah, console_scripts should just work, let me try something simpler to see if there's a hidden bug (later today though)16:36
niemeyersergiusens: You and kyrofa are admins, and added the snapcraft-contributors team as write access16:36
sergiusensthanks!16:36
niemeyernp16:37
kyrofaThanks niemeyer16:37
joc_sergiusens: ok thanks16:37
niemeyersergiusens, kyrofa: I've also created a snapcraft-bots team.. not sure what level of access you'll want to give it, but let's please keep real contribs and bots separated16:38
niemeyerWe've been doing that already on the other teams16:38
sergiusenskyrofa lool https://github.com/snapcore/snapcraft/pull/61116:50
loolsergiusens: LGTM, do you want me to do something to land it?16:51
loolI dont think I'm in the snapcore org16:51
sergiusenslool no, just sending your way since you complained ;-)16:54
sergiusenslool I will wait for elopio on this one16:55
loolsergiusens: I didn't complain!16:55
loolI sent you a heads up in case you didn't about it16:55
sergiusenselopio btw, the hook is already configured16:55
sergiusenslool ah, well, a complaint I took in a positive way ;-)16:55
loolsergiusens: FYI snapcraft/tests/test_sources.py mentions the old branches, if real checkouts are made and we ever remove the old branch, you would want to update them to the new one16:55
ogra_lool, stop complaining that you didnt complain !16:55
ogra_:)16:55
loolI'm being harassed by people who pretend I'm complaining, I'll file a complaint16:56
sergiusenslool those never reach the checkout phase :-)17:00
loolsergiusens: ok, I didn't check17:00
loolhence the conditional17:01
looland caveats17:01
=== dieb_ is now known as Guest32438
netphreakHi, guys!17:50
Guest32438hello on  http://snapcraft.io/ there is a little mistake in section Release channels. the channel option is mentioned with a single dash (-) yet in the section beneath it is mentioned with a equal (=) . just happened to see this and thought to inform you. have a nice day!17:51
zygajdstrand: hey17:57
zygajdstrand: sorry it took me so long, really unpredictable day17:57
zygajdstrand: if you pull from my remote you will see how to use this17:58
zygajdstrand: I can expand this anyway you like so please just have a look and tell me if that answers your question17:58
zygajdstrand: and if not let's work on this some more17:58
* zyga coffee and back to snap-confine17:59
jdstrandzyga: thanks! I see what you are doing. man, I was so close18:01
jdstrandI almost tried something like that. thanks!18:01
zygajdstrand: syntax can be confusing :)18:03
jdstrandzyga: yes, and go's interface{} isn't the most intuitive thing in the world18:08
zygajdstrand: it helps to read how it is implemented18:19
zygajdstrand: it is essentially a proxy that knows how to dispatch each of the methods defined inside (note that {} doesn't have to be empty!)18:20
netphreakAny eta. on a release image for Rpi3?18:24
jdstrandzyga: yeah, I did read how it was implemented. there was a nice article on it. it was the '[]' part of '[]interface{}' that threw me since I couldn't range it and it seemed like I should be able to18:42
sergiusenskyrofa su?18:47
kyrofasergiusens, ah sorry, mentioned on telegram but should have put it here-- I'm not feeling well, I need to lay down18:47
josephtkyrofa: I hope you feel better18:48
sergiusenskyrofa ah, get better18:48
kyrofaThanks guys18:48
zygajdstrand: you can range it18:51
zygajdstrand: you can range it and each element is a interface{}18:51
zygaslangasek: hey, I'm just doing this not to forget18:57
zygaslangasek: I'd love if you could commit debian packaging back to snap-confine master, this would help us in tetsing debina18:58
zygaslangasek: and then merge the one change back to debian, the change in debian/rules, specifically commit 2b130c575010a6f35a9f05d8683a761c8c02e2a018:58
zygaslangasek: this will become critical when we switch to snap-exec and when snap-confine will be started from a relative path18:59
zygaslangasek: which will be essential for core snap updates18:59
slangasekzyga: I'm pretty sure I don't have commit rights on snap-confine master fwiw, but I will take time this week to review and raise pull requests19:01
jdstrandzyga: that is what I tried to do, but I didn't end up with the right incantation19:01
zygaslangasek: just send me a pull request or a branch on alioth that can be merged easily19:01
zygaslangasek: I looked at doing this but I gave up because master's weren't compatible19:02
zygajdstrand: ack19:02
jdstrandhence the 'so close' comment19:02
jdstrand:)19:02
jdstrandanyhoo, thanks!19:02
zygajdstrand: my pleasure19:02
zygaslangasek: I'd like to upload a sid vm to linode so that we can do per-commit tests on debian too19:02
zygaslangasek: and then having dpkg-vendor patches would be essential19:02
sergiusensjosepht https://bugs.launchpad.net/snapcraft/+bug/159604419:14
ubottuLaunchpad bug 1596044 in Snapcraft "Parts loader needs refactoring" [Undecided,New]19:14
josephtsergiusens: is that different from the ordering refactoring you mentioned in the SU?19:15
sergiusensjosepht nope19:16
elopiosergiusens: ah, what's missing is to update the jobs. I'm on it.19:16
josephtsergiusens: I see.  I was reading it as the "parser's parts loader".  I'll assign to me.19:16
elopiosergiusens: the tests can be triggered now. But the user can't update the status on the PR, it says: http://162.213.35.179:8080/job/github-snapcraft-examples-tests-cloud/1082/19:19
elopioso you need to give snappy-m-o write access.19:20
sergiusenselopio ok, write access as in to comment?19:28
sergiusensthe webhook or the user/bot?19:29
elopiosergiusens: the user. Write access as in pushing changes to the repo.19:32
sergiusensniemeyer hey, can you add elopio's bot to https://github.com/orgs/snapcore/teams/snapcraft-bots ?19:36
sergiusensniemeyer also, can you enable coveralls for snapcore/snapcraft, seems it needs an org admin19:37
elopioniemeyer: and please send us the token in case it's needed.19:38
sergiusensmhall119 give this a try https://github.com/snapcore/snapcraft/pull/612 you will get further but stuck on the fact you need to export alternate paths for GIR19:41
sergiusensattente hey you around? Can you tell me what would be needed to be able to open "resources" using a snap app; like https://telegram.me/joinchat/BQHZRAiN_pnOeE4mT31YCQ in the telegram snap?19:50
attentesergiusens: what kind of resources? is it just a url opened via xdg-app?19:51
sergiusensattente yeah, probably, going to that link offers tg://join?invite=BQHZRAiN_pnOeE4mT31YCQ19:52
attentesergiusens: the snapd-xdg-open helper only allows http, https and mailto19:52
sergiusensattente so it is the other way around than from the bug you were working on19:52
sergiusensattente right that is from snap to world19:52
sergiusensattente I face a much simpler problem now, from world to snap19:52
attentesergiusens: that doesn't sound easier. wouldn't we have to hack the default xdg-open script that comes with xdg-utils?19:55
sergiusensattente I don't know, hence I am asking you :-)19:56
sergiusensattente does xdg-open look for desktop files to figure out uri handlers or are they registered at install time?19:57
attentesergiusens: just glancing at the script right now, it looks like it examines the desktop files, so maybe there's some way to prioritize the ones in the snaps19:58
sergiusensattente right, right now I click and nothing happens :-)19:58
attentesergiusens: maybe that's an apturl problem actually20:00
attentesergiusens: er. sorry, never mind20:01
attentesergiusens: is there an open bug for this?20:03
sergiusensattente no, just brought to my attention by pmcgowan :-)20:12
attentesergiusens: is there a general directory where the desktop files of snaps is located? the same way that there's /snap/bin?20:14
sergiusensattente yup20:14
sergiusensattente /var/lib/snapd/desktop/applications/20:14
sergiusensmvo or zyga can correct me if I am wrong here ^20:15
attentesergiusens: looks right here20:15
attentesergiusens: maybe adding /var/lib/snapd to XDG_DATA_HOME in the session might make the xdg-open script look there first20:17
sergiusensattente so as it is right now it should be looking?20:17
sergiusensin my case, it is not opening anything at all20:18
sergiusensattente what desktop key would I need for this?20:18
attentedesktop key?20:19
sergiusensattente yeah, in the desktop file20:20
attentei would've thought MimeType=x-scheme-handler/tg, but your telegram snap already has it20:21
niemeyersergiusens, elopio: Still out for some exercising, but will do20:27
attentesergiusens: can you try manually editing ~/.config/mimeapps.list to add x-scheme-handler/tg=telegram-sergiusens_telegram.desktop20:53
attentethis seemed to launch the snapped telegram for me20:54
mhall119sergiusens: that didn't seem to help me any21:13
mhall119sergiusens: does snapcraft cleanbuild install snapcraft in the lxc, or does it copy the host's snapcraft install into it?21:14
pmcgowanattente, that worked21:15
pmcgowanattente, although it seems to always open a new instance21:16
mhall119hmmm, looks to install it via apt21:17
attenteyeah, same here21:20
mhall119sergiusens: I'm cowboy-patching snapcraft in the lxc container created by cleanbuild21:24
mhall119will see how it goes21:24
* genii hands mhall119 the lariat21:24
mhall119sergiusens: so I patched /root/parts/mail/bin/pkg-config and re-ran "snapcraft snap" and it did indeed get further, but it spit out a whole bunch of cmake warnings about link directories or something21:33
mhall119oh wait, it might be something I did21:34
mhall119ah ha, yes, I threw an extra print(env) line in there, and evidently something was consuming that21:37
mhall119thanks sergiusens, that unblocks me on snapcraft now I think, I'll try and get vala/gir help from the elementary devs tomorrow21:43

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