Eelco Dolstra cb9601029e daemon: Use deterministic $TMPDIR in chroot.
Rather than using $<host-TMPDIR>/nix-build-<drvname>-<number>, the
temporary directory is now always /tmp/nix-build-<drvname>-0. This
improves bitwise-exact reproducibility for builds that store $TMPDIR
in their build output. (Of course, those should still be fixed...)

* nix/libstore/build.cc (DerivationGoal)[tmpDirInSandbox]: New field.
(DerivationGoal::startBuilder): Initialize 'useChroot' earlier.  Compute
'tmpDirInSandbox', and use it when populating 'dirsInChroot'.
* doc/guix.texi (Build Environment Setup): Document it.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2015-12-09 14:29:41 +01:00
..
2015-07-03 00:30:55 +02:00
2015-07-03 00:30:55 +02:00
2015-07-03 00:30:55 +02:00
2015-06-03 22:59:02 +02:00
2015-07-03 00:30:55 +02:00
2015-07-03 00:30:55 +02:00
2015-06-03 22:59:02 +02:00
2014-12-19 22:47:37 +01:00
2015-06-03 22:59:02 +02:00
2014-12-19 22:47:37 +01:00
2014-12-19 22:47:37 +01:00