diff options
author | joey <joey> | 2001-03-21 23:01:55 +0000 |
---|---|---|
committer | joey <joey> | 2001-03-21 23:01:55 +0000 |
commit | 85eb81f6f2e86696f164bec8d3244df71291bfde (patch) | |
tree | 9b5bbc0f833e396fc433adbbc69d1df104f6a236 /dh_makeshlibs | |
parent | fc94604df8b0551ed52d78f735a65d1f3924ed71 (diff) | |
download | debhelper-85eb81f6f2e86696f164bec8d3244df71291bfde.tar.gz |
r456: * dh_makeshlibs: more support for nasty soname formats, Closes: #90520
Diffstat (limited to 'dh_makeshlibs')
-rwxr-xr-x | dh_makeshlibs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/dh_makeshlibs b/dh_makeshlibs index e8006688..346a5f5a 100755 --- a/dh_makeshlibs +++ b/dh_makeshlibs @@ -91,8 +91,18 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # objdump is anything actually added. open (FIND, "find $tmp -type f -name '*.so*' |"); while (<FIND>) { - my ($library, $major) = - `objdump -p $_` =~ m/\s+SONAME\s+(.+)\.so\.(.+)/; + my ($library, $major); + my $objdump=`objdump -p $_`; + if ($objdump=~m/\s+SONAME\s+(.+)\.so\.(.+)/) { + # proper soname format + $library=$1; + $major=$2; + } + elsif ($objdump=~m/\s+SONAME\s+(.+)-(.+)\.so/) { + # idiotic crap soname format + $library=$1; + $major=$2; + } if (defined($dh{M_PARAMS}) && $dh{M_PARAMS} ne '') { $major=$dh{M_PARAMS}; |