[oe-commits] Marcin Juszkiewicz : sanity.bbclass: make a warning about dash being used as /bin/sh (from Poky)
GIT User account
git at amethyst.openembedded.net
Wed Feb 4 11:13:50 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: e0ed375a8dfb292bdd72f5891917ef81f361f15c
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=e0ed375a8dfb292bdd72f5891917ef81f361f15c
Author: Marcin Juszkiewicz <hrw at openembedded.org>
Date: Wed Feb 4 12:11:27 2009 +0100
sanity.bbclass: make a warning about dash being used as /bin/sh (from Poky)
gtk+ fails with dash
---
classes/sanity.bbclass | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index e442bf1..da3e630 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -112,6 +112,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"
More information about the Openembedded-commits
mailing list