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 @@ (define (build-wrapper program)
(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)