[OE-core] [PATCH 5/5] package.bbclass: fixup_perms - symlink bug fix
Richard Purdie
richard.purdie at linuxfoundation.org
Mon Jul 25 13:47:20 UTC 2011
From: Mark Hatle <mark.hatle at windriver.com>
We don't want to change the owner/mode of symlinks, as this may
affect the target of the link. Also broken links will fail as well.
Change to checking if the file is a link, and ignoring it.
Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
---
meta/classes/package.bbclass | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index f2950e2..0ca7509 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -637,7 +637,8 @@ python fixup_perms () {
fix_perms(each_dir, fs_perms_table[dir].mode, fs_perms_table[dir].uid, fs_perms_table[dir].gid, dir)
for f in files:
each_file = os.path.join(root, f)
- fix_perms(each_file, fs_perms_table[dir].fmode, fs_perms_table[dir].fuid, fs_perms_table[dir].fgid, dir)
+ if not os.path.islink(each_file):
+ fix_perms(each_file, fs_perms_table[dir].fmode, fs_perms_table[dir].fuid, fs_perms_table[dir].fgid, dir)
}
python split_and_strip_files () {
--
1.7.4.1
More information about the Openembedded-core
mailing list