From: Awais Belal Date: Tue, 12 Nov 2024 23:48:56 +0000 (+0500) Subject: quilt: fix dependency on ptest-runner X-Git-Tag: uninative-4.7~941 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4cc8bfe9c7d936ed36023f955d34f57676597d6;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git quilt: fix dependency on ptest-runner Specifically when using useradd-staticids this fails without creating a ptest user entry. ERROR: Nothing PROVIDES 'ptest-runner' ptest-runner was skipped: Recipe ptest-runner, package ptest-runner: system username "ptest" does not have a static ID defined. Add ptest to one of these files: .../passwd ... ... Missing or unbuildable dependency chain was: ['my-image-sdk', 'packagegroup-core-sdk', 'quilt', 'ptest-runner'] This is seen when ptest is not even enabled. We fix this by making a conditional dependency on the ptest-runner. Signed-off-by: Awais B Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/quilt/quilt.inc b/meta/recipes-devtools/quilt/quilt.inc index 19aeae510d4..4bae5c6c197 100644 --- a/meta/recipes-devtools/quilt/quilt.inc +++ b/meta/recipes-devtools/quilt/quilt.inc @@ -61,7 +61,7 @@ do_install:append:class-native () { # 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" +PACKAGE_WRITE_DEPS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'ptest-runner', '', d)}" do_install_ptest() { install ${UNPACKDIR}/test.sh ${D}${PTEST_PATH}