[oe-commits] Eric Bénard : meta-toolchain: fix directories rights

git version control git at git.openembedded.org
Thu Dec 9 20:57:07 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 8c56bc9a03bea6877eb81b9584fbf9ed9b45910f
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=8c56bc9a03bea6877eb81b9584fbf9ed9b45910f

Author: Eric Bénard <eric at eukrea.com>
Date:   Thu Dec  9 17:07:42 2010 +0100

meta-toolchain: fix directories rights

Actual sdk change rights of /usr and /usr/local to 775 when
untaring the archives with sudo ... giving group write access
to these directories.
This patch fix the rights before creating the archive.

Signed-off-by: Eric Bénard <eric at eukrea.com>
Acked-by: Khem Raj <raj.khem at gmail.com>

---

 recipes/meta/meta-toolchain.bb |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/recipes/meta/meta-toolchain.bb b/recipes/meta/meta-toolchain.bb
index 82918ad..e949432 100644
--- a/recipes/meta/meta-toolchain.bb
+++ b/recipes/meta/meta-toolchain.bb
@@ -171,8 +171,10 @@ do_populate_sdk() {
 	# Package it up
 	mkdir -p ${SDK_DEPLOY}
 	cd ${SDK_OUTPUT}
+	chmod -R go-w ${SDK_OUTPUT}
 	fakeroot tar cfj ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 .
 	cd ${SDK_OUTPUT2}
+	chmod -R go-w ${SDK_OUTPUT2}
 	fakeroot tar cfj ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}-extras.tar.bz2 .
 }
 





More information about the Openembedded-commits mailing list