prepstrip: add writable workaround for everyone
The writable issue shows up when using `ebuild` as non-root users
in non-prefix setups. So always do it. Signed-off-by: Mike Frysinger <vapier@gentoo.org> --- bin/ebuild-helpers/prepstrip | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/bin/ebuild-helpers/prepstrip b/bin/ebuild-helpers/prepstrip index 1d7b3d2..ee547f2 100755 --- a/bin/ebuild-helpers/prepstrip +++ b/bin/ebuild-helpers/prepstrip @@ -224,7 +224,7 @@ do # unwritable objects. Make them temporarily writable for the # stripping. was_not_writable=false - if [[ -n ${EPREFIX} && ! -w ${x} ]] ; then + if [[ ! -w ${x} ]] ; then was_not_writable=true chmod u+w "${x}" fi -- 1.7.8.3 |
prepstrip: add writable workaround for everyone
On 01/13/2012 11:52 AM, Mike Frysinger wrote:
> The writable issue shows up when using `ebuild` as non-root users > in non-prefix setups. So always do it. > > Signed-off-by: Mike Frysinger <vapier@gentoo.org> > --- > bin/ebuild-helpers/prepstrip | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/bin/ebuild-helpers/prepstrip b/bin/ebuild-helpers/prepstrip > index 1d7b3d2..ee547f2 100755 > --- a/bin/ebuild-helpers/prepstrip > +++ b/bin/ebuild-helpers/prepstrip > @@ -224,7 +224,7 @@ do > # unwritable objects. Make them temporarily writable for the > # stripping. > was_not_writable=false > - if [[ -n ${EPREFIX} && ! -w ${x} ]] ; then > + if [[ ! -w ${x} ]] ; then > was_not_writable=true > chmod u+w "${x}" > fi LGTM -- Thanks, Zac |
| All times are GMT. The time now is 10:54 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.