gssdp: upgrade 1.6.3 -> 1.6.4
PATCH 1/8 gssdp: upgrade 1.6.3 -> 1.6.4
From: Gyorgy Sarvari <[email protected]>
Drop patch that was incorporated in this release.
Shortlog (without CI-changes):
client: Format Since/Deprecated versions in a way gi-docgen can parse Fix template to use local mirror
gssdp-enums.c.template: use basename instead of filename
resource-browser: Make regex pattern static
---
...mplate-use-basename-instead-of-filen.patch | 32 -------------------
.../gupnp/{gssdp_1.6.3.bb => gssdp_1.6.4.bb} | 5 +--
2 files changed, 1 insertion(+), 36 deletions(-)
delete mode 100644 meta-multimedia/recipes-connectivity/gupnp/gssdp/0001-gssdp-enums.c.template-use-basename-instead-of-filen.patch
rename meta-multimedia/recipes-connectivity/gupnp/{gssdp_1.6.3.bb => gssdp_1.6.4.bb} (82%)meta-multimedia/recipes-connectivity/gupnp/gssdp/0001-gssdp-enums.c.template-use-basename-instead-of-filen.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From 78270f9159a9ec7284ca39a2fbb1774347942de1 Mon Sep 17 00:00:00 2001 -From: Markus Volk <[email protected]> -Date: Wed, 24 Apr 2024 19:08:43 +0200 -Subject: [PATCH] gssdp-enums.c.template: use basename instead of filename - -This would prevent the build path from leaking into the source code. - -Signed-off-by: Markus Volk <[email protected]> - -Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/gssdp/-/merge_requests/13] ---- - libgssdp/gssdp-enums.c.template | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/libgssdp/gssdp-enums.c.template b/libgssdp/gssdp-enums.c.template -index 600d426..2dfb859 100644 ---- a/libgssdp/gssdp-enums.c.template -+++ b/libgssdp/gssdp-enums.c.template -@@ -3,8 +3,8 @@ - - /*** END file-header ***/ - /*** BEGIN file-production ***/ --/* enumerations from "@filename@" */ --#include "@filename@" -+/* enumerations from "@basename@" */ -+#include "@basename@" - /*** END file-production ***/ - /*** BEGIN value-header ***/ - GType --- -2.44.0 -
meta-multimedia/recipes-connectivity/gupnp/gssdp_1.6.4.bb renamed from meta-multimedia/recipes-connectivity/gupnp/gssdp_1.6.3.bb +1 -4
@@ -6,10 +6,7 @@ BUGTRACKER = "https://gitlab.gnome.org/GNOME/gssdp/-/issues" LICENSE = "LGPL-2.1-only" LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" -SRC_URI:append = " file://0001-gssdp-enums.c.template-use-basename-instead-of-filen.patch" -SRC_URI[archive.sha256sum] = "2fedb5afdb22cf14d5498a39a773ca89788a250fcf70118783df821e1f3f3446" - -GTKDOC_MESON_OPTION = 'gtk_doc' +SRC_URI[archive.sha256sum] = "ff97fdfb7f561d3e6813b4f6a2145259e7c2eff43cc0e63f3fd031d0b6266032" DEPENDS = " \ glib-2.0 \
PATCH 2/8 gssdp: add ptest support
From: Gyorgy Sarvari <[email protected]>
It is quick, it finished under 20 seconds on my machine.
--- .../include/ptest-packagelists-meta-multimedia.inc | 1 + .../recipes-connectivity/gupnp/gssdp/run-ptest | 12 ++++++++++++ .../recipes-connectivity/gupnp/gssdp_1.6.4.bb | 9 ++++++++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 meta-multimedia/recipes-connectivity/gupnp/gssdp/run-ptest
meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc +1 -0
@@ -7,6 +7,7 @@ # ptests which take less than ~30s each PTESTS_FAST_META_MULTIMEDIA = "\ + gssdp \ libopenmpt\ "
meta-multimedia/recipes-connectivity/gupnp/gssdp/run-ptest new file +12 -0
@@ -0,0 +1,12 @@ +#!/bin/sh +RET=0 +cd tests +for t in *; do + if ./$t; then + echo PASS: $t + else + echo FAIL: $t + RET=1 + fi +done +exit $RET
meta-multimedia/recipes-connectivity/gupnp/gssdp_1.6.4.bb +8 -1
@@ -6,6 +6,8 @@ BUGTRACKER = "https://gitlab.gnome.org/GNOME/gssdp/-/issues" LICENSE = "LGPL-2.1-only" LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" +inherit gnomebase pkgconfig gobject-introspection vala gi-docgen features_check ptest +SRC_URI += "file://run-ptest" SRC_URI[archive.sha256sum] = "ff97fdfb7f561d3e6813b4f6a2145259e7c2eff43cc0e63f3fd031d0b6266032" DEPENDS = " \
@@ -13,7 +15,6 @@ DEPENDS = " \ libsoup-3.0 \ " -inherit gnomebase pkgconfig gobject-introspection vala gi-docgen features_check # manpages require pandoc-native EXTRA_OEMESON += "-Dmanpages=false"
@@ -27,4 +28,10 @@ REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'sniffer', 'op PACKAGES =+ "gssdp-tools" +do_install_ptest(){ + install -d ${D}${PTEST_PATH}/tests + find ${B}/tests -type f -executable -exec install {} ${D}${PTEST_PATH}/tests \; +} + FILES:gssdp-tools = "${bindir}/gssdp* ${datadir}/gssdp/*.glade" +
PATCH 3/8 gupnp: upgrade 1.6.6 -> 1.6.9
In reply to [email protected]From: Gyorgy Sarvari <[email protected]>
Drop patch that was incorporated in this release.
Changelog:
1.6.9:
- Linux-CM: Fix a potential memory leak
- Fix documentation link for libsoup
- Fix unnecessary g_thread_unref in tests
- Fix issues with Since: in documentation
1.6.8:
- ServiceProxyAction: Remove some left-over debug output
- ServiceProxyAction: Stop leaking the HTTP response
- Docs: Fix various issues
- ServiceProxyAction: Add get_value_as()
- Linux-CM: Silence a false-positive with scan-build
1.6.7:
- Fix compatiblity with libxml2 2.12.x
- Improve reproducability
- ControlPoint: Fix re-scan
- ContextManager: Fix boot-id update
- Context: Fix crash if served URI is not an IP address
---
...mplate-use-basename-instead-of-filen.patch | 32 -------------------
.../gupnp/{gupnp_1.6.6.bb => gupnp_1.6.9.bb} | 5 +--
2 files changed, 1 insertion(+), 36 deletions(-)
delete mode 100644 meta-multimedia/recipes-connectivity/gupnp/gupnp/0001-gupnp-enums.c.template-use-basename-instead-of-filen.patch
rename meta-multimedia/recipes-connectivity/gupnp/{gupnp_1.6.6.bb => gupnp_1.6.9.bb} (83%)meta-multimedia/recipes-connectivity/gupnp/gupnp/0001-gupnp-enums.c.template-use-basename-instead-of-filen.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From f875a0afe24fdebdefc46d132f6722dfcb55115a Mon Sep 17 00:00:00 2001 -From: Markus Volk <[email protected]> -Date: Wed, 24 Apr 2024 18:52:45 +0200 -Subject: [PATCH] gupnp-enums.c.template: use @basename@ instead of @filename@ - -This would prevent the build path from leaking into the source code. - -Signed-off-by: Markus Volk <[email protected]> - -Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/gupnp/-/merge_requests/36] ---- - libgupnp/gupnp-enums.c.template | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/libgupnp/gupnp-enums.c.template b/libgupnp/gupnp-enums.c.template -index 3ce5fa4..a7ff89c 100644 ---- a/libgupnp/gupnp-enums.c.template -+++ b/libgupnp/gupnp-enums.c.template -@@ -3,8 +3,8 @@ - - /*** END file-header ***/ - /*** BEGIN file-production ***/ --/* enumerations from "@filename@" */ --#include "@filename@" -+/* enumerations from "@basename@" */ -+#include "@basename@" - /*** END file-production ***/ - /*** BEGIN value-header ***/ - GType --- -2.44.0 -
meta-multimedia/recipes-connectivity/gupnp/gupnp_1.6.9.bb renamed from meta-multimedia/recipes-connectivity/gupnp/gupnp_1.6.6.bb +1 -4
@@ -6,10 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" DEPENDS = "e2fsprogs gssdp libsoup-3.0 libxml2" inherit gnomebase pkgconfig vala gobject-introspection - -SRC_URI[archive.sha256sum] = "c9dc50e8c78b3792d1b0e6c5c5f52c93e9345d3dae2891e311a993a574f5a04f" -SRC_URI += "file://0001-gupnp-enums.c.template-use-basename-instead-of-filen.patch" - +SRC_URI[archive.sha256sum] = "2edb6ee3613558e62f538735368aee27151b7e09d4e2e2c51606833da801869b" SYSROOT_PREPROCESS_FUNCS += "gupnp_sysroot_preprocess"
PATCH 4/8 gupnp: add ptest support
In reply to [email protected]From: Gyorgy Sarvari <[email protected]>
It takes almost 50 seconds on my machine to execute.
--- .../include/ptest-packagelists-meta-multimedia.inc | 1 + .../recipes-connectivity/gupnp/gupnp/run-ptest | 12 ++++++++++++ .../recipes-connectivity/gupnp/gupnp_1.6.9.bb | 14 +++++++++++++- 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 meta-multimedia/recipes-connectivity/gupnp/gupnp/run-ptest
meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc +1 -0
@@ -12,6 +12,7 @@ PTESTS_FAST_META_MULTIMEDIA = "\ " PTESTS_SLOW_META_MULTIMEDIA = "\ + gupnp \ " PTESTS_PROBLEMS_META_MULTIMEDIA = "\
meta-multimedia/recipes-connectivity/gupnp/gupnp/run-ptest new file +12 -0
@@ -0,0 +1,12 @@ +#!/bin/sh +RET=0 +cd tests +for t in $(find . -type f -executable -maxdepth 1); do + if ./$t; then + echo PASS: $t + else + echo FAIL: $t + RET=1 + fi +done +exit $RET
meta-multimedia/recipes-connectivity/gupnp/gupnp_1.6.9.bb +13 -1
@@ -5,7 +5,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" DEPENDS = "e2fsprogs gssdp libsoup-3.0 libxml2" -inherit gnomebase pkgconfig vala gobject-introspection +inherit gnomebase pkgconfig vala gobject-introspection ptest +SRC_URI += "file://run-ptest" SRC_URI[archive.sha256sum] = "2edb6ee3613558e62f538735368aee27151b7e09d4e2e2c51606833da801869b" SYSROOT_PREPROCESS_FUNCS += "gupnp_sysroot_preprocess"
@@ -18,3 +19,14 @@ gupnp_sysroot_preprocess () { FILES:${PN}-dev += "${bindir}/gupnp-binding-tool*" RDEPENDS:${PN}-dev += "python3-core python3-xml" + +do_configure:prepend(){ + # change the test-datadir from source-folder to ptest-folder + sed -i "s!\(-DDATA_PATH=\"\).*!\1${PTEST_PATH}/tests/data\"',!" ${S}/tests/meson.build +} + +do_install_ptest(){ + install -d ${D}${PTEST_PATH}/tests + find ${B}/tests -type f -executable -exec install {} ${D}${PTEST_PATH}/tests/ \; + cp -r ${S}/tests/data ${D}${PTEST_PATH}/tests/ +}
PATCH 5/8 gupnp-av: upgrade 0.14.1 -> 0.14.4
In reply to [email protected]From: Gyorgy Sarvari <[email protected]>
Drop patch that is included in this release.
Changelog:
0.14.4:
- Move documentation to gi-docgen
0.14.3:
- CI fixes
0.14.2:
- xml: Fix compatibility with libxml2 2.12.x
- Add missing array annotation
- build: Fix Requires: line of pkg-config file
- Loosen restriction on dc:date verification
---
.../0001-all-Drop-xmlRecoverMemory.patch | 44 -------------------
...{gupnp-av_0.14.1.bb => gupnp-av_0.14.4.bb} | 8 ++--
2 files changed, 3 insertions(+), 49 deletions(-)
delete mode 100644 meta-multimedia/recipes-connectivity/gupnp/gupnp-av/0001-all-Drop-xmlRecoverMemory.patch
rename meta-multimedia/recipes-connectivity/gupnp/{gupnp-av_0.14.1.bb => gupnp-av_0.14.4.bb} (51%)meta-multimedia/recipes-connectivity/gupnp/gupnp-av/0001-all-Drop-xmlRecoverMemory.patch deleted +0 -44
@@ -1,44 +0,0 @@ -From d99f71a4a52da7582d5e26992a1ab303b280d28a Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -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 <[email protected]> ---- - 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 -
meta-multimedia/recipes-connectivity/gupnp/gupnp-av_0.14.4.bb renamed from meta-multimedia/recipes-connectivity/gupnp/gupnp-av_0.14.1.bb +3 -5
@@ -6,9 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" DEPENDS = "gupnp" -inherit meson pkgconfig gobject-introspection vala +inherit gi-docgen 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] = "b79ce0cc4b0c66d9c54bc22183a10e5709a0011d2af272025948efcab33a3e4f" +SRC_URI = "${GNOME_MIRROR}/${BPN}/0.14/${BPN}-${PV}.tar.xz" +SRC_URI[sha256sum] = "21d974b3275cb5dcf5b8aa1d9a3fc80e7edca706935f6fbd004c79787138f8c7"
PATCH 6/8 gupnp-av: add ptest support
In reply to [email protected]From: Gyorgy Sarvari <[email protected]>
It takes around a second to execute the suite.
--- .../ptest-packagelists-meta-multimedia.inc | 1 + .../gupnp/gupnp-av/run-ptest | 12 +++++++++++ .../gupnp/gupnp-av_0.14.4.bb | 21 +++++++++++++++++-- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 meta-multimedia/recipes-connectivity/gupnp/gupnp-av/run-ptest
meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc +1 -0
@@ -8,6 +8,7 @@ PTESTS_FAST_META_MULTIMEDIA = "\ gssdp \ + gupnp-av \ libopenmpt\ "
meta-multimedia/recipes-connectivity/gupnp/gupnp-av/run-ptest new file +12 -0
@@ -0,0 +1,12 @@ +#!/bin/sh +RET=0 +cd tests +for t in $(find . -type f -executable); do + if ./$t; then + echo PASS: $t + else + echo FAIL: $t + RET=1 + fi +done +exit $RET
meta-multimedia/recipes-connectivity/gupnp/gupnp-av_0.14.4.bb +19 -2
@@ -6,7 +6,24 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" DEPENDS = "gupnp" -inherit gi-docgen meson pkgconfig gobject-introspection vala +inherit gi-docgen meson pkgconfig gobject-introspection vala ptest -SRC_URI = "${GNOME_MIRROR}/${BPN}/0.14/${BPN}-${PV}.tar.xz" +SRC_URI = "${GNOME_MIRROR}/${BPN}/0.14/${BPN}-${PV}.tar.xz \ + file://run-ptest" SRC_URI[sha256sum] = "21d974b3275cb5dcf5b8aa1d9a3fc80e7edca706935f6fbd004c79787138f8c7" + +do_configure:prepend(){ + # set ABS_TOP_SRCDIR to ${PTEST_PATH instead of the source-dir on the host} + sed -i "s!\(-DABS_TOP_SRCDIR=\"\).*!\1${PTEST_PATH}/tests\"'],!" ${S}/tests/meson.build + # same for DATA_PATH in the other test folder + sed -i "s!\(-DDATA_PATH=\"\).*!\1${PTEST_PATH}/tests\"']!" ${S}/tests/gtest/meson.build +} + +do_install_ptest(){ + cd ${B}/tests + find . -type f -executable -exec install -D {} ${D}${PTEST_PATH}/tests/{} \; + cp -r ${S}/tests/gtest/data ${D}${PTEST_PATH}/tests + + # this test is not enabled for execution in 0.14.4 in meson.build + rm ${D}${PTEST_PATH}/tests/test-search-criteria-parser +}
PATCH 7/8 gupnp-igd: add ptest support
In reply to [email protected]From: Gyorgy Sarvari <[email protected]>
Execution takes around 10 seconds.
--- .../include/ptest-packagelists-meta-multimedia.inc | 1 + .../recipes-connectivity/gupnp/gupnp-igd/run-ptest | 13 +++++++++++++ .../recipes-connectivity/gupnp/gupnp-igd_1.6.0.bb | 11 ++++++++++- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 meta-multimedia/recipes-connectivity/gupnp/gupnp-igd/run-ptest
meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc +1 -0
@@ -9,6 +9,7 @@ PTESTS_FAST_META_MULTIMEDIA = "\ gssdp \ gupnp-av \ + gupnp-igd \ libopenmpt\ "
meta-multimedia/recipes-connectivity/gupnp/gupnp-igd/run-ptest new file +13 -0
@@ -0,0 +1,13 @@ +#!/bin/sh +RET=0 + +cd test +for t in $(find . -type f -executable); do + if ./$t; then + echo PASS: $t + else + echo FAIL: $t + RET=1 + fi +done +exit $RET
meta-multimedia/recipes-connectivity/gupnp/gupnp-igd_1.6.0.bb +10 -1
@@ -5,8 +5,17 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ DEPENDS = "glib-2.0 gssdp gupnp" -inherit gnomebase pkgconfig gtk-doc gobject-introspection +inherit gnomebase pkgconfig gtk-doc gobject-introspection ptest +SRC_URI += "file://run-ptest" SRC_URI[archive.sha256sum] = "4099978339ab22126d4968f2a332b6d094fc44c78797860781f1fc2f11771b74" GTKDOC_MESON_OPTION = "gtk_doc" + +do_install_ptest(){ + cd ${B}/tests/gtest + for t in $(find . -type f -executable); do + install -D $t ${D}${PTEST_PATH}/test/$t + done + install -m 0644 ${S}/tests/gtest/*.xml ${D}${PTEST_PATH}/test/ +}
PATCH 8/8 gupnp-tools: upgrade 0.12.1 -> 0.12.2
In reply to [email protected]From: Gyorgy Sarvari <[email protected]>
Changelog:
- Common:
- Remove deprecated libxml calls
- AV CP:
- Remove some stray debug output
- EventDumper:
- Code cleanup
- Uploader:
- Fix parsing the Browse result
---
.../gupnp/{gupnp-tools_0.12.1.bb => gupnp-tools_0.12.2.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-multimedia/recipes-connectivity/gupnp/{gupnp-tools_0.12.1.bb => gupnp-tools_0.12.2.bb} (84%)meta-multimedia/recipes-connectivity/gupnp/gupnp-tools_0.12.2.bb renamed from meta-multimedia/recipes-connectivity/gupnp/gupnp-tools_0.12.1.bb +1 -1
@@ -8,7 +8,7 @@ inherit gnomebase features_check pkgconfig gettext gtk-icon-cache ANY_OF_DISTRO_FEATURES = "x11 wayland" -SRC_URI[archive.sha256sum] = "53cf93123f397e8f8f0b8e9e4364c86a7502a5334f4c0be2e054a824478bd5ba" +SRC_URI[archive.sha256sum] = "4c92f2d1a3d454ec1f5fb05ef08ca34df9c743af64c8b5965c35884d46cb005c" PACKAGECONFIG ??= "av-tools" PACKAGECONFIG[av-tools] = "-Dav-tools=true,-Dav-tools=false,gupnp-av"