]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Sep 2021 08:48:37 +0000 (09:48 +0100)
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>
meta/recipes-extended/bash/bash.inc

index ca788e1672d18cff3a2a1291928845fab1aef8af..18874a0e24dcfea1373c830ec5f7acf59ef5910a 100644 (file)
@@ -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