Skip to contentSkip to conversation

floret: Do not use AUTOREV

PATCH New Khem Raj 1 participant 2 messages Sep 23

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 floret: Do not use AUTOREV

Add tag info in SRC_URI whole here

---
 meta-oe/recipes-support/floret/floret_0.10.5.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-support/floret/floret_0.10.5.bb +2 -2
index 06353fe034..c178c99623 100644
@@ -15,10 +15,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=4ce16d1d2b4c556959d654417007b713"
 
 DEPENDS = "zlib"
 
-SRC_URI = "git://github.com/explosion/floret.git;protocol=https;branch=main \
+SRC_URI = "git://github.com/explosion/floret.git;protocol=https;branch=main;tag=v${PV} \
            file://0001-PATCH-floret-Adjust-CMake-flags-for-cross-compilation.patch"
 
-SRCREV = "${AUTOREV}"
+SRCREV = "775638223bee4fabc420cc8234632557452558e0"
 
 inherit cmake
 
author
#1 lore raw

PATCH 2/2 wireplumber: only build the dbus tests when dbus-daemon is available

test-dbus-connection and test-reserve-device spawn a private bus through GLib's GTestDBus, which executes dbus-daemon. When VIRTUAL-RUNTIME_dbus is dbus-broker, dbus-daemon is not installable (dbus-broker RCONFLICTS dbus) and both tests abort with:

GLib-GIO-FATAL-ERROR: Error spawning dbus-daemon: Failed to spawn child process "dbus-daemon" (No such file or directory)

Enable the dbus-tests meson option only when dbus provides the message bus, and make the ptest package depend on dbus in that case instead of relying on it being pulled in indirectly.

AI-Generated: Uses Claude Code

---
 .../recipes-multimedia/wireplumber/wireplumber_0.5.17.bb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.5.17.bb +8 -1
index 3dd58a70c4..bfe8137b0a 100644
@@ -48,6 +48,11 @@ PACKAGECONFIG[systemd-user-service] = "-Dsystemd-user-service=true,-Dsystemd-use
 PACKAGECONFIG[dbus] = ""
 PACKAGECONFIG[test] = "-Dtests=true,-Dtests=false"
 
+# The dbus tests spawn a private bus through GTestDBus, which needs the
+# dbus-daemon binary. It is missing when dbus-broker provides the bus.
+WP_DBUS_TESTS = "${@'true' if d.getVar('VIRTUAL-RUNTIME_dbus') == 'dbus' else 'false'}"
+EXTRA_OEMESON += "-Ddbus-tests=${WP_DBUS_TESTS}"
+
 PACKAGESPLITFUNCS:prepend = " split_dynamic_packages "
 PACKAGESPLITFUNCS:append = " set_dynamic_metapkg_rdepends "
 
@@ -170,4 +175,6 @@ FILES:${PN}-modules = ""
 RRECOMMENDS:${PN}-modules += "${PN}-modules-meta"
 
 FILES:${PN}-ptest += "${datadir}/wireplumber/scripts/lib/test-utils.lua ${datadir}/wireplumber/scripts/testlib.lua"
-RDEPENDS:${PN}-ptest += "pipewire-modules-protocol-native ${PN}-scripts"
+RDEPENDS:${PN}-ptest += "pipewire-modules-protocol-native ${PN}-scripts \
+    ${@'dbus' if d.getVar('WP_DBUS_TESTS') == 'true' else ''} \
+"