| Submitter | Eric BENARD |
|---|---|
| Date | Dec. 9, 2010, 4:11 p.m. |
| Message ID | <1291911060-8451-1-git-send-email-eric@eukrea.com> |
| Download | mbox | patch |
| Permalink | /patch/34/ |
| State | Accepted |
| Headers | show |
Comments
On Thu, Dec 9, 2010 at 8:11 AM, Eric Bénard <eric@eukrea.com> wrote: > 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 | 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 . > } > > -- > 1.6.3.3 > > > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel >
Patch
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 . }
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> --- recipes/meta/meta-toolchain.bb | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)