]> code.ossystems Code Review - openembedded-core.git/commitdiff
python3-cryptography-vectors: Fix reproducibility
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Mar 2022 11:25:45 +0000 (11:25 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 15 Mar 2022 08:40:11 +0000 (08:40 +0000)
We regenerate the pycache files and the checksums in the manifest are incorrect.
Remove them to avoid this and ensure reproducibility.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3-cryptography-vectors_36.0.1.bb

index b9e6b811c37a6ddc9130da35e48464a3069588cc..da6718fb90cc60c4fd2b3512c37ca256cb2c678b 100644 (file)
@@ -19,6 +19,11 @@ DEPENDS += " \
     ${PYTHON_PN}-cryptography \
 "
 
+do_install:append () {
+       # Remove the sha256 checksum lines for pycache files
+       sed ${D}${PYTHON_SITEPACKAGES_DIR}/cryptography_vectors-${PV}.dist-info/RECORD -e '/__pycache__/d' -i
+}
+
 BBCLASSEXTEND = "native nativesdk"
 
 UPSTREAM_CHECK_REGEX = ""