SOURCES: perl-PDL-gsl-check.patch (NEW) - properly detect gsl version

baggins baggins at pld-linux.org
Tue Apr 8 11:13:16 CEST 2008


Author: baggins                      Date: Tue Apr  8 09:13:16 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- properly detect gsl version

---- Files affected:
SOURCES:
   perl-PDL-gsl-check.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/perl-PDL-gsl-check.patch
diff -u /dev/null SOURCES/perl-PDL-gsl-check.patch:1.1
--- /dev/null	Tue Apr  8 11:13:16 2008
+++ SOURCES/perl-PDL-gsl-check.patch	Tue Apr  8 11:13:11 2008
@@ -0,0 +1,15 @@
+diff -ur PDL-2.4.3/Lib/GSL/Makefile.PL PDL-2.4.3-gsl/Lib/GSL/Makefile.PL
+--- PDL-2.4.3/Lib/GSL/Makefile.PL	2008-04-08 11:00:19.000000000 +0200
++++ PDL-2.4.3-gsl/Lib/GSL/Makefile.PL	2008-04-08 10:59:34.000000000 +0200
+@@ -41,7 +41,10 @@
+   warn "\tno GSL version info found (gsl-config not installed?)\n\n";
+   $version = 'UNKNOWN VERSION';
+ }
+-if ($version =~ /UNKNOWN VERSION/ || $version lt "$MINVERSION") {
++my $MINVERMAJ = "1";
++my $MINVERMIN = "3";
++my ($vmaj,$vmin) = split(/\./,$version);
++if ($version =~ /UNKNOWN VERSION/ || $vmaj lt $MINVERMAJ || ($vmaj eq $MINVERMA && $vmin lt $MINVERMIN)) {
+   warn "\n   Not building GSL modules: GSL version $version found, need at least $MINVERSION\n\n";
+   write_dummy_make("Not building GSL modules: GSL version $version found, but need at least $MINVERSION");
+ } else {
================================================================


More information about the pld-cvs-commit mailing list