0002-Remove-the-access-to-entities-checked-private-symbol.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 4dbc4c1da2a033c497d84a1291c46f416a9cac51 Mon Sep 17 00:00:00 2001
  2. From: David Anes <david.anes@suse.com>
  3. Date: Thu, 4 May 2023 11:54:02 +0200
  4. Subject: [PATCH] Remove the access to entities 'checked' private symbol for
  5. libxml2 2.11.0
  6. Since version 2.11.0, some private symbols that were never intended
  7. as public API/ABI have been removed from libxml2, therefore the field
  8. 'checked' is no longer present and raptor fails to build in this
  9. scenario.
  10. Upstream: https://github.com/dajobe/raptor/commit/4dbc4c1da2a033c497d84a1291c46f416a9cac51
  11. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  12. ---
  13. src/raptor_libxml.c | 3 ++-
  14. 1 file changed, 2 insertions(+), 1 deletion(-)
  15. diff --git a/src/raptor_libxml.c b/src/raptor_libxml.c
  16. index 538c2c8e..8bcee139 100644
  17. --- a/src/raptor_libxml.c
  18. +++ b/src/raptor_libxml.c
  19. @@ -246,10 +246,11 @@ raptor_libxml_getEntity(void* user_data, const xmlChar *name)
  20. ret->owner = 1;
  21. -#if LIBXML_VERSION >= 20627
  22. +#if LIBXML_VERSION >= 20627 && LIBXML_VERSION < 21100
  23. /* Checked field was released in 2.6.27 on 2006-10-25
  24. * http://git.gnome.org/browse/libxml2/commit/?id=a37a6ad91a61d168ecc4b29263def3363fff4da6
  25. *
  26. + * and was later removed in version 2.11.0
  27. */
  28. /* Mark this entity as having been checked - never do this again */