raptor-2.0.15-libxml2-2.11.patch 1.1 KB

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