[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/05: gnu: gzip: Fix script interpreters when cross-compiling.
From: |
guix-commits |
Subject: |
02/05: gnu: gzip: Fix script interpreters when cross-compiling. |
Date: |
Sat, 29 Oct 2022 04:38:48 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit 01cfc2270005375d81011d2bd2f8b32ec520e22d
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Fri Oct 28 13:14:04 2022 +0100
gnu: gzip: Fix script interpreters when cross-compiling.
Add bash-minimal as an input fixes the interpreters for various scripts
(like
zcat and zless) when cross-compiling.
* gnu/packages/compression.scm (gzip)[inputs]: Add bash-minimal when cross
compiling.
---
gnu/packages/compression.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index f2bf5c443c..b3a678480d 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -70,6 +70,7 @@
#:use-module (gnu packages autotools)
#:use-module (gnu packages backup)
#:use-module (gnu packages base)
+ #:use-module (gnu packages bash)
#:use-module (gnu packages benchmark)
#:use-module (gnu packages boost)
#:use-module (gnu packages check)
@@ -281,6 +282,10 @@ adding and extracting files to/from a tar archive.")
(string-append "exec " (assoc-ref outputs "out")
"/bin/gzip")))
#t)))))
+ (inputs
+ `(,@(if (%current-target-system)
+ `(("bash" ,bash-minimal))
+ '())))
(description
"GNU Gzip provides data compression and decompression utilities; the
typical extension is \".gz\". Unlike the \"zip\" format, it compresses a
single