3
4
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

pack: Dereference symlinks when looking for executables.

Fixes <https://bugs.gnu.org/42127>.
Reported by Andrius Štikonas <andrius@stikonas.eu>.

* guix/scripts/pack.scm (wrapped-package)[build]: Add trailing slash to
the arguments to 'find-files'.
This commit is contained in:
Ludovic Courtès 2020-06-29 22:57:12 +02:00
parent b032d14ebd
commit 4f060bf2fe
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -836,9 +836,10 @@ last resort for relocation."
(scandir input))
(for-each build-wrapper
(append (find-files (string-append input "/bin"))
(find-files (string-append input "/sbin"))
(find-files (string-append input "/libexec")))))))
;; Note: Trailing slash in case these are symlinks.
(append (find-files (string-append input "/bin/"))
(find-files (string-append input "/sbin/"))
(find-files (string-append input "/libexec/")))))))
(computed-file (string-append
(cond ((package? package)