]> code.ossystems Code Review - openembedded-core.git/commitdiff
bash: Ensure deterministic build
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 13 Sep 2021 22:56:49 +0000 (23:56 +0100)
committerSteve Sakoman <steve@sakoman.com>
Fri, 24 Sep 2021 14:27:46 +0000 (04:27 -1000)
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 <richard.purdie@linuxfoundation.org>
(cherry picked from commit 13a039e03195a47c750d5901e96fe81cf523481f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-extended/bash/bash.inc

index c7cf8cddd32fbbd08efe988d7e5e96ba1aee4ee7..4e6176d2e68a7d86823e59763b50c4d28e231309 100644 (file)
@@ -49,6 +49,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