xdg-dbus-proxy: use VIRTUAL-RUNTIME_dbus for ptest RDEPENDS

Hardcoding "dbus" makes the ptest image unbuildable on any distro that
selects a different system bus implementation. On a systemd distro
setting VIRTUAL-RUNTIME_dbus = "dbus-broker", do_rootfs fails to
solve:

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

Depend on ${VIRTUAL-RUNTIME_dbus} instead so the ptest package pulls
in whichever bus the distro actually uses.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2026-08-17 20:38:30 +02:00
committed by Khem Raj
parent 0e1bcb85b4
commit 63bff20667
@@ -23,6 +23,6 @@ CVE_STATUS[CVE-2026-34080] = "fixed-version: fixed in 0.1.7"
PACKAGECONFIG = "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
PACKAGECONFIG[tests] = "-Dtests=true -Dinstalled_tests=true,-Dtests=false -Dinstalled_tests=false"
RDEPENDS:${PN}-ptest += "dbus"
RDEPENDS:${PN}-ptest += "${VIRTUAL-RUNTIME_dbus}"
BBCLASSEXTEND = "native"