From 7445d676db8b2e76dc958607ac7c86580f56649e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 21 Apr 2008 22:53:20 +0000 Subject: 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 --- meta/classes/sanity.bbclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 3368a062a..cff2ad390 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" -- cgit v1.2.3