[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/04: daemon: Build in /tmp/guix-build-*.
From: |
Ludovic Courtès |
Subject: |
01/04: daemon: Build in /tmp/guix-build-*. |
Date: |
Wed, 30 Dec 2015 18:22:03 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 7a57c96a1024e6b74359ba561110f19f92b89b06
Author: Ludovic Courtès <address@hidden>
Date: Wed Dec 30 18:01:01 2015 +0100
daemon: Build in /tmp/guix-build-*.
* nix/libstore/build.cc (DerivationGoal::startBuilder): Use "guix-build"
instead of "nix-build" for TMPDIR.
* doc/guix.texi (Build Environment Setup): Adjust accordingly.
---
doc/guix.texi | 2 +-
nix/libstore/build.cc | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index 7665ec9..5cdbc5d 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -604,7 +604,7 @@ a writable @file{/tmp} directory.
You can influence the directory where the daemon stores build trees
@i{via} the @code{TMPDIR} environment variable. However, the build tree
-within the chroot is always @file{/tmp/address@hidden,
+within the chroot is always @file{/tmp/address@hidden,
where @var{name} is the derivation name---e.g., @code{coreutils-8.24}.
This way, the value of @code{TMPDIR} does not leak inside build
environments, which avoids discrepancies in cases where build processes
diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc
index ff7b2c4..f9fd61a 100644
--- a/nix/libstore/build.cc
+++ b/nix/libstore/build.cc
@@ -1713,11 +1713,11 @@ void DerivationGoal::startBuilder()
/* Create a temporary directory where the build will take
place. */
auto drvName = storePathToName(drvPath);
- tmpDir = createTempDir("", "nix-build-" + drvName, false, false, 0700);
+ tmpDir = createTempDir("", "guix-build-" + drvName, false, false, 0700);
/* In a sandbox, for determinism, always use the same temporary
directory. */
- tmpDirInSandbox = useChroot ? "/tmp/nix-build-" + drvName + "-0" : tmpDir;
+ tmpDirInSandbox = useChroot ? "/tmp/guix-build-" + drvName + "-0" : tmpDir;
/* For convenience, set an environment pointing to the top build
directory. */