mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
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>
This commit is contained in:
parent
986e99a613
commit
fbfcd86650
@ -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')
|
for sofile in $(LC_ALL=C readelf -d "$filename" 2>/dev/null | sed -nr 's/.*Shared library: \[(.*)\].*/\1/p')
|
||||||
do
|
do
|
||||||
# extract the library name: libfoo.so
|
# extract the library name: libfoo.so
|
||||||
soname="${sofile%%\.so\.*}.so"
|
soname="${sofile%.so?(+(.+([0-9])))}".so
|
||||||
# extract the major version: 1
|
# extract the major version: 1
|
||||||
soversion="${sofile##*\.so\.}"
|
soversion="${sofile##*\.so\.}"
|
||||||
if in_array "${soname}" ${depends[@]}; then
|
if in_array "${soname}" ${depends[@]}; then
|
||||||
|
Loading…
Reference in New Issue
Block a user