diff options
| author | Greg Hogan <code@greghogan.com> | 2025-07-17 18:16:19 +0000 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-07-18 20:17:54 +0200 |
| commit | fe5d8f53590334c3d968d9e4050fbee23bbc1412 (patch) | |
| tree | a9eb59bcfa6ca739082f56b2e1e3d13162b4c0be /gnu | |
| parent | 3ec3199fbb81c7115f3f70b03aff4350b8d5660a (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
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/local.mk | 1 | ||||
| -rw-r--r-- | gnu/packages/patches/perl-xml-libxslt-fix-configure.patch | 34 | ||||
| -rw-r--r-- | gnu/packages/xml.scm | 4 |
3 files changed, 38 insertions, 1 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index 0b5d801fa37..cf8ac34c1c1 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -2107,6 +2107,7 @@ dist_patch_DATA = \ | |||
| 2107 | %D%/packages/patches/perl-www-curl-fix-struct-void.patch \ | 2107 | %D%/packages/patches/perl-www-curl-fix-struct-void.patch \ |
| 2108 | %D%/packages/patches/perl-www-curl-remove-symbol.patch \ | 2108 | %D%/packages/patches/perl-www-curl-remove-symbol.patch \ |
| 2109 | %D%/packages/patches/perl-xml-libxml-fix-function-prototypes.patch \ | 2109 | %D%/packages/patches/perl-xml-libxml-fix-function-prototypes.patch \ |
| 2110 | %D%/packages/patches/perl-xml-libxslt-fix-configure.patch \ | ||
| 2110 | %D%/packages/patches/phoronix-test-suite-fsdg.patch \ | 2111 | %D%/packages/patches/phoronix-test-suite-fsdg.patch \ |
| 2111 | %D%/packages/patches/picprog-non-intel-support.patch \ | 2112 | %D%/packages/patches/picprog-non-intel-support.patch \ |
| 2112 | %D%/packages/patches/pidgin-add-search-path.patch \ | 2113 | %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 00000000000..8433c30bedf --- /dev/null +++ b/gnu/packages/patches/perl-xml-libxslt-fix-configure.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | Patch from https://github.com/shlomif/perl-XML-LibXSLT/commit/40fdc7f0.patch | ||
| 2 | |||
| 3 | From 40fdc7f0443949d9556f0ecf15eb7777d543cee1 Mon Sep 17 00:00:00 2001 | ||
| 4 | From: Florian Weimer <fweimer@redhat.com> | ||
| 5 | Date: Thu, 9 Feb 2023 19:28:14 +0100 | ||
| 6 | Subject: [PATCH] Avoid C implicit function declaration in Makefile.PL (C99 | ||
| 7 | compat) | ||
| 8 | |||
| 9 | Future compilers are likely not to support implicit function | ||
| 10 | declarations. Add a fake prototype so that the probes will | ||
| 11 | not always fail with such compilers. | ||
| 12 | --- | ||
| 13 | Makefile.PL | 7 ++++--- | ||
| 14 | 1 file changed, 4 insertions(+), 3 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/Makefile.PL b/Makefile.PL | ||
| 17 | index 079f8ea..d720b48 100644 | ||
| 18 | --- a/Makefile.PL | ||
| 19 | +++ b/Makefile.PL | ||
| 20 | @@ -463,10 +463,11 @@ SRC | ||
| 21 | } | ||
| 22 | } | ||
| 23 | else { | ||
| 24 | - | ||
| 25 | + # Use a fake prototype in the style of autoconf. | ||
| 26 | $result = try_link(<<"SRC", $libs); | ||
| 27 | -blank() { return 0; } | ||
| 28 | -int t() { ${func}(); return 0; } | ||
| 29 | +char blank(void) { return 0; } | ||
| 30 | +char ${func}(void); | ||
| 31 | +int t(void) { ${func}(); return 0; } | ||
| 32 | SRC | ||
| 33 | } | ||
| 34 | } | ||
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index 0911965680c..64c6e9678b0 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm | |||
| @@ -703,7 +703,9 @@ XML parser and the high performance DOM implementation.") | |||
| 703 | "XML-LibXSLT-" version ".tar.gz")) | 703 | "XML-LibXSLT-" version ".tar.gz")) |
| 704 | (sha256 | 704 | (sha256 |
| 705 | (base32 | 705 | (base32 |
| 706 | "0wyl8klgr65j8y8fzgwz9jlvfjwvxazna8j3dg9gksd2v973fpia")))) | 706 | "0wyl8klgr65j8y8fzgwz9jlvfjwvxazna8j3dg9gksd2v973fpia")) |
| 707 | ;; Remove patch with update to version 2.003000. | ||
| 708 | (patches (search-patches "perl-xml-libxslt-fix-configure.patch")))) | ||
| 707 | (build-system perl-build-system) | 709 | (build-system perl-build-system) |
| 708 | (inputs | 710 | (inputs |
| 709 | (list libxslt)) | 711 | (list libxslt)) |
