guix package: Make custom profiles actual indirect roots.
authorLudovic Courtès <ludo@gnu.org>
Fri, 6 Feb 2015 16:52:07 +0000 (17:52 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 6 Feb 2015 16:56:22 +0000 (17:56 +0100)
commitc9323a4c69d48bc9af3825674e43a3febbb42091
tree5b3d5e9dec0d8ba5bfb6adc0d59e1a6ce5a31b00
parent3df5acf332fd7b5c21c09961eaa5353c1bd08c60
guix package: Make custom profiles actual indirect roots.

Before that, any profile generation built when '-p' is used would
effectively become a permanent GC root because the symlink in
/var/guix/gcroots/auto would point directly to /gnu/store/...-profile.

* guix/scripts/package.scm (maybe-register-gc-root): Rename to...
  (register-gc-root): ... this.  Remove conditional, and replace call to
  'canonicalize-path' with (string-append (getcwd) "/" ...).
  (guix-package): Call 'register-gc-root' only if PROFILE is different
  from %CURRENT-PROFILE.
* tests/guix-package.sh: Add test case.
guix/scripts/package.scm
tests/guix-package.sh