mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
daemon: Remove traces of 'NIX_ROOT_FINDER'.
This is a followup to 2e3e5d2198
.
* build-aux/test-env.in: Remove mentions of 'NIX_ROOT_FINDER'.
* nix/libstore/gc.cc (LocalStore::collectGarbage): Adjust comment
accordingly.
This commit is contained in:
parent
65ecf3a7af
commit
47e99e626b
2 changed files with 4 additions and 6 deletions
|
@ -53,7 +53,6 @@ then
|
||||||
NIX_LOCALSTATE_DIR="@GUIX_TEST_ROOT@/var"
|
NIX_LOCALSTATE_DIR="@GUIX_TEST_ROOT@/var"
|
||||||
GUIX_LOG_DIRECTORY="@GUIX_TEST_ROOT@/var/log/guix"
|
GUIX_LOG_DIRECTORY="@GUIX_TEST_ROOT@/var/log/guix"
|
||||||
GUIX_DATABASE_DIRECTORY="@GUIX_TEST_ROOT@/db"
|
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
|
# Choose a PID-dependent name to allow for parallel builds. Note
|
||||||
# that the directory name must be chosen so that the socket's file
|
# 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 \
|
export NIX_IGNORE_SYMLINK_STORE NIX_STORE_DIR \
|
||||||
NIX_LOCALSTATE_DIR GUIX_LOG_DIRECTORY GUIX_STATE_DIRECTORY GUIX_DATABASE_DIRECTORY \
|
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_ALLOW_UNAUTHENTICATED_SUBSTITUTES \
|
||||||
GUIX_CONFIGURATION_DIRECTORY XDG_CACHE_HOME NIXPKGS
|
GUIX_CONFIGURATION_DIRECTORY XDG_CACHE_HOME NIXPKGS
|
||||||
|
|
||||||
|
|
|
@ -620,10 +620,9 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results)
|
||||||
|
|
||||||
foreach (Roots::iterator, i, rootMap) state.roots.insert(i->second);
|
foreach (Roots::iterator, i, rootMap) state.roots.insert(i->second);
|
||||||
|
|
||||||
/* Add additional roots returned by the program specified by the
|
/* Add additional roots returned by 'guix gc --list-busy'. This is
|
||||||
NIX_ROOT_FINDER environment variable. This is typically used
|
typically used to add running programs to the set of roots (to prevent
|
||||||
to add running programs to the set of roots (to prevent them
|
them from being garbage collected). */
|
||||||
from being garbage collected). */
|
|
||||||
if (!options.ignoreLiveness)
|
if (!options.ignoreLiveness)
|
||||||
addAdditionalRoots(*this, state.roots);
|
addAdditionalRoots(*this, state.roots);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue