<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 &lt;<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>&gt; 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&#39;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 &lt;<a href="mailto:jpewhacker@gmail.com" target="_blank" rel="noreferrer">jpewhacker@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Bash has an internal &quot;build number&quot; that it tracks and automatically<br>
&gt; increments ever time a given builds is made from the same sandbox.<br>
&gt; However, this can make builds non-reproducible in the event that a build<br>
&gt; directory is reused multiple times.<br>
&gt;<br>
&gt; Remove the .build files after every build if reproducible builds have<br>
&gt; been requested which will reset the build build number for the next<br>
&gt; build.<br>
&gt;<br>
&gt; Signed-off-by: Joshua Watt &lt;<a href="mailto:JPEWhacker@gmail.com" target="_blank" rel="noreferrer">JPEWhacker@gmail.com</a>&gt;<br>
&gt; ---<br>
&gt;  meta/recipes-extended/bash/bash.inc | 8 ++++++++<br>
&gt;  1 file changed, 8 insertions(+)<br>
&gt;<br>
&gt; diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc<br>
&gt; index c91cc8ada8d..e2844dffbad 100644<br>
&gt; --- a/meta/recipes-extended/bash/bash.inc<br>
&gt; +++ b/meta/recipes-extended/bash/bash.inc<br>
&gt; @@ -39,6 +39,14 @@ RDEPENDS_${PN}-ptest_append_libc-glibc = &quot; \<br>
&gt;<br>
&gt;  CACHED_CONFIGUREVARS += &quot;headersdir=${includedir}/${PN}&quot;<br>
&gt;<br>
&gt; +do_compile_prepend() {<br>
&gt; +    # If reproducible builds are requested, remove any leftover .build files.<br>
&gt; +    # This ensures that bash always has the same version number<br>
&gt; +    if [ &quot;${BUILD_REPRODUCIBLE_BINARIES}&quot; == &quot;1&quot; ]; then<br>
&gt; +        rm -f ${B}/.build<br>
&gt; +    fi<br>
&gt; +}<br>
&gt; +<br>
&gt;  do_compile_ptest () {<br>
&gt;         oe_runmake buildtest<br>
&gt;  }<br>
&gt; --<br>
&gt; 2.21.0<br>
&gt;<br>
&gt; --<br>
&gt; _______________________________________________<br>
&gt; Openembedded-core mailing list<br>
&gt; <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank" rel="noreferrer">Openembedded-core@lists.openembedded.org</a><br>
&gt; <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>