[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/27: gnu: patch: Fix build for the 64bit Hurd.
From: |
guix-commits |
Subject: |
09/27: gnu: patch: Fix build for the 64bit Hurd. |
Date: |
Tue, 3 Dec 2024 02:41:14 -0500 (EST) |
janneke pushed a commit to branch master
in repository guix.
commit d53f374a8a33fc018f37411b8bbde17fded3319b
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 010be631d7..83f8c0d9e9 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 '()))))
- 07/27: gnu: elfutils: Fix build for 64bit Hurd., (continued)
- 07/27: gnu: elfutils: Fix build for 64bit Hurd., guix-commits, 2024/12/03
- 06/27: gnu: bash-minimal: Support [cross-]build with gcc-14., guix-commits, 2024/12/03
- 15/27: gnu: flex: Fix [cross-]build with gcc-14., guix-commits, 2024/12/03
- 01/27: gnu: gnumach: Update to v1.8+git20240714., guix-commits, 2024/12/03
- 03/27: gnu: hurd: Update to 0.9.git20240714., guix-commits, 2024/12/03
- 05/27: gnu: cross-libc: Support cross-building for the 64bit Hurd., guix-commits, 2024/12/03
- 02/27: gnu: mig: Update to 1.8+git20231217., guix-commits, 2024/12/03
- 08/27: gnu: grep: Fix build for the 64bit Hurd., guix-commits, 2024/12/03
- 10/27: gnu: libxcrypt: Support the 64bit Hurd., guix-commits, 2024/12/03
- 11/27: gnu: libstdc++: Support the 64bit Hurd., guix-commits, 2024/12/03
- 09/27: gnu: patch: Fix build for the 64bit Hurd.,
guix-commits <=
- 17/27: gnu: perl: Support [cross-]build with gcc-14 and the 64bit Hurd., guix-commits, 2024/12/03
- 25/27: gnu: gcc-14: Force libdir /lib instead of /lib64 for the 64bit Hurd., guix-commits, 2024/12/03
- 27/27: gnu: make-bootstrap: Update gcc-static to gcc-14, for the 64bit Hurd., guix-commits, 2024/12/03
- 21/27: gnu: libedit: Fix [cross-]build with gcc-14 for 32bit., guix-commits, 2024/12/03
- 26/27: gnu: glibc/hurd: Add patch for the 64bit Hurd, fixing "raise"., guix-commits, 2024/12/03
- 18/27: gnu: texinfo-4: Fix [cross-]build with gcc-14 and the 64bit Hurd., guix-commits, 2024/12/03
- 16/27: gnu: libffi: Fix [cross-]build with gcc-14., guix-commits, 2024/12/03
- 13/27: gnu: bash: Avoid hang when cross-built for the Hurd., guix-commits, 2024/12/03
- 12/27: gnu: glibc/hurd: Add patches for the 64bit Hurd., guix-commits, 2024/12/03
- 14/27: gnu: git-minimal: Support [cross-]build with gcc-14 and the 64bit Hurd., guix-commits, 2024/12/03