diff mbox series

[3/4] xdg-utils: refresh runtime dependencies

Message ID 20260914120807.2162673-3-ross.burton@arm.com
State New
Headers show
Series [1/4] xdg-utils: switch to git | expand

Commit Message

Ross Burton Sept. 14, 2026, 12:08 p.m. UTC
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 <ross.burton@arm.com>
---
 meta/recipes-extended/xdg-utils/xdg-utils_1.1.3.bb | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
diff mbox series

Patch

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"