]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass: Set umask 022 also for do_unpack task
authorMartin Jansa <martin.jansa@gmail.com>
Fri, 22 Nov 2013 21:19:03 +0000 (22:19 +0100)
committerRobert Yang <liezhi.yang@windriver.com>
Sun, 26 Jan 2014 06:07:56 +0000 (14:07 +0800)
* 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@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/classes/base.bbclass

index d0793b671e536534d1e4de6dc2a9fe6721dd2291..1f3249d248be30ded49f08c2c76d9654d5ff47ac 100644 (file)
@@ -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')