FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Portage Developer

 
 
LinkBack Thread Tools
 
Old 01-13-2012, 06:52 PM
Mike Frysinger
 
Default 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
 
Old 01-13-2012, 09:14 PM
Zac Medico
 
Default 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
 

Thread Tools




All times are GMT. The time now is 04:34 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org