meta-toolchain: fix directories rights
authorEric Bénard <eric@eukrea.com>
Thu, 9 Dec 2010 16:07:42 +0000 (17:07 +0100)
committerEric Bénard <eric@eukrea.com>
Thu, 9 Dec 2010 20:53:01 +0000 (21:53 +0100)
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@eukrea.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
recipes/meta/meta-toolchain.bb

index 82918ad..e949432 100644 (file)
@@ -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 .
 }