summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2012-05-09 15:14:41 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-11 17:49:53 +0100
commitac4201b714c83c614113bfa735d0a2fc6f64db99 (patch)
tree59045208d35a9c268d0f0cb1a2728835a73afc84 /meta/classes
parent0893457465e184550906844fbab2dec397201835 (diff)
downloadopenembedded-core-ac4201b714c83c614113bfa735d0a2fc6f64db99.tar.gz
openembedded-core-ac4201b714c83c614113bfa735d0a2fc6f64db99.tar.bz2
openembedded-core-ac4201b714c83c614113bfa735d0a2fc6f64db99.zip
sanity.bbclass: Detect empty $PATH components too
Empty components in $PATH have the same effect as a . in $PATH, and are a common side-effect of inserting a misspelled or unset shell variable in $PATH. Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sanity.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 635049ec97..05545f45f7 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -368,8 +368,9 @@ def check_sanity(e):
if not check_app_exists("qemu-arm", e.data):
messages = messages + "qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can't be found in PATH"
- if "." in data.getVar('PATH', e.data, True).split(":"):
- messages = messages + "PATH contains '.' which will break the build, please remove this"
+ paths = data.getVar('PATH', e.data, True).split(":")
+ if "." in paths or "" in paths:
+ messages = messages + "PATH contains '.' or '', which will break the build, please remove this."
if data.getVar('TARGET_ARCH', e.data, True) == "arm":
# This path is no longer user-readable in modern (very recent) Linux