1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Description: make 2.7.x versions be detected as 2.7
A minor upgrade of the library in Debian causes this package to fail to build
Author: Damyan Ivanov <dmn@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993323
--- a/Build.PL
+++ b/Build.PL
@@ -445,6 +445,7 @@
if ($gsl_version =~ m{\A(\d+(?:\.\d+)+)}) {
$current_version = $1;
+ $current_version =~ s/^2\.7\K\..*//;
my @current = split /\./, $current_version;
print $fh "#define GSL_VERSION $current[0].$current[1]\n";
print $fh "#define GSL_MAJOR_VERSION $current[0]\n";
|