[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
45/50: gnu: guile-lzlib: Support the 64bit Hurd.
From: |
guix-commits |
Subject: |
45/50: gnu: guile-lzlib: Support the 64bit Hurd. |
Date: |
Mon, 18 Nov 2024 16:43:22 -0500 (EST) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit 9381728dd95bed7437ed906af5dc84c871043367
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Fri Nov 15 16:26:47 2024 +0100
gnu: guile-lzlib: Support the 64bit Hurd.
* gnu/packages/patches/guile-lzlib-hurd64.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/guile.scm (guile-lzlib)[arguments]: Use G-expressions. When
compiling for the 64bit Hurd, use it in new "apply-hurd64-patch" stage.
Change-Id: Id03f71baa80e2f4f967f54037ce7d9f1c5dc4bb6
---
gnu/local.mk | 1 +
gnu/packages/guile.scm | 16 +++++++++++---
gnu/packages/patches/guile-lzlib-hurd64.patch | 32 +++++++++++++++++++++++++++
3 files changed, 46 insertions(+), 3 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 4df5f0c2ae..552eefeaeb 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1518,6 +1518,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-hurd64.patch \
%D%/packages/patches/guile-present-coding.patch \
%D%/packages/patches/guile-rsvg-pkgconfig.patch \
%D%/packages/patches/guile-ssh-rename-bool.patch \
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 8dabbb2c5e..0a6036e072 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -4,7 +4,7 @@
;;; Copyright © 2014, 2016, 2018 David Thompson <davet@gnu.org>
;;; Copyright © 2014, 2017, 2018 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2015, 2017 Christine Lemmer-Webber <cwebber@dustycloud.org>
-;;; Copyright © 2016, 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2016, 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
;;; Copyright © 2016, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
@@ -962,8 +962,18 @@ Guile's foreign function interface.")
"1whgmwkr1v8m63p4aaqn8blwl9vcrswwhbfv4bm0aghl5a6rryd7"))))
(build-system gnu-build-system)
(arguments
- '(#:make-flags
- '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
+ (list
+ #:make-flags #~'("GUILE_AUTO_COMPILE=0") ;prevent guild warnings
+ #:phases (if (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)))
(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-hurd64.patch
b/gnu/packages/patches/guile-lzlib-hurd64.patch
new file mode 100644
index 0000000000..12e8c3617d
--- /dev/null
+++ b/gnu/packages/patches/guile-lzlib-hurd64.patch
@@ -0,0 +1,32 @@
+Upstream-status: Presented upstream.
+
+From 80dcd31562827f4b6d085affe9d9f22164f7ed34 Mon Sep 17 00:00:00 2001
+From: Janneke Nieuwenhuizen <janneke@gnu.org>
+Date: Fri, 15 Nov 2024 16:18:29 +0100
+Subject: [PATCH] build: Support the 64bit Hurd.
+
+* configure.ac: When cross-compiling 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 50dc5ac..4c56768 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -32,7 +32,10 @@ AC_DEFUN([GUILE_LIBLZ_FILE_NAME], [
+ [if test "$cross_compiling" = yes; then
+ # When cross-compiling, we cannot rely on 'ldd'. Instead, look
+ # the output of 'ld --verbose', assuming we're using GNU ld.
+- echo 'int main () { return LZ_decompress_open(); }' > conftest.c
++ cat > conftest.c <<EOF
++int LZ_decompress_open ();
++int main () { return LZ_decompress_open(); }
++EOF
+ guile_cv_liblz_libdir="\
+ `$CC conftest.c -o conftest$EXEEXT -llz -Wl,--verbose 2>/dev/null \
+ | grep -E '^/.*/liblz\.(a|so)'`"
+--
+2.46.0
+
- 29/50: gnu: libpciaccess: Support the 64bit Hurd., (continued)
- 29/50: gnu: libpciaccess: Support the 64bit Hurd., guix-commits, 2024/11/18
- 32/50: gnu: rumpkernel: Update to f1ffd6405f225336e595a0f99f01095ed7438337., guix-commits, 2024/11/18
- 35/50: gnu: inetutils: Fix build for the 64bit Hurd., guix-commits, 2024/11/18
- 37/50: gnu: guile-fibers: Fix build for the 64bit Hurd., guix-commits, 2024/11/18
- 43/50: gnu: gettext: Fix cross-build shebangs., guix-commits, 2024/11/18
- 40/50: gnu: commencement: mig-boot0: Update to 1.8+git20231217.., guix-commits, 2024/11/18
- 46/50: gnu: bootstrap: %bootstrap-glibc: Also fix libm.so., guix-commits, 2024/11/18
- 49/50: system: examples: Add devel-hurd64.tmpl., guix-commits, 2024/11/18
- 48/50: system: examples: Add bare-hurd64.tmpl., guix-commits, 2024/11/18
- 50/50: gnu: Use gcc-14, gcc-toolchain-14 on the 64bit Hurd., guix-commits, 2024/11/18
- 45/50: gnu: guile-lzlib: Support the 64bit Hurd.,
guix-commits <=
- 47/50: gnu: findutils: Disable tests on the 64bit Hurd., guix-commits, 2024/11/18
- 42/50: gnu: commencement: libstdc++-boot0-gcc7: Replace by make-libstdc++-boot0., guix-commits, 2024/11/18