[Buildroot] [PATCH v2 2/2] package/raptor: fix build with newer versions of libxml2

Arnout Vandecappelle arnout at mind.be
Sun Jun 25 19:19:14 UTC 2023



On 22/06/2023 07:17, Bernd Kuhls wrote:
> Fixes:
> http://autobuild.buildroot.net/results/6a5/6a5139fe86b8370477dc6cb044bf29180bd145df/
> 
> Signed-off-by: Bernd Kuhls <bernd at kuhls.net>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
> v2: no changes
> 
>   ...s-to-entities-checked-private-symbol.patch | 35 +++++++++++++++++++
>   1 file changed, 35 insertions(+)
>   create mode 100644 package/raptor/0002-Remove-the-access-to-entities-checked-private-symbol.patch
> 
> diff --git a/package/raptor/0002-Remove-the-access-to-entities-checked-private-symbol.patch b/package/raptor/0002-Remove-the-access-to-entities-checked-private-symbol.patch
> new file mode 100644
> index 0000000000..cd9542a9a9
> --- /dev/null
> +++ b/package/raptor/0002-Remove-the-access-to-entities-checked-private-symbol.patch
> @@ -0,0 +1,35 @@
> +From 4dbc4c1da2a033c497d84a1291c46f416a9cac51 Mon Sep 17 00:00:00 2001
> +From: David Anes <david.anes at 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.
> +
> +Upstream: https://github.com/dajobe/raptor/commit/4dbc4c1da2a033c497d84a1291c46f416a9cac51
> +
> +Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
> +---
> + src/raptor_libxml.c | 3 ++-
> + 1 file changed, 2 insertions(+), 1 deletion(-)
> +
> +diff --git a/src/raptor_libxml.c b/src/raptor_libxml.c
> +index 538c2c8e..8bcee139 100644
> +--- 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 */



More information about the buildroot mailing list