[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
47/52: system: hurd: Ensure propagated inputs are also cross-built.
From: |
guix-commits |
Subject: |
47/52: system: hurd: Ensure propagated inputs are also cross-built. |
Date: |
Thu, 9 Apr 2020 13:29:14 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit ccf7e65bbfdce9b5c8fc9ae81e09ae6cb8204c8f
Author: Ludovic Courtès <address@hidden>
AuthorDate: Wed Apr 8 23:23:06 2020 +0200
system: hurd: Ensure propagated inputs are also cross-built.
Previously, the propagated inputs of 'guix' would be the native
GNU/Linux packages.
* gnu/system/hurd.scm (cross-hurd-image)[cross-built]
[cross-built-entry]: New procedures.
[system-profile, grub.cfg]: Use it.
---
gnu/system/hurd.scm | 23 ++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/gnu/system/hurd.scm b/gnu/system/hurd.scm
index fd0a602..65b8c07 100644
--- a/gnu/system/hurd.scm
+++ b/gnu/system/hurd.scm
@@ -60,18 +60,23 @@
(define* (cross-hurd-image #:key (hurd hurd) (gnumach gnumach))
"Return a cross-built GNU/Hurd image."
+ (define (cross-built thing)
+ (with-parameters ((%current-target-system "i586-pc-gnu"))
+ thing))
+
+ (define (cross-built-entry entry)
+ (manifest-entry
+ (inherit entry)
+ (item (cross-built (manifest-entry-item entry)))
+ (dependencies (map cross-built-entry
+ (manifest-entry-dependencies entry)))))
+
(define system-profile
- (map-manifest-entries
- (lambda (entry)
- (manifest-entry
- (inherit entry)
- (item (with-parameters ((%current-target-system "i586-pc-gnu"))
- (manifest-entry-item entry)))))
- (packages->manifest %base-packages/hurd)))
+ (map-manifest-entries cross-built-entry
+ (packages->manifest %base-packages/hurd)))
(define grub.cfg
- (let ((hurd (with-parameters ((%current-target-system "i586-pc-gnu"))
- hurd))
+ (let ((hurd (cross-built hurd))
(mach (with-parameters ((%current-system "i686-linux"))
gnumach))
(libc (cross-libc "i586-pc-gnu")))
- 41/52: system: hurd: Add /etc/group., (continued)
- 41/52: system: hurd: Add /etc/group., guix-commits, 2020/04/09
- 42/52: gnu: libdaemon: Cross-build with --localstatedir=/var., guix-commits, 2020/04/09
- 40/52: system: hurd: Add root profile., guix-commits, 2020/04/09
- 45/52: system: hurd: Add net-base and inetutils., guix-commits, 2020/04/09
- 39/52: gnu: guile-json: Cross-build fix., guix-commits, 2020/04/09
- 48/52: REMOVEME gnu: guix: Bugfix for cross compiling to the Hurd., guix-commits, 2020/04/09
- 51/52: DRAFT daemon: Create wrapper for mount (2)., guix-commits, 2020/04/09
- 50/52: DRAFT gnu: hurd: Add `libhurdutil' patch., guix-commits, 2020/04/09
- 46/52: system: hurd: Add guile-candy., guix-commits, 2020/04/09
- 44/52: system: hurd: Create a proper profile., guix-commits, 2020/04/09
- 47/52: system: hurd: Ensure propagated inputs are also cross-built.,
guix-commits <=
- 49/52: DRAFT gnu: guix: Cross-compilation fixup for wrap-program., guix-commits, 2020/04/09
- 52/52: HACK gnu: guix: Bump to HEAD~1: daemon: Create wrapper for mount (2)., guix-commits, 2020/04/09