[r-cran-gsl] 03/04: Try to enable gsl2 but the C code needs adaption

Sébastien Villemot sebastien at debian.org
Thu Nov 16 13:17:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

sebastien pushed a commit to annotated tag debian/1.9-10.1-1
in repository r-cran-gsl.

commit 1c5fc9f6f18480d0f8c3b96ccb1021c62b214a54
Author: Andreas Tille <tille at debian.org>
Date:   Tue Nov 24 21:11:14 2015 +0000

    Try to enable gsl2 but the C code needs adaption
---
 patches/gsl2.patch | 34 ++++++++++++++++++++++++++++++++++
 patches/series     |  1 +
 2 files changed, 35 insertions(+)

diff --git a/patches/gsl2.patch b/patches/gsl2.patch
new file mode 100644
index 0000000..ed5deea
--- /dev/null
+++ b/patches/gsl2.patch
@@ -0,0 +1,34 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Tue, 24 Nov 2015 21:34:13 +0100
+Description: Enable building with gsl 2.x
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -33,7 +33,11 @@ int main() {
+    if ((sscanf(gslv, "%d.%d", &major, &minor)) != 2) {
+      exit (1);
+    }
+-   exit (minor < 12);
++   if (major >= 2 ) {
++     exit (0);
++   } else {
++     exit (minor < 12);
++   }
+ #else
+   exit(1);
+ #endif
+--- a/configure
++++ b/configure
+@@ -2635,7 +2635,11 @@ int main() {
+    if ((sscanf(gslv, "%d.%d", &major, &minor)) != 2) {
+      exit (1);
+    }
+-   exit (minor < 12);
++   if (major >= 2 ) {
++     exit (0);
++   } else {
++     exit (minor < 12);
++   }
+ #else
+   exit(1);
+ #endif
diff --git a/patches/series b/patches/series
new file mode 100644
index 0000000..1e477c0
--- /dev/null
+++ b/patches/series
@@ -0,0 +1 @@
+gsl2.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/r-cran-gsl.git



More information about the debian-science-commits mailing list