diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2023-12-10 19:16:56 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-12-16 08:56:11 +0700 |
commit | 90d0f4d22c680036264d037597bd22708b982652 (patch) | |
tree | c2a63145186ea8f308609daa3fb47daf488ee84a /libraries/raptor | |
parent | 758b229284ffbb850c04513eca20d77ce667a655 (diff) |
libraries/raptor: Patch for libxml >= 2.11.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/raptor')
-rw-r--r-- | libraries/raptor/raptor-2.0.15-libxml2-2.11.patch | 30 | ||||
-rw-r--r-- | libraries/raptor/raptor.SlackBuild | 2 |
2 files changed, 32 insertions, 0 deletions
diff --git a/libraries/raptor/raptor-2.0.15-libxml2-2.11.patch b/libraries/raptor/raptor-2.0.15-libxml2-2.11.patch new file mode 100644 index 0000000000000..605301ca0fd1a --- /dev/null +++ b/libraries/raptor/raptor-2.0.15-libxml2-2.11.patch @@ -0,0 +1,30 @@ +https://bugs.gentoo.org/906227 +https://github.com/dajobe/raptor/issues/59 +https://github.com/dajobe/raptor/pull/58 + +From 4dbc4c1da2a033c497d84a1291c46f416a9cac51 Mon Sep 17 00:00:00 2001 +From: David Anes <david.anes@suse.com> +Date: Thu, 4 May 2023 11:54:02 +0200 +Subject: [PATCH] Remove the access to entities 'checked' private symbol for + libxml2 2.11.0 + +Since version 2.11.0, some private symbols that were never intended +as public API/ABI have been removed from libxml2, therefore the field +'checked' is no longer present and raptor fails to build in this +scenario. +--- a/src/raptor_libxml.c ++++ b/src/raptor_libxml.c +@@ -246,10 +246,11 @@ raptor_libxml_getEntity(void* user_data, const xmlChar *name) + + ret->owner = 1; + +-#if LIBXML_VERSION >= 20627 ++#if LIBXML_VERSION >= 20627 && LIBXML_VERSION < 21100 + /* Checked field was released in 2.6.27 on 2006-10-25 + * http://git.gnome.org/browse/libxml2/commit/?id=a37a6ad91a61d168ecc4b29263def3363fff4da6 + * ++ * and was later removed in version 2.11.0 + */ + + /* Mark this entity as having been checked - never do this again */ + diff --git a/libraries/raptor/raptor.SlackBuild b/libraries/raptor/raptor.SlackBuild index ff6395e3098de..3e3ccbecb632e 100644 --- a/libraries/raptor/raptor.SlackBuild +++ b/libraries/raptor/raptor.SlackBuild @@ -83,6 +83,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/raptor-2.0.15-libxml2-2.11.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ |