From 8c56bc9a03bea6877eb81b9584fbf9ed9b45910f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Eric=20B=C3=A9nard?= Date: Thu, 9 Dec 2010 17:07:42 +0100 Subject: [PATCH] meta-toolchain: fix directories rights MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Acked-by: Khem Raj --- recipes/meta/meta-toolchain.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/meta/meta-toolchain.bb b/recipes/meta/meta-toolchain.bb index 82918addec..e949432d18 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 . } -- 2.39.5