Skip to contentSkip to conversation

meta-toolchain: fix directories rights

PATCH In review Eric Bénard 2 participants 2 messages Dec 9, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 recipes/meta/meta-toolchain.bb |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
recipes/meta/meta-toolchain.bb +2 -0
index 82918ad..e949432 100644
@@ -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 .
 }
 
Signature · 1 line
1.6.3.3
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Eric Bénard

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.

Quoted 28 lines

---
 recipes/meta/meta-toolchain.bb |    2 ++

 1 files changed, 2 insertions(+), 0 deletions(-)
recipes/meta/meta-toolchain.bb +1 -0
index 82918ad..e949432 100644
@@ -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 . }

--
1.6.3.3

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel