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

=== JanC is now known as Guest50625
=== JanC_ is now known as JanC
vejmarieit looks like FreeCAD is opening a socket into /tmp/FreeCAD00:22
vejmarieand that when used through the launcher it god an ENOENT when trying to open it00:22
vejmariewhich is an issue00:22
sergiusensvejmarie it is weird that /tmp/FeeCAD opening would block you. Can you run `snappy-debug`? (Install with `snap install snappy-debug`)01:53
vejmarieI will try01:54
vejmariejust re-assembling my snap currently (it is a big one about 300MB)01:54
sergiusenselopio sorry to bother, but that PR https://github.com/ubuntu-core/snapcraft/pull/518 could use some (update me clicking) ;-)01:55
vejmarieI also have an issue for an unknown reason my snap do not want to connect to :home02:15
vejmarieit does have the plug defined02:15
vejmarieand connect to unity702:15
vejmarieok I found the solution for that02:28
vejmarienow, new issue. FreeCAD is storing parameters in ~/.FreeCAD02:28
vejmarieI am connected to ubuntu-core:home, but no ways to have free cad creating the directory into ~02:29
vejmarieany ideas ?02:29
=== chihchun_afk is now known as chihchun
zygao/07:16
zygaogra_: hey07:53
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
brunch875Hello! Could someone point to me on why sandboxing applications inside snaps? Wouldn't linux group+read permissions be ideal for this?10:23
* brunch875 returned from crashing IRC client10:25
ogra_how would you do that ? one user/group per package ?10:28
brunch875that's more or less what I have in mind10:28
ogra_that would likely result in an unmanageable bit set of groups in the end10:29
ogra_also what do you do with system services that need root access ?10:29
ogra_(note that currently all snappy services run as root by default, the confinement happens on a way lower level)10:30
ogra_(read: even root processes are restricted in what they can execute or what they can access)10:30
ogra_using a groups based system would mean that you need to patch the software to actually operate under such a user and the like10:31
brunch875That makes a lot of sense. Could this new permission system be used to replace the current user/group system?10:32
ogra_well, you still want userss to run user specific stuff, to store user specific config etc10:33
ogra_they are accompanying each other10:33
ogra_it depends on the context ... on a headless IoT system that you manage via a web UI you can definitely get along without having a user10:34
brunch875would it make sense to ship a text editor like vim as a snap package?10:35
ogra_on a multi user desktop you definitely still want them (same on a server)10:35
brunch875will apt get eventually deprecated?10:35
ogra_kind of ... we dont have all interfaces in place yet (i.e. content sharing) ... so you would have to install the snap in --devmode10:36
ogra_to have enough system access to read and write everywhere (which you want with en editor)10:36
ogra_no10:36
ogra_apt-get wont be deprecated10:36
ogra_and the classic ubuntu wont go away10:36
ogra_snappy is built from debs :)10:36
brunch875what I meant by that is if new programs will be all preferred to use snappy10:37
dakerhey ogra_ do we have a new rpi image yet ?10:38
ogra_thats really up to the maintainers ... canonical will definitely focus on snaps over other stuff when it comes to applications (i.e. you might be able to get the latest version of an app for your desktop installl rather via a snap than via a PPA)10:38
ogra_daker, nope ... build one yourself is the suggestion ... as always :)10:39
ogra_(within the next two-three weeks we should have something in alpha/betat status though)10:39
ogra_-t10:39
dakerif i build one myself it will contain this fix bug 1577393 ?10:39
ubottubug 1577393 in linux-raspi2 (Ubuntu) "Linux-raspi2 is missing several driver modules when compared against generic" [Undecided,Fix released] https://launchpad.net/bugs/157739310:39
ogra_daker, if you use the kernel snap from cdimage ... i'm not sure the change was uploaded to the store yet10:41
dakerogra_: ok10:41
willcookeCan I tell snapcraft to pull a specific branch from a github repo?11:50
willcookeI have a build dep on a particular version of a library in git, master is too new11:50
svijwillcooke: source-tag or source-branch should do it11:51
willcookesvij, ah ha! Perfect, thanks11:52
willcookehad to use source-branch because I /think/ source-tag is actually trying to do source-branch12:03
zygamorphis: hey12:04
zygamorphis: was the i2c example I've sent of any use?12:04
morphiszyga: hey!12:42
morphiszyga: not yet, and it would be lpotter who will use it12:42
morphiszyga: you had time to look into the modem-manager interface already?12:44
sergiusensmorning12:44
morphissergiusens: morning!12:45
sergiusenskyrofa are you around?12:47
=== mterry_ is now known as mterry
kyrofasergiusens, I am, I'll get that branch fixed up12:47
zygamorphis: no, I promise to do it today12:48
sergiusenskyrofa oh, right :-P12:48
morphiszyga: sounds good!12:48
zygamorphis: if I slack please ping me because I just forgot that m-m needed revieweing12:48
morphisabeato: ^^12:48
morphisok12:48
morphiszyga: it has some interesting things in it we need to cover12:48
abeatoack12:48
kyrofasergiusens, haha, I thought that was what you were going to ask, no? :P12:49
morphiszyga: btw. how far is the auto-connect-from-gadget-snap story?12:49
sergiusenskyrofa btw, this landed https://github.com/ubuntu-core/snapcraft/pull/523 but now that I see, I think I only had verbal consent from elopio so I would like for you tot ake a look12:49
zygamorphis: not touched, nobody is exploring that12:49
morphiszyga: meant to be done for RTM?12:49
abeatozyga, that would be interesting for the nm-mm connection12:49
jdstrandev: hi! there are a number of ev-gadget snaps in the store. do you need any approved?12:49
morphisabeato: yes, but for all other plug/slot connection we have to establish for our snaps too12:50
kyrofasergiusens, will do, after standup here in a few minutes12:50
zygaabeato: yes, and many other cases12:50
abeatoineed12:50
abeatoindeed12:50
evjdstrand: you can reject all. It's causing an oops when I try to delete them12:50
zygaabeato: can you please draft a message to snapcraft@ and we can take it from there12:50
jdstrandev: ack, thanks :)12:50
zygajdstrand: hey!12:51
abeatozyga, sure, I'll do12:51
jdstrandzyga: hi!12:52
jdstrandniemeyer4: what's your opinion on if the 'home' interface should be auto-approved in the store?12:53
jdstrandjamiebennett, niemeyer4: hi! mvo uploaded an os snap with the name 'base'. should it be approved or rejected? (not sure where we stand on the naming of things-- I thought I read 'base' was rejected12:59
ogra_jdstrand, throw it away13:00
ogra_jdstrand, we'll do a proper "core" snap on monday13:00
jdstrandack, thanks!13:00
jdstrandjamiebennett, niemeyer4: nm re os snap13:01
jamiebennett:)13:02
beowulfwhat's the process for snaps that set interfaces like 'system-reserve'? the CRT error in the store is: "reserved cap 'system-observe' for vetted applications only security-snap-v2_app_plug_safe (vtop, system-observe)"13:11
beowulfs/reserve/observe13:11
beowulfin https://myapps.developer.ubuntu.com/dev/click-apps/5100/rev/1/13:11
morphisabeato: btw. the second part "due to apparmor denials when trying to register for13:15
morphistracking DBus name for partner before connection is established" can't we do that better in network-manager and use a dbus name watch?13:15
abeatomorphis, that is what fails13:15
abeatotrying to register for the wathc13:15
morphisoh really?13:15
abeatoyep13:16
morphisapparmor denial?13:16
abeatoyep13:16
jdstrandbeowulf: can you elaborate on "what's the process for"?13:16
jdstrandbeowulf: you mean the review process?13:17
jdstrandbeowulf: or something else?13:17
beowulfjdstrand: so it's just the normal review process?13:17
morphisabeato: we should extend the permanent slot then for the network-manager interface to allow that13:17
morphisas network-manager should be allowed to listen for modem-manager even without the plug being connected13:18
beowulfjdstrand: https://developer.ubuntu.com/en/snappy/guides/interfaces/ made me think it might be more involved13:18
abeatosure, that can be done13:18
morphisabeato: can you add that to your m-m interface PR?13:18
jdstrandbeowulf: it's the normal review process. it will be flagged for manual review atm, but then a reviewer will look at it13:18
jdstrandthis stuff is still being worked through though with store changes and assertions changes coming13:19
abeatomorphis, better in another PR13:19
jdstrandand trying to understand how autoconnect and manual connect fit into store auto-approvals13:19
morphisabeato: then lets push another one on top13:20
beowulfjdstrand: right  ... i was wondering if ideally in the store UI that should be less of "there was a problem!" and more "package is fine, we just need to be sure about X" ... "manual review state" is treated like a failure, which it isn't really?13:21
jdstrandmorphis: oh, if you are pushing another nm change... I started looking at the ConnectedSlot changes for it to bring it in line with what we were doing with location service13:21
morphisjdstrand: we need to add a bit to allow dbus name watches to allow interconnections between n-m and modem-manager13:22
jdstrandbeowulf: it is a failure in auto-approval. I think we need to understand where we are going before we change the ui though13:22
beowulfjdstrand: absolutely, just thinking out loud13:22
jdstrandmorphis: I wonder if you would want to take: https://github.com/jdstrand/snapd/tree/nm-fixes (totally untested) as part of that work?13:24
jdstrandwell, it is 'run-tests' tested13:24
jdstrandmorphis: if not, I can keep plugging away at it. at some point I would need one of you to run it through your test plan though (unless you have a test plan I step through that you can point me at)13:25
morphisjdstrand: sounds good, abeato can you include those changes?13:25
jdstrandok, cool13:26
abeatomorphis, will do later13:28
sergiusenskyrofa one more https://github.com/ubuntu-core/snapcraft/pull/52413:31
mhall119hi all, what's the best way to specify an icon in a .desktop file to make sure it will find the proper image in the app's install directory13:31
morphisabeato: thanks13:31
kyrofamhall119, I remember zyga talking about that... I don't remember where though (maybe a blog post) so he'll probably be able to help13:31
sergiusensmhall119 something like this https://github.com/sergiusens/vscode/tree/release/1.0.0/setup/gui13:34
mhall119thanks sergiusens13:42
niemeyerjdstrand: Heya13:43
niemeyerjdstrand: So, home interface..13:43
niemeyerjdstrand: Tricky one13:43
niemeyerjdstrand: I don't think we should stop auto-connecting it until we have a better experience for connecting it in the first place13:44
niemeyerjdstrand: But that's an initial gut feeling.. we can explore options13:44
jdstrandniemeyer: I agree with that. I wonder about auto-approving in the store then. there is some overlap with manual reviews and auto-connecting, but it isn't at all clear to me. I know things will get clearer with the assertions work, but perhaps 'home' should be autoapproved but manually connected, but say network-manager is both manual approve and manual connected. it's a little weird atm with the transition13:57
jdstranddavidcalle: thanks for the whitepaper updates. does the process we came up with work for you?13:58
davidcallejdstrand: yes, works for me :)13:59
jdstrandgreat13:59
jdstrandseems lightweight and flexible :)13:59
davidcallejdstrand: indeed, I'm running an importer that does 90% of the work, the I diff the text with what's published and apply (quicker than publishing the new import and doing the remaining 10%)14:01
jdstrandnice :)14:01
niemeyerjdstrand: Not clear to me.. what are we looking for?14:01
niemeyerjdstrand: snaps need to be useful in the first place, otherwise there's no point in even doing the work14:02
jdstrandniemeyer: I think maybe if we/I knew where we were going with the future assertions and UI work, it might be clearer. for example, we know that snaps providing a slot will need an assertion saying it is ok14:05
jdstrand(aiui)14:05
jdstrandand if we know that the ui requires users to make an active decision to connect, then things like system-observe can be approved14:05
jdstrandI'd hate for people to copy/paste code though (install my snap, run this snap connect command and everything is great!)14:06
jdstrandI'm not sure what we want either14:06
jdstrandI can say that gut feeling is some things seem to need manual store approval, but some things don't14:07
niemeyerjdstrand: For specific interfaces.. both slots and plugs will need a declaration14:07
jdstrandbut I'd like it to be less about our guts and more about defining why things are the way they are14:07
niemeyerjdstrand: Right, exactly14:08
jdstrandand it can be case by case, but I'd like to know the criteria for deciding :)14:08
niemeyerjdstrand: One criteria is that it must be useful..14:09
jdstrandlike, nm slot needs a lot of privilege (manual approve?), nm plug gives a lot of priv (manual approve??), system-observe gives some priv but manual connect (auto-approve?)14:09
elopiofgimenez: I forgot we now have a meeting on fridays too. I'm sorry.14:10
jdstrandniemeyer: can you expand on that? must be useful seems like a criteria for implementing the interface at all14:10
niemeyerjdstrand: Yes, the idea that manual connect == auto approve seems good14:10
jdstrandniemeyer: yes, I've been leaning towards manual connect == autoapprove as the baseline, then perhaps with exceptions as we see fit?14:11
jdstrand'as we see fit' is obviously still a gut thing atm, but at least manual-connect == auto-approve as a default stance is helpful14:12
jdstrandniemeyer: I don't want to try to solve this all today-- just trying to keep the conversation going14:13
niemeyerjdstrand: Yeah, the decision making in those cases requires some deep thinking.. let's see..14:14
jdstrandniemeyer: how about this: home and *-observe are all manual connect, so we auto-approve14:14
jdstrandniemeyer: then we punt on nm, *-control, etc for now and leave them as manual connect and manual approve while we continue to think about it?14:14
jdstrandniemeyer: I think that will help real folks. I see system-observe and log-observe along with home periodically14:15
fgimenezelopio, np, we'll be repeating it during next week14:25
seb128where do I report bugs about https://github.com/ubuntu-core/snapcraft/blob/master/docs/your-first-snap.md ?14:37
seb128that has an example with an icon key14:38
seb128which is deprecated14:38
kyrofasergiusens, now that mark wants the snapcraft-examples thing to be different, I think I'll leave that branch for didrocks. Sound okay?15:04
seb128jdstrand, hey, is there any easy way to make strace work in a snap without devmode? I tried to enable ptrace in the profile but get15:04
seb128some permission denied error still15:04
elopiofgimenez: I made some comments on the check branch. I'm again pushing for fixing them after we can free a reporter interface.15:07
elopiowe can discuss it in the meeting.15:07
jdstrandseb128: depends on what you define as easy. you can modify /var/lib/snapd/apparmor/profiles/snap.your.app to have 'ptrace,' then run 'sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.you.app'. then add 'ptrace' to /var/lib/snapd/seccomp/profiles/snap.your.app15:08
jdstrandseb128: note, you need the comma in the apparmor rule, you don't in the seccomp15:09
fgimenezelopio, ok, sounds good15:09
vejmarieok, I made another progress15:20
vejmarieso it looks like that snappy do not authorized listen and bind15:20
vejmariesyscall15:21
vejmarieis there any specific reason for that ?15:21
vejmarieFreeCAD is using sockets15:21
vejmarieif I had the sys call into /var/lib/snapd/seccomp/profiles/snap.freecad.FreeCAD15:21
vejmarieI can go further15:21
vejmarieI now have GL crash (but this is probably because I am missing some libraries into the snap and test system)15:22
seb128shrug15:28
seb128error: cannot remove "gnome-calculator": snap "gnome-calculator" has changes in progress15:28
seb128the squash unmount failed due to process still actives15:28
seb128which I killed now15:28
seb128restarting snapd didn't fix it15:28
seb128how do I get out of there?15:28
davidcalleseb128: I use https://github.com/zyga/devtools/blob/master/reset-state15:31
davidcalleIt's a radical option, though15:31
seb128that's still needed?15:32
seb128I did that in Prague but I hoped snapd was more solid nowadays :-/15:32
seb128davidcalle, thanks15:32
ogra_seb128, i think it is fixed already, just not landed via SRU15:33
seb128k15:33
* seb128 wipes snap away15:33
ogra_seb128, bug 158308515:34
ubottubug 1583085 in snapd (Ubuntu) "[SRU] New stable micro release" [Undecided,New] https://launchpad.net/bugs/158308515:34
ogra_i think 2.0.5 has the related fix15:34
seb128I've 2.0.315:35
seb128needs to upgrade15:35
seb128I installed snapcraft from proposed but not snapd it seems15:35
seb128back to my canonical-tech message, need an easier way to get those updates that to cherry pick from proposed ;-)15:36
seb128jdstrand, thanks for the help, fcitx works with "#include <abstractions/fcitx>" added the apparmor profile, I updated the im bug with details15:38
jdstrandseb128: interesting. I don't have abstractions/fcitx... I'll need to look into this. thanks so much!15:42
seb128jdstrand, yw!15:43
seb128jdstrand, it's part of fcitx-data15:44
seb128jdstrand, btw robert_ancell might need your input on a similar issue on https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/158118715:45
ubottuLaunchpad bug 1581187 in lightdm (Ubuntu) "AppArmor parser error for /etc/apparmor.d/lightdm-guest-session in /etc/apparmor.d/lightdm-guest-session at line 14: Could not open 'abstractions/fcitx'" [Undecided,New]15:45
jdstrandseb128: yes, I thought of that bug when you mentioned that abstraction15:45
seb128lightdm included the abstraction but it might not be installed15:45
jdstrandI need to see what it going on15:46
seb128we maybe need to move the abstraction to a package which is always installed if includes can't be optional15:46
jdstrandseb128: includes can't be optional. another option is to have lightdm depends on the package that is providing the abstraction. let me look into it before I make a recommendation15:48
jdstrandwell, they can be options if you #include a directory and drop files into the directory. that isn't the case here15:49
jdstrandoptional*15:49
sergiusenskyrofa not super hard to change though ;-) But I know where this is headed ;-)15:57
kyrofasergiusens, hahaha15:58
sergiusensseb128 2.0.3 was the one that supposedly fixed that problem you see15:59
sergiusensseb128 2.0.3 was the one that supposedly fixed that problem you see15:59
seb128sergiusens, needs to be fixed harder then15:59
ogra_ouch16:00
sergiusensvejmarie for bind you need the network-bind interface16:00
* ogra_ is sure seb128 is just holding it wrong16:00
seb128lol16:00
=== chihchun is now known as chihchun_afk
vejmarie@sergiusens: Thanks a lot ! I am new to the tool and didn't figure out all the interfaces ;)16:08
nothalvejmarie: No such command!16:08
=== chihchun_afk is now known as chihchun
mhall119how can I re-do the staged packages in a part without re-compiling the source in that part?17:01
* mhall119 thinks he figured it out17:04
sergiusensmhall119 in the same part? not likely supportable as a stage-package has the potential to change the build result17:06
mhall119oh? I thought only build-packages would affect the build result17:06
kyrofamhall119, no, stage packages can also be used for the build17:10
kyrofamhall119, they're pulled down and unpacked as part of the pull step17:10
kyrofamhall119, in fact, the python plugins use stage packages IN the pull step17:10
vejmarieok: I still have some issues with the software raster dry driver17:16
vejmarieI have this libGL error: unable to load driver: swrast_dri.so17:16
vejmariemy snap is connected to OpenGL (not yet x11, and unity7)17:16
vejmarieand GTk do not find modules which are into the snap either like overlay-controller17:16
sergiusensvejmarie I'll have to address you to zyga for that17:22
sergiusenskyrofa is 525 good to go?17:22
vejmariesergiusens: no problem, is he on the channel ?17:22
sergiusensvejmarie yeah17:22
vejmarieok, I did connect free cad to x1117:28
vejmarieno changes17:28
vejmarielibGL can't find swrast_dri17:28
vejmarieand Gtk complains about modules17:28
vejmarieany ideas welcome ! This is the last issues I have and then after FreeCAD will be fully snapped (except the build of the app which is performed though a single script, as it is coming with the whole dependencies)17:29
kyrofasergiusens, yessir17:29
vejmariezyga: r u there ?17:30
zygavejmarie: yes17:30
zygavejmarie: what's up?17:30
vejmarieI have some issue to snap freecad17:31
vejmarieI am mostly done but this piece of code is huge17:31
vejmarieand requires access to some dry drivers for 3D rendering like swrast_dri.so17:31
vejmarieI put them into my snap17:31
vejmarieand run on ubuntu17:31
vejmarieI setup the various interfaces to x11 OpenGL and unity717:32
vejmariebut still no way to load properly the driver through libGL17:32
vejmariesame thing for some VTK module like overlay-scrollbar17:33
zygavejmarie: I have no idea how to help you right now, I'd need to jump into that snap and figure out how the stack looks like, I only planned to do that after some infrastructure code is done (bind mounts and environment via interfaces)17:33
zygavejmarie: then the goal will be to *remove* all wrapper-ser variables17:33
zygavejmarie: but now I cannot do much, I can only help to guide you and I'll gladly take patches that don't depend on those two features17:34
vejmariezyga: ok I will continue to digg and keep you posted. Hopefully I will find from where the issue come17:35
=== chihchun is now known as chihchun_afk
morphisniemeyer: just commented back on the udev rules in gadget/kernel snap thing17:48
morphisniemeyer: that is a very critical thing and we simply can't rely on releasing a new snapd version for each new supported device17:49
morphisniemeyer: though we could abstract the rule generation with a specific interface17:49
morphiswhich then just makes things quite more complex17:50
morphisjdstrand: ^^17:50
morphiszyga: ^^17:50
niemeyermorphis: If it was "simply can't" we probably wouldn't be talking about it :)17:51
niemeyermorphis: At the very least it's not simple, and perhaps not even can't :)17:51
jdstrandI don't have context17:51
niemeyermorphis: We won't allow security overruling like that..17:51
niemeyerjdstrand: This is about kernel/gadget snaps shipping arbitrary security snippets17:52
morphisjdstrand: udev rules for modem detection to be concrete17:52
morphisniemeyer: the thing is that we can't even expose certain vendor IDs until a device is published17:52
morphisso we basically sit on a factory image with a customized snapd as we can't release the used IDs in the public interface definition17:53
jdstrandok. I'm a bit out of date possibly, but I thought that is one of the reasons why the gadget snaps exists-- to create devices that snapd can reliably consume?17:53
morphisjdstrand: yes17:53
morphisthat was my understanding too17:53
niemeyermorphis: Well, hmm17:54
jdstrandbut I don't think any of that is designed. perhaps I'm wrong. I think zyga had some ideas17:54
jdstrandso17:54
jdstrandjust otoh17:54
jdstrandthe gadget snap doesn't have to ship udev rules17:54
morphisjdstrand: actually that is something really important if we're talking about what we need pretty soon in snapd for customer devices17:54
jdstrandit could ship yaml that tells how to match17:55
zygawe were thinking about an slot that the gadget could have, that would be plugged to various special snaps (like n-m) that would grant permissions to the plug side and the permissions were encoded in the slot side17:55
niemeyermorphis: The udev rules are not much of a concern, actually17:55
morphisjdstrand, niemeyer: basically that is what I got from zyga that we would put the udev rules into the gadget or kernel snap17:55
jdstrandthen snapd takes that and creates udev tags or something that can be used for hw mapping17:55
niemeyermorphis: Because simply detecting won't give implicit access17:55
niemeyermorphis: What happens next after detection for this particular case?17:55
morphisniemeyer: you mean what ModemManager does with detected devices?17:56
* jdstrand notes I think we are talking about two different things-- reliably detecting and then connecting what was detected17:57
morphisguys, can we maybe do a meeting about this next week to solve this?17:57
zygayes17:57
niemeyermorphis: Sounds good17:57
morphismaybe the best thing17:57
jdstrandwfm17:57
niemeyermorphis: It'll probably be a very short one17:57
niemeyermorphis: I think we're all pretty much in agreement17:58
morphisniemeyer: possible, lets see17:58
niemeyermorphis: I jumped the gun with my comment, misunderstanding what you were actually asking for17:58
morphiswe just need to get to a common understand and what the way forward is to get this implemented17:58
niemeyermorphis: Sorry about that17:58
morphisniemeyer: np17:58
morphisniemeyer: lets move this discussion to the meeting17:58
niemeyer+117:58
morphiswe can explain what ModemManager does and you apply to that what snapd should do with that17:59
morphisthen we will come out with something17:59
* jdstrand notes he is off Monday (US holiday)17:59
morphisjdstrand: ah, forgot that18:00
morphisjdstrand: moved it to tuesday then18:01
jdstrandthanks18:02
zygajdstrand: https://github.com/ubuntu-core/snap-confine/pull/7 reviewed18:11
zyga:D18:11
willcookeI'm trying to build a snap from a git repo.  When it downloads from git the thing I want to build is in a subdir.18:23
willcookeSpecifically...18:23
willcookeI'm trying to build Mythtv18:24
willcookeif you clone the git repo, then the main bulk of the app lives in a subdir "mythtv" which has the configure file in it18:25
willcookeso when I run snapcraft on it it can't find configure in builddir and so it tries to run autoreconf -i18:25
willcookethe configure file does exist, just in builddir/mythtv/18:26
willcookecan I tell snapcraft to look in that dir instead of "build"?18:26
willcooke*root of build18:26
zygahmm18:30
zygastuff works :")18:30
qenghowillcooke: I think you either need to make your own plugin, or put a dir in your root and in another section with source: yourdir\nplugin: make  and make the Makefile boot up your own configure, etc.18:34
qenghowillcooke: your plugin will just extend the normal autoconf.18:35
willcookecool, I'll try a new plugin, thanks qengho18:35
vejmarieok, some progress on my side, if I run as root the snap bin command no libGL issue. If I run as a standard user, I got error loading the GL driver18:38
qenghovejmarie: oh man the driver stuff is going to be ugly. I encountered that recently.18:40
vejmariehow did you fix it ?18:43
vejmarieit is really really strange18:43
vejmarieas root18:43
vejmariels -lt /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so18:43
vejmarie-rw-r--r-- 8 root root 9734592 Apr 14 19:08 /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so18:43
vejmarieas user18:43
vejmariels -lt /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so18:43
vejmariels: cannot access '/usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so': No such file or directory18:43
qenghovejmarie: what stage-packages do you have? At least [ libgl1-mesa-glx, libgl1-mesa-dri ]  ?18:44
vejmariewrong copy you have to remove the tls18:44
vejmarieyep18:45
vejmariethis issue is really really strange to me18:56
willcookeqengho, it only bleedin' worked!18:56
qengho:D18:57
kyrofawillcooke, there's a `source-subdir` param you can use18:57
willcookekyrofa, ah, that sounds exactly what I needed - does that work for autotools too?18:58
kyrofawillcooke, indeed-- any plugin that supports the `source*` keywords18:58
willcookeI'll give that a go, thanks18:58
kyrofawillcooke, you can learn more about those keywords with `snapcraft help sources`18:58
willcookekyrofa, that was exactly what I needed, thanksĀ¬19:01
willcooke!19:01
kyrofawillcooke, any time! Sorry for the delay :)19:01
willcookekyrofa, ain't no thing.  I copied the autotools plugin and added another option, which then did:19:02
willcooke        if self.options.build_subdir is not None:19:02
willcooke            self.builddir = os.path.join(self.builddir, self.options.build_subdir)19:02
willcookewhich I expect is pretty much the same as source-subdir19:02
willcookeso I can drop that now19:03
kyrofaPretty close, yeah19:03
willcookeit does mean I don't get to make a PR against snapcraft though19:03
willcooke:)19:03
willcookebetter luck next time I guess19:03
sergiusenswillcooke you can still get around to the gnome builder one ;-)19:13
willcookesergiusens, desrt is working on that one19:13
beowulfhi, is there an example of a snap with fontconfig as a dependency, or handles fontconfig configs?19:53
qenghobeowulf: https://bugs.launchpad.net/snapcraft/+bug/157630319:55
ubottuLaunchpad bug 1576303 in snapcraft (Ubuntu) "Needs fontconfig integration" [Undecided,Confirmed]19:55
beowulfqengho: aha! thanks19:55
qenghoAin't no thang.19:55
qenghoHave any of you encountered "python2" plugin complaints that .pth files are not supported, stemming (I think) from the part install dir not being the stage dir (which is in PYTHONPATH)?22:11
=== vejmarie_ is now known as vejmarie

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