]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
package.bbclass: ensure correct modes on directories ChenQi/package-file-modes
authorChen Qi <Qi.Chen@windriver.com>
Thu, 17 Jul 2014 01:58:37 +0000 (21:58 -0400)
committerChen Qi <Qi.Chen@windriver.com>
Thu, 17 Jul 2014 02:05:49 +0000 (10:05 +0800)
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>
meta/classes/package.bbclass

index 26a20d1ff5aef1e5d06ecac8508c8b52ff059b94..7e85af4aa2bdaa31c775f6105f45dcfa52078cc2 100644 (file)
@@ -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)