gnu: xz: Fix script interpreters when cross-compiling.
authorChristopher Baines <mail@cbaines.net>
Fri, 28 Oct 2022 12:16:07 +0000 (13:16 +0100)
committerChristopher Baines <mail@cbaines.net>
Sat, 29 Oct 2022 08:29:32 +0000 (09:29 +0100)
Add bash-minimal as an input fixes the interpreters for various scripts (like
xzgrep and xzless) when cross-compiling.

* gnu/packages/compression.scm (xz)[inputs]: Add bash-minimal when cross
compiling.

gnu/packages/compression.scm

index b3a6784..672d511 100644 (file)
@@ -529,6 +529,10 @@ compressed with pbzip2 can be decompressed with bzip2).")
                 (("^old_library='liblzma.a'") "old_library=''"))
               #t))))))
    (outputs '("out" "static"))
+   (inputs
+    `(,@(if (%current-target-system)
+            `(("bash" ,bash-minimal))
+            '())))
    (synopsis "General-purpose data compression")
    (description
     "XZ Utils is free general-purpose data compression software with high