diff options
author | Richard Purdie <richard@openedhand.com> | 2008-04-21 22:53:20 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-04-21 22:53:20 +0000 |
commit | 7445d676db8b2e76dc958607ac7c86580f56649e (patch) | |
tree | 9bb9e2335e09d29d2a6f6c60d5236411489bea28 /meta/classes | |
parent | 00bbe8da49a42282ea77885643c4d42a0e0228e4 (diff) | |
download | openembedded-core-7445d676db8b2e76dc958607ac7c86580f56649e.tar.gz openembedded-core-7445d676db8b2e76dc958607ac7c86580f56649e.tar.bz2 openembedded-core-7445d676db8b2e76dc958607ac7c86580f56649e.zip |
sanity.bbclass: Add a check for dash as /bin/sh and error if found
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4298 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/sanity.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 3368a062ac..cff2ad3907 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -104,6 +104,9 @@ def check_sanity(e): missing = missing.rstrip(',') messages = messages + "Please install following missing utilities: %s\n" % missing + if os.path.basename(os.readlink('/bin/sh')) == 'dash': + messages = messages + "Using dash as /bin/sh causes various subtle build problems, please use bash instead.\n" + omask = os.umask(022) if omask & 0755: messages = messages + "Please use a umask which allows a+rx and u+rwx\n" |