Accepting request 1096303 from GNOME:Next
New stable release OBS-URL: https://build.opensuse.org/request/show/1096303 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gupnp?expand=0&rev=140
This commit is contained in:
parent
3ed4be2254
commit
b0ccfc2535
103
80e68995.patch
103
80e68995.patch
@ -1,103 +0,0 @@
|
|||||||
From 80e68995b745a5900eaaa1d0c424d3a9d354e42d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jens Georg <mail@jensge.org>
|
|
||||||
Date: Thu, 4 May 2023 19:14:29 +0200
|
|
||||||
Subject: [PATCH] all: Drop xmlRecoverMemory
|
|
||||||
|
|
||||||
use xmlReadMemory, also use NONET flat
|
|
||||||
---
|
|
||||||
libgupnp/gupnp-control-point.c | 6 +++++-
|
|
||||||
libgupnp/gupnp-service-info.c | 6 +++++-
|
|
||||||
libgupnp/gupnp-service-proxy-action.c | 7 ++++++-
|
|
||||||
libgupnp/gupnp-service-proxy.c | 6 +++++-
|
|
||||||
libgupnp/gupnp-service.c | 6 +++++-
|
|
||||||
5 files changed, 26 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/libgupnp/gupnp-control-point.c b/libgupnp/gupnp-control-point.c
|
|
||||||
index 4bce2fe..d4b4472 100644
|
|
||||||
--- a/libgupnp/gupnp-control-point.c
|
|
||||||
+++ b/libgupnp/gupnp-control-point.c
|
|
||||||
@@ -630,7 +630,11 @@ got_description_url (GObject *source,
|
|
||||||
body_data = g_bytes_get_data (body, &length);
|
|
||||||
|
|
||||||
/* Parse response */
|
|
||||||
- xml_doc = xmlRecoverMemory (body_data, length);
|
|
||||||
+ xml_doc = xmlReadMemory (body_data,
|
|
||||||
+ length,
|
|
||||||
+ NULL,
|
|
||||||
+ NULL,
|
|
||||||
+ XML_PARSE_NONET | XML_PARSE_RECOVER);
|
|
||||||
if (xml_doc) {
|
|
||||||
doc = gupnp_xml_doc_new (xml_doc);
|
|
||||||
|
|
||||||
diff --git a/libgupnp/gupnp-service-info.c b/libgupnp/gupnp-service-info.c
|
|
||||||
index bee6c9c..5fb499d 100644
|
|
||||||
--- a/libgupnp/gupnp-service-info.c
|
|
||||||
+++ b/libgupnp/gupnp-service-info.c
|
|
||||||
@@ -564,7 +564,11 @@ get_scpd_document_finished (GObject *source,
|
|
||||||
|
|
||||||
gsize length;
|
|
||||||
gconstpointer data = g_bytes_get_data (bytes, &length);
|
|
||||||
- scpd = xmlRecoverMemory (data, length);
|
|
||||||
+ scpd = xmlReadMemory (data,
|
|
||||||
+ length,
|
|
||||||
+ NULL,
|
|
||||||
+ NULL,
|
|
||||||
+ XML_PARSE_NONET | XML_PARSE_RECOVER);
|
|
||||||
if (scpd == NULL) {
|
|
||||||
g_task_return_new_error (task,
|
|
||||||
GUPNP_SERVER_ERROR,
|
|
||||||
diff --git a/libgupnp/gupnp-service-proxy-action.c b/libgupnp/gupnp-service-proxy-action.c
|
|
||||||
index 0e238de..aa61ad6 100644
|
|
||||||
--- a/libgupnp/gupnp-service-proxy-action.c
|
|
||||||
+++ b/libgupnp/gupnp-service-proxy-action.c
|
|
||||||
@@ -391,7 +391,12 @@ gupnp_service_proxy_action_check_response (GUPnPServiceProxyAction *action)
|
|
||||||
gconstpointer data;
|
|
||||||
gsize length;
|
|
||||||
data = g_bytes_get_data (action->response, &length);
|
|
||||||
- response = xmlRecoverMemory (data, length);
|
|
||||||
+ response = xmlReadMemory (data,
|
|
||||||
+ length,
|
|
||||||
+ NULL,
|
|
||||||
+ NULL,
|
|
||||||
+ XML_PARSE_NONET | XML_PARSE_RECOVER);
|
|
||||||
+
|
|
||||||
g_clear_pointer (&action->response, g_bytes_unref);
|
|
||||||
|
|
||||||
if (!response) {
|
|
||||||
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
|
|
||||||
index 24d2bdd..9313500 100644
|
|
||||||
--- a/libgupnp/gupnp-service-proxy.c
|
|
||||||
+++ b/libgupnp/gupnp-service-proxy.c
|
|
||||||
@@ -1048,7 +1048,11 @@ server_handler (G_GNUC_UNUSED SoupServer *soup_server,
|
|
||||||
soup_server_message_get_request_body (msg);
|
|
||||||
|
|
||||||
/* Parse the actual XML message content */
|
|
||||||
- doc = xmlRecoverMemory (request_body->data, request_body->length);
|
|
||||||
+ doc = xmlReadMemory (request_body->data,
|
|
||||||
+ request_body->length,
|
|
||||||
+ NULL,
|
|
||||||
+ NULL,
|
|
||||||
+ XML_PARSE_NONET | XML_PARSE_RECOVER);
|
|
||||||
if (doc == NULL) {
|
|
||||||
/* Failed */
|
|
||||||
g_warning ("Failed to parse NOTIFY message body");
|
|
||||||
diff --git a/libgupnp/gupnp-service.c b/libgupnp/gupnp-service.c
|
|
||||||
index 4c491ee..c12866c 100644
|
|
||||||
--- a/libgupnp/gupnp-service.c
|
|
||||||
+++ b/libgupnp/gupnp-service.c
|
|
||||||
@@ -417,7 +417,11 @@ control_server_handler (SoupServer *server,
|
|
||||||
*end = '\0';
|
|
||||||
|
|
||||||
/* Parse action_node */
|
|
||||||
- doc = xmlRecoverMemory (request_body->data, request_body->length);
|
|
||||||
+ doc = xmlReadMemory (request_body->data,
|
|
||||||
+ request_body->length,
|
|
||||||
+ NULL,
|
|
||||||
+ NULL,
|
|
||||||
+ XML_PARSE_NONET | XML_PARSE_RECOVER);
|
|
||||||
if (doc == NULL) {
|
|
||||||
soup_server_message_set_status (msg,
|
|
||||||
SOUP_STATUS_BAD_REQUEST,
|
|
||||||
--
|
|
||||||
GitLab
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:4f4f418b07b81164df1f7ab612e28e4c016c2d085b8a4f39f97945f8b15ee248
|
|
||||||
size 2216496
|
|
3
gupnp-1.6.4.tar.xz
Normal file
3
gupnp-1.6.4.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d6c3d03583844fa52abe003043186007f0c84145fe3b00fab25995beda9be55a
|
||||||
|
size 242944
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jul 1 16:33:43 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||||
|
|
||||||
|
- Update to version 1.6.4:
|
||||||
|
+ Keep a weak reference to proxy in action.
|
||||||
|
+ Add API to provide HTTP credentials for simple authentication.
|
||||||
|
+ Remove xmlRecoverMemory usage.
|
||||||
|
- Drop 80e68995.patch: Fixed upstream.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat May 6 19:20:36 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
|
Sat May 6 19:20:36 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
%define sover 1.6
|
%define sover 1.6
|
||||||
|
|
||||||
Name: gupnp
|
Name: gupnp
|
||||||
Version: 1.6.3
|
Version: 1.6.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Implementation of the UPnP specification
|
Summary: Implementation of the UPnP specification
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
@ -29,8 +29,6 @@ Group: Development/Libraries/C and C++
|
|||||||
URL: http://www.gupnp.org/
|
URL: http://www.gupnp.org/
|
||||||
Source0: https://download.gnome.org/sources/gupnp/1.6/%{name}-%{version}.tar.xz
|
Source0: https://download.gnome.org/sources/gupnp/1.6/%{name}-%{version}.tar.xz
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
# PATCH-FIX-UPSTREAM 80e68995.patch -- all: Drop xmlRecoverMemory
|
|
||||||
Patch1: https://gitlab.gnome.org/GNOME/gupnp/-/commit/80e68995.patch
|
|
||||||
|
|
||||||
BuildRequires: docbook-xsl-stylesheets
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
BuildRequires: meson >= 0.54.0
|
BuildRequires: meson >= 0.54.0
|
||||||
|
Loading…
Reference in New Issue
Block a user