diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2023-07-02 01:56:05 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-07-10 11:36:34 +0100 |
commit | ad78defddfea7e9b5c24c86f3483ba9fbb93f33e (patch) | |
tree | e2c94583ff35e5998ac71e419afe517bb9b95aea /meta | |
parent | 17f02177e405cbb3a955bfea55eeb13ae6b906f4 (diff) | |
download | poky-ad78defddfea7e9b5c24c86f3483ba9fbb93f33e.tar.gz |
cpio: respect MLPREFIX for PACKAGE_WRITE_DEPS
* unlike DEPENDS/RDEPENDS the PACKAGE_WRITE_DEPS dependency isn't automatically
extended with MLPREFIX, causing lib32-cpio to depend on 64bit ptest-runner (and
all its deps)
* append it only for class-target to avoid nativesdk-cpio depending
on target ptest-runner (before this patch) and depending on non-existent
nativesdk-ptest-runner with this patch (as nativesdk.bbclass sets MLPREFIX to
"nativesdk-")
stdio: WARNING: Nothing PROVIDES 'nativesdk-ptest-runner'. Close matches:
stdio: WARNING: Nothing RPROVIDES 'nativesdk-cpio' (but virtual:nativesdk:/home/pokybuild/yocto-worker/a-full/build/meta/recipes-extended/cpio/cpio_2.14.bb RDEPENDS on or otherwise requires it)
stdio: WARNING: Nothing RPROVIDES 'nativesdk-cpio-dev' (but virtual:nativesdk:/home/pokybuild/yocto-worker/a-full/build/meta/recipes-extended/cpio/cpio_2.14.bb RDEPENDS on or otherwise requires it)
(From OE-Core rev: c74697e194fe07cb4a2fee45142ae626996fd294)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-extended/cpio/cpio_2.14.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-extended/cpio/cpio_2.14.bb b/meta/recipes-extended/cpio/cpio_2.14.bb index e55fb70cb1..45eb9de8e0 100644 --- a/meta/recipes-extended/cpio/cpio_2.14.bb +++ b/meta/recipes-extended/cpio/cpio_2.14.bb | |||
@@ -66,7 +66,7 @@ do_install_ptest_base:append() { | |||
66 | 66 | ||
67 | # The tests need to run as a non-root user, so pull in the ptest user | 67 | # The tests need to run as a non-root user, so pull in the ptest user |
68 | DEPENDS:append:class-target = "${@bb.utils.contains('PTEST_ENABLED', '1', ' ptest-runner', '', d)}" | 68 | DEPENDS:append:class-target = "${@bb.utils.contains('PTEST_ENABLED', '1', ' ptest-runner', '', d)}" |
69 | PACKAGE_WRITE_DEPS += "ptest-runner" | 69 | PACKAGE_WRITE_DEPS:append:class-target = " ${MLPREFIX}ptest-runner" |
70 | 70 | ||
71 | RDEPENDS:${PN}-ptest += "ptest-runner" | 71 | RDEPENDS:${PN}-ptest += "ptest-runner" |
72 | 72 | ||