[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/42: gnu: guix: Cross-build fix: override compressors.
From: |
guix-commits |
Subject: |
07/42: gnu: guix: Cross-build fix: override compressors. |
Date: |
Sat, 25 Apr 2020 13:45:01 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit eeb87326d891e0f88f5eebf767d97b45c3e6bbbb
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 | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/package-management.scm
b/gnu/packages/package-management.scm
index e2b26ce..82c144b 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -191,6 +191,20 @@ $(prefix)/etc/init.d\n")))
(bash (assoc-ref inputs "bash")))
(substitute* (string-append out "/bin/guix")
(("^#!.*/bash") (string-append "#! " bash
"/bin/bash")))
+ #t)))
+ (add-before 'build 'fixup-compressors
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Use host compressors.
+ (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
(lambda* (#:key system inputs #:allow-other-keys)
@@ -342,7 +356,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.
- 11/42: gnu: hurd: Fix references to /bin/w., (continued)
- 11/42: gnu: hurd: Fix references to /bin/w., guix-commits, 2020/04/25
- 12/42: gnu: hurd: Use default Qemu guest ip: 10.0.2.15., guix-commits, 2020/04/25
- 20/42: services: Add hurd-console-service-type., guix-commits, 2020/04/25
- 26/42: services: Add openssh-service as a Hurd service., guix-commits, 2020/04/25
- 22/42: services: Add hurd-user-services-service-type., guix-commits, 2020/04/25
- 23/42: services: Add guix-daemon-service as a Hurd service., guix-commits, 2020/04/25
- 29/42: system: hurd: Add openssh service., guix-commits, 2020/04/25
- 30/42: system: hurd: Create system profile for guix development., guix-commits, 2020/04/25
- 28/42: system: gnu: Populate "/etc" from "/boot/activation"., guix-commits, 2020/04/25
- 31/42: system: gnu: Add %bootstrap-{gcc, binutils, glibc} for devel profile., guix-commits, 2020/04/25
- 07/42: gnu: guix: Cross-build fix: override compressors.,
guix-commits <=
- 25/42: services: hurd: Add dummy loopback., guix-commits, 2020/04/25
- 19/42: services: Add hurd., guix-commits, 2020/04/25
- 27/42: system: hurd: Add the Shepherd., guix-commits, 2020/04/25
- 33/42: system: hurd: Add the guix service., guix-commits, 2020/04/25
- 41/42: system: hurd: Add hurd-grub-minimal-bootloader., guix-commits, 2020/04/25
- 16/42: gnu: Add libtirpc/hurd., guix-commits, 2020/04/25
- 34/42: services: hurd: Move hurd-etc-sevcices., guix-commits, 2020/04/25
- 36/42: services: hurd: Move hurd-default-essential-services., guix-commits, 2020/04/25
- 39/42: services: hurd: Use cons as extend method., guix-commits, 2020/04/25
- 38/42: services: hurd: Use hurd-file-systems-service., guix-commits, 2020/04/25