diff --git a/external/redland/UnpackedTarball_raptor.mk b/external/redland/UnpackedTarball_raptor.mk index 6dc6491132df..92a05f08bc31 100644 --- a/external/redland/UnpackedTarball_raptor.mk +++ b/external/redland/UnpackedTarball_raptor.mk @@ -30,6 +30,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,raptor,\ external/redland/raptor/xml2-config.patch \ external/redland/raptor/raptor-libxml2-11.patch.1 \ $(if $(SYSTEM_ICU),,external/redland/raptor/raptor-icu.patch) \ + external/redland/raptor/disable-libxml-cleanup.patch.1 \ )) # vim: set noet sw=4 ts=4: diff --git a/external/redland/raptor/disable-libxml-cleanup.patch.1 b/external/redland/raptor/disable-libxml-cleanup.patch.1 new file mode 100644 index 000000000000..d42b2f3b8b9e --- /dev/null +++ b/external/redland/raptor/disable-libxml-cleanup.patch.1 @@ -0,0 +1,14 @@ +diff -ur raptor.org/src/raptor_libxml.c raptor/src/raptor_libxml.c +--- raptor.org/src/raptor_libxml.c 2024-11-26 10:21:41.759955398 +0200 ++++ raptor/src/raptor_libxml.c 2024-11-26 10:23:43.891720421 +0200 +@@ -657,7 +657,10 @@ + xmlSetGenericErrorFunc(world->libxml_saved_generic_error_context, + world->libxml_saved_generic_error_handler); + ++// I have logged a feature request to have a flag to turn this off, at https://github.com/dajobe/raptor/issues/69 ++#if 0 + xmlCleanupParser(); ++#endif + } + +