<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Mar 20, 2018 18:08, &quot;Amanda Brindle&quot; &lt;<a href="mailto:amanda.r.brindle@intel.com">amanda.r.brindle@intel.com</a>&gt; wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Before, waf.bbclass would fail to catch FileNotFoundError. Now, it will<br>
catch this error and warn that waf doesn&#39;t exist.<br>
<br>
Fixes [YOCTO 12553]<br>
<br>
Signed-off-by: Amanda Brindle &lt;<a href="mailto:amanda.r.brindle@intel.com">amanda.r.brindle@intel.com</a>&gt;<br>
---<br>
<div class="quoted-text"> meta/classes/waf.bbclass | 2 ++<br>
 1 file changed, 2 insertions(+)<br>
<br>
</div>diff --git a/meta/classes/waf.bbclass b/meta/classes/waf.bbclass<br>
index f9a851d..5bd5913 100644<br>
--- a/meta/classes/waf.bbclass<br>
+++ b/meta/classes/waf.bbclass<br>
@@ -15,6 +15,8 @@ python waf_preconfigure() {<br>
             d.setVar(&quot;WAF_EXTRA_CONF&quot;, &quot;--bindir=${bindir} --libdir=${libdir}&quot;)<br>
     except subprocess.CalledProcessError as e:<br>
         bb.warn(&quot;Unable to execute waf --version, exit code %d. Assuming waf version without bindir/libdir support.&quot; % e.returncode)<br>
+    except FileNotFoundError:<br>
+        bb.warn(&quot;waf does not exist in %s&quot; % subsrcdir)<br>
 }<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">FWIW, this looks good to me</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
 do_configure[prefuncs] += &quot;waf_preconfigure&quot;<br>
<div class="elided-text">--<br>
2.7.4<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</div></blockquote></div><br></div></div></div>