[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/07: daemon: Remove traces of 'NIX_ROOT_FINDER'.
From: |
guix-commits |
Subject: |
01/07: daemon: Remove traces of 'NIX_ROOT_FINDER'. |
Date: |
Wed, 16 Oct 2019 17:06:47 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 47e99e626b46b2fc433506a822d251de68ad6241
Author: Ludovic Courtès <address@hidden>
Date: Wed Oct 16 19:09:46 2019 +0200
daemon: Remove traces of 'NIX_ROOT_FINDER'.
This is a followup to 2e3e5d21988fc2cafb2a9eaf4b00976ea425629d.
* build-aux/test-env.in: Remove mentions of 'NIX_ROOT_FINDER'.
* nix/libstore/gc.cc (LocalStore::collectGarbage): Adjust comment
accordingly.
---
build-aux/test-env.in | 3 +--
nix/libstore/gc.cc | 7 +++----
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/build-aux/test-env.in b/build-aux/test-env.in
index b1470bb..6b0f8da 100644
--- a/build-aux/test-env.in
+++ b/build-aux/test-env.in
@@ -53,7 +53,6 @@ then
NIX_LOCALSTATE_DIR="@GUIX_TEST_ROOT@/var"
GUIX_LOG_DIRECTORY="@GUIX_TEST_ROOT@/var/log/guix"
GUIX_DATABASE_DIRECTORY="@GUIX_TEST_ROOT@/db"
- NIX_ROOT_FINDER="@abs_top_builddir@/nix/scripts/list-runtime-roots"
# Choose a PID-dependent name to allow for parallel builds. Note
# that the directory name must be chosen so that the socket's file
@@ -98,7 +97,7 @@ then
export NIX_IGNORE_SYMLINK_STORE NIX_STORE_DIR \
NIX_LOCALSTATE_DIR GUIX_LOG_DIRECTORY GUIX_STATE_DIRECTORY
GUIX_DATABASE_DIRECTORY \
- NIX_ROOT_FINDER GUIX_BINARY_SUBSTITUTE_URL \
+ GUIX_BINARY_SUBSTITUTE_URL \
GUIX_ALLOW_UNAUTHENTICATED_SUBSTITUTES \
GUIX_CONFIGURATION_DIRECTORY XDG_CACHE_HOME NIXPKGS
diff --git a/nix/libstore/gc.cc b/nix/libstore/gc.cc
index c466996..fe152da 100644
--- a/nix/libstore/gc.cc
+++ b/nix/libstore/gc.cc
@@ -620,10 +620,9 @@ void LocalStore::collectGarbage(const GCOptions & options,
GCResults & results)
foreach (Roots::iterator, i, rootMap) state.roots.insert(i->second);
- /* Add additional roots returned by the program specified by the
- NIX_ROOT_FINDER environment variable. This is typically used
- to add running programs to the set of roots (to prevent them
- from being garbage collected). */
+ /* Add additional roots returned by 'guix gc --list-busy'. This is
+ typically used to add running programs to the set of roots (to prevent
+ them from being garbage collected). */
if (!options.ignoreLiveness)
addAdditionalRoots(*this, state.roots);
- branch master updated (65ecf3a -> f63e493), guix-commits, 2019/10/16
- 02/07: build: Remove references to 'NIX_LOCALSTATE_DIR'., guix-commits, 2019/10/16
- 01/07: daemon: Remove traces of 'NIX_ROOT_FINDER'.,
guix-commits <=
- 03/07: daemon: Make 'profiles/per-user' non-world-writable., guix-commits, 2019/10/16
- 04/07: news: Add entry for security issue with /var/guix/profiles/per-user., guix-commits, 2019/10/16
- 06/07: news: Add 'fr' translation., guix-commits, 2019/10/16
- 07/07: news: Add 'de' translation., guix-commits, 2019/10/16
- 05/07: news: Add 'nl' translation., guix-commits, 2019/10/16