package/gupnp-tools: bump version to 0.12.2

Removed two patches which are included in this release and added one
patch to fix build with libxml 2.15.1.

For release notes, see:
https://gitlab.gnome.org/GNOME/gupnp-tools/-/blob/gupnp-tools-0.12.2/NEWS

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Bernd Kuhls
2025-12-03 22:57:15 +01:00
committed by Julien Olivain
parent b822976c60
commit a644ea1e2d
5 changed files with 30 additions and 64 deletions

View File

@@ -0,0 +1,27 @@
From cb4ddac12977fd1abd88a1feacbab090d9ad5ecb Mon Sep 17 00:00:00 2001
From: Bernd Kuhls <bernd@kuhls.net>
Date: Wed, 3 Dec 2025 20:06:22 +0100
Subject: [PATCH] Remove -Werror=deprecated-declarations
Upstream: https://gitlab.gnome.org/GNOME/gupnp-tools/-/issues/29
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
meson.build | 1 -
1 file changed, 1 deletion(-)
diff --git a/meson.build b/meson.build
index c92a833..64a0513 100644
--- a/meson.build
+++ b/meson.build
@@ -44,7 +44,6 @@ conf.set('HAVE_GTK_SOURCEVIEW', gtksourceview.found())
conf.set('GETTEXT_PACKAGE', '"@0@"'.format(meson.project_name()))
conf.set('LOCALEDIR', '"@0@"'.format(localedir))
cc = meson.get_compiler('c')
-add_project_arguments(cc.get_supported_arguments('-Werror=deprecated-declarations'), language: 'c')
conf.set('GLIB_VERSION_MIN_REQUIRED', 'GLIB_VERSION_@0@'.format(glib_version.underscorify()))
conf.set('GLIB_VERSION_MAX_ALLOWED', 'GLIB_VERSION_@0@'.format(glib_version.underscorify()))
--
2.47.3

View File

@@ -1,33 +0,0 @@
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

View File

@@ -1,28 +0,0 @@
From 4e06104df81fba2cda06d4747b33e75f4cade458 Mon Sep 17 00:00:00 2001
From: Jens Georg <mail@jensge.org>
Date: Fri, 24 Nov 2023 18:12:50 +0100
Subject: [PATCH] common: Fix compatibility with libxml2 2.12
Fixes #28
Upstream: https://gitlab.gnome.org/GNOME/gupnp-tools/-/commit/4e06104df81fba2cda06d4747b33e75f4cade458
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
src/common/pretty-print.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/common/pretty-print.c b/src/common/pretty-print.c
index c8ebc9a..1519cb0 100644
--- a/src/common/pretty-print.c
+++ b/src/common/pretty-print.c
@@ -22,6 +22,7 @@
#include "pretty-print.h"
+#include <libxml/globals.h>
#include <libxml/xmlreader.h>
#include <string.h>
--
GitLab

View File

@@ -1,5 +1,5 @@
# Hash from: https://download.gnome.org/sources/gupnp-tools/0.12/gupnp-tools-0.12.1.sha256sum:
sha256 53cf93123f397e8f8f0b8e9e4364c86a7502a5334f4c0be2e054a824478bd5ba gupnp-tools-0.12.1.tar.xz
# Hash from: https://download.gnome.org/sources/gupnp-tools/0.12/gupnp-tools-0.12.2.sha256sum
sha256 4c92f2d1a3d454ec1f5fb05ef08ca34df9c743af64c8b5965c35884d46cb005c gupnp-tools-0.12.2.tar.xz
# Locally computed:
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING

View File

@@ -5,7 +5,7 @@
################################################################################
GUPNP_TOOLS_VERSION_MAJOR = 0.12
GUPNP_TOOLS_VERSION = $(GUPNP_TOOLS_VERSION_MAJOR).1
GUPNP_TOOLS_VERSION = $(GUPNP_TOOLS_VERSION_MAJOR).2
GUPNP_TOOLS_SOURCE = gupnp-tools-$(GUPNP_TOOLS_VERSION).tar.xz
GUPNP_TOOLS_SITE = \
https://download.gnome.org/sources/gupnp-tools/$(GUPNP_TOOLS_VERSION_MAJOR)