[oe-commits] Martin Jansa : base.bbclass: Set umask 022 also for do_unpack task
git at git.openembedded.org
git at git.openembedded.org
Sun Feb 9 11:01:49 UTC 2014
Module: openembedded-core.git
Branch: dora
Commit: 8ce99fa4e3868450d7339edf5e8e02bd99117893
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8ce99fa4e3868450d7339edf5e8e02bd99117893
Author: Martin Jansa <martin.jansa at gmail.com>
Date: Fri Nov 22 22:19:03 2013 +0100
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 master rev: c9289c506633ffe5c482000d8d225e45454c064d)
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
meta/classes/base.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index d0793b6..1f3249d 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -485,6 +485,7 @@ python () {
# If we're building a target package we need to use fakeroot (pseudo)
# in order to capture permissions, owners, groups and special files
if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
+ d.setVarFlag('do_unpack', 'umask', 022)
d.setVarFlag('do_configure', 'umask', 022)
d.setVarFlag('do_compile', 'umask', 022)
d.appendVarFlag('do_install', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')
More information about the Openembedded-commits
mailing list