News for hackers. Stuff that matters.
Re:“Packages should be reproducible” added to Debian Policy by k__ on Monday August 14, 2017 @03:09PM (#15011669)
maybe they should switch to Nix... wait!
Re:“Packages should be reproducible” added to Debian Policy by xorbyte on Monday August 14, 2017 @06:05PM (#15013440)
I think you may be confusing deterministic reproducible builds (that remove randomness and ensure binaries have the same content hash regardless of who builds them (so you can reproduce what the maintainers did and verify the source and binaries) to merely a repro'd environment where everything still works because deps are included, which seems to be all that Nix promises (and in fact there is at least one open issue to add full deterministic builds to Nix https://github.com/NixOS/nixpkgs/issues/9731 )
Re:“Packages should be reproducible” added to Debian Policy by kanzure on Monday August 14, 2017 @03:14PM (#15011743)
Migrating Debian to nix might be possible, if that was desirable. You could have a compatibility layer for a while, and once everything is using the compatibility layer (in about 200 decades?), you deprecate the old package management details.
Re:“Packages should be reproducible” added to Debian Policy by nextos on Monday August 14, 2017 @05:34PM (#15013158)
It was discussed in the Debian mailing list long ago, when Nix was not so polished [1].

Honestly, I think it's a migration really worth it. Nix (and Guix) are quite mature now. The advantages they bring into the table are massive.

The whole Debian ecosystem would become a lot more integrated and robust. It would be possible to develop packages at their own pace, without having to keep all dependencies in sync with the whole package tree. Besides, no more dist-upgrade breaking your whole system. It would look a lot like a rolling release, but with none of its disadvantages.

It would be also possible to turn all Debian flavours into little declarative Nix blurbs. There are countless advantages.

[1] https://lists.debian.org/debian-devel/2013/02/msg00374.html

Re:“Packages should be reproducible” added to Debian Policy by throwaway2048 on Monday August 14, 2017 @05:47PM (#15013301)
I think the risk of some software being kept on many versions old, full of security issues libraries is pretty significant, because the major impetus to force an upgrade has gone away, that is it wont even function without updating.
Re:“Packages should be reproducible” added to Debian Policy by flogic on Monday August 14, 2017 @06:58PM (#15013789)
Should this issue be addressed at a technical level or a policy level? No matter how they manage the distro, so stuff is going to come down to policy and process. To me it seems like the sort of thing that should be handled with package audits.
Re:“Packages should be reproducible” added to Debian Policy by Lorkki on Tuesday August 15, 2017 @03:47AM (#15016260)
The solution might be to keep nix for system software only and have third-party developers deploy snaps or flatpaks. Auditing package dependencies against a list of invalidated hashes should be easy enough.
Re:“Packages should be reproducible” added to Debian Policy by GlennS on Monday August 14, 2017 @04:17PM (#15012440)
I do think that Nix or something like it is the future. Or at least it will be if the tech community as a whole doesn't screw up.

But I also really appreciate the massive effort that Debian maintainers make, and the sheer number of those maintainers.

Combining whatever human processes Debian have in place to keep that going with Nix would be fantastic. Right now, to use Nix regularly, you really have to be willing to read a lot of Nixpkgs source code.

Edit: I should also note that I do actually currently use Nix on top of Debian for my work machine. Servers are all NixOS machines deployed with NixOps though.

Re:“Packages should be reproducible” added to Debian Policy by nobodyorother on Monday August 14, 2017 @03:45PM (#15012122)
Makes me wonder what adding Guix build support to dpkg (and vice-versa?) would look like, or whether it would even be possible in a coherent way.
Re:“Packages should be reproducible” added to Debian Policy by k__ on Monday August 14, 2017 @03:46PM (#15012128)
I think Nix is the superior package manager, but you can already usw it with Debian for years now and not many people do it, so the problem seems to lie somewhere else...
Re:“Packages should be reproducible” added to Debian Policy by vertex-four on Monday August 14, 2017 @04:06PM (#15012333)
Nix doesn't integrate with Debian well - you can also use yum on Debian and nobody does that either. If you're using Debian, it's because you want to manage a Debian system with Debian packages.
Re:“Packages should be reproducible” added to Debian Policy by madez on Monday August 14, 2017 @09:17PM (#15014561)
I use Debian and I do not like to manage the Debian system with Debian packages. I use Debian because it is the community-backed distro.
Re:“Packages should be reproducible” added to Debian Policy by int_19h on Tuesday August 15, 2017 @06:58PM (#15023503)
A community-backed distro, surely? There's also Arch, and others.
Re:“Packages should be reproducible” added to Debian Policy by sds2 on Monday August 14, 2017 @05:11PM (#15012949)
Yeah, nix doesn't feel right on debian because it can't manage services and doesn't use the "standard" packaging idioms. Is there someone else with a different experience or a workaround?
Re:“Packages should be reproducible” added to Debian Policy by majewsky on Monday August 14, 2017 @04:09PM (#15012353)
Two things:

1. Too few marketing. I only heard of Nix for the first time last year.

2. When you boot a virtual server, the UI usually offers you Debian, Ubuntu and Centos/RHEL images, sometimes Suse/SLES or Arch. So again, less visibility, and if the hoster does not allow you to bring your own image, it's a pain in the ass to install anything else.

3. (Going off topic for a second: I probably would have switched to Nix(OS) already if it wouldn't entail effectively abandoning the configuration management tool that I maintain.)

Re:“Packages should be reproducible” added to Debian Policy by GlennS on Monday August 14, 2017 @04:20PM (#15012474)
I think the marketing aspect has started to pick up recently. Whether through conscious effort or just word of mouth momentum I don't know.
Re:“Packages should be reproducible” added to Debian Policy by agumonkey on Monday August 14, 2017 @04:06PM (#15012331)
I had this reflex, but IIRC the reproducible build effort does a few things differently (and some more) than nix. I can't recall which, but there were meaningful differences.
Re:“Packages should be reproducible” added to Debian Policy by joepie91_ on Monday August 14, 2017 @07:06PM (#15013831)
The short version is that they're different kinds of reproducibility.

The reproducibility that this post is about is for auditability ("verify that the binary originated from the claimed source"), whereas the reproducibility in Nix is for reliability ("ensure that the same package either fails or succeeds on every system in the exact same way, regardless of what the environment looks like").

Both are nice to have, but they are only tangentially related.

Re:“Packages should be reproducible” added to Debian Policy by mbrock on Tuesday August 15, 2017 @12:44AM (#15015576)
Nix does not particularly care about the hash of the result of a build, but mostly only the hash of the input.

When you download a package from the binary cache of Nix, you use the input hash. The binary cache contents may differ depending on the system of the build server.

Nix does try to eliminate nondeterminism in their builds though.