<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Mar 20, 2018 18:08, "Amanda Brindle" <<a href="mailto:amanda.r.brindle@intel.com">amanda.r.brindle@intel.com</a>> 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't exist.<br>
<br>
Fixes [YOCTO 12553]<br>
<br>
Signed-off-by: Amanda Brindle <<a href="mailto:amanda.r.brindle@intel.com">amanda.r.brindle@intel.com</a>><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("WAF_EXTRA_CONF", "--bindir=${bindir} --libdir=${libdir}")<br>
except subprocess.CalledProcessError as e:<br>
bb.warn("Unable to execute waf --version, exit code %d. Assuming waf version without bindir/libdir support." % e.returncode)<br>
+ except FileNotFoundError:<br>
+ bb.warn("waf does not exist in %s" % 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] += "waf_preconfigure"<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>