diff mbox series

[1/2] coreutils: add missing ptest dependencies

Message ID 20250327213627.530742-1-ross.burton@arm.com
State Accepted, archived
Commit 9caa68b9af19fea283ecdd55c4a8afd371fe388a
Headers show
Series [1/2] coreutils: add missing ptest dependencies | expand

Commit Message

Ross Burton March 27, 2025, 9:36 p.m. UTC
One tests needs xz, and the acl and attr tests if enabled need the
corresponding tools.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/recipes-core/coreutils/coreutils_9.6.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-core/coreutils/coreutils_9.6.bb b/meta/recipes-core/coreutils/coreutils_9.6.bb
index 6db435cfcb8..d89c75ba665 100644
--- a/meta/recipes-core/coreutils/coreutils_9.6.bb
+++ b/meta/recipes-core/coreutils/coreutils_9.6.bb
@@ -222,4 +222,7 @@  do_install_ptest:append:libc-musl () {
     sed -i -e '/tests\/dd\/no-allocate.sh/d' ${D}${PTEST_PATH}/Makefile
     sed -i -e '/tests\/split\/line-bytes.sh/d' ${D}${PTEST_PATH}/Makefile
 }
-RDEPENDS:${PN}-ptest += "${PN}-getlimits"
+
+RDEPENDS:${PN}-ptest += "${PN}-getlimits xz  \
+                         ${@bb.utils.contains('PACKAGECONFIG', 'acl', 'acl', '', d)} \
+                         ${@bb.utils.contains('PACKAGECONFIG', 'xattr', 'attr', '', d)}"