[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/51: gnu: texinfo-4: Fix [cross-]build with gcc-14 and the 64bit Hurd.
From: |
guix-commits |
Subject: |
18/51: gnu: texinfo-4: Fix [cross-]build with gcc-14 and the 64bit Hurd. |
Date: |
Mon, 18 Nov 2024 18:49:09 -0500 (EST) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit f89984f54482cb3e05ef3c165d731050c718d94f
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Mon Nov 11 15:09:03 2024 +0100
gnu: texinfo-4: Fix [cross-]build with gcc-14 and the 64bit Hurd.
* gnu/packages/texinfo.scm (texinfo-4): When building for the 64bit Hurd, or
cross-compiling, add "-Wno-incompatible-pointer-types" to #:configure-flags.
Change-Id: Ia0503e3f5c7aa5354a949b69035a1be6f93ec85f
---
gnu/packages/texinfo.scm | 50 ++++++++++++++++++++++++++----------------------
1 file changed, 27 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/texinfo.scm b/gnu/packages/texinfo.scm
index 81afdaf7a7..c30ca3c788 100644
--- a/gnu/packages/texinfo.scm
+++ b/gnu/packages/texinfo.scm
@@ -7,7 +7,7 @@
;;; Copyright © 2019 Pierre-Moana Levesque <pierre.moana.levesque@gmail.com>
;;; Copyright © 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
-;;; Copyright © 2020, 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2020, 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
;;; Copyright © 2022 ( <paren@disroot.org>
;;;
@@ -165,31 +165,35 @@ is on expressing the content semantically, avoiding
physical markup commands.")
(modify-inputs (package-native-inputs texinfo)
(prepend automake)))
(arguments
- (substitute-keyword-arguments (package-arguments texinfo)
- ((#:phases phases)
- `(modify-phases ,phases
- (add-after 'unpack 'fix-configure
- (lambda* (#:key inputs native-inputs #:allow-other-keys)
- ;; Replace outdated config.sub and config.guess.
- (with-directory-excursion "build-aux"
- (for-each
- (lambda (file)
- (install-file (string-append
- (assoc-ref
- (or native-inputs inputs) "automake")
- "/share/automake-"
- ,(version-major+minor
- (package-version automake))
- "/" file) "."))
- '("config.sub" "config.guess")))
- #t))
- ;; Build native version of tools before running 'build phase.
- ,@(if (%current-target-system)
- `((add-before 'build 'make-native-gnu-lib
+ (append
+ (substitute-keyword-arguments (package-arguments texinfo)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'fix-configure
+ (lambda* (#:key inputs native-inputs #:allow-other-keys)
+ ;; Replace outdated config.sub and config.guess.
+ (with-directory-excursion "build-aux"
+ (for-each
+ (lambda (file)
+ (install-file (string-append
+ (assoc-ref
+ (or native-inputs inputs) "automake")
+ "/share/automake-"
+ ,(version-major+minor
+ (package-version automake))
+ "/" file) "."))
+ '("config.sub" "config.guess")))
+ #t))
+ ;; Build native version of tools before running 'build phase.
+ ,@(if (%current-target-system)
+ `((add-before 'build 'make-native-gnu-lib
(lambda* (#:key inputs #:allow-other-keys)
(invoke "make" "-C" "tools/gnulib/lib")
#t)))
- '())))))))
+ '()))))
+ (if (or (target-hurd64?) (%current-target-system))
+ (list #:configure-flags ''("CFLAGS=-Wno-incompatible-pointer-types"))
+ '())))))
(define-public info-reader
;; The idea of this package is to have the standalone Info reader without
- 09/51: gnu: patch: Fix build for the 64bit Hurd., (continued)
- 09/51: gnu: patch: Fix build for the 64bit Hurd., guix-commits, 2024/11/18
- 22/51: gnu: libssh: Fix [cross-]build with gcc-14 for 32bit., guix-commits, 2024/11/18
- 31/51: gnu: libpciaccess: Support the 64bit Hurd., guix-commits, 2024/11/18
- 42/51: gnu: commencement: mig-boot0: Update to 1.8+git20231217.., guix-commits, 2024/11/18
- 49/51: system: examples: Add bare-hurd64.tmpl., guix-commits, 2024/11/18
- 50/51: system: examples: Add devel-hurd64.tmpl., guix-commits, 2024/11/18
- 51/51: gnu: Use gcc-14, gcc-toolchain-14 on the 64bit Hurd., guix-commits, 2024/11/18
- 02/51: gnu: mig: Update to 1.8+git20231217., guix-commits, 2024/11/18
- 10/51: gnu: libxcrypt: Support the 64bit Hurd., guix-commits, 2024/11/18
- 16/51: gnu: libffi: Fix [cross-]build with gcc-14., guix-commits, 2024/11/18
- 18/51: gnu: texinfo-4: Fix [cross-]build with gcc-14 and the 64bit Hurd.,
guix-commits <=
- 20/51: gnu: netdde: Fix build with gcc-14., guix-commits, 2024/11/18
- 24/51: gnu: cross-base: Update %xgcc to gcc-14, to support the 64bit Hurd., guix-commits, 2024/11/18
- 26/51: DRAFT gnu: bootstrap: Add support for x86_64-gnu, aka the 64bit Hurd., guix-commits, 2024/11/18
- 27/51: system: image: Add hurd64 image types., guix-commits, 2024/11/18
- 28/51: gnu: libgpg-error: Support the 64bit Hurd., guix-commits, 2024/11/18
- 29/51: gnu: openssl-3.0: Support the 64bit Hurd., guix-commits, 2024/11/18
- 30/51: gnu: pciutils: Support the 64bit Hurd., guix-commits, 2024/11/18
- 36/51: gnu: hurd: Build fixes for the 64bit Hurd., guix-commits, 2024/11/18
- 38/51: gnu: grub: Fix build for the 64bit Hurd., guix-commits, 2024/11/18
- 48/51: gnu: findutils: Disable tests on the 64bit Hurd., guix-commits, 2024/11/18