From c5893672a639939b63dc338edc31d952035ff8c2 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 4 Mar 2012 21:30:26 +0100 Subject: find-libdeps: fix extraction of soname libperl.so results in soname="libperl.so.so" which is wrong. This returns the correct string: "libperl.so" Fix-by: Dave Reisner Signed-off-by: Florian Pritz Signed-off-by: Pierre Schmitz --- find-libdeps.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/find-libdeps.in b/find-libdeps.in index a7f2b82..36e2c43 100644 --- a/find-libdeps.in +++ b/find-libdeps.in @@ -3,6 +3,7 @@ m4_include(lib/common.sh) set -e +shopt -s extglob IGNORE_INTERNAL=0 @@ -40,7 +41,7 @@ fi process_sofile() { # 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 [[ "$soversion" = "$sofile" ]] && (($IGNORE_INTERNAL)); then -- cgit v1.2.3-70-g09d2