[packages/gupnp-tools] - updated to 0.12.3 + patch from git

qboosh qboosh at pld-linux.org
Sat Jul 4 11:39:49 CEST 2026


commit e937da771906e30998758bc6482d2323711b87bc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jul 4 11:39:45 2026 +0200

    - updated to 0.12.3 + patch from git

 gupnp-tools-no-deprecated-libxml2-api.patch | 42 +++++++++++++++++++++++++++++
 gupnp-tools.spec                            |  8 +++---
 2 files changed, 47 insertions(+), 3 deletions(-)
---
diff --git a/gupnp-tools.spec b/gupnp-tools.spec
index 0f02a44..f3cac0e 100644
--- a/gupnp-tools.spec
+++ b/gupnp-tools.spec
@@ -1,13 +1,14 @@
 Summary:	GUPnP Tools
 Summary(pl.UTF-8):	Narzędzia GUPnP
 Name:		gupnp-tools
-Version:	0.12.2
-Release:	2
+Version:	0.12.3
+Release:	1
 License:	GPL v2+
 Group:		X11/Applications
 Source0:	https://download.gnome.org/sources/gupnp-tools/0.12/%{name}-%{version}.tar.xz
-# Source0-md5:	af34e3ff418c95efa27998e155afe15c
+# Source0-md5:	36fd7ceddf5d0f21b1e2f30c68d3eebd
 Patch0:		%{name}-desktop.patch
+Patch1:		%{name}-no-deprecated-libxml2-api.patch
 URL:		http://gupnp.org/
 BuildRequires:	gettext-tools >= 0.19.7
 BuildRequires:	glib2-devel >= 1:2.68
@@ -82,6 +83,7 @@ UPnP:
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %meson
diff --git a/gupnp-tools-no-deprecated-libxml2-api.patch b/gupnp-tools-no-deprecated-libxml2-api.patch
new file mode 100644
index 0000000..ebebcb7
--- /dev/null
+++ b/gupnp-tools-no-deprecated-libxml2-api.patch
@@ -0,0 +1,42 @@
+From bdf669b02ec9bcd5640af009f7977309474c36ae Mon Sep 17 00:00:00 2001
+From: Jan Tojnar <jtojnar at gmail.com>
+Date: Sun, 12 Apr 2026 13:30:19 +0200
+Subject: [PATCH] common: Do not use deprecated `xmlIndentTreeOutput`
+
+`xmlDocDumpFormatMemoryEnc` already controls this with the last format option.
+
+Fixes: https://gitlab.gnome.org/GNOME/gupnp-tools/-/issues/29
+---
+ src/common/pretty-print.c | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/src/common/pretty-print.c b/src/common/pretty-print.c
+index 1519cb0..03b66d3 100644
+--- a/src/common/pretty-print.c
++++ b/src/common/pretty-print.c
+@@ -31,7 +31,6 @@ char *
+ pretty_print_xml (const char *xml)
+ {
+         xmlDocPtr doc;
+-        int old_value;
+         char *text;
+         int length;
+ 
+@@ -44,14 +43,11 @@ pretty_print_xml (const char *xml)
+         if (!doc)
+                 return NULL;
+ 
+-        old_value = xmlIndentTreeOutput;
+-        xmlIndentTreeOutput = 1;
+         xmlDocDumpFormatMemoryEnc (doc,
+                                    (xmlChar **) &text,
+                                    &length,
+                                    "UTF-8",
+                                    1);
+-        xmlIndentTreeOutput = old_value;
+         xmlFreeDoc (doc);
+ 
+         return text;
+-- 
+GitLab
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gupnp-tools.git/commitdiff/e937da771906e30998758bc6482d2323711b87bc



More information about the pld-cvs-commit mailing list