summaryrefslogtreecommitdiff
path: root/dh_makeshlibs
diff options
context:
space:
mode:
Diffstat (limited to 'dh_makeshlibs')
-rwxr-xr-xdh_makeshlibs9
1 files changed, 8 insertions, 1 deletions
diff --git a/dh_makeshlibs b/dh_makeshlibs
index 8f0045a..478c861 100755
--- a/dh_makeshlibs
+++ b/dh_makeshlibs
@@ -136,7 +136,14 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
# Call isnative becuase it sets $dh{VERSION}
# as a side effect.
isnative($package);
- $deps="$package (>= $dh{VERSION})";
+ my $version = $dh{VERSION};
+ # Old compatability levels include the
+ # debian revision, while new do not.
+ if (! compat(3)) {
+ # Remove debian version, if any.
+ $version =~ s/-[^-]+$//;
+ }
+ $deps="$package (>= $version)";
}
}
if (defined($library) && defined($major) && defined($deps) &&