From f9323c458500432ee38ff7fa0382c1571fc12268 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 3 Oct 2025 12:23:07 +0900 Subject: [PATCH] gnu: perl-xml-libxslt: Update to 2.003000. * gnu/packages/xml.scm (perl-xml-libxslt): Update to 2.003000. [source] {patches}: Delete. [#:phases]: New argument. [inputs]: Replace libxml2 with libxml2-2.11, for the test suite to pass. Change-Id: I850e9bec260bfd527372509bbe8eaa30883840a3 --- gnu/packages/xml.scm | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index e587fcaa0d6a7e54cf2e8710c7cb6a2530e8c9e6..b2665e51ae56f2b3efb39755b77806910d274cb2 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -697,7 +697,7 @@ XML parser and the high performance DOM implementation.") (define-public perl-xml-libxslt (package (name "perl-xml-libxslt") - (version "1.96") + (version "2.003000") (source (origin (method url-fetch) @@ -705,14 +705,25 @@ XML parser and the high performance DOM implementation.") "XML-LibXSLT-" version ".tar.gz")) (sha256 (base32 - "0wyl8klgr65j8y8fzgwz9jlvfjwvxazna8j3dg9gksd2v973fpia")) - ;; Remove patch with update to version 2.003000. - (patches (search-patches "perl-xml-libxslt-fix-configure.patch")))) + "11s5spf0x5h6qzajfsza28m62z50cilcpvl4iffyafzmfbp5makw")))) (build-system perl-build-system) - (inputs - (list libxslt)) - (propagated-inputs - (list perl-xml-libxml)) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'extend-INCLUDE_PATH + ;; This hack is because the build system does not appear to use + ;; the pkg-config Cflags, and expects the libxml2 headers to be + ;; directly available from the FHS location (or C_INCLUDE_PATH), + ;; but they are nested under a libxml2 subdirectory. + (lambda* (#:key inputs #:allow-other-keys) + (setenv "C_INCLUDE_PATH" + (string-append + (getenv "C_INCLUDE_PATH") + ":" (search-input-directory inputs + "include/libxml2")))))))) + (inputs (list libxml2-2.11 libxslt)) + (propagated-inputs (list perl-xml-libxml)) (home-page "https://metacpan.org/release/XML-LibXSLT") (synopsis "Perl bindings to GNOME libxslt library") (description "This Perl module is an interface to the GNOME project's