summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-29 11:22:56 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-09 11:04:12 +0000
commitef00c0c0b5d1c2843d96177862605f27502f2349 (patch)
treeabf29802c7f2de0526e890bfb8e3ad5e102bae35 /meta/classes
parent675d4b4c0e7f0d608340329e3003bbe43d819291 (diff)
downloadpoky-ef00c0c0b5d1c2843d96177862605f27502f2349.tar.gz
base/gcc-common: Ensure umask setting is consistent for shared workdir
gcc has cross and target components with a shared workdir. The unpack umask settings need to match for all of these. We need to use strings in each case to ensure the sstate code matches them correctly. This patch tweaks various things to ensure the change adding the unpack umask change doesn't break the compiler builds. (From OE-Core master rev: 67162438ee9c402b23c32853af9d313949eb6e4a) (From OE-Core rev: 3e8776e3fc09ba11867457e0be6b4c3a4a01e2c6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/base.bbclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 1f3249d248..73920fde47 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -485,15 +485,15 @@ python () {
485 # If we're building a target package we need to use fakeroot (pseudo) 485 # If we're building a target package we need to use fakeroot (pseudo)
486 # in order to capture permissions, owners, groups and special files 486 # in order to capture permissions, owners, groups and special files
487 if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d): 487 if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
488 d.setVarFlag('do_unpack', 'umask', 022) 488 d.setVarFlag('do_unpack', 'umask', '022')
489 d.setVarFlag('do_configure', 'umask', 022) 489 d.setVarFlag('do_configure', 'umask', '022')
490 d.setVarFlag('do_compile', 'umask', 022) 490 d.setVarFlag('do_compile', 'umask', '022')
491 d.appendVarFlag('do_install', 'depends', ' virtual/fakeroot-native:do_populate_sysroot') 491 d.appendVarFlag('do_install', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')
492 d.setVarFlag('do_install', 'fakeroot', 1) 492 d.setVarFlag('do_install', 'fakeroot', 1)
493 d.setVarFlag('do_install', 'umask', 022) 493 d.setVarFlag('do_install', 'umask', '022')
494 d.appendVarFlag('do_package', 'depends', ' virtual/fakeroot-native:do_populate_sysroot') 494 d.appendVarFlag('do_package', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')
495 d.setVarFlag('do_package', 'fakeroot', 1) 495 d.setVarFlag('do_package', 'fakeroot', 1)
496 d.setVarFlag('do_package', 'umask', 022) 496 d.setVarFlag('do_package', 'umask', '022')
497 d.setVarFlag('do_package_setscene', 'fakeroot', 1) 497 d.setVarFlag('do_package_setscene', 'fakeroot', 1)
498 d.appendVarFlag('do_package_setscene', 'depends', ' virtual/fakeroot-native:do_populate_sysroot') 498 d.appendVarFlag('do_package_setscene', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')
499 d.setVarFlag('do_devshell', 'fakeroot', 1) 499 d.setVarFlag('do_devshell', 'fakeroot', 1)