Initial commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
SUMMARY = "Resource discovery and announcement over SSDP"
|
||||
DESCRIPTION = "GSSDP implements resource discovery and announcement over SSDP \
|
||||
(Simpe Service Discovery Protocol)."
|
||||
HOMEPAGE = "https://gitlab.gnome.org/GNOME/gssdp/"
|
||||
BUGTRACKER = "https://gitlab.gnome.org/GNOME/gssdp/-/issues"
|
||||
LICENSE = "LGPL-2.1-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
|
||||
|
||||
SRC_URI = "${GNOME_MIRROR}/${BPN}/1.4/${BPN}-${PV}.tar.xz"
|
||||
SRC_URI[sha256sum] = "8676849d57fb822b8728856dbadebf3867f89ee47a0ec47a20045d011f431582"
|
||||
|
||||
GTKDOC_MESON_OPTION = 'gtk_doc'
|
||||
|
||||
DEPENDS = " \
|
||||
glib-2.0 \
|
||||
libsoup-2.4 \
|
||||
"
|
||||
|
||||
inherit meson pkgconfig gobject-introspection vala gtk-doc features_check
|
||||
|
||||
SNIFFER = "${@bb.utils.contains("BBFILE_COLLECTIONS", "gnome-layer", "sniffer", "", d)}"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', "${SNIFFER}", "", d)}"
|
||||
|
||||
PACKAGECONFIG[sniffer] = "-Dsniffer=true,-Dsniffer=false,gtk4,"
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'sniffer', 'opengl', '', d)}"
|
||||
|
||||
PACKAGES =+ "gssdp-tools"
|
||||
|
||||
FILES:gssdp-tools = "${bindir}/gssdp* ${datadir}/gssdp/*.glade"
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
From d99f71a4a52da7582d5e26992a1ab303b280d28a Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 30 Jun 2023 03:23:12 -0700
|
||||
Subject: [PATCH] Drop xmlRecoverMemory
|
||||
|
||||
newer libxml has deprecated xmlRecoverMemory therefore replace it with xmlReadMemory
|
||||
|
||||
Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/gupnp/-/commit/80e68995b745a5900eaaa1d0c424d3a9d354e42d]
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
gupnp-didl-lite-parser.c | 2 +-
|
||||
gupnp-feature-list-parser.c | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/gupnp-didl-lite-parser.c b/gupnp-didl-lite-parser.c
|
||||
index 3a5727f..840d718 100644
|
||||
--- a/libgupnp-av/gupnp-didl-lite-parser.c
|
||||
+++ b/libgupnp-av/gupnp-didl-lite-parser.c
|
||||
@@ -230,7 +230,7 @@ gupnp_didl_lite_parser_parse_didl_recursive (GUPnPDIDLLiteParser *parser,
|
||||
GUPnPAVXMLDoc *xml_doc = NULL;
|
||||
gboolean result;
|
||||
|
||||
- doc = xmlRecoverMemory (didl, strlen (didl));
|
||||
+ doc = xmlReadMemory (didl, strlen (didl), NULL, NULL, XML_PARSE_NONET | XML_PARSE_RECOVER);
|
||||
if (doc == NULL) {
|
||||
g_set_error (error,
|
||||
G_MARKUP_ERROR,
|
||||
diff --git a/gupnp-feature-list-parser.c b/gupnp-feature-list-parser.c
|
||||
index 16208b5..f804fe7 100644
|
||||
--- a/libgupnp-av/gupnp-feature-list-parser.c
|
||||
+++ b/libgupnp-av/gupnp-feature-list-parser.c
|
||||
@@ -114,7 +114,7 @@ gupnp_feature_list_parser_parse_text
|
||||
xmlNode *element;
|
||||
GList *feature_list = NULL;
|
||||
|
||||
- doc = xmlRecoverMemory (text, strlen (text));
|
||||
+ doc = xmlReadMemory (text, strlen (text), NULL, NULL, XML_PARSE_NONET | XML_PARSE_RECOVER);
|
||||
if (doc == NULL) {
|
||||
g_set_error (error,
|
||||
G_MARKUP_ERROR,
|
||||
--
|
||||
2.41.0
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
SUMMARY = "Helpers for AV applications using UPnP"
|
||||
DESCRIPTION = "GUPnP-AV is a collection of helpers for building AV (audio/video) applications using GUPnP."
|
||||
|
||||
LICENSE = "LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
|
||||
|
||||
DEPENDS = "gupnp"
|
||||
|
||||
inherit meson pkgconfig gobject-introspection vala
|
||||
|
||||
SRC_URI = "${GNOME_MIRROR}/${BPN}/0.14/${BPN}-${PV}.tar.xz \
|
||||
file://0001-all-Drop-xmlRecoverMemory.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "20aed546fc882e78a3f186a0c8bce5c841cc3a44b7ea528298fbdc82596fb156"
|
||||
@@ -0,0 +1,16 @@
|
||||
SUMMARY = "Helpers for AV applications using DLNA"
|
||||
LICENSE = "LGPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
|
||||
file://libgupnp-dlna/gupnp-dlna-profile.h;beginline=1;endline=22;md5=1b85459f65cb1e73a885ca137aab6274"
|
||||
|
||||
DEPENDS = "libxml2 glib-2.0"
|
||||
|
||||
SRC_URI = "http://download.gnome.org/sources/${BPN}/0.12/${BPN}-${PV}.tar.xz"
|
||||
SRC_URI[sha256sum] = "3d53b96f85bc5628d33e367ec9bf2adb38ef2b34d7ad0434a6ba0cf4ad9048e6"
|
||||
|
||||
inherit meson pkgconfig gobject-introspection vala
|
||||
|
||||
PACKAGECONFIG ?= "gstreamer"
|
||||
PACKAGECONFIG[gstreamer] = "-Dgstreamer_backend=enabled,-Dgstreamer_backend=disabled,gstreamer1.0 gstreamer1.0-plugins-base"
|
||||
|
||||
FILES:${PN} += "${datadir}/gupnp-dlna-2.0/dlna-profiles"
|
||||
@@ -0,0 +1,13 @@
|
||||
SUMMARY = "Helpers for interacting with Internet Gateway Devices over UPnP"
|
||||
LICENSE = "LGPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
|
||||
file://libgupnp-igd/gupnp-simple-igd.c;beginline=1;endline=21;md5=aa292c0d9390463a6e1055dc5fc68e80"
|
||||
|
||||
DEPENDS = "glib-2.0 gssdp gupnp sqlite3"
|
||||
|
||||
SRC_URI = "http://download.gnome.org/sources/${BPN}/1.2/${BPN}-${PV}.tar.xz"
|
||||
SRC_URI[sha256sum] = "4b5120098aa13edd27818ba9ee4d7fe961bf540bf50d056ff703c61545e02be1"
|
||||
|
||||
GTKDOC_MESON_OPTION = "gtk_doc"
|
||||
|
||||
inherit meson pkgconfig gtk-doc gobject-introspection
|
||||
@@ -0,0 +1,15 @@
|
||||
SUMMARY = "Tools for GUPnP"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
|
||||
file://src/network-light/main.c;beginline=1;endline=21;md5=2c39b3a000495dabd4932f231c7efed8"
|
||||
|
||||
DEPENDS = "gupnp gupnp-av gtk+3 glib-2.0-native intltool-native"
|
||||
|
||||
inherit features_check meson pkgconfig gettext gtk-icon-cache
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "x11"
|
||||
|
||||
SRC_URI = "http://download.gnome.org/sources/${BPN}/0.10/${BPN}-${PV}.tar.xz"
|
||||
SRC_URI[sha256sum] = "6de49ef4b375b8a164f74b766168b1184e0d28196b6b07a4f5341f08dfd85d6c"
|
||||
|
||||
RRECOMMENDS:${PN} = "adwaita-icon-theme"
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
From 46f13d9929c81ec2340a1a5d48f596b1892c5a81 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
|
||||
|
||||
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
||||
Upstream-Status: Backport [https://github.com/GNOME/gupnp/commit/80e68995b745a5900eaaa1d0c424d3a9d354e42d]
|
||||
---
|
||||
libgupnp/gupnp-control-point.c | 7 +++++--
|
||||
libgupnp/gupnp-service-info.c | 7 +++++--
|
||||
libgupnp/gupnp-service-proxy-action.c | 7 +++++--
|
||||
libgupnp/gupnp-service-proxy.c | 7 +++++--
|
||||
libgupnp/gupnp-service.c | 7 +++++--
|
||||
5 files changed, 25 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/libgupnp/gupnp-control-point.c b/libgupnp/gupnp-control-point.c
|
||||
index dc04732..99ebda5 100644
|
||||
--- a/libgupnp/gupnp-control-point.c
|
||||
+++ b/libgupnp/gupnp-control-point.c
|
||||
@@ -608,8 +608,11 @@ got_description_url (SoupSession *session,
|
||||
xmlDoc *xml_doc;
|
||||
|
||||
/* Parse response */
|
||||
- xml_doc = xmlRecoverMemory (msg->response_body->data,
|
||||
- msg->response_body->length);
|
||||
+ xml_doc = xmlReadMemory (msg->response_body->data,
|
||||
+ msg->response_body->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 9a9f4de..d468801 100644
|
||||
--- a/libgupnp/gupnp-service-info.c
|
||||
+++ b/libgupnp/gupnp-service-info.c
|
||||
@@ -592,8 +592,11 @@ got_scpd_url (G_GNUC_UNUSED SoupSession *session,
|
||||
if (SOUP_STATUS_IS_SUCCESSFUL (msg->status_code)) {
|
||||
xmlDoc *scpd;
|
||||
|
||||
- scpd = xmlRecoverMemory (msg->response_body->data,
|
||||
- msg->response_body->length);
|
||||
+ scpd = xmlReadMemory (msg->response_body->data,
|
||||
+ msg->response_body->length,
|
||||
+ NULL,
|
||||
+ NULL,
|
||||
+ XML_PARSE_NONET | XML_PARSE_RECOVER);
|
||||
if (scpd) {
|
||||
introspection = gupnp_service_introspection_new (scpd);
|
||||
|
||||
diff --git a/libgupnp/gupnp-service-proxy-action.c b/libgupnp/gupnp-service-proxy-action.c
|
||||
index 4d9336c..ef8a808 100644
|
||||
--- a/libgupnp/gupnp-service-proxy-action.c
|
||||
+++ b/libgupnp/gupnp-service-proxy-action.c
|
||||
@@ -86,8 +86,11 @@ check_action_response (G_GNUC_UNUSED GUPnPServiceProxy *proxy,
|
||||
}
|
||||
|
||||
/* Parse response */
|
||||
- response = xmlRecoverMemory (action->msg->response_body->data,
|
||||
- action->msg->response_body->length);
|
||||
+ response = xmlReadMemory (action->msg->response_body->data,
|
||||
+ action->msg->response_body->length,
|
||||
+ NULL,
|
||||
+ NULL,
|
||||
+ XML_PARSE_NONET | XML_PARSE_RECOVER);
|
||||
|
||||
if (!response) {
|
||||
if (action->msg->status_code == SOUP_STATUS_OK) {
|
||||
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
|
||||
index 25d5ef6..af2fd46 100644
|
||||
--- a/libgupnp/gupnp-service-proxy.c
|
||||
+++ b/libgupnp/gupnp-service-proxy.c
|
||||
@@ -1560,8 +1560,11 @@ server_handler (G_GNUC_UNUSED SoupServer *soup_server,
|
||||
}
|
||||
|
||||
/* Parse the actual XML message content */
|
||||
- doc = xmlRecoverMemory (msg->request_body->data,
|
||||
- msg->request_body->length);
|
||||
+ doc = xmlReadMemory (msg->request_body->data,
|
||||
+ msg->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 67b3d43..0ebfb26 100644
|
||||
--- a/libgupnp/gupnp-service.c
|
||||
+++ b/libgupnp/gupnp-service.c
|
||||
@@ -985,8 +985,11 @@ control_server_handler (SoupServer *server,
|
||||
*end = '\0';
|
||||
|
||||
/* Parse action_node */
|
||||
- doc = xmlRecoverMemory (msg->request_body->data,
|
||||
- msg->request_body->length);
|
||||
+ doc = xmlReadMemory (msg->request_body->data,
|
||||
+ msg->request_body->length,
|
||||
+ NULL,
|
||||
+ NULL,
|
||||
+ XML_PARSE_NONET | XML_PARSE_RECOVER);
|
||||
if (doc == NULL) {
|
||||
soup_message_set_status (msg, SOUP_STATUS_BAD_REQUEST);
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
SUMMARY = "UPnP framework"
|
||||
DESCRIPTION = "GUPnP is an elegant, object-oriented open source framework for creating UPnP devices and control points, written in C using GObject and libsoup. The GUPnP API is intended to be easy to use, efficient and flexible. It provides the same set of features as libupnp, but shields the developer from most of UPnP's internals."
|
||||
LICENSE = "LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
|
||||
|
||||
DEPENDS = "e2fsprogs gssdp libsoup-2.4 libxml2"
|
||||
|
||||
inherit meson pkgconfig vala gobject-introspection
|
||||
|
||||
SRC_URI = "${GNOME_MIRROR}/${BPN}/1.4/${BPN}-${PV}.tar.xz \
|
||||
file://0001-all-Drop-xmlRecoverMemory.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "899196b5e66f03b8e25f046a7a658cd2a6851becb83f2d55345ab3281655dc0c"
|
||||
|
||||
SYSROOT_PREPROCESS_FUNCS += "gupnp_sysroot_preprocess"
|
||||
|
||||
gupnp_sysroot_preprocess () {
|
||||
install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
|
||||
install -m 755 ${D}${bindir}/gupnp-binding-tool* ${SYSROOT_DESTDIR}${bindir_crossscripts}/
|
||||
}
|
||||
|
||||
FILES:${PN}-dev += "${bindir}/gupnp-binding-tool*"
|
||||
|
||||
RDEPENDS:${PN}-dev = "python3 python3-xml"
|
||||
Reference in New Issue
Block a user