From: Changhyeok Bae <changhyeok.bae@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Amanda Brindle <amanda.r.brindle@intel.com>
Subject: [PATCH 1/2] waf.bbclass: Throw error if waf doesn't exist
Date: Tue, 27 Mar 2018 00:40:36 +0000 [thread overview]
Message-ID: <1522111237-1869-1-git-send-email-changhyeok.bae@gmail.com> (raw)
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
next reply other threads:[~2018-03-27 0:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-27 0:40 Changhyeok Bae [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1522111237-1869-1-git-send-email-changhyeok.bae@gmail.com \
--to=changhyeok.bae@gmail.com \
--cc=amanda.r.brindle@intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox