<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 20, 2019, 11:20 AM Burton, Ross <<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is it easier to just always delete those files? Do they serve any<br>
useful purpose?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Probably not for our uses. I'll post a V2 unless someone complains</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Ross<br>
<br>
On Thu, 20 Jun 2019 at 16:47, Joshua Watt <<a href="mailto:jpewhacker@gmail.com" target="_blank" rel="noreferrer">jpewhacker@gmail.com</a>> wrote:<br>
><br>
> Bash has an internal "build number" that it tracks and automatically<br>
> increments ever time a given builds is made from the same sandbox.<br>
> However, this can make builds non-reproducible in the event that a build<br>
> directory is reused multiple times.<br>
><br>
> Remove the .build files after every build if reproducible builds have<br>
> been requested which will reset the build build number for the next<br>
> build.<br>
><br>
> Signed-off-by: Joshua Watt <<a href="mailto:JPEWhacker@gmail.com" target="_blank" rel="noreferrer">JPEWhacker@gmail.com</a>><br>
> ---<br>
> meta/recipes-extended/bash/bash.inc | 8 ++++++++<br>
> 1 file changed, 8 insertions(+)<br>
><br>
> diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc<br>
> index c91cc8ada8d..e2844dffbad 100644<br>
> --- a/meta/recipes-extended/bash/bash.inc<br>
> +++ b/meta/recipes-extended/bash/bash.inc<br>
> @@ -39,6 +39,14 @@ RDEPENDS_${PN}-ptest_append_libc-glibc = " \<br>
><br>
> CACHED_CONFIGUREVARS += "headersdir=${includedir}/${PN}"<br>
><br>
> +do_compile_prepend() {<br>
> + # If reproducible builds are requested, remove any leftover .build files.<br>
> + # This ensures that bash always has the same version number<br>
> + if [ "${BUILD_REPRODUCIBLE_BINARIES}" == "1" ]; then<br>
> + rm -f ${B}/.build<br>
> + fi<br>
> +}<br>
> +<br>
> do_compile_ptest () {<br>
> oe_runmake buildtest<br>
> }<br>
> --<br>
> 2.21.0<br>
><br>
> --<br>
> _______________________________________________<br>
> Openembedded-core mailing list<br>
> <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank" rel="noreferrer">Openembedded-core@lists.openembedded.org</a><br>
> <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</blockquote></div></div></div>