summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Hogan <code@greghogan.com>2025-07-17 18:16:19 +0000
committerAndreas Enge <andreas@enge.fr>2025-07-18 20:17:54 +0200
commitfe5d8f53590334c3d968d9e4050fbee23bbc1412 (patch)
treea9eb59bcfa6ca739082f56b2e1e3d13162b4c0be
parent3ec3199fbb81c7115f3f70b03aff4350b8d5660a (diff)
gnu: perl-xml-libxslt: Fix configure script.
* gnu/packages/patches/perl-xml-libxslt-fix-configure.patch: New file. * gnu/local.mk (dist_patch_DATA): Register patch. * gnu/packages/xml.scm (perl-xml-libxslt)[origin]: Apply patch. Change-Id: I9199c6e4de924c7425ccb06c3d7da12d9093b8a4
-rw-r--r--gnu/local.mk1
-rw-r--r--gnu/packages/patches/perl-xml-libxslt-fix-configure.patch34
-rw-r--r--gnu/packages/xml.scm4
3 files changed, 38 insertions, 1 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index 0b5d801fa3..cf8ac34c1c 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2107,6 +2107,7 @@ dist_patch_DATA = \
%D%/packages/patches/perl-www-curl-fix-struct-void.patch \
%D%/packages/patches/perl-www-curl-remove-symbol.patch \
%D%/packages/patches/perl-xml-libxml-fix-function-prototypes.patch \
+ %D%/packages/patches/perl-xml-libxslt-fix-configure.patch \
%D%/packages/patches/phoronix-test-suite-fsdg.patch \
%D%/packages/patches/picprog-non-intel-support.patch \
%D%/packages/patches/pidgin-add-search-path.patch \
diff --git a/gnu/packages/patches/perl-xml-libxslt-fix-configure.patch b/gnu/packages/patches/perl-xml-libxslt-fix-configure.patch
new file mode 100644
index 0000000000..8433c30bed
--- /dev/null
+++ b/gnu/packages/patches/perl-xml-libxslt-fix-configure.patch
@@ -0,0 +1,34 @@
+Patch from https://github.com/shlomif/perl-XML-LibXSLT/commit/40fdc7f0.patch
+
+From 40fdc7f0443949d9556f0ecf15eb7777d543cee1 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Thu, 9 Feb 2023 19:28:14 +0100
+Subject: [PATCH] Avoid C implicit function declaration in Makefile.PL (C99
+ compat)
+
+Future compilers are likely not to support implicit function
+declarations. Add a fake prototype so that the probes will
+not always fail with such compilers.
+---
+ Makefile.PL | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 079f8ea..d720b48 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -463,10 +463,11 @@ SRC
+ }
+ }
+ else {
+-
++ # Use a fake prototype in the style of autoconf.
+ $result = try_link(<<"SRC", $libs);
+-blank() { return 0; }
+-int t() { ${func}(); return 0; }
++char blank(void) { return 0; }
++char ${func}(void);
++int t(void) { ${func}(); return 0; }
+ SRC
+ }
+ }
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 0911965680..64c6e9678b 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -703,7 +703,9 @@ XML parser and the high performance DOM implementation.")
"XML-LibXSLT-" version ".tar.gz"))
(sha256
(base32
- "0wyl8klgr65j8y8fzgwz9jlvfjwvxazna8j3dg9gksd2v973fpia"))))
+ "0wyl8klgr65j8y8fzgwz9jlvfjwvxazna8j3dg9gksd2v973fpia"))
+ ;; Remove patch with update to version 2.003000.
+ (patches (search-patches "perl-xml-libxslt-fix-configure.patch"))))
(build-system perl-build-system)
(inputs
(list libxslt))