summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-04-21 22:53:20 +0000
committerRichard Purdie <richard@openedhand.com>2008-04-21 22:53:20 +0000
commit7445d676db8b2e76dc958607ac7c86580f56649e (patch)
tree9bb9e2335e09d29d2a6f6c60d5236411489bea28 /meta/classes/sanity.bbclass
parent00bbe8da49a42282ea77885643c4d42a0e0228e4 (diff)
downloadpoky-7445d676db8b2e76dc958607ac7c86580f56649e.tar.gz
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/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass3
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):
104 missing = missing.rstrip(',') 104 missing = missing.rstrip(',')
105 messages = messages + "Please install following missing utilities: %s\n" % missing 105 messages = messages + "Please install following missing utilities: %s\n" % missing
106 106
107 if os.path.basename(os.readlink('/bin/sh')) == 'dash':
108 messages = messages + "Using dash as /bin/sh causes various subtle build problems, please use bash instead.\n"
109
107 omask = os.umask(022) 110 omask = os.umask(022)
108 if omask & 0755: 111 if omask & 0755:
109 messages = messages + "Please use a umask which allows a+rx and u+rwx\n" 112 messages = messages + "Please use a umask which allows a+rx and u+rwx\n"