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

ayani'm working on a snap with an executable that calls seccomp().  app armor (i think) blocks it even though the snap was built using 'devmode' confinement.01:43
ayan(really it is tor-browser.)01:43
ayanhttps://git.launchpad.net/~ayan/+git/tor-browser-snap/tree/snapcraft.yaml01:50
ayanalso tor-browser has pretty restrictive file permissions.  i wrote a simple plugin to walk the staged directly and fix the permissoins before creating the snap.  i'm not sure if this is the best way to do it:01:54
ayanhttps://git.launchpad.net/~ayan/+git/tor-browser-snap/tree/parts/plugins/x-tor-browser.py01:54
Shibewill X be bundled with each DEs snap?01:57
Chipacasgclark: what hackfest?09:03
Chipacasgclark: ah, jamie already responded :-)09:03
* Chipaca still doesn't know what hackfest09:03
Chipacacroepha: what filesystem are you doing the build on?09:07
Chipacaali1234: you can try the all-snap images, but I don't know if we expect them to work yet09:08
Chipacaayan: I'd suggest bringing that up on the mailing list (as it'll require input from people that aren't here today)09:09
ChipacaShibe: I doubt X will be bundled in snaps. I also doubt a DE will have a snap. But who knows? we'll see where people take it!09:09
ShibeChipaca: how else will DEs be installed in a snappy system?09:10
ChipacaShibe: in an all-snap system, that's a very good question and one that has been on my mind before09:10
ChipacaShibe: all-snap systems are more aimed at IoT-kind of places though, at least until we make snappy rich enough to support things like DEs09:11
ShibeChipaca: another thing is, what about dconf? I know that gtk apps use dconf for certain things and also for seeing what gtk theme to use09:11
ChipacaIoT and servers, i should add09:11
Shibewill you have to theme gtk on a per-app basis?09:11
Chipacathat is, ~single-purpose systems09:11
ChipacaShibe: a related question: how do you snap a theme?09:12
Shibeyeah09:12
Shibethat is indeed a good question09:12
ali1234another related question is how do you snap development tools?09:12
Chipacathese are nice juicy questions09:12
ali1234currently you need a chroot to do any kind of serious development09:12
Chipacaali1234: you do?09:13
ali1234yes09:13
ali1234there is no snap containing snapcraft09:13
Chipacaali1234: in an all-snap system, i presume?09:13
ali1234yes09:13
Chipacaali1234: right09:13
Chipacawe need to circle back to all-snap systems soonish, to shore up that side of the store09:13
ali1234all-snap systems are the only type of system worth considering, because if you don't have an all-snap system, you don't need snaps to begin with09:13
Shibealso btw, how was the size of libreoffice snap reduced from 1.1gb to the regular 200?09:14
ali1234Shibe: by removing debug symbols09:14
Chipacaali1234: well... I disagree, but I can also see why you'd think that09:14
Shibeali1234: debug symbols were consisting of that 1.1gb?09:14
ali1234Chipaca: there's this idea of using snaps to let upstream ship packages themselves whenever they want. this specifically is in my opinion a recipe for disaster if it is done on a regular "as it is now" ubuntu09:14
ChipacaShibe: the libreoffice snap that was talked about a lot was built for testing the whole thing and included debug symbols to figure out what went wrong when it did09:14
Shibeok09:15
ChipacaShibe: the person has since renamed that to libreoffice-debug and built the debug-less libreoffice at 200M09:15
Shibewell that's nice09:15
ali1234Chipaca: i've even heard people saying that for example, nvidia could distribute their drivers in a snap...09:15
Chipacaali1234: why is it a recipe for disaster?09:16
Shibebtw will each app bundle mesa individually?09:16
ShibeI think in flatpak the application recieves the raw device node (/dev/nvidia-uvm on nvidia i think) and the application includes the libgl/mesa09:16
ChipacaI've got to go, I'll read up when I get back09:17
Chipacao/09:17
ali1234Chipaca: i's a recipe for disaster because it necessitates including dependencies inside the snaps09:17
ali1234that is a problem which you can ignore as long as snaps don't compose the base system09:18
ali1234but for all-snap you basically have no choice but to deal with it09:18
ali1234hence, my worry is that all-snap will be sidelined because it's too hard, and instead we just get a poor compromise that doesn't actually improve things at all09:18
ali1234to put it another way: "snaps on a classic desktop" is a bit of a cop out, in my opinion09:20
ali1234i mean sure it's a stepping stone, don't get me wrong... but snap has to go beyond that09:22
ogra_it is just an additional playground, thats all ... the plans for all snap images in IoT havent changed ... nor has the idea of providing phone and pocket-desktop images09:22
notadrophello09:22
ogra_not sure where you expect the compromise to be09:23
ali1234i don't expect compromise... i want an all-snap system to be able to do literally everything tht ubuntu can do today09:23
ali1234without having to install "ubuntu classic" in a chroot09:23
ali1234because then all you've done is moved the problem09:23
ogra_it will probably not behave exactly like a classic system ... but you will eventually be able to do all you want09:24
ali1234it doesn't have to be exactly like it, it just has to do the same things with the same amount of effort :)09:24
ogra_things in a new world might be done differently, but stil provide your desirent behaviour09:25
ogra_or results rather09:25
ali1234and the same amount of disk space? ;)09:25
ogra_it will  just take a little more time for specific bits09:25
ogra_why not09:26
ali1234"why not" -> because developers are lazy :)09:28
ogra_who knows, probably we might get to a point where they even need less diskspace ... snappy is still very young (compared to 20+ years of deb), i dont see why such improvements shouldnt come in the future09:28
ali123420+ years is too long to wait09:29
ogra_first of all all basics should be done right ...09:29
ogra_i didnt say it has to take that long :)09:29
ogra_just that debs had this time to mature09:29
ali1234in 20 years people will be complaining that snap is out of date and no good and trying to rewrite it09:29
ogra_cool :=09:30
ogra_:)09:30
ogra_(that means it will still be around ;) )09:30
ali1234that's best case :)09:30
ogra_nah, best case is that iin 20 years people will still like snaps because they evloved in the right direction09:31
ali1234although i feel like if snap just becomes another way to package things for regular ubuntu then it wont be around in 20 years... flatpak will win09:31
ogra_but the replace in 20 years case is a good one nontheless ;)09:31
ogra_let the upstreams decide ...09:31
ali1234you know which one they will choose09:31
ogra_i see which one they choose today09:32
ali1234upstreams wont decide it, all the other distros will09:32
ogra_??09:32
ogra_you mean they would denny opensource code in their distro ?09:32
ali1234no09:32
ogra_so how will thhey decide anything09:32
ali1234debian does not deny upstart code in their distro?09:32
ali1234yet still nobody uses it09:32
ogra_if snaps are the way an upstream provides hiw stuff and the distro has snap support (even if you need to install it) ... then you will enable it09:33
ogra_*his09:33
ali1234if all distros support both, but flatpak works significantly better due to being what the distro itself chooses to ship a majority of packages, then upstreams will choose it too09:34
ogra_distros are the least bits her that have any influence as long as they dont block snappy to enter their system ... upstreams count09:34
ogra_if all uppstreams would decide to all go appimage ... what would you think distros would support09:34
ali1234upstreams will choose whatever is best supported09:35
ogra_and i'm only talking about the app delivery here ... they will indeed still use whatever base system they want09:35
ogra_right ...09:35
ogra_and we're at a point where multiple systems exist09:35
ogra_lets just see what upstreams will chose09:35
ali1234upstreams will wait to see what distros choose09:36
ali1234basically, if distros do not convert to something like all-snap, then upstreams will continue to not use anything09:36
ali1234afaik flatpak and appimage can't do all-snap?09:36
ogra_why would any distro go to all-snap09:37
ogra_not even ubuntu will09:37
ali1234that's a problem09:37
ogra_all-snap is for special use-cases09:37
ogra_ubuntu wont drop traditional deb based installs09:37
ali1234a distro would go all snap only for one reason: because it is an improvement over the current way of making a distro09:37
ogra_heh09:37
ali1234but of course you have to make that be true first09:38
ogra_i rather think a distro will simply throw out all toplevel apps and will start focusing and improving their work on core ... simply because it frees manppower09:38
ali1234if that doesn't happen then distros won't do it, and upstreams will just containue shipping tarballs and crappy binaries09:38
ali1234yes, exactly09:39
ogra_(why woould a distro care about gimp or libreoffice if upistream already provides a proper way to get it )09:39
ogra_so in the end it improves life of everyone ...09:39
ali1234why would a distro care about gcc if upstream provides a proper way to get it?09:39
ogra_because their existing packaging system requires them to have gcc in their distro09:40
ali1234answer: because as distro maintainers they actually need to use it09:40
ogra_yes, and there are existing established mechanisms to do so to build a distro09:40
ali1234so it boils down to: which next gen package system supports development tools best?09:40
ali1234and currently the answer is none of them09:41
ogra_huh09:41
ogra_snapcraft is well supported :)09:41
ogra_and it fulfills my needs as a developer09:41
ali1234oh, there is a snap containing snapcraft?09:41
ogra_nope09:41
ali1234well then09:41
ogra_there will likely be one (thats trivial)09:41
ogra_but thats not the point09:42
ali1234can i make an ubuntu builder using all-snap?09:42
ali1234what about a launchpad snap?09:42
ogra_you have to ask the launchpad people if they plan to snap it ... else ... feel free to go ahead09:42
ali1234these are the kind of things distro maintainers will want09:42
ogra_sure09:43
ali1234if you don't give them this, they won't care about supporting snap well enough that upstreams will want to use it09:43
ogra_i dont see why they couldnt get it09:43
ali1234i hope they will be able to in the future09:43
ogra_if someone asks ... or if someone even sends code for this, it will happen09:43
ali1234they're not going to write it themselves09:43
ali1234developers are lazy remember?09:43
ogra_havent said that :)09:44
ali1234no, i did09:44
ali1234distros won't accept it unless it is spoon fed to them09:44
ogra_the point is that the demand needs to be expressed ... which happpens via whishlist bugs usually :)09:44
ogra_and these get fixed at some point09:44
ogra_and again, i dont see why distros would need it09:45
ali1234that's not the point09:45
ogra_snap is not there to replace distros09:45
ali1234it should be09:45
ali1234because distros suck09:45
ali1234distros dont need to do anything09:46
ali1234distros didn't need systemd, they chose it because it made their life easier09:46
ogra_sure09:46
ali1234imagine the average guy packaging software for debian09:46
ali1234how does snap make their life easier?09:47
ogra_why does he package for debian09:47
ogra_and what09:47
ogra_i dont see why a systemd debian packager would care for snap09:47
ali1234not systemd09:47
ogra_but i also dont see the need for a gimp package in debian if upstream already provides a snap and debian has snap support available09:48
ali1234let's take as an example gcc... or maybe clang09:48
ogra_yeah, they are components snapcraft uses when you roll your package :)09:49
ali1234okay09:49
ali1234so as the clang packager for debian, how does making sure my package works correctly with snapcraft make my life easier?09:49
ogra_and will still be available through distro channels, since the distro itself needs them to build the distro09:49
ogra_why would you do that ?09:50
ali1234yes, that is what i am asking09:51
ogra_the snapcraft maintainers will09:51
ali1234who are the snapcraft maintainers?09:51
ogra_if someone uses a snap with clang and hits a bug, he will file it and either the snapcraft maintainers or the person with the problem will eventually write code to fix it09:51
ogra_as clang upstream you simply have to accept the patches09:51
ali1234or you know.. they will just use flatpak instead09:51
ogra_what for09:52
ali1234instead of snap09:52
ali1234or they mght just not bother at all09:52
ogra_why would you package a complier in an app delivery system instread of the build tool for the app delivery system09:52
ali1234because a compiler is an app?09:53
ogra_(i dont see why it wouldnt be possible to snap up gcc or clang, i just dont see the benefit of it)09:53
ali1234if you can't see the benefit of it, then why do you expect anyone else to?09:54
ogra_?09:54
ogra_i dont ?09:54
ali1234and if you don't expect anyone else to see the benefit, why do you expect anyone to use snap at all?09:54
ogra_i think snapping compilers is pointless ...09:54
ogra_you are the one who claims it isnt :)09:54
ali1234okay, where do you draw the line?09:54
ali1234what about secondary build tools like make or cmake?09:55
ogra_at the level where the distro doesnt provide the bits to build itself09:55
ali1234ultimately my point is that "next generation packaging tool" will require support from *everyone* to be successful. it won't get that support unless it offers something to everyone it needs support from09:56
ogra_what i can imagine is that you eventually have tool bundles ... like "qt-build-env" that comes with all tools you need in a snap and offers you a high level way to work on your project ... more like sdks than single tools09:57
ali1234that would be an excellent step along the way09:57
ali1234and already a massive improvement over what we have now for a large number of people09:58
ogra_right ... i dont see that gcc standalone would make much sense ... but in context of such a bundle it would be one tool that would be used in the process09:58
ali1234installing an ubuntu-sdk snap would sure be nicere than an ubuntu-sdk chroot09:58
ogra_thats an implementation detail09:59
ali1234gcc standalone would make sense... there are plenty of use-cases where you dont need anything else09:59
ali1234like developing for arm microcontrollers for example09:59
ali1234i guess you might include a tiny libc in that too09:59
ali1234so like avr-gcc/avr-libc10:00
ogra_you could have a snap that mounts your project dir inside an lxd container and execs the build process there when you issue the build command ... all you as developer should care about is that you can work on your code and issue a command to build or debug the code ...10:00
ali1234i regularly use binutils standalone too... since it has a decompiler10:00
ali1234and strace10:01
ogra_or it could be a chroot ... or a cloud instance or whatever :)10:01
ali1234but here is the thing10:01
ali1234having a snap which contains a full ubuntu chroot with every dev tool ever installed inside it violates the "uses the same amount of disk space" principle10:02
ogra_whats that principle exactly ? :)10:03
ali1234the one i invented10:03
ogra_(also, why in the world would you build such a thing)10:03
ali1234i wouldn't... i would just use regular ubuntu10:03
ali1234but you want people to use snap right?10:03
ogra_and thats fine10:03
ogra_as a delivery mechanism for their products10:03
ali1234here's the thing10:04
ogra_and if there is a bundled snap that provides a specialzed build env for their products that eases their life by bundling, then too10:04
ali1234i won't really trust snap as a delivery mechanism until i see the software i use delivered with it10:04
ogra_thats a weird POV i must say10:05
ali1234i don't think it is10:05
ogra_i want to get my shit done ... whatever makes that easiest to me is what i use ...10:05
ali1234nobody wants to be an early adopter10:05
ogra_and i want to get my stuff inot hands of users10:05
ogra_these are two distonct requirements10:06
ali1234well if you want to get your stuff into the hands of users then you pick android apks...10:06
ogra_i dont see why they would have to be fulfilled by the same thing10:06
ogra_except that i dont develop android apps10:06
ali1234then you cant really make an argument for picking tools based on distribution10:07
ogra_(though i dont see why snapcraft culdnt have android execution env support10:07
ogra_)10:07
ogra_like i dont see why snappy couldnt have a wine execution env ... so that windows applications could be delivered10:07
ogra_s/snappy/snapcraft10:08
ogra_in any case i see the two parts as distinct steps ... development vs delivery10:09
ali1234i don't10:09
ali1234there is too much overlap10:09
ogra_not sure where10:10
ali1234where does a tool like glade fall?10:10
ogra_they are two sepearate steps10:10
ali1234what about text editors10:10
ali1234what about an IDE?10:10
ogra_what about them10:10
ali1234are they a development tool, or something that should be delivered as an app?10:10
ogra_no, they are a tool that shoulld be part of a dev-env snap as i described above10:11
ali1234so you would just have a gigantic snap with every development tool in it?10:11
ogra_why would you use glade standalone10:11
ogra_withhout buulding somethign with it10:11
ogra_no10:12
ali1234why would i want glade installed if i am writing a Qt application?10:12
ogra_why would i put every development tool into it10:12
ali1234okay, which development tools would you put in it?10:12
ogra_i would put the tools that fit the project into it10:12
ali1234so each developer would need to make their own monolithic development tools snap?10:12
ogra_if there is a glade app it will likely buuld gtk stuff10:12
ali1234with whatever tools they want in it10:12
ogra_so i would put the gtk build deps, a compiler and whatever else is needed into it ... along with glade itself10:13
ali1234what is the developer of qgtkstyle supposed to do?10:13
ogra_i wouldnt put Qt libs in10:13
ogra_dunno ... how many are there :)10:14
ogra_they would probably take my snap and enhance it10:14
ali1234probably about four or five... you know like every open source project ever10:14
ogra_because that just means two extra lines in the snapcraft.yaml i provide10:14
ali1234yeah and then waiting six hours for all that stuff to build :)10:14
ali1234this does not sound very apealing to developers to me10:15
ogra_dunno why you would have to wait 6h for a snap to be built by snapcraft10:15
ogra_i havent seen such a snapcraft project yet :)10:16
ogra_(though they will undoubtly exist some day)10:16
ali1234because you removed half the stuff from the distro because it isn't needed any more10:17
ali1234can you build a snap out of other snaps?10:17
ogra_also why do you care ... as that potential glade developer you just snap install glade-dev-env10:17
ogra_or as the one using qtgtk crossover stuf you install glade-and-qt-dev-env from someone else10:18
ali1234that ends with every application having it's own dev-env snap10:18
ogra_?10:18
ali1234in the same way that currently every snap needs to have a copy of all it's dependencies embedded10:19
ali1234the same thing ends up happening in the -dev snaps10:19
ogra_dev-env ...10:19
ali1234yes, -dev-env10:20
ogra_you use a toolkit, so you have the bits needed included10:20
ali1234yeah except that in the real world just using a toolkit is not enough10:20
ogra_well, you define what else is needed in yur snapcraft yaml10:21
ali1234so then you fork the toolkit dev-env snap, add that one extra library you need, and rebuild it, and now you have a unique dev-env for your app10:21
ogra_or your toolkit pffers you to add the needed bits on demand ;)10:21
ogra_*offers10:21
ali1234snapcraft can only install what the distro includes10:21
ogra_s/toolkit/dev-env/10:22
ali1234and we removed all non-build-essential things from the distro because snap is way better, remember?10:22
ogra_and ?10:22
ali1234and so the only way to get the thing you need is as a snap10:22
ali1234but you're not going to snap development tools10:22
ogra_i dont need the distro to have my dev-env package use the upstream git tree of Qt10:23
ogra_i can just define it in my snapcraft.yaml to use that10:23
ali1234snapcraft itself is not available in a snap...10:24
ogra_as i said, that will change10:24
ali1234so first thing you have to do is make a snap with snapcraft in it10:24
ogra_but thats  a minor detail10:24
ali1234it's not exactly minor in my opinion10:24
ogra_again .. snap is just a delivery mechanism10:24
ali1234t isn't really though10:25
ogra_rolling a snapcraft snap is likely not very hard ...10:25
ogra_just takes time that nobody has right now because thats currently not really a pressing prob for anyone10:26
ali1234tar.gz is a delivery mechanism10:26
ogra_the 50 or so upstreams that started fiddling with snaps over the last two weeks or so surely didnt have issues with using snapcraft in its current state10:27
ali1234heh10:27
ali1234well, i hit problems at every turn10:27
ogra_file bugs :)10:28
ali1234but i am not just trying to ship packages on standard ubuntu10:28
ogra_right10:28
ogra_and i doubt you will ever see gcc go away as a deb10:28
ogra_or make10:28
ali1234i don't want to see that10:29
ali1234what i want is for apt to be a thing that is only used by snapcraft10:29
ali1234and every single byte of binary code on my drive to be installed by snap10:30
ogra_well, in certain setups that will be the case10:30
ali1234in *every* setup10:30
ali1234and without having loads of dupes of the same thing installed10:30
ali1234right now i have about 10 copies of gcc installed and i'm not even using snaps yet10:32
ogra_why do you have that ?10:32
ali1234several different cross compilers10:33
ali1234the problem is that everyone ships monolithic development SDKs10:34
ali1234for example http://wiibrew.org/wiki/DevkitPPC10:34
ali1234you know what would solve this problem?10:35
ali1234if upstream gcc released a snap for every release/host/target combination10:35
ali1234a standalone gcc snap10:35
ogra_well, write a snapcraft.yaml and send it to them ... i'm sure they wouldnt refuse10:36
ogra_(i still dont see the need ... you would likely also want make, binutils and such stuff in such a snap)10:37
ali1234yes10:38
ali1234but i'd only need one10:38
ogra_(probably even libc)10:38
ali1234instead of having 10 different ones10:38
ali1234like currently ubuntu has packages for mingw which i use10:39
ali1234it doesn't have one giant package that also includes make10:39
ali1234that would be a step backwards in my opinion10:39
ogra_well ...10:39
ogra_i think we are back at the beginning of the conversation now10:40
ali1234yes10:40
ogra_deduplication or whatever will surely be looked at at some point10:41
ogra_until then, just use a classic system or a classic shell in an all-snaps system (which should be back when we have actual images)10:42
ali123499% of the software i write is for my own use10:43
ali1234so for me, snappy has to be more than just a distribution system10:45
ali1234because once i build the software i already have it10:45
=== bspock is now known as bpeak
ogra_bah12:59
ogra_ogra@styx:~$ sudo snap remove telegram-sergiusens13:00
ogra_error: cannot remove "telegram-sergiusens": snap "telegram-sergiusens" has changes in progress13:00
ogra_seems the panel systray icon keeps running which confuses snapd .. now i cant either install or remove it13:00
* ogra_ tries a reboot13:01
ogra_hmm, nope13:03
ogra_funnily the snap mount is definitely gone after reboot13:05
ogra_ah, but snap install works again ... something at leat13:10
ogra_*least13:10
aisraelI'm having trouble getting my wireless dongle to work after upgrading to kernel 3.19.1-12. I'd installed linux-firmware_1.158_all.deb, but even after reinstalling it the only modules I have are for 3.19.0-51. Any idea what I'm missing?14:52
ehbellohello!17:56
ehbelloI was packaging my first snap following ubuntu guides about snapcraft but it does not install in Ubuntu Core 15.04/stable17:56
ehbelloIt seems to be incompatible17:56
ehbellowhat version of Ubuntu Core must I use?17:56
ehbello"failed to install: open /tmp/read-file847258171/unpack/meta/package.yaml: no such file or directory"17:59
ehbelloI'm using Ubuntu 16.04 to develop this snap18:01
ehbellook... I answer to myself... Ubuntu 16.04 has snapcraft 2.x and Ubuntu Core 15.04/Stable has snapcraft 1.x but still there is no release of 16.0418:35
tsimonq2ehbello: snapd =/ snapcraft18:39
tsimonq2ehbello: you should be looking at the all-snap images anyways18:40
ehbellotsimonq2: i'm sorry... i mean snapd, obviously18:42
=== JanC_ is now known as JanC
=== dasjoe_ is now known as dasjoe
ehbello@tsimonq2: ok, all-snap images... I now understand what it means: https://lists.ubuntu.com/archives/snappy-devel/2016-January/001400.html20:21
nothalehbello: No such command!20:21
ehbellotsimonq2: ok, all-snap images... I now understand what it means: https://lists.ubuntu.com/archives/snappy-devel/2016-January/001400.html20:21
ehbellotsimonq2: thanks20:22
ehbello:D20:22
tsimonq2ehbello: nice :)21:28
tsimonq2you get everything squared away?21:28
ehbellotsimonq2: I get an error following this example to generate a "stable" release: https://wiki.ubuntu.com/SecurityTeam/PublicationNotes#Image_generation_.2816_and_higher.2921:39
ehbellotsimonq2: 'failed to install "canonical-pc" from "stable": canonical-pc failed to install: exit status 2'21:39
ehbellotsimonq2: how can I get a valid list of values for 'gadget' parameter?21:40
ehbellotsimonq2: answer: https://developer.ubuntu.com/en/snappy/guides/gadget/ :)21:50
tsimonq2ehbello: to be honest, I don't know22:03
tsimonq2oh nice :D22:03
ehbellotsimonq2: ok, thanks anyway :D22:05
ehbello 22:11
ehbello 22:11
=== Chipaca` is now known as Chipaca
ehbellotai271828: FYI: https://lists.ubuntu.com/archives/snappy-devel/2016-April/001735.html22:55
ehbellotai271828: sorry22:56
ehbellotsimonq2: FYI: https://lists.ubuntu.com/archives/snappy-devel/2016-April/001735.html22:56
ehbellotsimonq2:  this link is needed to fix the problem:`ln -s /bin/true /usr/local/bin/udevadm`22:56
tsimonq2oh cool23:09
tsimonq2that's good that you got it fixed :)23:09

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