]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
curl: Fix determinism issues in ptest package
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Jul 2022 17:00:37 +0000 (18:00 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 16 Jul 2022 06:40:30 +0000 (07:40 +0100)
NROFF can take different values depending on the filesystem layout of the
host system and this leaks onto the target ptest package through the
Makefiles. Since ptest doesn't use them, delete them to resovle that issue.

Also ensure the task can rerun even if it already deleted configurehelp.pm

[YOCTO #14863]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/curl/curl_7.84.0.bb

index 28b09ef01736ea630cbeafd4ca2a0cd388cff840..75417cd1bc54fb0b20a2c0a259d606d8e62a4639 100644 (file)
@@ -93,9 +93,10 @@ do_compile_ptest() {
 
 do_install_ptest() {
        cat  ${WORKDIR}/disable-tests >> ${S}/tests/data/DISABLED
-       rm  ${B}/tests/configurehelp.pm
+       rm -f ${B}/tests/configurehelp.pm
        cp -rf ${B}/tests ${D}${PTEST_PATH}
        cp -rf ${S}/tests ${D}${PTEST_PATH}
+       find ${D}${PTEST_PATH}/ -type f -name Makefile.am -o -name Makefile.in -o -name Makefile -delete
        install -d ${D}${PTEST_PATH}/src
        ln -sf ${bindir}/curl   ${D}${PTEST_PATH}/src/curl
        cp -rf ${D}${bindir}/curl-config ${D}${PTEST_PATH}