diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2025-10-03 12:23:07 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2025-10-03 12:41:52 +0900 |
| commit | 638c051622508068c7b9e5d23d99438bbcd7e02e (patch) | |
| tree | 6ae0ae9b9eded304b9839d4f7f56d83e8bb21900 | |
| parent | f9323c458500432ee38ff7fa0382c1571fc12268 (diff) | |
gnu: perl-xml-libxslt: Update to 2.003000, take 2.
This is a fixup to commit ef22a23ecf, inadvertently pushed too early.
* gnu/packages/xml.scm (perl-xml-libxslt)
[arguments]: Delete.
[native-inputs]: Add pkg-config.
[inputs]: Add comment justifying use of older libxml2-2.11.
* gnu/packages/patches/perl-xml-libxslt-fix-configure.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): De-register it.
Fixes: #3175
Change-Id: I850e9bec260bfd527372509bbe8eaa30883840a3
| -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 | 18 |
3 files changed, 3 insertions, 50 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index 634895703f5..151b781ada3 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -2103,7 +2103,6 @@ dist_patch_DATA = \ | |||
| 2103 | %D%/packages/patches/perl-www-curl-fix-struct-void.patch \ | 2103 | %D%/packages/patches/perl-www-curl-fix-struct-void.patch \ |
| 2104 | %D%/packages/patches/perl-www-curl-remove-symbol.patch \ | 2104 | %D%/packages/patches/perl-www-curl-remove-symbol.patch \ |
| 2105 | %D%/packages/patches/perl-xml-libxml-fix-function-prototypes.patch \ | 2105 | %D%/packages/patches/perl-xml-libxml-fix-function-prototypes.patch \ |
| 2106 | %D%/packages/patches/perl-xml-libxslt-fix-configure.patch \ | ||
| 2107 | %D%/packages/patches/phoronix-test-suite-fsdg.patch \ | 2106 | %D%/packages/patches/phoronix-test-suite-fsdg.patch \ |
| 2108 | %D%/packages/patches/picprog-non-intel-support.patch \ | 2107 | %D%/packages/patches/picprog-non-intel-support.patch \ |
| 2109 | %D%/packages/patches/pidgin-add-search-path.patch \ | 2108 | %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 deleted file mode 100644 index 8433c30bedf..00000000000 --- a/gnu/packages/patches/perl-xml-libxslt-fix-configure.patch +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 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 b2665e51ae5..fd695d8a8a5 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm | |||
| @@ -707,21 +707,9 @@ XML parser and the high performance DOM implementation.") | |||
| 707 | (base32 | 707 | (base32 |
| 708 | "11s5spf0x5h6qzajfsza28m62z50cilcpvl4iffyafzmfbp5makw")))) | 708 | "11s5spf0x5h6qzajfsza28m62z50cilcpvl4iffyafzmfbp5makw")))) |
| 709 | (build-system perl-build-system) | 709 | (build-system perl-build-system) |
| 710 | (arguments | 710 | (native-inputs (list pkg-config)) |
| 711 | (list | 711 | ;; FIXME: libxml2-2.11 is used instead of latest, due to test failures |
| 712 | #:phases | 712 | ;; (see: <https://github.com/shlomif/perl-XML-LibXSLT/issues/8>). |
| 713 | #~(modify-phases %standard-phases | ||
| 714 | (add-after 'unpack 'extend-INCLUDE_PATH | ||
| 715 | ;; This hack is because the build system does not appear to use | ||
| 716 | ;; the pkg-config Cflags, and expects the libxml2 headers to be | ||
| 717 | ;; directly available from the FHS location (or C_INCLUDE_PATH), | ||
| 718 | ;; but they are nested under a libxml2 subdirectory. | ||
| 719 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 720 | (setenv "C_INCLUDE_PATH" | ||
| 721 | (string-append | ||
| 722 | (getenv "C_INCLUDE_PATH") | ||
| 723 | ":" (search-input-directory inputs | ||
| 724 | "include/libxml2")))))))) | ||
| 725 | (inputs (list libxml2-2.11 libxslt)) | 713 | (inputs (list libxml2-2.11 libxslt)) |
| 726 | (propagated-inputs (list perl-xml-libxml)) | 714 | (propagated-inputs (list perl-xml-libxml)) |
| 727 | (home-page "https://metacpan.org/release/XML-LibXSLT") | 715 | (home-page "https://metacpan.org/release/XML-LibXSLT") |
