Ludovic Courtès 2225d56a14
profiles: Correctly deal with etc/ being a relative symlink.
Fixes <https://bugs.gnu.org/32686>.
Reported by Oleg Pykhalov <go.wigust@gmail.com>.

* guix/build/profiles.scm (ensure-writable-directory): Add #:symlink.
[absolute?]: New procedure.
[unsymlink]: Use it to determine how to resolve readlink's result.
(build-profile): Pass SYMLINK to 'ensure-writable-directory'.
* tests/profiles.scm ("profile-derivation when etc/ is a relative symlink"):
New test.
2018-09-11 00:14:58 +02:00
..
2018-02-26 18:19:34 +01:00
2018-03-29 17:58:15 +02:00
2017-11-07 00:12:10 +01:00
2016-08-30 22:38:28 +02:00
2018-05-31 13:24:17 +02:00
2013-05-08 23:45:02 +02:00
2018-06-14 11:17:00 +02:00