kumquat-buildroot/package/gupnp-tools/0001-common-Drop-deprecated-xmlRecoverMemory.patch
Fabrice Fontaine 498925bc0e package/gupnp-tools: bump to version 0.12.1
- libsoup has been replaced by libsoup3
- Add patches to fix build with libxml2 2.12

https://gitlab.gnome.org/GNOME/gupnp-tools/-/blob/gupnp-tools-0.12.1/NEWS

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-01-01 21:18:51 +01:00

34 lines
1.0 KiB
Diff

From f675ac7e0afe67a86f3f1191d3274d6ffbd4e5d7 Mon Sep 17 00:00:00 2001
From: Jens Georg <mail@jensge.org>
Date: Thu, 3 Aug 2023 23:44:15 +0200
Subject: [PATCH] common: Drop deprecated xmlRecoverMemory
Fixes #27
Upstream: https://gitlab.gnome.org/GNOME/gupnp-tools/-/commit/f675ac7e0afe67a86f3f1191d3274d6ffbd4e5d7
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
src/common/pretty-print.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/common/pretty-print.c b/src/common/pretty-print.c
index c692664..c8ebc9a 100644
--- a/src/common/pretty-print.c
+++ b/src/common/pretty-print.c
@@ -34,7 +34,11 @@ pretty_print_xml (const char *xml)
char *text;
int length;
- doc = xmlRecoverMemory (xml, strlen (xml));
+ doc = xmlReadMemory (xml,
+ strlen (xml),
+ NULL,
+ NULL,
+ XML_PARSE_NONET | XML_PARSE_RECOVER);
if (!doc)
return NULL;
--
GitLab