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:
parent
b032d14ebd
commit
4f060bf2fe
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user