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 }