'inherit ptest' adds a runtime dependency on ${PN} that conflicts with
'RCONFLICTS:${PN} = "dbus"' in the dbus-broker recipe.This commit attempts to fix an issue where VIRTUAL-RUNTIME_dbus is set to 'dbus-broker' and ptest is included in DISTRO_FEATURES by installing ptest only when dbus is used as the daemon. Otherwise do_rootfs fails with: Error: Problem: package libsdbus-c++-ptest-2.2.1-r0.corei7_64 from oe-repo requires dbus-broker, but none of the providers can be installed - package dbus-broker-37-r0.corei7_64 from @System conflicts with dbus provided by dbus-1-1.16.2-r0.corei7_64 from oe-repo - package dbus-broker-37-r0.corei7_64 from oe-repo conflicts with dbus provided by dbus-1-1.16.2-r0.corei7_64 from oe-repo - package dbus-ptest-1.16.2-r0.corei7_64 from oe-repo requires dbus, but none of the providers can be installed - conflicting requests As far as I know, dbus-broker is only meant to replace the daemon itself, but it uses the same environment as dbus and is still dependent on parts of the dbus recipe. A more robust solution would therefore be to remove the line containing RCONFLICTS from 'dbus-broker', since dbus and dbus-broker are not technically mutually exclusive as long as you don't run both at the same time. However, I'm aware that this was done for the sake of cleanliness. Signed-off-by: Markus Volk <[email protected]> --- meta/recipes-core/dbus/dbus_1.16.2.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/dbus/dbus_1.16.2.bb b/meta/recipes-core/dbus/dbus_1.16.2.bb index abe4196d9a..bc7fe80db2 100644 --- a/meta/recipes-core/dbus/dbus_1.16.2.bb +++ b/meta/recipes-core/dbus/dbus_1.16.2.bb @@ -3,7 +3,8 @@ DESCRIPTION = "D-Bus is a message bus system, a simple way for applications to t HOMEPAGE = "https://dbus.freedesktop.org" SECTION = "base" -inherit meson pkgconfig gettext upstream-version-is-even ptest-gnome +inherit_defer ${@bb.utils.contains('VIRTUAL-RUNTIME_dbus', 'dbus', 'ptest-gnome', '', d)} +inherit meson pkgconfig gettext upstream-version-is-even LICENSE = "AFL-2.1 | GPL-2.0-or-later" LIC_FILES_CHKSUM = "file://COPYING;md5=eb0ffc69a965797a3d6686baa153ef05 \ -- 2.52.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#231412): https://lists.openembedded.org/g/openembedded-core/message/231412 Mute This Topic: https://lists.openembedded.org/mt/117881956/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
