summaryrefslogtreecommitdiff
path: root/dh_makeshlibs
diff options
context:
space:
mode:
authorjoey <joey>2001-03-21 23:01:55 +0000
committerjoey <joey>2001-03-21 23:01:55 +0000
commit85eb81f6f2e86696f164bec8d3244df71291bfde (patch)
tree9b5bbc0f833e396fc433adbbc69d1df104f6a236 /dh_makeshlibs
parentfc94604df8b0551ed52d78f735a65d1f3924ed71 (diff)
r456: * dh_makeshlibs: more support for nasty soname formats, Closes: #90520
Diffstat (limited to 'dh_makeshlibs')
-rwxr-xr-xdh_makeshlibs14
1 files changed, 12 insertions, 2 deletions
diff --git a/dh_makeshlibs b/dh_makeshlibs
index e800668..346a5f5 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};