summaryrefslogtreecommitdiff
path: root/nonguix/build
diff options
context:
space:
mode:
authorPierre Neidhardt <mail@ambrevar.xyz>2019-12-18 17:00:38 +0100
committerPierre Neidhardt <mail@ambrevar.xyz>2019-12-29 19:07:43 +0100
commita35038fb8d8dfd05ec4970177c724d1af390fa2d (patch)
treee4605930cda8dccb3722f9c290a6f440301e02c4 /nonguix/build
parentd622a15d0889c18bdfd32b569479001f53567177 (diff)
nonguix: Fix default values for patchelf-plan and install-plan.
* nonguix/build-system/binary.scm (binary-build): Default values are unquoted, so we add an extra quote.
Diffstat (limited to 'nonguix/build')
-rw-r--r--nonguix/build/binary-build-system.scm35
1 files changed, 19 insertions, 16 deletions
diff --git a/nonguix/build/binary-build-system.scm b/nonguix/build/binary-build-system.scm
index 372e16b..30b55e5 100644
--- a/nonguix/build/binary-build-system.scm
+++ b/nonguix/build/binary-build-system.scm
@@ -97,22 +97,25 @@ The inputs are optional when the file is an executable."
":")))
(invoke "patchelf" "--set-rpath" rpath binary)))
#t)
- (let ((interpreter (car (find-files (assoc-ref inputs "libc") "ld-linux.*\\.so")))
- (interpreter32 (car (find-files (assoc-ref inputs "libc32") "ld-linux.*\\.so"))))
- (for-each
- (lambda (plan)
- (match plan
- ((binary runpath)
- (binary-patch binary (if (64-bit? binary)
- interpreter
- interpreter32)
- runpath))
- ((binary)
- (binary-patch binary (if (64-bit? binary)
- interpreter
- interpreter32)
- #f))))
- patchelf-plan))
+
+ (when (and patchelf-plan
+ (not (null? patchelf-plan)))
+ (let ((interpreter (car (find-files (assoc-ref inputs "libc") "ld-linux.*\\.so")))
+ (interpreter32 (car (find-files (assoc-ref inputs "libc32") "ld-linux.*\\.so"))))
+ (for-each
+ (lambda (plan)
+ (match plan
+ ((binary runpath)
+ (binary-patch binary (if (64-bit? binary)
+ interpreter
+ interpreter32)
+ runpath))
+ ((binary)
+ (binary-patch binary (if (64-bit? binary)
+ interpreter
+ interpreter32)
+ #f))))
+ patchelf-plan)))
#t)
(define %standard-phases