<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 16, 2016 at 6:37 PM, Randy MacLeod <span dir="ltr">&lt;<a href="mailto:Randy.MacLeod@windriver.com" target="_blank">Randy.MacLeod@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":21p" class="a3s aXjCH m15735cd0fa519af0">Without a packageconfig dependency for the file utility, there&#39;s<br>
a very rare compile faiure caused by a race where the magic.h<br>
header file is not found:<br>
<br>
 ../../../git/lib/support/<wbr>plausible.c:33:19: fatal error: magic.h: No such file or directory<br>
<br>
This file, plausible.c, is part of libsupport.a which is used by<br>
many binaries produced by the e2fsprogs package. plausible.c attempts<br>
to dynamically load libmagic.so if the e2fsprogs configure detects<br>
that magic was available. Adding the packageconfig will eliminate<br>
the build as well as the possible configure-time race condition.<br>
<br>
Signed-off-by: Randy MacLeod &lt;<a href="mailto:Randy.MacLeod@windriver.com">Randy.MacLeod@windriver.com</a>&gt;<br>
---<br>
 meta/recipes-devtools/<wbr>e2fsprogs/<a href="http://e2fsprogs_1.43.bb" rel="noreferrer" target="_blank">e2fsprogs_1.43.bb</a> | 1 +<br>
 1 file changed, 1 insertion(+)<br>
<br>
diff --git a/meta/recipes-devtools/<wbr>e2fsprogs/<a href="http://e2fsprogs_1.43.bb" rel="noreferrer" target="_blank">e2fsprogs_1.43.bb</a> b/meta/recipes-devtools/<wbr>e2fsprogs/<a href="http://e2fsprogs_1.43.bb" rel="noreferrer" target="_blank">e2fsprogs_1.43.bb</a><br>
index f4855bc..1707cb9 100644<br>
--- a/meta/recipes-devtools/<wbr>e2fsprogs/<a href="http://e2fsprogs_1.43.bb" rel="noreferrer" target="_blank">e2fsprogs_1.43.bb</a><br>
+++ b/meta/recipes-devtools/<wbr>e2fsprogs/<a href="http://e2fsprogs_1.43.bb" rel="noreferrer" target="_blank">e2fsprogs_1.43.bb</a><br>
@@ -23,6 +23,7 @@ EXTRA_OECONF += &quot;--libdir=${base_libdir} --sbindir=${base_sbindir} \<br>
 EXTRA_OECONF_darwin = &quot;--libdir=${base_libdir} --sbindir=${base_sbindir} --enable-bsd-shlibs&quot;<br>
<br>
 PACKAGECONFIG ??= &quot;&quot;<br>
+PACKAGECONFIG[file] = &#39;,,file&#39;</div></blockquote></div><br>This isn’t going to be good enough. You aren’t explicitly enabling/disabling the option, so it’ll still detect based on what’s in the sysroot, so recipe build order will result in non-deterministic behavior.<br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>