diff options
author | Jan Nieuwenhuizen <janneke@gnu.org> | 2016-02-06 15:59:51 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-02-09 11:39:30 +0100 |
commit | c13a9feb5b64fd819eaed38a17da0284bbe2b8d9 (patch) | |
tree | 904c28ae35764f3bf9217947e68a9846107766aa /guix | |
parent | 939c5c31d66f7951b71f65e30fbd56eab40a1717 (diff) | |
download | gnu-guix-c13a9feb5b64fd819eaed38a17da0284bbe2b8d9.tar gnu-guix-c13a9feb5b64fd819eaed38a17da0284bbe2b8d9.tar.gz |
build-system/gnu: Do not patch symlinks.
This fixes location-aware scripts.
* guix/build/gnu-build-system.scm (patch-shebangs)[list-of-files]: Use
'lstat' instead of 'stat'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'guix')
-rw-r--r-- | guix/build/gnu-build-system.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/build/gnu-build-system.scm b/guix/build/gnu-build-system.scm index 2abaa6efdc..34edff7f40 100644 --- a/guix/build/gnu-build-system.scm +++ b/guix/build/gnu-build-system.scm @@ -303,7 +303,7 @@ makefiles." (define (list-of-files dir) (map (cut string-append dir "/" <>) (or (scandir dir (lambda (f) - (let ((s (stat (string-append dir "/" f)))) + (let ((s (lstat (string-append dir "/" f)))) (eq? 'regular (stat:type s))))) '()))) |