commit:     f5fb13bac5bc03bc74a4885a02adef08a48c5d47
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  2 04:45:08 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec  2 04:45:08 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5fb13ba

dev-libs/libxslt: fix modern c issue in tests

Test-only issue so no revbump.

Closes: https://bugs.gentoo.org/918973
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/libxslt-1.1.39-libxml2-2.11-tests.patch  | 24 ++++++++++++++++++++++
 dev-libs/libxslt/libxslt-1.1.39.ebuild             |  4 ++++
 2 files changed, 28 insertions(+)

diff --git a/dev-libs/libxslt/files/libxslt-1.1.39-libxml2-2.11-tests.patch 
b/dev-libs/libxslt/files/libxslt-1.1.39-libxml2-2.11-tests.patch
new file mode 100644
index 000000000000..8d7f98e71b9d
--- /dev/null
+++ b/dev-libs/libxslt/files/libxslt-1.1.39-libxml2-2.11-tests.patch
@@ -0,0 +1,24 @@
+https://bugs.gentoo.org/918973
+https://gitlab.gnome.org/GNOME/libxslt/-/issues/99
+https://gitlab.gnome.org/GNOME/libxslt/-/commit/86ec392efd75ce24b79f4baa9822a1b088f3e47f
+
+From 86ec392efd75ce24b79f4baa9822a1b088f3e47f Mon Sep 17 00:00:00 2001
+From: Nick Wellnhofer <[email protected]>
+Date: Fri, 1 Dec 2023 21:05:19 +0100
+Subject: [PATCH] tests: Fix build with older libxml2
+
+Fixes #99.
+--- a/tests/runtest.c
++++ b/tests/runtest.c
+@@ -456,7 +456,8 @@ initializeLibxml2(void) {
+     xmlSetExternalEntityLoader(xmlNoNetExternalEntityLoader);
+     xmlSetGenericErrorFunc(NULL, testErrorHandler);
+     xsltSetGenericErrorFunc(NULL, testErrorHandler);
+-    xmlSetStructuredErrorFunc(NULL, testStructuredErrorHandler);
++    xmlSetStructuredErrorFunc(NULL,
++            (xmlStructuredErrorFunc) testStructuredErrorHandler);
+     exsltRegisterAll();
+     xsltRegisterTestModule();
+     xsltMaxDepth = 200;
+-- 
+GitLab

diff --git a/dev-libs/libxslt/libxslt-1.1.39.ebuild 
b/dev-libs/libxslt/libxslt-1.1.39.ebuild
index e7d5b131b6cb..45105b23a089 100644
--- a/dev-libs/libxslt/libxslt-1.1.39.ebuild
+++ b/dev-libs/libxslt/libxslt-1.1.39.ebuild
@@ -39,6 +39,10 @@ MULTILIB_WRAPPED_HEADERS=(
        /usr/include/libxslt/xsltconfig.h
 )
 
+PATCHES=(
+       "${FILESDIR}"/${P}-libxml2-2.11-tests.patch
+)
+
 src_prepare() {
        default
 

Reply via email to