summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-03-04 19:17:21 +0100
committerDan McGee <dan@archlinux.org>2012-03-05 11:44:34 -0600
commitfbfcd8665086f71b65370e919105194111b4b5f1 (patch)
tree7a2af111f8dedcccc173e06decbce6747fd42790 /scripts
parent986e99a613605985f64f0e3e4c2635717931f77d (diff)
downloadpacman-fbfcd8665086f71b65370e919105194111b4b5f1.tar.xz
makepkg: fix extraction of soname in find_libdepends
libperl.so results in soname="libperl.so.so" which is wrong. This returns the correct string: "libperl.so" Fix-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 805c31a9..21cbfab8 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1067,7 +1067,7 @@ find_libdepends() {
for sofile in $(LC_ALL=C readelf -d "$filename" 2>/dev/null | sed -nr 's/.*Shared library: \[(.*)\].*/\1/p')
do
# extract the library name: libfoo.so
- soname="${sofile%%\.so\.*}.so"
+ soname="${sofile%.so?(+(.+([0-9])))}".so
# extract the major version: 1
soversion="${sofile##*\.so\.}"
if in_array "${soname}" ${depends[@]}; then