diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2025-05-13 03:19:00 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-15 10:55:26 +0100 |
commit | e1d0f2e46cce39e8419b5666d7ec9a3fff59828c (patch) | |
tree | 9955d8be1d54ca7f7b097c01306d56c687dedfd4 | |
parent | 7d61d49a2f298f3134a1932a09828165be213412 (diff) | |
download | poky-e1d0f2e46cce39e8419b5666d7ec9a3fff59828c.tar.gz |
coreutils: Fix file-rdeps for single-binary
Fixed:
DISTRO_FEATURES:append = " ptest"
PACKAGECONFIG:append:pn-coreutils = " single-binary"
$ bitbake coreutils
ERROR: coreutils-9.6-r0 do_package_qa: QA Issue: /usr/lib/coreutils/ptest/src/yes contained in package coreutils-ptest requires /path/to//tmp/work/core2-64-poky-linux/coreutils/9.6/build/src/coreutils, but no providers found in RDEPENDS:coreutils-ptest? [file-rdeps]
(From OE-Core rev: 5174ec4a82a66b49ff7a8988ab52731b775bffb6)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/coreutils/coreutils_9.6.bb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/recipes-core/coreutils/coreutils_9.6.bb b/meta/recipes-core/coreutils/coreutils_9.6.bb index 6e1867f3e4..3eb0c6fd1b 100644 --- a/meta/recipes-core/coreutils/coreutils_9.6.bb +++ b/meta/recipes-core/coreutils/coreutils_9.6.bb | |||
@@ -211,7 +211,14 @@ do_install_ptest () { | |||
211 | 211 | ||
212 | # Tweak test d_type-check to use python3 instead of python | 212 | # Tweak test d_type-check to use python3 instead of python |
213 | sed -i "1s@.*@#!/usr/bin/python3@" ${D}${PTEST_PATH}/tests/d_type-check | 213 | sed -i "1s@.*@#!/usr/bin/python3@" ${D}${PTEST_PATH}/tests/d_type-check |
214 | 214 | ||
215 | # Fix for single-binary | ||
216 | for prog in ${D}${PTEST_PATH}/src/*; do | ||
217 | if [ -f $prog ]; then | ||
218 | sed -i "1s@#!.*/src/coreutils @#!${bindir}/coreutils @" $prog | ||
219 | fi | ||
220 | done | ||
221 | |||
215 | # handle multilib | 222 | # handle multilib |
216 | sed -i s:@libdir@:${libdir}:g ${D}${PTEST_PATH}/run-ptest | 223 | sed -i s:@libdir@:${libdir}:g ${D}${PTEST_PATH}/run-ptest |
217 | } | 224 | } |