* [PATCH 0/1] package.bbclass: ensure correct modes on directories
@ 2014-07-17 2:08 Chen Qi
2014-07-17 2:08 ` [PATCH 1/1] " Chen Qi
0 siblings, 1 reply; 3+ messages in thread
From: Chen Qi @ 2014-07-17 2:08 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 846bc50fde11bbb36c8eb5b2e3ae6bb644c037f3:
ltp: use "foreign" automake strictness (2014-07-16 10:27:16 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib ChenQi/package-file-modes
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/package-file-modes
Chen Qi (1):
package.bbclass: ensure correct modes on directories
meta/classes/package.bbclass | 1 +
1 file changed, 1 insertion(+)
--
1.7.9.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] package.bbclass: ensure correct modes on directories
2014-07-17 2:08 [PATCH 0/1] package.bbclass: ensure correct modes on directories Chen Qi
@ 2014-07-17 2:08 ` Chen Qi
2014-07-18 13:31 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Chen Qi @ 2014-07-17 2:08 UTC (permalink / raw)
To: openembedded-core
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 | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 26a20d1..7e85af4 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)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-18 13:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-17 2:08 [PATCH 0/1] package.bbclass: ensure correct modes on directories Chen Qi
2014-07-17 2:08 ` [PATCH 1/1] " Chen Qi
2014-07-18 13:31 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox