[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: tar: Allow cross-compilation.
From: |
Ludovic Courtès |
Subject: |
01/01: gnu: tar: Allow cross-compilation. |
Date: |
Fri, 10 Jun 2016 09:25:56 +0000 (UTC) |
civodul pushed a commit to branch core-updates
in repository guix.
commit bbe032940c1ba4dd4aa0e450b288f7aca1588d90
Author: Ludovic Courtès <address@hidden>
Date: Fri Jun 10 11:25:09 2016 +0200
gnu: tar: Allow cross-compilation.
* gnu/packages/base.scm (tar)[inputs]: New field.
---
gnu/packages/base.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 502684f..422424c 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -160,6 +160,13 @@ implementation offers several extensions over the standard
utility.")
(("/bin/sh")
(string-append bash "/bin/sh")))
#t))))))
+
+ ;; When cross-compiling, the 'set-shell-file-name' phase needs to be able
+ ;; to refer to the target Bash.
+ (inputs (if (%current-target-system)
+ `(("bash" ,bash))
+ '()))
+
(synopsis "Managing tar archives")
(description
"Tar provides the ability to create tar archives, as well as the