[syrthes/master] New patch: f2c

Gilles Filippini gilles.filippini at free.fr
Sun Sep 27 21:09:21 UTC 2009


This patch adds a test against __GNUC__ to match gcc whatever the
arch is.
---
 debian/changelog      |    8 ++++++++
 debian/patches/f2c    |   20 ++++++++++++++++++++
 debian/patches/series |    1 +
 3 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100644 debian/patches/f2c

diff --git a/debian/changelog b/debian/changelog
index e91525f..0ddddb4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+syrthes (3.4.2-dfsg1-3) unstable; urgency=low
+
+  * New patch:
+    + f2c: Add a test against __GNUC__ to match gcc whatever the arch
+      is (Closes: #548491) 
+
+ -- Gilles Filippini <gilles.filippini at free.fr>  Sun, 27 Sep 2009 23:04:17 +0200
+
 syrthes (3.4.2-dfsg1-2) unstable; urgency=low
 
   * debian/patches/syrthes_env:
diff --git a/debian/patches/f2c b/debian/patches/f2c
new file mode 100644
index 0000000..da9878e
--- /dev/null
+++ b/debian/patches/f2c
@@ -0,0 +1,20 @@
+Add a test against __GNUC__ to target gcc, whatever the arch is.
+Index: syrthes/include/f2c_syrthes.h
+===================================================================
+--- syrthes.orig/include/f2c_syrthes.h	2009-09-27 22:33:10.000000000 +0200
++++ syrthes/include/f2c_syrthes.h	2009-09-27 22:35:40.000000000 +0200
+@@ -1,3 +1,9 @@
++#ifdef __GNUC__
++#define name2(a,b)  a##b
++#define proc(x,y) name2(x,_)
++#define proci(x)  x
++
++#else
+ #ifdef __sgi
+ #define name2(a,b)  a##b
+ #define proc(x,y) name2(x,_)
+@@ -55,3 +61,4 @@
+ #endif
+ #endif
+ #endif
++#endif
diff --git a/debian/patches/series b/debian/patches/series
index 3042700..e73bcb3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 syrthes_env
+f2c
-- 
1.5.6.5




More information about the debian-science-commits mailing list