aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-07-16 21:58:37 -0400
committerChen Qi <Qi.Chen@windriver.com>2014-07-17 10:05:49 +0800
commit8a2f5d0e429d76a916afc1177cd0d74acadc20f0 (patch)
treef45a210cc6587c2b53211455e55e5e88b404b30f
parent846bc50fde11bbb36c8eb5b2e3ae6bb644c037f3 (diff)
downloadopenembedded-core-contrib-ChenQi/package-file-modes.tar.gz
openembedded-core-contrib-ChenQi/package-file-modes.tar.bz2
openembedded-core-contrib-ChenQi/package-file-modes.zip
package.bbclass: ensure correct modes on directoriesChenQi/package-file-modes
Previously, when we create directories in populate_packages, the directory modes are not all correct. Take the base-files recipe as an example. The directory package/home has mode 2755, but packages-split/base-files/home has mode 0755. So after using creating directory, we need to use chmod to ensure it gets the correct mode. [YOCTO #6517] Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
-rw-r--r--meta/classes/package.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 26a20d1ff5..7e85af4aa2 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1019,6 +1019,7 @@ python populate_packages () {
dest = os.path.join(dest, p)
fstat = cpath.stat(src)
os.mkdir(dest, fstat.st_mode)
+ os.chmod(dest, fstat.st_mode)
os.chown(dest, fstat.st_uid, fstat.st_gid)
if p not in seen:
seen.append(p)