From: Richard Purdie Date: Sun, 12 Aug 2007 23:48:04 +0000 (+0000) Subject: sanity.bbclass: Sync with Poky for umask check X-Git-Tag: Release-2010-05/1~8998 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4beefd8d587634df350d0e4a9f366fc9e2c98203;p=openembedded.git sanity.bbclass: Sync with Poky for umask check --- diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass index f0333b1cf7..479abce7fa 100644 --- a/classes/sanity.bbclass +++ b/classes/sanity.bbclass @@ -65,8 +65,9 @@ def check_sanity(e): if data.getVar('TARGET_OS', e.data, True) == 'INVALID': messages = messages + 'Please set TARGET_OS directly, or choose a MACHINE or DISTRO that does so.\n' + assume_provided = data.getVar('ASSUME_PROVIDED', e.data , True).split() # Check user doesn't have ASSUME_PROVIDED = instead of += in local.conf - if "diffstat-native" not in data.getVar('ASSUME_PROVIDED', e.data, True).split(): + if "diffstat-native" not in assume_provided: messages = messages + 'Please use ASSUME_PROVIDED +=, not ASSUME_PROVIDED = in your local.conf\n' # Check that the MACHINE is valid @@ -99,6 +100,11 @@ def check_sanity(e): missing = missing.rstrip(',') messages = messages + "Please install following missing utilities: %s\n" % missing + omask = os.umask(022) + if omask & 0755: + messages = messages + "Please use a umask which allows a+rx and u+rwx\n" + os.umask(omask) + oes_bb_conf = data.getVar( 'OES_BITBAKE_CONF', e.data, True ) if not oes_bb_conf: messages = messages + 'You do not include OpenEmbeddeds version of conf/bitbake.conf\n'