summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-07 21:10:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-08 23:50:34 +0100
commit3782ae39924b48f16bbfd1312bb9b0fa66e07f79 (patch)
treeef7a0da78faa38dff3cf64c59f7e6f2abba06b20
parent122b8e0ceade6876efce7496a0c0873db48eb024 (diff)
downloadpoky-3782ae39924b48f16bbfd1312bb9b0fa66e07f79.tar.gz
libgcrypt: Fix reproducibility issues in ptest
The recent ptest addition was causing reproducibility tests to fail. Remove the problematic files as they clearly aren't needed on target to run the ptests. Hack the Makefile so that it doesn't try to rerun configure and similar. Also add a missing dependency on make. (From OE-Core rev: 6936e44d10bbad1fae46406943db490791739f87) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/libgcrypt/libgcrypt_1.10.1.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-support/libgcrypt/libgcrypt_1.10.1.bb b/meta/recipes-support/libgcrypt/libgcrypt_1.10.1.bb
index f9dc52393f..f7108013d3 100644
--- a/meta/recipes-support/libgcrypt/libgcrypt_1.10.1.bb
+++ b/meta/recipes-support/libgcrypt/libgcrypt_1.10.1.bb
@@ -17,7 +17,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
17 " 17 "
18 18
19DEPENDS = "libgpg-error" 19DEPENDS = "libgpg-error"
20RDEPENDS:${PN}-ptest = "bash" 20RDEPENDS:${PN}-ptest = "bash make"
21 21
22UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html" 22UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html"
23SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.bz2 \ 23SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.bz2 \
@@ -60,6 +60,12 @@ do_install_ptest() {
60 cp -r --preserve=mode,links -v ${B} ${D}${PTEST_PATH} 60 cp -r --preserve=mode,links -v ${B} ${D}${PTEST_PATH}
61 rm ${D}${PTEST_PATH}/build/cipher/gost-s-box 61 rm ${D}${PTEST_PATH}/build/cipher/gost-s-box
62 rm ${D}${PTEST_PATH}/build/doc/yat2m 62 rm ${D}${PTEST_PATH}/build/doc/yat2m
63 rm ${D}${PTEST_PATH}/build/libtool
64 rm ${D}${PTEST_PATH}/build/config.status
65 rm ${D}${PTEST_PATH}/build/config.log
66 rm ${D}${PTEST_PATH}/build/src/mpicalc
67 rm ${D}${PTEST_PATH}/${BP}/autom4te* -rf
68 sed -i -e 's/Makefile:.*/Makefile-disabled:/' ${D}${PTEST_PATH}/build/Makefile
63 find ${D}/${PTEST_PATH}/build -name "*.cmake" -or -name "Makefile" \ 69 find ${D}/${PTEST_PATH}/build -name "*.cmake" -or -name "Makefile" \
64 | xargs sed -e "s|${WORKDIR}|${PTEST_PATH}|g" -e "s|${WORKDIR}/recipe-sysroot-native||g" -i 70 | xargs sed -e "s|${WORKDIR}|${PTEST_PATH}|g" -e "s|${WORKDIR}/recipe-sysroot-native||g" -i
65} 71}