Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] waf.bbclass: Throw error if waf doesn't exist
@ 2018-03-27  0:40 Changhyeok Bae
  2018-03-27  0:40 ` [PATCH 2/2] distcc: Change SRC_URI Changhyeok Bae
  2018-03-27  1:05 ` ✗ patchtest: failure for "waf.bbclass: Throw error if wa..." and 1 more Patchwork
  0 siblings, 2 replies; 4+ messages in thread
From: Changhyeok Bae @ 2018-03-27  0:40 UTC (permalink / raw)
  To: openembedded-core; +Cc: Amanda Brindle

From: Amanda Brindle <amanda.r.brindle@intel.com>

Before, waf.bbclass would fail to catch FileNotFoundError. Now, it will
catch this error and say that waf doesn't exist.

Fixes [YOCTO 12553]

Signed-off-by: Amanda Brindle <amanda.r.brindle@intel.com>
Signed-off-by: Ross Burton <ross.burton@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..19e9376 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.fatal("waf does not exist in %s" % subsrcdir)
 }
 
 do_configure[prefuncs] += "waf_preconfigure"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-27  1:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-27  0:40 [PATCH 1/2] waf.bbclass: Throw error if waf doesn't exist Changhyeok Bae
2018-03-27  0:40 ` [PATCH 2/2] distcc: Change SRC_URI Changhyeok Bae
2018-03-27  0:43   ` Changhyeok Bae
2018-03-27  1:05 ` ✗ patchtest: failure for "waf.bbclass: Throw error if wa..." and 1 more Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox