File: gsl-version.patch

package info (click to toggle)
libmath-gsl-perl 0.43-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 176,068 kB
  • sloc: ansic: 789,995; perl: 24,506; makefile: 12
file content (15 lines) | stat: -rw-r--r-- 626 bytes parent folder | download | duplicates (2)
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
@@ -333,6 +333,7 @@ sub check_gsl_version {
 
     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";