From: Richard Purdie Date: Mon, 13 Sep 2021 22:56:49 +0000 (+0100) Subject: bash: Ensure deterministic build X-Git-Tag: yocto-3.4~127 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=13a039e03195a47c750d5901e96fe81cf523481f;p=openembedded-core.git bash: Ensure deterministic build Bash keeps a count of the number of times make was invoked on a directory and changes the output versioning accordingly. We want deterministic output so disable this behaviour. Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc index ca788e1672..18874a0e24 100644 --- a/meta/recipes-extended/bash/bash.inc +++ b/meta/recipes-extended/bash/bash.inc @@ -62,6 +62,11 @@ do_compile_ptest () { oe_runmake buildtest } +do_install:prepend () { + # Ensure determinism as this counter increases for each make call + rm -f ${B}/.build +} + do_install:append () { # Move /usr/bin/bash to /bin/bash, if need if [ "${base_bindir}" != "${bindir}" ]; then