X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_makeshlibs;h=478c861b001c297833654edbbd304dfe0a7c238b;hb=07659546d4248d4f4f4edc2c03d2ca5a6fe32f02;hp=01dd082f82a8a668ec3cc0b4b7610aaca3ffb579;hpb=88438fd0438628b5b021a0c82daa912cf0d1b068;p=debhelper.git diff --git a/dh_makeshlibs b/dh_makeshlibs index 01dd082..478c861 100755 --- a/dh_makeshlibs +++ b/dh_makeshlibs @@ -11,7 +11,7 @@ use Debian::Debhelper::Dh_Lib; =head1 SYNOPSIS - dh_makeshlibs [debhelper options] [-mmajor] [-V[dependancies]] [-n] [-Xitem] +B [S>] [B<-m>I] [B<-V>I<[dependancies]>] [B<-n>] [B<-X>I] =head1 DESCRIPTION @@ -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) &&