mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05: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:
parent
b032d14ebd
commit
4f060bf2fe
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue