From e1d0f2e46cce39e8419b5666d7ec9a3fff59828c Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Tue, 13 May 2025 03:19:00 -0700 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-core/coreutils/coreutils_9.6.bb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 () { # Tweak test d_type-check to use python3 instead of python sed -i "1s@.*@#!/usr/bin/python3@" ${D}${PTEST_PATH}/tests/d_type-check - + + # Fix for single-binary + for prog in ${D}${PTEST_PATH}/src/*; do + if [ -f $prog ]; then + sed -i "1s@#!.*/src/coreutils @#!${bindir}/coreutils @" $prog + fi + done + # handle multilib sed -i s:@libdir@:${libdir}:g ${D}${PTEST_PATH}/run-ptest } -- cgit v1.2.3-54-g00ecf