diff options
author | Peter Seebach <peter.seebach@windriver.com> | 2012-05-09 15:14:41 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-11 17:50:49 +0100 |
commit | b88a0e58766a5e43f2a8f24eed2f1549f9299966 (patch) | |
tree | 736c936d149194b90e5622b680e4854d99a7b38a /meta/classes/sanity.bbclass | |
parent | 4ba6a866323ed6f569da74f6c7be03f3709d6aa1 (diff) | |
download | poky-b88a0e58766a5e43f2a8f24eed2f1549f9299966.tar.gz |
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.
(From OE-Core rev: ac4201b714c83c614113bfa735d0a2fc6f64db99)
Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r-- | meta/classes/sanity.bbclass | 5 |
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): | |||
368 | if not check_app_exists("qemu-arm", e.data): | 368 | if not check_app_exists("qemu-arm", e.data): |
369 | messages = messages + "qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can't be found in PATH" | 369 | messages = messages + "qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can't be found in PATH" |
370 | 370 | ||
371 | if "." in data.getVar('PATH', e.data, True).split(":"): | 371 | paths = data.getVar('PATH', e.data, True).split(":") |
372 | messages = messages + "PATH contains '.' which will break the build, please remove this" | 372 | if "." in paths or "" in paths: |
373 | messages = messages + "PATH contains '.' or '', which will break the build, please remove this." | ||
373 | 374 | ||
374 | if data.getVar('TARGET_ARCH', e.data, True) == "arm": | 375 | if data.getVar('TARGET_ARCH', e.data, True) == "arm": |
375 | # This path is no longer user-readable in modern (very recent) Linux | 376 | # This path is no longer user-readable in modern (very recent) Linux |