diff mbox series

[meta-oe,3/3] dbus-cxx: Support using alternative runtime D-Bus

Message ID 20250402103047.3142275-3-niko.mauno@vaisala.com
State New
Headers show
Series [meta-oe,1/3] dbus-cxx: Amend dbus build time dependency | expand

Commit Message

Niko Mauno April 2, 2025, 10:30 a.m. UTC
In order to facilitate using e.g. dbus-broker as runtime D-Bus
implementation, change the Freedesktop.org specific D-Bus runtime
dependency to honor oe-core's new VIRTUAL-RUNTIME_dbus variable.

Furthermore mark the runtime dependency as target specific, which
avoids unbuildable dependency chain issue when bitbaking native or
nativesdk variant of the recipe, when dbus-broker is preferred.

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
---
 meta-oe/recipes-core/dbus-cxx/dbus-cxx_2.5.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-core/dbus-cxx/dbus-cxx_2.5.2.bb b/meta-oe/recipes-core/dbus-cxx/dbus-cxx_2.5.2.bb
index a10f7f22dd..992a414009 100644
--- a/meta-oe/recipes-core/dbus-cxx/dbus-cxx_2.5.2.bb
+++ b/meta-oe/recipes-core/dbus-cxx/dbus-cxx_2.5.2.bb
@@ -10,7 +10,7 @@  SRCREV = "f2637e726207ecfbdaaf02744e1b36e54f929c9d"
 
 DEPENDS = "libsigc++-3"
 
-RDEPENDS:${PN} = "dbus"
+RDEPENDS:${PN}:class-target = "${VIRTUAL-RUNTIME_dbus}"
 
 S = "${WORKDIR}/git"