News for hackers. Stuff that matters.
Re:Ubuntu 16.04 (Xenial Xerus) by knocte on Thursday April 21, 2016 @07:54AM (#11541316)
I love the part about simplifying packaging via 'snap'.

Now, I would love to know, if I'm a maintainer of Foo (and you can get it today via `apt-get install foo`), how will I be able to start packaging using snap rather than relying on deb packages that come from debian? I'd love any feedback, cheers!

Re:Ubuntu 16.04 (Xenial Xerus) by creshal on Thursday April 21, 2016 @08:30AM (#11541523)
> I love the part about simplifying packaging via 'snap'.

Bleargh. More container bullshit, now with even less control over it by end users. Now each tiny library update (think OpenSSL security fixes) will pull hundreds of "snaps" instead of a single package… assuming the developers even realize they have to rebuild their snaps.

Re:Ubuntu 16.04 (Xenial Xerus) by Certhas on Thursday April 21, 2016 @11:52AM (#11543064)
While I see your point, the idea that I as an end user have any real control now is absurd. All I can do is hope the people who package stuff for their distribution know what they are doing.

If I want to install software that's outside the stuff that the packagers have prepared, like Firefox with correct KDE integration on Kubuntu, I am relying on a number of hard to track things working correctly together. Which tehy have regularly failed to do for me in the past.

Contrast to the OSX install experience: An application is a folder which contains everything related to the application that the base system does not provide. It's brilliant. Installing is copying. Uninstalling is deleting. As a user I feel more in control of the process than with apt.

Depending on the software stack you're looking at, dependency isolation might or might not make sense. I think OSX and Windows both are good case stuides that show that some level of isolation is sensible.

Re:Ubuntu 16.04 (Xenial Xerus) by creshal on Thursday April 21, 2016 @03:06PM (#11544568)
> If I want to install software that's outside the stuff that the packagers have prepared, like Firefox with correct KDE integration on Kubuntu, I am relying on a number of hard to track things working correctly together. Which tehy have regularly failed to do for me in the past.

Firefox isn't that hard, all considered. KDE is necessarily hard because of how invasive that is – but no container fuckery will save you from that, because it has to be invasive to work in the first place! Either every container has to ship a full KDE, or you do it like OSX does it, and only have One Desktop To Rule Them All. (That's why Canonical and Gnome are both interested in app containers, presumably, to get rid of that filthy freedom of choice.)

> Contrast to the OSX install experience: An application is a folder which contains everything related to the application that the base system does not provide.

The difference is that OSX (and Windows) provides a lot, and you only have applications building on top of that huge, stable code base that's diligently updated by Apple (/Microsoft). OSX/Windows apps only have to keep their few third party dependencies updated.

Linux app containers have to literally ship everything outside the kernel to work, because the kernel ABI is the only stable interface in the Linux ecosystem. Everything else, up to and including the libc, varies between distributions, and versions of the same distribution, and will be incompatible. An openssl update would trigger a repackaging of every single app container. And where it doesn't, users are at risk. In contrast, without containers, I upgrade one package and the whole system is secured.

(On servers, it's a bit more nuanced, because here operations is in charge or repackaging docker/lxd/nspawn containers, and can start that process whenever they want.)

> As a user I feel more in control of the process than with apt.

That's more because apt is bullshit, even by Linux standards. pacman and other package managers not made in the 1990s are much nicer to deal with.

Re:Ubuntu 16.04 (Xenial Xerus) by JdeBP on Thursday April 21, 2016 @12:24PM (#11543324)
Re:Ubuntu 16.04 (Xenial Xerus) by curt15 on Thursday April 21, 2016 @11:09AM (#11542719)
Something as core as OpenSSL should be provided by the system and updated by the system maintainers. That's what happens in Windows and OS X land, where the system provides a broad base of functionality that every application can count on (e.g. https://msdn.microsoft.com/en-us/library/windows/desktop/ff8...). Thus third party programs only need to bundle the elements not already provided by the system. When goto fail was discovered in the OS X crypto libraries, Apple simply issued a system update and that was the end of the story.
Re:Ubuntu 16.04 (Xenial Xerus) by JdeBP on Thursday April 21, 2016 @12:01PM (#11543141)
Re:Ubuntu 16.04 (Xenial Xerus) by criddell on Thursday April 21, 2016 @09:32AM (#11541939)
> Now each tiny library update (think OpenSSL security fixes) will pull hundreds of "snaps"

Do you think that's worse than the alternative where each tiny (shared) library update potentially breaks hundreds of programs?

Re:Ubuntu 16.04 (Xenial Xerus) by creshal on Thursday April 21, 2016 @09:36AM (#11541978)
ABI breaks from security patches for stable releases, especially of Linux distributions, happen how often?

In comparison, outdated npm/gem/pip/hipster-package-manager-of-the-week or docker installations happen how often?

With the former, the burden of updating and testing lies with a small handful of distribution maintainers. With the latter, every single developer has to worry about deployment and maintenance.

Re:Ubuntu 16.04 (Xenial Xerus) by cat-dev-null on Monday April 25, 2016 @11:57PM (#11569328)
Distros shouldn't waste time and effort on supporting and packaging language-specific, high-churn code packages except in very limited circumstances. Let the language specific-tools do those. Upstream is best, local fragmentation is wasteful.
Re:Ubuntu 16.04 (Xenial Xerus) by jandrese on Thursday April 21, 2016 @10:58AM (#11542624)
While that potential was always there (and people were paranoid about it), in real life it was extremely rare. ABIs don't tend to change much between minor versions on sane libraries. I can't remember it ever happening to me.
Re:Ubuntu 16.04 (Xenial Xerus) by cat-dev-null on Monday April 25, 2016 @11:54PM (#11569320)
False dichotomy fallacy. Linux distributions need to engineer for side-by-side installation of multiple versions and not get tied up to those common locations. nix is just one example as an interesting idea, while Homebrew and stow are better ideas.
Re:Ubuntu 16.04 (Xenial Xerus) by majewsky on Thursday April 21, 2016 @09:36AM (#11541981)
A hundred times this. When some library upgrade happened to break stuff on my system, I could roll it back selectively, while still getting the updates for everything else (as long as it does not strictly depend on this new library version). That's gone now.

Good thing I abandoned Ubuntu a long time ago.

Re:Ubuntu 16.04 (Xenial Xerus) by bryanlarsen on Thursday April 21, 2016 @09:56AM (#11542135)
What did you switch to? Fedora is switching to xdg-app, which basically does the same thing. Now that those two are using such an approach, I imagine that app developers are increasingly going to drop support for distros that don't use snap, xdg-app or docker. Snap/xdg-app/docker are a lot more convenient for those app developers.

Edit: forgot appc. Thank goodness they're all planning on supporting the Open Container Initiative.

Re:Ubuntu 16.04 (Xenial Xerus) by majewsky on Friday April 22, 2016 @04:23AM (#11547741)
I'm on Arch, which has none of that bullshit.
Re:Ubuntu 16.04 (Xenial Xerus) by digi_owl on Friday April 22, 2016 @10:03PM (#11553774)
Given their history, expect Arch to adopt xdg-app.
Re:Ubuntu 16.04 (Xenial Xerus) by tomswartz07 on Thursday April 21, 2016 @08:21AM (#11541464)
Just a side note, as well:

`apt-get` is depreciated, they've moved to just plain `apt`

`apt install foo`

Re:Ubuntu 16.04 (Xenial Xerus) by dhruvmittal on Thursday April 21, 2016 @08:52AM (#11541671)
About time-- I always thought it was absurd for them to keep apt-get and apt-cache separate "for historic reasons." I used to have the hardest time explaining that the occasional new ubuntu users (to say nothing of all the people who were convinced that they needed to type "apt get [packagename]" then "apt install [packagename]".
Re:Ubuntu 16.04 (Xenial Xerus) by falcolas on Thursday April 21, 2016 @09:21AM (#11541875)
Last time I tried to use just apt, its help pages warned that it was experimental, and there was still basic functionality which was either not implemented, or implemented differently from the regular apt-* tools.

I'd very much prefer to standardize on plain apt, but it doesn't seem ready yet.

Re:Ubuntu 16.04 (Xenial Xerus) by nailer on Thursday April 21, 2016 @08:29AM (#11541513)
Nice. There were a couple of things that were 'apt-cache', I could never remember which, I gather 'apt' does those too?
Re:Ubuntu 16.04 (Xenial Xerus) by tomku on Thursday April 21, 2016 @08:35AM (#11541569)
It does 'seach' and 'show' from apt-cache at least, not sure about any others.
Re:Ubuntu 16.04 (Xenial Xerus) by __david__ on Thursday April 21, 2016 @12:13PM (#11543239)
Oddly apt's `search` output is terrible compared to apt-cache's. If they want me to switch to the new command they should at least make it the same or better, not a couple steps backward.
Re:Ubuntu 16.04 (Xenial Xerus) by ronjouch on Thursday April 21, 2016 @08:22AM (#11541468)
Also, how does Canonical's snap compare/compete with Freedesktop/GNOME's xdg-app?

https://wiki.gnome.org/Projects/SandboxedApps

Re:Ubuntu 16.04 (Xenial Xerus) by abrowne on Thursday April 21, 2016 @09:09AM (#11541787)
One thing I've noticed is that xdg-app seems to be only for desktop GUI apps, while snappy works for server software and command-line apps too. To me, that makes it more interesting.
Re:Ubuntu 16.04 (Xenial Xerus) by koolba on Thursday April 21, 2016 @08:06AM (#11541379)
What is snap? I can't find mention of it anywhere on the release notes page.
Re:Ubuntu 16.04 (Xenial Xerus) by anuragsoni on Thursday April 21, 2016 @08:15AM (#11541429)
https://developer.ubuntu.com/en/desktop/

https://developer.ubuntu.com/en/snappy/build-apps/

The ubuntu developer page has a good description of snaps and how to create them.

In short its a package that contains all its dependencies.

Re:Ubuntu 16.04 (Xenial Xerus) by anuragsoni on Thursday April 21, 2016 @08:31AM (#11541537)
If you have the source of the package you might be able to use ubuntu's snapcraft[1] tool to create snap packages. There is a project on github called deb2snap[2] that might help creating snaps from deb packages which is something that might help. I haven't used it so can't provide any feedback on how well it works. The README is pretty detailed though.

[1] https://developer.ubuntu.com/en/snappy/build-apps/

[2] https://github.com/mikix/deb2snap

Re:Ubuntu 16.04 (Xenial Xerus) by knocte on Thursday April 21, 2016 @08:53AM (#11541686)
I knew deb2snap thanks, what I'm wondering is the bureaucracy steps to switch Foo to use my snap (instead of debian's deb) by default when being installed in Ubuntu v.NEXT. Thanks again