Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Portage Developer (http://www.linux-archive.org/gentoo-portage-developer/)
-   -   prepstrip: add writable workaround for everyone (http://www.linux-archive.org/gentoo-portage-developer/620706-prepstrip-add-writable-workaround-everyone.html)

Mike Frysinger 01-13-2012 06:52 PM

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

Zac Medico 01-13-2012 09:14 PM

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 03:49 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.