guix build: Fix relative file name canonicalization for '--root'.
authorLudovic Courtès <ludo@gnu.org>
Mon, 15 Apr 2019 14:57:12 +0000 (16:57 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 15 Apr 2019 14:57:12 +0000 (16:57 +0200)
commit4aea820f0954fce4d076718072faf211f62f3f9d
treee1f6952bfe18778da074657a6745093e06c8d07f
parentcbd059d1017bc22723f1e5293cc8f20dea640fff
guix build: Fix relative file name canonicalization for '--root'.

Fixes <https://bugs.gnu.org/35271>.
Reported by rendaw <7e9wc56emjakcm@s.rendaw.me>.

* guix/scripts/build.scm (register-root): When ROOT is a relative file
name, append the basename of ROOT, not ROOT itself.
* tests/guix-build.sh: Add test.
guix/scripts/build.scm
tests/guix-build.sh