summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2013-11-22 22:19:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-29 09:52:59 +0000
commit79fbb1f69815abd3b835678a8e4b9114f6f0290e (patch)
treec9dcfd2d71a7df70dba807c1eb75e85fe463eff2 /meta/classes
parentd340d29d43d0223d5e1bf9679a8d543465b30324 (diff)
downloadpoky-79fbb1f69815abd3b835678a8e4b9114f6f0290e.tar.gz
base.bbclass: Set umask 022 also for do_unpack task
* when git checkouts files from fetched clone it respects system umask and creates files with different permissions, if such files are copied to packages, resulting target images have also different permissions on them. * we need reproducible builds across different builders with different system umask, so set 022 umask [YOCTO #5590] (From OE-Core rev: c9289c506633ffe5c482000d8d225e45454c064d) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/base.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index d0793b671e..1f3249d248 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -485,6 +485,7 @@ 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_configure', 'umask', 022) 489 d.setVarFlag('do_configure', 'umask', 022)
489 d.setVarFlag('do_compile', 'umask', 022) 490 d.setVarFlag('do_compile', 'umask', 022)
490 d.appendVarFlag('do_install', 'depends', ' virtual/fakeroot-native:do_populate_sysroot') 491 d.appendVarFlag('do_install', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')