xdg-utils doesn't _need_ x11, so make the X11 dependencies dependent on
the x11 DISTRO_FEATURE being set.

Also add xset, file, and dbus-tools (for dbus-send) to the dependency
list, as they're also needed.

Finally convert the dependencies to recommends, as they're not needed by
all tools and it might be desirable to ship xdg-utils but not all of the
dependencies.

Signed-off-by: Ross Burton <[email protected]>
---
 meta/recipes-extended/xdg-utils/xdg-utils_1.1.3.bb | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/meta/recipes-extended/xdg-utils/xdg-utils_1.1.3.bb 
b/meta/recipes-extended/xdg-utils/xdg-utils_1.1.3.bb
index 482cf3aa7a3..7141a72dd53 100644
--- a/meta/recipes-extended/xdg-utils/xdg-utils_1.1.3.bb
+++ b/meta/recipes-extended/xdg-utils/xdg-utils_1.1.3.bb
@@ -5,6 +5,8 @@ DESCRIPTION = "The xdg-utils package is a set of simple scripts 
that provide bas
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=a5367a90934098d6b05af3b746405014"
 
+DEPENDS = "xmlto-native libxslt-native"
+
 SRC_URI = 
"git://gitlab.freedesktop.org/xdg/xdg-utils.git;protocol=https;branch=master;tag=v${PV}
 \
            file://0001-Reinstate-xdg-terminal.patch \
            file://0001-Don-t-build-the-in-script-manual.patch \
@@ -14,12 +16,9 @@ SRC_URI = 
"git://gitlab.freedesktop.org/xdg/xdg-utils.git;protocol=https;branch=
 SRCREV = "159fc37075db2decf446f453fe1a796da6921aad"
 
 # Needs brokensep as this doesn't use automake
-inherit autotools-brokensep features_check
+inherit autotools-brokensep
 
-# The xprop requires x11 in DISTRO_FEATURES
-REQUIRED_DISTRO_FEATURES = "x11"
-
-DEPENDS = "xmlto-native libxslt-native"
-RDEPENDS:${PN} += "xprop"
+RRECOMMENDS:${PN} = "dbus-tools file \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xprop xset', '', d)}"
 
 CVE_STATUS[CVE-2025-52968] = "disputed"
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#245768): 
https://lists.openembedded.org/g/openembedded-core/message/245768
Mute This Topic: https://lists.openembedded.org/mt/121241137/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to