From: Alexander Kanavin Date: Thu, 3 Dec 2020 13:37:21 +0000 (+0100) Subject: webkitgtk: fix reproducibility X-Git-Tag: 2020-04.5-dunfell~74 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=ea8fc9c19e6fd35fc6cb561ff03fd15dd1b064e0;p=openembedded-core.git webkitgtk: fix reproducibility Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie (cherry picked from commit 1e7c673ab8d14766190843c6d8747510b37c71bf) Signed-off-by: Steve Sakoman --- diff --git a/meta/recipes-sato/webkit/webkitgtk_2.28.2.bb b/meta/recipes-sato/webkit/webkitgtk_2.28.2.bb index 9cfec83ec7..cf6b2ffae7 100644 --- a/meta/recipes-sato/webkit/webkitgtk_2.28.2.bb +++ b/meta/recipes-sato/webkit/webkitgtk_2.28.2.bb @@ -131,3 +131,15 @@ GI_DATA_ENABLED_libc-musl_armv7ve = "False" # Can't be built with ccache CCACHE_DISABLE = "1" + +PACKAGE_PREPROCESS_FUNCS += "src_package_preprocess" +src_package_preprocess () { + # Trim build paths from comments in generated sources to ensure reproducibility + sed -i -e "s,${WORKDIR},,g" \ + ${B}/DerivedSources/webkit2gtk/webkit2/*.cpp \ + ${B}/DerivedSources/ForwardingHeaders/JavaScriptCore/*.h \ + ${B}/DerivedSources/JavaScriptCore/*.h \ + ${B}/DerivedSources/JavaScriptCore/yarr/*.h \ + ${B}/DerivedSources/MiniBrowser/*.c +} +