[OE-core] [PATCH 1/1] waf.bbclass: Warn if waf doesn't exist
Joshua Watt
jpewhacker at gmail.com
Tue Mar 20 23:35:13 UTC 2018
On Mar 20, 2018 18:08, "Amanda Brindle" <amanda.r.brindle at intel.com> wrote:
Before, waf.bbclass would fail to catch FileNotFoundError. Now, it will
catch this error and warn that waf doesn't exist.
Fixes [YOCTO 12553]
Signed-off-by: Amanda Brindle <amanda.r.brindle at intel.com>
---
meta/classes/waf.bbclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/classes/waf.bbclass b/meta/classes/waf.bbclass
index f9a851d..5bd5913 100644
--- a/meta/classes/waf.bbclass
+++ b/meta/classes/waf.bbclass
@@ -15,6 +15,8 @@ python waf_preconfigure() {
d.setVar("WAF_EXTRA_CONF", "--bindir=${bindir}
--libdir=${libdir}")
except subprocess.CalledProcessError as e:
bb.warn("Unable to execute waf --version, exit code %d. Assuming
waf version without bindir/libdir support." % e.returncode)
+ except FileNotFoundError:
+ bb.warn("waf does not exist in %s" % subsrcdir)
}
FWIW, this looks good to me
do_configure[prefuncs] += "waf_preconfigure"
--
2.7.4
--
_______________________________________________
Openembedded-core mailing list
Openembedded-core at lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20180320/b8effc6f/attachment-0002.html>
More information about the Openembedded-core
mailing list