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 > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 08-13-2011, 08:07 PM
Dave Reisner
 
Default makepkg: don't hardcode path to strip

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
---
scripts/makepkg.sh.in | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 8845a41..f464014 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1018,11 +1018,11 @@ tidy_install() {
find . -type f -perm -u+w 2>/dev/null | while read binary ; do
case "$(file -bi "$binary")" in
*application/x-sharedlib*) # Libraries (.so)
- /usr/bin/strip $STRIP_SHARED "$binary";;
+ strip $STRIP_SHARED "$binary";;
*application/x-archive*) # Libraries (.a)
- /usr/bin/strip $STRIP_STATIC "$binary";;
+ strip $STRIP_STATIC "$binary";;
*application/x-executable*) # Binaries
- /usr/bin/strip $STRIP_BINARIES "$binary";;
+ strip $STRIP_BINARIES "$binary";;
esac
done
fi
--
1.7.6
 
Old 08-14-2011, 10:55 AM
Allan McRae
 
Default makepkg: don't hardcode path to strip

On 14/08/11 06:07, Dave Reisner wrote:

Signed-off-by: Dave Reisner<dreisner@archlinux.org>
---
scripts/makepkg.sh.in | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 8845a41..f464014 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1018,11 +1018,11 @@ tidy_install() {
find . -type f -perm -u+w 2>/dev/null | while read binary ; do
case "$(file -bi "$binary")" in
*application/x-sharedlib*) # Libraries (.so)
- /usr/bin/strip $STRIP_SHARED "$binary";;
+ strip $STRIP_SHARED "$binary";;
*application/x-archive*) # Libraries (.a)
- /usr/bin/strip $STRIP_STATIC "$binary";;
+ strip $STRIP_STATIC "$binary";;
*application/x-executable*) # Binaries
- /usr/bin/strip $STRIP_BINARIES "$binary";;
+ strip $STRIP_BINARIES "$binary";;
esac
done
fi


Ack. I went through the history of those full paths to strip until
about 2007 and the only reason I can find that the full path is used is
because it seems to always have been...


Allan
 

Thread Tools




All times are GMT. The time now is 11:17 AM.

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