summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorJoshua Watt <jpewhacker@gmail.com>2019-06-21 08:33:56 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-24 10:36:28 +0100
commit65e5b33a252ecd59200577c7b0ed918124fe770f (patch)
treeced9c32f7c9f8510a534832524c29062d300d579 /meta/recipes-extended
parent08be264c8d132dc1d6f7e6ed0df57d269699edc8 (diff)
downloadpoky-65e5b33a252ecd59200577c7b0ed918124fe770f.tar.gz
bash: Remove .build files for reproducible builds
Bash has an internal "build number" that it tracks and automatically increments ever time a given builds is made from the same sandbox. However, this can make builds non-reproducible in the event that a build directory is reused multiple times. Remove the .build files after every build if reproducible builds have been requested which will reset the build build number for the next build. (From OE-Core rev: 9754be5c22de877bd53226908d03d2eef5751808) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/bash/bash.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc
index c91cc8ada8..039b8687a2 100644
--- a/meta/recipes-extended/bash/bash.inc
+++ b/meta/recipes-extended/bash/bash.inc
@@ -39,6 +39,12 @@ RDEPENDS_${PN}-ptest_append_libc-glibc = " \
39 39
40CACHED_CONFIGUREVARS += "headersdir=${includedir}/${PN}" 40CACHED_CONFIGUREVARS += "headersdir=${includedir}/${PN}"
41 41
42do_compile_prepend() {
43 # Remove any leftover .build files. This ensures that bash always has the
44 # same version number and keeps builds reproducible
45 rm -f ${B}/.build
46}
47
42do_compile_ptest () { 48do_compile_ptest () {
43 oe_runmake buildtest 49 oe_runmake buildtest
44} 50}