[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62307] [PATCH core-updates 00/15] Update Hurd and fix build failure
From: |
Ludovic Courtès |
Subject: |
[bug#62307] [PATCH core-updates 00/15] Update Hurd and fix build failures |
Date: |
Wed, 22 Mar 2023 15:54:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Hi,
Josselin Poiret <dev@jpoiret.xyz> skribis:
> * gnu/packages/base.scm (glibc/fix-for-hurd-cross): New variable.
> (glibc/hurd-headers): Inherit it.
> * gnu/packages/patches/glibc-hurd-add-freestanding-for-configure.patch:
> * gnu/packages/patches/glibc-hurd-add-freestanding-to-cppflags.patch: New
> files
> * gnu/local.mk (dist_patch_DATA): Register patches.
I’d like to keep this approach (defining a package variant and carrying
Hurd-specific patches) as a last resort.
If I’m not mistaken, we should be able to achieve the same result with a
patch like this one (untested):
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 2959616af6..9db12bcf9f 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -577,7 +577,20 @@ (define* (cross-libc* target
((#:configure-flags flags)
`(cons ,(string-append "--host=" target)
,(if (target-hurd? target)
- `(cons "--disable-werror" ,flags)
+ `(cons* "--disable-werror"
+
+ ;; 'configure' in glibc 2.35 omits to pass
+ ;; '-ffreestanding' when detecting Mach
+ ;; headers. This is fixed in glibc commits
+ ;; 8b8c768e3c701ed1993789bb46acb8a12c7a93df
+ ;; and
+ ;; 7685630b98ca2a3f5de86eadf130993e6cf998a0;
+ ;; as a workaround, bypass those tests.
+ "ac_cv_header_mach_mach_types_defs=yes"
+ "ac_cv_header_mach_mach_types_h=yes"
+ "ac_cv_header_mach_machine_ndr_def_h=yes"
+ "libc_cv_mach_task_creation_time=yes"
+ ,flags)
flags)))
((#:phases phases)
`(modify-phases ,phases
How does that sound?
Thanks,
Ludo’.
- [bug#62307] [PATCH core-updates 00/15] Update Hurd and fix build failures, Josselin Poiret, 2023/03/20
- [bug#62307] [PATCH core-updates 01/15] gnu: glibc/fix-for-hurd-cross: Add new variant., Josselin Poiret, 2023/03/20
- [bug#62307] [PATCH core-updates 00/15] Update Hurd and fix build failures,
Ludovic Courtès <=
- [bug#62307] [PATCH core-updates v2 00/20] Update Hurd and fix build failures, Ludovic Courtès, 2023/03/28
- [bug#62307] [PATCH core-updates v2 02/20] gnu: cross-base: Use gexps for 'cross-gcc-arguments'., Ludovic Courtès, 2023/03/28
- [bug#62307] [PATCH core-updates v2 01/20] gnu: glibc: Work around broken GNU Mach header detection., Ludovic Courtès, 2023/03/28
- [bug#62307] [PATCH core-updates v2 05/20] gnu: cross-base: Add cross arguments to hurd derivatives., Ludovic Courtès, 2023/03/28
- [bug#62307] [PATCH core-updates v2 03/20] gnu: gcc@11: Patch libpthread on GNU/Hurd., Ludovic Courtès, 2023/03/28
- [bug#62307] [PATCH core-updates v2 07/20] gnu: mig: Update to 1.8+git20220827., Ludovic Courtès, 2023/03/28
- [bug#62307] [PATCH core-updates v2 08/20] gnu: gnumach: Update to 1.8+git20220827., Ludovic Courtès, 2023/03/28
- [bug#62307] [PATCH core-updates v2 13/20] gnu: mig/32-bit: Remove., Ludovic Courtès, 2023/03/28
- [bug#62307] [PATCH core-updates v2 04/20] gnu: cross-base: Factor out cross-mig., Ludovic Courtès, 2023/03/28
- [bug#62307] [PATCH core-updates v2 09/20] gnu: hurd: Update to 3ff7053., Ludovic Courtès, 2023/03/28