[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/84: gnu: glibc/hurd-headers: Properly cross-build.
From: |
guix-commits |
Subject: |
02/84: gnu: glibc/hurd-headers: Properly cross-build. |
Date: |
Wed, 14 Jun 2023 06:23:53 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd
in repository guix.
commit b1dfa049474c543956c47b1ce529f43dedd800bc
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)))
- 03/84: gnu: gnumach-headers: Cross-build without relying on x86., (continued)
- 03/84: gnu: gnumach-headers: Cross-build without relying on x86., guix-commits, 2023/06/14
- 23/84: bootloader: grub: Use rumpdisk-style root when booting with "noide"., guix-commits, 2023/06/14
- 52/84: gnu: c-ares: Skip failing tests for the Hurd., guix-commits, 2023/06/14
- 54/84: gnu: libgcrypt: Skip hanging benchmark tests for the Hurd., guix-commits, 2023/06/14
- 60/84: gnu: e2fsprogs: Skip failing tests for the Hurd., guix-commits, 2023/06/14
- 83/84: DRAFT hurd-boot: Support second boot., guix-commits, 2023/06/14
- 84/84: DRAFT system: examples: Add devel-hurd.tmpl., guix-commits, 2023/06/14
- 65/84: gnu: ruby-2.6: Skip test for the Hurd., guix-commits, 2023/06/14
- 81/84: system: hurd: Add procps to %base-packages/hurd., guix-commits, 2023/06/14
- 17/84: gnu: hurd-minimal: Include libshouldbeinlibc and libstore., guix-commits, 2023/06/14
- 02/84: gnu: glibc/hurd-headers: Properly cross-build.,
guix-commits <=
- 33/84: gnu: commencement: mig-boot0: Update to 1.8+git20230520., guix-commits, 2023/06/14
- 35/84: gnu: commencement: hurd-minimal-boot0: Update to 0.9.git20230216., guix-commits, 2023/06/14
- 44/84: gnu: m4: Skip gnulib stack-overflow tests for the Hurd., guix-commits, 2023/06/14
- 49/84: gnu: mpfr: Skip failing test for the Hurd., guix-commits, 2023/06/14
- 55/84: gnu: tcl: Remove failing tests for the Hurd.., guix-commits, 2023/06/14
- 80/84: gnu: guile-2.0: Skip failing tests for the Hurd., guix-commits, 2023/06/14
- 61/84: gnu: parted: Disable tests for the Hurd., guix-commits, 2023/06/14
- 63/84: gnu: cairo: Support building for the Hurd., guix-commits, 2023/06/14
- 73/84: gnu: guile-git: Skip http proxy test for the Hurd., guix-commits, 2023/06/14