* yet more dir-less .cache DEP updates
[t2sde.git] / package / textproc / raptor / hotfix-libxml-2.11.patch
blob38a0cd6478537a6d61d2e172d60760b8bce21b7f
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/raptor/hotfix-libxml-2.11.patch
3 # Copyright (C) 2024 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 From 4dbc4c1da2a033c497d84a1291c46f416a9cac51 Mon Sep 17 00:00:00 2001
15 From: David Anes <david.anes@suse.com>
16 Date: Thu, 4 May 2023 11:54:02 +0200
17 Subject: [PATCH] Remove the access to entities 'checked' private symbol for
18 libxml2 2.11.0
20 Since version 2.11.0, some private symbols that were never intended
21 as public API/ABI have been removed from libxml2, therefore the field
22 'checked' is no longer present and raptor fails to build in this
23 scenario.
24 ---
25 src/raptor_libxml.c | 3 ++-
26 1 file changed, 2 insertions(+), 1 deletion(-)
28 diff --git a/src/raptor_libxml.c b/src/raptor_libxml.c
29 index 538c2c8e..8bcee139 100644
30 --- a/src/raptor_libxml.c
31 +++ b/src/raptor_libxml.c
32 @@ -246,10 +246,11 @@ raptor_libxml_getEntity(void* user_data, const xmlChar *name)
34 ret->owner = 1;
36 -#if LIBXML_VERSION >= 20627
37 +#if LIBXML_VERSION >= 20627 && LIBXML_VERSION < 21100
38 /* Checked field was released in 2.6.27 on 2006-10-25
39 * http://git.gnome.org/browse/libxml2/commit/?id=a37a6ad91a61d168ecc4b29263def3363fff4da6
41 + * and was later removed in version 2.11.0
44 /* Mark this entity as having been checked - never do this again */