<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Oct 27, 2019, 4:58 AM Richard Purdie &lt;<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;ve been trying to figure out why we get a weird build failure with<br>
hash equivalence enabled. Armin has also been searching for an odd<br>
issue with warrior and the qemu tests. I may have a lead.<br>
<br>
If you build a standard qemu:<br>
<br>
&quot;bitbake qemu-system-native&quot;<br>
<br>
and save off the resulting qemu-system-XXX binaries, then add:<br>
<br>
PACKAGECONFIG_append_pn-qemu-system-native = &quot; gtk+&quot;<br>
PACKAGECONFIG_append_pn-qemu-system-native = &quot; virglrenderer&quot;<br>
PACKAGECONFIG_append_pn-qemu-system-native = &quot; glx&quot;<br>
<br>
to local.conf, then:<br>
<br>
&quot;bitbake qemu-system-native&quot;<br>
<br>
it rebuilds as expected, save off the qemu-system-XXX binaries,<br>
<br>
then remove the local.conf entries and:<br>
<br>
&quot;bitbake qemu-system-native -c configure -f&quot;<br>
&quot;bitbake qemu-system-native&quot;<br>
<br>
then save off the resulting qemu-system-XXX binaries, you&#39;ll find that<br>
whilst these first and last sets should match, they don&#39;t. Its obvious<br>
with &quot;ldd qemu-system-x86_64&quot; that the linked libraries persist from<br>
the second to third set when they should not.<br>
<br>
The reason is that when configuration changes, autotools.bbclass will<br>
wipe out ${B} however qemu doesn&#39;t use the autotools class and hence B<br>
is not cleaned for changes in configuration.<br>
<br>
We could abstract the pieces of autotools.bbclass which do this into a<br>
separate class, or, easier, have qemu&#39;s do_configure wipe ${B}.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Excellent catch. Any thoughts on how might be able to automate detection of such problems in the reproducible build QA test?</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>
Armin: This may be the issue you&#39;re searching for with warrior?<br>
<br>
Cheers,<br>
<br>
Richard<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>