Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH v2] dbus: Let the ptest package install alongside dbus-broker
@ 2026-11-01 15:49 Khem Raj
  2026-11-02  8:38 ` [OE-core] " Mathieu Dubois-Briand
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2026-11-01 15:49 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

dbus-ptest RDEPENDS on dbus, both explicitly and through ptest.bbclass,
and dbus-broker RCONFLICTS dbus. With VIRTUAL-RUNTIME_dbus = "dbus-broker"
(systemd pulls it in) core-image-ptest-dbus fails in do_rootfs:

  package dbus-broker-37-r0.6.cortexa57 conflicts with dbus provided by dbus-1-1.16.2-r0.45.cortexa57
  package dbus-ptest-1.16.2-r0.45.cortexa57 requires dbus, but none of the providers can be installed

The installed tests don't use the system bus. They start private buses
with dbus-daemon (DBUS_TEST_DAEMON) and use dbus-send, so depend on the
dbus-daemon and dbus-tools packages instead and drop the dbus dependency,
like avahi does.

With this the images using dbus-broker as the system bus also pass all 60 dbus
ptests.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
v2: Add PN-daemon conditional upon message-bus packageconfig

 meta/recipes-core/dbus/dbus_1.16.2.bb | 6 +++++-
 1 file changed, 5 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 e602c67727..ca2e6c7b90 100644
--- a/meta/recipes-core/dbus/dbus_1.16.2.bb
+++ b/meta/recipes-core/dbus/dbus_1.16.2.bb
@@ -108,7 +108,11 @@ RRECOMMENDS:${PN}-lib = "${PN}"
 RRECOMMENDS:${PN}-lib:class-target = "${VIRTUAL-RUNTIME_dbus}"
 FILES:${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-test-tool ${datadir}/xml/dbus-1"

-RDEPENDS:${PN}-ptest += "bash make dbus"
+RDEPENDS:${PN}-ptest += "bash make ${@bb.utils.contains('PACKAGECONFIG', 'message-bus', '${PN}-daemon', '', d)} ${PN}-tools"
+# The tests start their own buses with dbus-daemon and talk to them with
+# dbus-send; they don't need the system bus (dbus), which would conflict with
+# other system bus implementations such as dbus-broker.
+RDEPENDS:${PN}-ptest:remove = "${PN}"

 pkg_postinst:${PN}() {
 	if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH v2] dbus: Let the ptest package install alongside dbus-broker
  2026-11-01 15:49 [PATCH v2] dbus: Let the ptest package install alongside dbus-broker Khem Raj
@ 2026-11-02  8:38 ` Mathieu Dubois-Briand
  2026-11-02 15:19   ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Dubois-Briand @ 2026-11-02  8:38 UTC (permalink / raw)
  To: raj.khem, openembedded-core; +Cc: Khem Raj

On Sun Nov 1, 2026 at 4:49 PM CET, Khem Raj via openembedded-core wrote:
> dbus-ptest RDEPENDS on dbus, both explicitly and through ptest.bbclass,
> and dbus-broker RCONFLICTS dbus. With VIRTUAL-RUNTIME_dbus = "dbus-broker"
> (systemd pulls it in) core-image-ptest-dbus fails in do_rootfs:
>
>   package dbus-broker-37-r0.6.cortexa57 conflicts with dbus provided by dbus-1-1.16.2-r0.45.cortexa57
>   package dbus-ptest-1.16.2-r0.45.cortexa57 requires dbus, but none of the providers can be installed
>
> The installed tests don't use the system bus. They start private buses
> with dbus-daemon (DBUS_TEST_DAEMON) and use dbus-send, so depend on the
> dbus-daemon and dbus-tools packages instead and drop the dbus dependency,
> like avahi does.
>
> With this the images using dbus-broker as the system bus also pass all 60 dbus
> ptests.
>
> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
> ---

Hi Khem,

Sorry, we still have a similar error:

ERROR: Nothing RPROVIDES 'dbus-daemon' (but /srv/pokybuild/yocto-worker/genericx86-64/build/layers/openembedded-core/meta/recipes-core/dbus/dbus_1.16.2.bb RDEPENDS on or otherwise requires it)

https://autobuilder.yoctoproject.org/valkyrie/#/builders/4/builds/4957

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH v2] dbus: Let the ptest package install alongside dbus-broker
  2026-11-02  8:38 ` [OE-core] " Mathieu Dubois-Briand
@ 2026-11-02 15:19   ` Khem Raj
  0 siblings, 0 replies; 3+ messages in thread
From: Khem Raj @ 2026-11-02 15:19 UTC (permalink / raw)
  To: Mathieu Dubois-Briand; +Cc: openembedded-core, Khem Raj

[-- Attachment #1: Type: text/plain, Size: 1727 bytes --]

On Mon, Nov 2, 2026 at 12:38 AM Mathieu Dubois-Briand <
mathieu.dubois-briand@bootlin.com> wrote:

> On Sun Nov 1, 2026 at 4:49 PM CET, Khem Raj via openembedded-core wrote:
> > dbus-ptest RDEPENDS on dbus, both explicitly and through ptest.bbclass,
> > and dbus-broker RCONFLICTS dbus. With VIRTUAL-RUNTIME_dbus =
> "dbus-broker"
> > (systemd pulls it in) core-image-ptest-dbus fails in do_rootfs:
> >
> >   package dbus-broker-37-r0.6.cortexa57 conflicts with dbus provided by
> dbus-1-1.16.2-r0.45.cortexa57
> >   package dbus-ptest-1.16.2-r0.45.cortexa57 requires dbus, but none of
> the providers can be installed
> >
> > The installed tests don't use the system bus. They start private buses
> > with dbus-daemon (DBUS_TEST_DAEMON) and use dbus-send, so depend on the
> > dbus-daemon and dbus-tools packages instead and drop the dbus dependency,
> > like avahi does.
> >
> > With this the images using dbus-broker as the system bus also pass all
> 60 dbus
> > ptests.
> >
> > Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
> > ---
>
> Hi Khem,
>
> Sorry, we still have a similar error:
>
> ERROR: Nothing RPROVIDES 'dbus-daemon' (but
> /srv/pokybuild/yocto-worker/genericx86-64/build/layers/openembedded-core/meta/recipes-core/dbus/
> dbus_1.16.2.bb RDEPENDS on or otherwise requires it)
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/4/builds/4957
>
>
I realized that I missed sending prior patch on which this one is based on,
thinking that I already did so previously. I have sent a v3 with both
patches in a set now.


> Thanks,
> Mathieu
>
> --
> Mathieu Dubois-Briand, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>
>

[-- Attachment #2: Type: text/html, Size: 2733 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-02 15:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-01 15:49 [PATCH v2] dbus: Let the ptest package install alongside dbus-broker Khem Raj
2026-11-02  8:38 ` [OE-core] " Mathieu Dubois-Briand
2026-11-02 15:19   ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox