[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/61: gnu: guile-lzlib: Fix build with gcc-14.
From: |
guix-commits |
Subject: |
25/61: gnu: guile-lzlib: Fix build with gcc-14. |
Date: |
Thu, 12 Dec 2024 05:41:59 -0500 (EST) |
janneke pushed a commit to branch core-packages-team
in repository guix.
commit 1afefb5f56e4b395dcb20001941e7fe2e95dbb8a
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Sat Dec 7 09:19:21 2024 +0100
gnu: guile-lzlib: Fix build with gcc-14.
* gnu/packages/patches/guile-lzlib-gcc-14.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/guile.scm (guile-lzlib)["source"]: Use it, together with
"guile-lzlib-hurd64.patch".
[arguments]: Remove "apply-hurd64-patch" phase.
Change-Id: Iecc42bfd192c21b08b56c144e4dc95bb5ebc875c
---
gnu/local.mk | 1 +
gnu/packages/guile.scm | 16 ++++----------
gnu/packages/patches/guile-lzlib-gcc-14.patch | 32 +++++++++++++++++++++++++++
3 files changed, 37 insertions(+), 12 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 8fbd4700a2..ae03e5822e 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1519,6 +1519,7 @@ dist_patch_DATA =
\
%D%/packages/patches/guile-fix-invalid-unicode-handling.patch \
%D%/packages/patches/guile-gdbm-ffi-support-gdbm-1.14.patch \
%D%/packages/patches/guile-hurd-posix-spawn.patch \
+ %D%/packages/patches/guile-lzlib-gcc-14.patch \
%D%/packages/patches/guile-lzlib-hurd64.patch \
%D%/packages/patches/guile-present-coding.patch \
%D%/packages/patches/guile-rsvg-pkgconfig.patch \
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index d8cb4a91af..51f4ca1e85 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -934,21 +934,13 @@ Guile's foreign function interface.")
(file-name (string-append "guile-lzlib-" version ".tar.gz"))
(sha256
(base32
- "1whgmwkr1v8m63p4aaqn8blwl9vcrswwhbfv4bm0aghl5a6rryd7"))))
+ "1whgmwkr1v8m63p4aaqn8blwl9vcrswwhbfv4bm0aghl5a6rryd7"))
+ (patches (search-patches "guile-lzlib-gcc-14.patch"
+ "guile-lzlib-hurd64.patch"))))
(build-system gnu-build-system)
(arguments
(list
- #:make-flags #~'("GUILE_AUTO_COMPILE=0") ;prevent guild warnings
- #:phases (if (or (%current-target-system) (target-hurd64?))
- #~(modify-phases %standard-phases
- (add-after 'unpack 'apply-hurd64-patch
- (lambda _
- (let ((patch
- #$(local-file
- (search-patch
- "guile-lzlib-hurd64.patch"))))
- (invoke "patch" "--force" "-p1" "-i" patch)))))
- #~%standard-phases)))
+ #:make-flags #~'("GUILE_AUTO_COMPILE=0"))) ;prevent guild warnings
(native-inputs (list autoconf automake pkg-config guile-3.0))
(inputs (list guile-3.0 lzlib))
(synopsis "Guile bindings to lzlib")
diff --git a/gnu/packages/patches/guile-lzlib-gcc-14.patch
b/gnu/packages/patches/guile-lzlib-gcc-14.patch
new file mode 100644
index 0000000000..143b7adf7b
--- /dev/null
+++ b/gnu/packages/patches/guile-lzlib-gcc-14.patch
@@ -0,0 +1,32 @@
+Upstream-status: Presented upstream.
+
+From 8b0db8997007d427ce9e77cb8191e698d1c47f02 Mon Sep 17 00:00:00 2001
+From: "janneke@gnu.org" <janneke@gnu.org>
+Date: Sat, 7 Dec 2024 09:48:49 +0100
+Subject: [PATCH] build: Support gcc-14.
+
+* configure.ac: When compiling natively declare LZ_decompress_open before
+using it in conftest.c.
+---
+ configure.ac | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 4c56768..ffdab1d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -43,7 +43,10 @@ EOF
+ else
+ old_LIBS="$LIBS"
+ LIBS="-llz"
+- AC_LINK_IFELSE([AC_LANG_SOURCE([int main () { return
LZ_decompress_open(); }])],
++ AC_LINK_IFELSE([AC_LANG_SOURCE([
++int LZ_decompress_open ();
++int main () { return LZ_decompress_open(); }
++])],
+ [guile_cv_liblz_libdir="`ldd conftest$EXEEXT | grep liblz | sed
'-es/.*=> \(.*\) .*$/\1/g'`"])
+ LIBS="$old_LIBS"
+ fi])
+--
+2.46.0
+
- 61/61: DRAFT gnu: gcc: Update gcc, gcc-toolchain, libgccjit to 14., (continued)
- 61/61: DRAFT gnu: gcc: Update gcc, gcc-toolchain, libgccjit to 14., guix-commits, 2024/12/12
- 48/61: gnu: pth: Fix build with gcc-14., guix-commits, 2024/12/12
- 31/61: gnu: llvm-13: Fix build with gcc-14., guix-commits, 2024/12/12
- 09/61: gnu: libffi: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/12
- 01/61: Revert "Partial revert "gnu: bootstrap: %bootstrap-gcc: Also wrap g++ for the 64bit Hurd."", guix-commits, 2024/12/12
- 14/61: gnu: unzip: Fix build with gcc-14., guix-commits, 2024/12/12
- 16/61: gnu: automake: Update to 1.17; fixes build with gcc-14., guix-commits, 2024/12/12
- 19/61: gnu: bdb: Use automake-1.16.5., guix-commits, 2024/12/12
- 18/61: gnu: automake-1.16.5: Skip tests., guix-commits, 2024/12/12
- 23/61: gnu: commencement: static-bash-for-glibc Fix x86-linux build., guix-commits, 2024/12/12
- 25/61: gnu: guile-lzlib: Fix build with gcc-14.,
guix-commits <=
- 26/61: gnu: go-1.21.5: Skip test failing with gcc-14., guix-commits, 2024/12/12
- 29/61: gnu: cmake-bootstrap: Fix build with gcc-14., guix-commits, 2024/12/12
- 27/61: gnu: python-lxml: Update to 5.2.2; fixes build with gcc-14., guix-commits, 2024/12/12
- 28/61: gnu: xmlto: Fix build with gcc-14., guix-commits, 2024/12/12
- 32/61: gnu: hplip: Update to 3.24.4 and fix build with gcc-14., guix-commits, 2024/12/12
- 33/61: gnu: libxaw3d: Update to 1.6.6, fixes build with gcc-14., guix-commits, 2024/12/12
- 34/61: gnu: serf: Update to 1.3.10 and fix build with gcc-14., guix-commits, 2024/12/12
- 35/61: gnu: localed: Fix build with gcc-14., guix-commits, 2024/12/12
- 36/61: gnu: gcc-boot0: Fix building for aarch64-linux., guix-commits, 2024/12/12
- 37/61: gnu: zziplib: Update to 0.13.78; fixes build with gcc-14., guix-commits, 2024/12/12