summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQiu Tingting <qiutt@fujitsu.com>2023-04-19 09:27:59 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-04-27 14:41:31 +0100
commit074b39e7d5c17a8ea4fdf39b9b31b6369780d940 (patch)
treefd7e435f68b8edcbb13a5a08deeaf7129bab92f1
parent42acfb14bda182de20c0fc8541cbe0fd0d9dfd2a (diff)
downloadpoky-074b39e7d5c17a8ea4fdf39b9b31b6369780d940.tar.gz
coreutils: Delete gcc sysroot parameter for ptest on target
If gcc is installed in image, ptest result has 4 ERROR. ERROR: tests/rm/r-root.sh ERROR: tests/rm/rm-readdir-fail.sh ERROR: tests/cp/nfs-removal-race.sh ERROR: tests/ls/getxattr-speedup.sh r-root.log as an example: -------------------------- k.c:1:10: fatal error: stdio.h: No such file or directory 1 | #include <stdio.h> | ^~~~~~~~~ compilation terminated. r-root.sh: set-up failure: failed to build shared library ERROR tests/rm/r-root.sh (exit status: 99) -------------------------- reason: The run-ptest calls make cmd to run test cases. In these cases, k.c file is created and compiled by gcc before run. There is a stdio.h file in /usr/include/ directory. Normally, gcc has /usr/include as part of its default search path. But in Makefile, it has the "--sysroot=recipe-sysroot" parameter which makes it does not work. solution: Delete "--sysroot=recipe-sysroot" from Makefile. other: If gcc is not installed in image, these cases will be skipped. (From OE-Core rev: e8ccb880c85ec03d055f195f28ba6a838b4b93c7) Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/coreutils/coreutils_9.1.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/coreutils/coreutils_9.1.bb b/meta/recipes-core/coreutils/coreutils_9.1.bb
index 4807eefd04..e12a6d6797 100644
--- a/meta/recipes-core/coreutils/coreutils_9.1.bb
+++ b/meta/recipes-core/coreutils/coreutils_9.1.bb
@@ -193,6 +193,7 @@ do_install_ptest () {
193 sed -i '/^abs_top_builddir/s/= .*$/= \$\{PWD\}/g' ${D}${PTEST_PATH}/Makefile 193 sed -i '/^abs_top_builddir/s/= .*$/= \$\{PWD\}/g' ${D}${PTEST_PATH}/Makefile
194 sed -i '/^abs_top_srcdir/s/= .*$/= \$\{PWD\}/g' ${D}${PTEST_PATH}/Makefile 194 sed -i '/^abs_top_srcdir/s/= .*$/= \$\{PWD\}/g' ${D}${PTEST_PATH}/Makefile
195 sed -i '/^built_programs/s/ginstall/install/g' ${D}${PTEST_PATH}/Makefile 195 sed -i '/^built_programs/s/ginstall/install/g' ${D}${PTEST_PATH}/Makefile
196 sed -i '/^CC =/s/ --sysroot=.*recipe-sysroot/ /g' ${D}${PTEST_PATH}/Makefile
196 chmod -R 777 ${D}${PTEST_PATH} 197 chmod -R 777 ${D}${PTEST_PATH}
197 198
198 # Disable subcase stty-pairs.sh, it will cause test framework hang 199 # Disable subcase stty-pairs.sh, it will cause test framework hang