diff options
author | Awais Belal <awais.belal@gmail.com> | 2024-11-13 04:48:56 +0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-14 11:56:53 +0000 |
commit | fb57e8bde45b0ee4124f8dc075f3fbf11e82753f (patch) | |
tree | 06152e12880e6ab9f5a501956d4868277b4ba430 | |
parent | df62e8824a0f624239563c2a33e018a96d4f8770 (diff) | |
download | poky-fb57e8bde45b0ee4124f8dc075f3fbf11e82753f.tar.gz |
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.
(From OE-Core rev: f4cc8bfe9c7d936ed36023f955d34f57676597d6)
Signed-off-by: Awais B <awais.belal@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/quilt/quilt.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/quilt/quilt.inc b/meta/recipes-devtools/quilt/quilt.inc index 19aeae510d..4bae5c6c19 100644 --- a/meta/recipes-devtools/quilt/quilt.inc +++ b/meta/recipes-devtools/quilt/quilt.inc | |||
@@ -61,7 +61,7 @@ do_install:append:class-native () { | |||
61 | 61 | ||
62 | # The tests need to run as a non-root user, so pull in the ptest user | 62 | # The tests need to run as a non-root user, so pull in the ptest user |
63 | DEPENDS:append:class-target = "${@bb.utils.contains('PTEST_ENABLED', '1', ' ptest-runner', '', d)}" | 63 | DEPENDS:append:class-target = "${@bb.utils.contains('PTEST_ENABLED', '1', ' ptest-runner', '', d)}" |
64 | PACKAGE_WRITE_DEPS += "ptest-runner" | 64 | PACKAGE_WRITE_DEPS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'ptest-runner', '', d)}" |
65 | 65 | ||
66 | do_install_ptest() { | 66 | do_install_ptest() { |
67 | install ${UNPACKDIR}/test.sh ${D}${PTEST_PATH} | 67 | install ${UNPACKDIR}/test.sh ${D}${PTEST_PATH} |