guix package: Use relative symlinks to generations.
authorLudovic Courtès <ludo@gnu.org>
Fri, 13 Jul 2018 12:33:11 +0000 (14:33 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 13 Jul 2018 15:28:39 +0000 (17:28 +0200)
commitbc6e291ef0b3c71c07e50d88d7764e5dd334e8b1
treef6b08da3fd857738de0b51f6746d9c864da25953
parent0bc2d3e42b8800e875f24973f999739297f1f502
guix package: Use relative symlinks to generations.

Reported by Roel Janssen <roel@gnu.org>
at <https://lists.gnu.org/archive/html/guix-devel/2018-07/msg00036.html>.

* guix/profiles.scm (switch-to-generation): Use (basename generation) as
the symlink target.
* guix/scripts/package.scm (build-and-use-profile): Likewise,
use (basename name) as the symlink target.
* tests/guix-package.sh: Adjust --roll-back test accordingly.  Add
explicitly test with '-p foo/prof'.
guix/profiles.scm
guix/scripts/package.scm
tests/guix-package.sh