From: Chen Qi Date: Sun, 20 Apr 2025 04:05:25 +0000 (+0800) Subject: cpio: fix ptest-runner dependency X-Git-Tag: uninative-4.8~714 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ef705f6969845aa4b28cb2cfb95b0aa0c67c11e3;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git cpio: fix ptest-runner dependency ptest is only meaningful for target. So we need to specify class-target override to ensure correct dependency. Also, the above DEPENDS:append:class-targets lacks a leading whitespace, add it. Signed-off-by: Chen Qi Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-extended/cpio/cpio_2.15.bb b/meta/recipes-extended/cpio/cpio_2.15.bb index b081bd53db5..77fb019af95 100644 --- a/meta/recipes-extended/cpio/cpio_2.15.bb +++ b/meta/recipes-extended/cpio/cpio_2.15.bb @@ -66,8 +66,8 @@ do_install_ptest_base:append() { } # The tests need to run as a non-root user, so pull in the ptest user -DEPENDS:append:class-target = "${@bb.utils.contains('PTEST_ENABLED', '1', ' ptest-runner', '', d)}" -PACKAGE_WRITE_DEPS += "ptest-runner" +DEPENDS:append:class-target = " ${@bb.utils.contains('PTEST_ENABLED', '1', 'ptest-runner', '', d)}" +PACKAGE_WRITE_DEPS:append:class-target = " ${@bb.utils.contains('PTEST_ENABLED', '1', 'ptest-runner', '', d)}" RDEPENDS:${PN}-ptest += "ptest-runner"