Commit c5893672 authored by Florian Pritz's avatar Florian Pritz Committed by Pierre Schmitz
Browse files

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: default avatarDave Reisner <dreisner@archlinux.org>
Signed-off-by: default avatarFlorian Pritz <bluewind@xinu.at>
Signed-off-by: default avatarPierre Schmitz <pierre@archlinux.de>
parent 73d61f43
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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