[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/09: gnu: patch: Fix build for the 64bit Hurd.
From: |
guix-commits |
Subject: |
03/09: gnu: patch: Fix build for the 64bit Hurd. |
Date: |
Tue, 5 Nov 2024 08:52:45 -0500 (EST) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit f38b14299cf1e5c01d3fb3e6a7204159746f98e6
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Mon Nov 4 14:52:49 2024 +0100
gnu: patch: Fix build for the 64bit Hurd.
* gnu/packages/base.scm (patch)[arguments]: When building for the 64bit
Hurd,
set #:configure-flags.
Change-Id: I795a591ef8282ee5b760fec43bd4ad849007f602
---
gnu/packages/base.scm | 49 ++++++++++++++++++++++++++++---------------------
1 file changed, 28 insertions(+), 21 deletions(-)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 9d4e40f6f9..1ab9d6994e 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -339,27 +339,34 @@ differences.")
"1bk38169c0xh01b0q0zmnrjqz8k9byz3arp4q7q66sn6xwf94nvz"))
(patches (search-patches "patch-hurd-path-max.patch"))))
(arguments
- (substitute-keyword-arguments (package-arguments base)
- ((#:phases phases '%standard-phases)
- #~(modify-phases #$phases
- (add-after 'unpack 'copy-gnulib-sources
- (lambda _
- ;; XXX: We copy the source instead of using 'gnulib' as a
- ;; native input to avoid introducing a dependency cycle.
- (copy-recursively #+gnulib "gnulib")
- (setenv "GNULIB_SRCDIR"
- (string-append (getcwd) "/gnulib/src/gnulib"))))
- (add-after 'copy-gnulib-sources 'update-bootstrap-script
- (lambda _
- (copy-file "gnulib/src/gnulib/build-aux/bootstrap"
- "bootstrap")))
- (add-after 'unpack 'patch-configure.ac
- (lambda _
- (substitute* "configure.ac"
- ;; The gnulib-provided git-version-gen script has a plain
- ;; shebang of #!/bin/sh; avoid using it.
- (("build-aux/git-version-gen" all)
- (string-append "sh " all)))))))))
+ (let ((arguments
+ (substitute-keyword-arguments (package-arguments base)
+ ((#:phases phases '%standard-phases)
+ #~(modify-phases #$phases
+ (add-after 'unpack 'copy-gnulib-sources
+ (lambda _
+ ;; XXX: We copy the source instead of using 'gnulib' as a
+ ;; native input to avoid introducing a dependency cycle.
+ (copy-recursively #+gnulib "gnulib")
+ (setenv "GNULIB_SRCDIR"
+ (string-append (getcwd) "/gnulib/src/gnulib"))))
+ (add-after 'copy-gnulib-sources 'update-bootstrap-script
+ (lambda _
+ (copy-file "gnulib/src/gnulib/build-aux/bootstrap"
+ "bootstrap")))
+ (add-after 'unpack 'patch-configure.ac
+ (lambda _
+ (substitute* "configure.ac"
+ ;; The gnulib-provided git-version-gen script has a plain
+ ;; shebang of #!/bin/sh; avoid using it.
+ (("build-aux/git-version-gen" all)
+ (string-append "sh " all))))))))))
+ (if (target-hurd64?)
+ (substitute-keyword-arguments arguments
+ ((#:configure-flags flags '())
+ #~(list "--disable-threads"
+ "gl_cv_func_working_mktime=yes")))
+ arguments)))
(native-inputs (list autoconf automake bison ed))
(properties '()))))
- branch hurd-team updated (477fcb0219 -> 5b29c3d85b), guix-commits, 2024/11/05
- 01/09: gnu: cross-libc: Resurrect building for the Hurd., guix-commits, 2024/11/05
- 02/09: gnu: grep: Fix build for the 64bit Hurd., guix-commits, 2024/11/05
- 09/09: Revert "HACK build /gnu/store/5yclrw7j1q3ah7dj4h4pgf8wpbws5n6h-gcc-static-14.2.0.drv !", guix-commits, 2024/11/05
- 03/09: gnu: patch: Fix build for the 64bit Hurd.,
guix-commits <=
- 04/09: gnu: libxcrypt: Support the 64bit Hurd., guix-commits, 2024/11/05
- 05/09: gnu: libstdc++: Support the 64bit Hurd., guix-commits, 2024/11/05
- 07/09: squash! gnu: Add basic support for x86_64-pc-gnu target, aka 64bit Hurd., guix-commits, 2024/11/05
- 06/09: gnu: gcc-13, gcc-14: Support being used as parent for gcc-static., guix-commits, 2024/11/05
- 08/09: HACK build /gnu/store/5yclrw7j1q3ah7dj4h4pgf8wpbws5n6h-gcc-static-14.2.0.drv !, guix-commits, 2024/11/05