mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-15 06:17:16 +00:00
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 Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
1 file changed
+8
-1
@@ -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 ''} \
|
||||
"
|
||||
Reference in new issue
Block a user