Skip to contentSkip to conversation

ptest-packagelists: Skip dbus ptest when dbus-broker is the dbus provider

PATCH Superseded Khem Raj 1 participant 1 message Oct 10

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 ptest-packagelists: Skip dbus ptest when dbus-broker is the dbus provider

When a distro sets VIRTUAL-RUNTIME_dbus = "dbus-broker", systemd RDEPENDS on dbus-broker, which RCONFLICTS with dbus. dbus-ptest RDEPENDS on dbus, so core-image-ptest-dbus fails in do_rootfs:

package systemd requires dbus-broker, but none of the providers can be installed package dbus-broker conflicts with dbus provided by dbus-1
package dbus-ptest requires dbus, but none of the providers can be installed

Only add dbus to PTESTS_SLOW when dbus-broker is not the dbus provider.

---
 meta/conf/distro/include/ptest-packagelists.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/distro/include/ptest-packagelists.inc +1 -1
index e8c9c18f92..1f00a67f99 100644
@@ -122,7 +122,7 @@ PTESTS_SLOW = "\
     bzip2 \
     coreutils \
     curl \
-    dbus \
+    ${@'' if d.getVar('VIRTUAL-RUNTIME_dbus') == 'dbus-broker' else 'dbus'} \
     dosfstools \
     dpkg \
     e2fsprogs \