[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/47: gnu: glibc/hurd-headers: Properly cross-build.
From: |
guix-commits |
Subject: |
02/47: gnu: glibc/hurd-headers: Properly cross-build. |
Date: |
Sat, 3 Jun 2023 07:23:33 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd
in repository guix.
commit abbb20d5be0400dfb4855e847173b1cd0de7d2c9
Author: Josselin Poiret <dev@jpoiret.xyz>
AuthorDate: Mon May 22 11:04:12 2023 +0200
gnu: glibc/hurd-headers: Properly cross-build.
* gnu/packages/base.scm (glibc/hurd-headers): Rely on cross-mig, and remove
hardcoded configure flag `--host=i586-pc-gnu`.
* gnu/packages/cross-base.scm (cross-kernel-headers*): Add `--host` and
`--build` configure flags.
---
gnu/packages/base.scm | 13 ++++++-------
gnu/packages/cross-base.scm | 6 +++++-
2 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index d2f276c447..f944ab5d47 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -1423,17 +1423,15 @@ command.")
(native-inputs
(modify-inputs (package-native-inputs glibc)
(prepend (if (%current-target-system)
- ;; XXX: When targeting i586-pc-gnu, we need a 32-bit MiG,
- ;; hence this hack.
- (package (inherit mig)
- (arguments `(#:system "i686-linux")))
- mig))))
+ (let* ((cross-base (resolve-interface '(gnu packages
cross-base)))
+ (cross-mig (module-ref cross-base 'cross-mig)))
+ (cross-mig (%current-target-system)))
+ mig))))
(arguments
(substitute-keyword-arguments (package-arguments glibc)
;; We just pass the flags really needed to build the headers.
((#:configure-flags flags)
`(list "--enable-add-ons"
- "--host=i586-pc-gnu"
,@%glibc/hurd-configure-flags))
((#:phases _)
'(modify-phases %standard-phases
@@ -1448,7 +1446,8 @@ command.")
(close-port
(open-output-file
(string-append out "/include/gnu/stubs.h"))))))
- (delete 'build))))))) ; nothing to build
+ (delete 'build))))) ; nothing to build
+ (supported-systems %hurd-systems)))
(define-public tzdata
(package
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 8d0b41180b..50e86083c3 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -492,7 +492,11 @@ the base compiler. Use XBINUTILS as the associated
cross-Binutils."
hurd "/include")))
(for-each (cut setenv <> cpath)
',%gcc-cross-include-paths)
- #t)))))))
+ #t)))))
+ ((#:configure-flags flags)
+ `(cons* ,(string-append "--build=" (%current-system))
+ ,(string-append "--host=" target)
+ ,flags))))
(propagated-inputs `(("gnumach-headers" ,xgnumach-headers)
("hurd-headers" ,xhurd-headers)))
- 06/47: gnu: gnumach: Update to 1.8+git20221224., (continued)
- 06/47: gnu: gnumach: Update to 1.8+git20221224., guix-commits, 2023/06/03
- 11/47: gnu: Add libpciaccess-0.17., guix-commits, 2023/06/03
- 16/47: gnu: hurd: Add rumpkernel., guix-commits, 2023/06/03
- 21/47: gnu: gnumach: Support "noide" argument., guix-commits, 2023/06/03
- 05/47: gnu: Add libc-for-target and glibc/hurd., guix-commits, 2023/06/03
- 10/47: squash! gnu: mig: Update to 04bfe7a91223ba15d868f7165e49328b1c6e86c3., guix-commits, 2023/06/03
- 13/47: gnu: Add rumpkernel., guix-commits, 2023/06/03
- 25/47: services: static-networking: Support netdde for the Hurd., guix-commits, 2023/06/03
- 23/47: hurd-boot: Cater for netdde., guix-commits, 2023/06/03
- 30/47: gnu: commencement: mig-boot0: Update to 1.8+git20230520., guix-commits, 2023/06/03
- 02/47: gnu: glibc/hurd-headers: Properly cross-build.,
guix-commits <=
- 15/47: gnu: parted: Support building for the Hurd., guix-commits, 2023/06/03
- 17/47: hurd-boot: Setup pci-arbiter and rumpdisk translators., guix-commits, 2023/06/03
- 27/47: gnu: commencement: Add autoconf-boot0., guix-commits, 2023/06/03
- 26/47: gnu: gnumach: Disable builtin networking., guix-commits, 2023/06/03
- 28/47: gnu: commencement: Add automake-boot0., guix-commits, 2023/06/03
- 34/47: gnu: commencement: glibc-final: Use libc-for-target for source too., guix-commits, 2023/06/03
- 33/47: gnu: commencement: glibc-final-with-bootstrap-bash: Use libc-for-target., guix-commits, 2023/06/03
- 42/47: gnu: gettext-minimal: Remove XFAIL_TESTS for the Hurd., guix-commits, 2023/06/03
- 01/47: hurd-boot: Add urandom and default-pager translators., guix-commits, 2023/06/03
- 04/47: gnu: hurd: Update supported systems., guix-commits, 2023/06/03