diff options
author | Sam James <sam@gentoo.org> | 2023-12-02 04:45:08 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-12-02 04:45:08 +0000 |
commit | f5fb13bac5bc03bc74a4885a02adef08a48c5d47 (patch) | |
tree | ad573ca792b3b24cbe374916548d56c513183da4 /dev-libs/libxslt | |
parent | sci-biology/tree-puzzle: fix configure checks for modern c (diff) | |
download | gentoo-f5fb13bac5bc03bc74a4885a02adef08a48c5d47.tar.gz gentoo-f5fb13bac5bc03bc74a4885a02adef08a48c5d47.tar.bz2 gentoo-f5fb13bac5bc03bc74a4885a02adef08a48c5d47.zip |
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@gentoo.org>
Diffstat (limited to 'dev-libs/libxslt')
-rw-r--r-- | dev-libs/libxslt/files/libxslt-1.1.39-libxml2-2.11-tests.patch | 24 | ||||
-rw-r--r-- | dev-libs/libxslt/libxslt-1.1.39.ebuild | 4 |
2 files changed, 28 insertions, 0 deletions
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 <wellnhofer@aevum.de> +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 |