[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
32/44: gnu: guix: Cross-build fix: override compressors.
From: |
guix-commits |
Subject: |
32/44: gnu: guix: Cross-build fix: override compressors. |
Date: |
Tue, 21 Apr 2020 15:48:26 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit c1672cf40b90dc1e1187f7db1923120199824e0a
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Fri Apr 10 21:24:19 2020 +0200
gnu: guix: Cross-build fix: override compressors.
* gnu/packages/package-management.scm (guix)[arguments]: When
cross-compiling,
add `fixup-compressors' stage.
[inputs]: When cross-compiling, add `xz'.
---
gnu/packages/package-management.scm | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/package-management.scm
b/gnu/packages/package-management.scm
index d77c0cb..5695d03 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -199,6 +199,21 @@ $(prefix)/etc/init.d\n")))
(bash (assoc-ref inputs "bash")))
(substitute* (string-append out "/bin/guix")
(("^#!.*/bash") (string-append "#! " bash
"/bin/bash")))
+ #t)))
+ ;; Use host compressors.
+ (add-before 'build 'fixup-compressors
+ (lambda* (#:key inputs #:allow-other-keys)
+ (format #t "FOO: inputs:~s\n" inputs)
+ (let ((bzip2 (assoc-ref inputs "bzip2"))
+ (gzip (assoc-ref inputs "gzip"))
+ (xz (assoc-ref inputs "xz")))
+ (substitute* "guix/config.scm"
+ (("/gnu/store/.*/bzip2")
+ (string-append bzip2 "/bin/bzip2"))
+ (("/gnu/store/.*/gzip") gzip
+ (string-append gzip "/bin/gzip"))
+ (("/gnu/store/.*/xz")
+ (string-append xz "/bin/xz")))
#t))))
'())
(add-before 'check 'copy-bootstrap-guile
@@ -365,7 +380,8 @@ $(prefix)/etc/init.d\n")))
`(("boot-guile/i686" ,(bootstrap-guile-origin "i686-linux")))
'())
,@(if (%current-target-system)
- `(("bash" ,bash-minimal))
+ `(("bash" ,bash-minimal)
+ ("xz" ,xz))
'())
;; Tests also rely on these bootstrap executables.
- 31/44: gnu: guix: Cross-build fixup for wrap-program., (continued)
- 31/44: gnu: guix: Cross-build fixup for wrap-program., guix-commits, 2020/04/21
- 13/44: system: hurd: Add less, which to %base-packages/hurd., guix-commits, 2020/04/21
- 12/44: gnu: Add libtirpc/hurd., guix-commits, 2020/04/21
- 08/44: gnu: hurd: Use default Qemu guest ip: 10.0.2.15., guix-commits, 2020/04/21
- 28/44: system: gnu: Add %bootstrap-{gcc, binutils, glibc} for devel profile., guix-commits, 2020/04/21
- 24/44: HACK use uncompiled .scm for shepherd, guix-commits, 2020/04/21
- 23/44: system: hurd: Add the Shepherd., guix-commits, 2020/04/21
- 33/44: gnu: guix: Apply courage for the Hurd., guix-commits, 2020/04/21
- 35/44: system: hurd: Add guix., guix-commits, 2020/04/21
- 36/44: system: hurd: Add the guix service., guix-commits, 2020/04/21
- 32/44: gnu: guix: Cross-build fix: override compressors.,
guix-commits <=
- 37/44: guile: Disable web-server test on the Hurd., guix-commits, 2020/04/21
- 40/44: gnu: guix: Avoid loading (gnu installer) when cross compiling., guix-commits, 2020/04/21
- 39/44: HACK gnu: python: Disable tests on the Hurd., guix-commits, 2020/04/21
- 42/44: Revert "records: Have ABI check work well for cross-compilation.", guix-commits, 2020/04/21
- 41/44: Revert "compile: Run the load phase within 'with-target'.", guix-commits, 2020/04/21
- 44/44: gnu: guix: Run `make update-guix-package'., guix-commits, 2020/04/21
- 38/44: gnu: tcl: Disable troublesome test on the Hurd., guix-commits, 2020/04/21
- 43/44: REMOVEME gnu: guix: Bugfix for cross compiling to the Hurd., guix-commits, 2020/04/21
- 29/44: gnu: guix: Use gnutls-3.6.13 when cross-compiling., guix-commits, 2020/04/21