[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
31/44: gnu: guix: Cross-build fixup for wrap-program.
From: |
guix-commits |
Subject: |
31/44: gnu: guix: Cross-build fixup for wrap-program. |
Date: |
Tue, 21 Apr 2020 15:48:26 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit dfb88de9ade9916cd47c595a91d380f381f881aa
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Wed Apr 8 09:43:51 2020 +0200
gnu: guix: Cross-build fixup for wrap-program.
This allows running:
guix build hello
* gnu/packages/package-management.scm (guix)[arguments]: When
cross-compiling,
add 'wrap-program:substitute-host-bash phase to fixup the shebang generated
by
wrap-program.
[inputs]: When cross-compiling, include bash-minimal.
---
gnu/packages/package-management.scm | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/gnu/packages/package-management.scm
b/gnu/packages/package-management.scm
index 9021643..d77c0cb 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -37,6 +37,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 bdw-gc)
#:use-module (gnu packages bison)
#:use-module (gnu packages bootstrap) ;for 'bootstrap-guile-origin'
@@ -190,6 +191,14 @@ $(prefix)/etc/init.d\n")))
(string-append "LANGUAGE= PATH="
self "/bin"
":" (getenv "PATH"))))
+ #t)))
+ ;; XXX Touching wrap-program rebuilds world
+ (add-after 'wrap-program
'wrap-program:substitute-host-bash
+ (lambda* (#:key inputs outputs
#:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (bash (assoc-ref inputs "bash")))
+ (substitute* (string-append out "/bin/guix")
+ (("^#!.*/bash") (string-append "#! " bash
"/bin/bash")))
#t))))
'())
(add-before 'check 'copy-bootstrap-guile
@@ -355,6 +364,9 @@ $(prefix)/etc/init.d\n")))
(string=? (%current-system) "x86_64-linux"))
`(("boot-guile/i686" ,(bootstrap-guile-origin "i686-linux")))
'())
+ ,@(if (%current-target-system)
+ `(("bash" ,bash-minimal))
+ '())
;; Tests also rely on these bootstrap executables.
("bootstrap/bash" ,(bootstrap-executable "bash" target))
- 21/44: services: hurd: Add dummy loopback., (continued)
- 21/44: services: hurd: Add dummy loopback., guix-commits, 2020/04/21
- 19/44: services: Add guix-daemon-service as a Hurd service., guix-commits, 2020/04/21
- 27/44: system: hurd: Create system profile for guix development., guix-commits, 2020/04/21
- 25/44: system: gnu: Populate "/etc" from "/boot/activation"., guix-commits, 2020/04/21
- 30/44: gnu: guix: Fix cross-compilation., guix-commits, 2020/04/21
- 34/44: gnu: guix: Add dependency on `hurd' when building for the Hurd., guix-commits, 2020/04/21
- 07/44: gnu: hurd: Fix references to /bin/w., guix-commits, 2020/04/21
- 17/44: services: Add hurd-ttys-service-type., guix-commits, 2020/04/21
- 20/44: services: hurd: Add dummy syslog., guix-commits, 2020/04/21
- 26/44: system: hurd: Add openssh service., guix-commits, 2020/04/21
- 31/44: gnu: guix: Cross-build fixup for wrap-program.,
guix-commits <=
- 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, 2020/04/21