[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/84: gnu: gnumach-headers: Cross-build without relying on x86.
From: |
guix-commits |
Subject: |
03/84: gnu: gnumach-headers: Cross-build without relying on x86. |
Date: |
Wed, 14 Jun 2023 06:23:53 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd
in repository guix.
commit 10f63861fc7d0799aad8702185bf2aeccf4d1c47
Author: Josselin Poiret <dev@jpoiret.xyz>
AuthorDate: Mon May 22 11:04:13 2023 +0200
gnu: gnumach-headers: Cross-build without relying on x86.
* gnu/packages/hurd.scm (gnumach-headers): Remove configure flags where we
say the builder is running x86.
* gnu/packages/cross-base.scm (cross-gnumach-headers): Work around
limitation
of build system, by manually changing the target host_cpu without relying on
--host, because we don't have a working cross-compiler yet.
---
gnu/packages/cross-base.scm | 18 ++++++++++++++++++
gnu/packages/hurd.scm | 10 ----------
2 files changed, 18 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 50e86083c3..01c2295853 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -374,6 +374,24 @@ target that libc."
(inherit gnumach-headers)
(name (string-append (package-name gnumach-headers)
"-cross-" target))
+ (arguments
+ (substitute-keyword-arguments (package-arguments gnumach-headers)
+ ((#:phases phases #~%standard-phases)
+ #~(modify-phases #$phases
+ ;; Cheat by setting the host_cpu variable manually, since using
+ ;; --host= would require a working cross-compiler, which we don't
+ ;; have yet.
+ (add-after 'unpack 'substitute-host-cpu
+ (lambda _
+ (substitute* "configure.ac"
+ (("AC_CANONICAL_HOST")
+ #$(string-append
+ "host_cpu="
+ (match target
+ ((? target-x86-32?)
+ "i386")
+ ((? target-x86-64?)
+ "x86_64")))))))))))
(native-inputs
(modify-inputs (package-native-inputs gnumach-headers)
(prepend xgcc xbinutils)))))
diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index 34c7c00f2d..a6f0f76009 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -88,16 +88,6 @@ GNU/Hurd."
(lambda _
(invoke "make" "install-data")))
(delete 'build))
-
- ;; GNU Mach supports only IA32 currently, so cheat so that we can at
- ;; least install its headers.
- ,@(if (%current-target-system)
- '()
- ;; See
<http://lists.gnu.org/archive/html/bug-hurd/2015-06/msg00042.html>
- ;;
<http://lists.gnu.org/archive/html/guix-devel/2015-06/msg00716.html>
- '(#:configure-flags '("--build=i586-pc-gnu"
- "--host=i686-linux-gnu")))
-
#:tests? #f))
(native-inputs
(list autoconf automake texinfo-4))
- 41/84: gnu: findutils: Move test-strerror_r from XFAIL to skip for the Hurd., (continued)
- 41/84: gnu: findutils: Move test-strerror_r from XFAIL to skip for the Hurd., guix-commits, 2023/06/14
- 43/84: gnu: gettext-minimal: Remove XFAIL_TESTS for the Hurd., guix-commits, 2023/06/14
- 36/84: Revert "gnu: libunistring: Fix make check for the Hurd.", guix-commits, 2023/06/14
- 56/84: gnu: curl: Skip failing test for the Hurd., guix-commits, 2023/06/14
- 71/84: gnu: doxygen: Fix build for the Hurd., guix-commits, 2023/06/14
- 76/84: gnu: harfbuzz: Support build for the Hurd., guix-commits, 2023/06/14
- 72/84: gnu: graphite2: Skip test for the Hurd., guix-commits, 2023/06/14
- 82/84: DRAFT hurd: Support second boot., guix-commits, 2023/06/14
- 62/84: gnu: libpaper: Disable tests for the Hurd., guix-commits, 2023/06/14
- 21/84: services: childhurd: Bump default qemu memory to 2048MB., guix-commits, 2023/06/14
- 03/84: gnu: gnumach-headers: Cross-build without relying on x86.,
guix-commits <=
- 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, 2023/06/14