[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/08: pack: Dereference symlinks when looking for executables.
From: |
guix-commits |
Subject: |
02/08: pack: Dereference symlinks when looking for executables. |
Date: |
Mon, 29 Jun 2020 18:19:16 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 4f060bf2fe1dd8bec79cb07907b46e16fca21398
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Jun 29 22:57:12 2020 +0200
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'.
---
guix/scripts/pack.scm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm
index e0f9cc1..5bd405a 100644
--- a/guix/scripts/pack.scm
+++ b/guix/scripts/pack.scm
@@ -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)
- branch master updated (3e51f9e -> d2fde34), guix-commits, 2020/06/29
- 01/08: build-system/r: bioconductor-uri: Fix archive URL., guix-commits, 2020/06/29
- 02/08: pack: Dereference symlinks when looking for executables.,
guix-commits <=
- 04/08: gnu: python-imageio: Update home-page, synopsis and description., guix-commits, 2020/06/29
- 08/08: lint: Adjust 'swh-error exception handler., guix-commits, 2020/06/29
- 03/08: gnu: gcc-toolchain: Remove "glibc:debug" and "glibc:static" from "out"., guix-commits, 2020/06/29
- 06/08: gnu: geeqie: Update to 1.5., guix-commits, 2020/06/29
- 07/08: swh: Adjust for Guile-JSON 4.0 null handling., guix-commits, 2020/06/29
- 05/08: gnu: darktable: Add dependency on GMIC and OpenCL headers., guix-commits, 2020/06/29