[Debian-astro-commits] [wcslib] 01/01: Fix test failures for tdis3
Ole Streicher
olebole at moszumanska.debian.org
Fri Oct 16 08:25:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
olebole pushed a commit to branch debian
in repository wcslib.
commit c5dbe4cf12f1c316ce22d58b5c2cc55699b8018f
Author: Ole Streicher <olebole at debian.org>
Date: Fri Oct 16 10:24:56 2015 +0200
Fix test failures for tdis3
---
debian/control | 1 +
debian/patches/fix_wcspih.patch | 36 ++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 38 insertions(+)
diff --git a/debian/control b/debian/control
index 064d518..48a299d 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Priority: optional
Build-Depends: autotools-dev,
debhelper (>= 9),
dh-autoreconf,
+ flex,
gfortran,
libcfitsio-dev
Standards-Version: 3.9.6
diff --git a/debian/patches/fix_wcspih.patch b/debian/patches/fix_wcspih.patch
new file mode 100644
index 0000000..d8e0f57
--- /dev/null
+++ b/debian/patches/fix_wcspih.patch
@@ -0,0 +1,36 @@
+Author: Ole Streicher <olebole at debian.org>
+Description: Fix off-by-one initialization errors
+ in wcspih_final() and watset().
+--- a/C/wcspih.l
++++ b/C/wcspih.l
+@@ -2214,7 +2214,7 @@
+ struct wcsprm **wcs)
+
+ {
+- char field[8], *wp, wpoly[12], wtype[8];
++ char field[16], *wp, wpoly[12], wtype[8];
+ int i, ialt, idp, ipv, m, npv, n, nterms, omax, omin, status, wctrl[4];
+ double A1, A2, A3, B1, B2, B3, CNPIX1, CNPIX2, *crval, Rx, Ry, S, wval,
+ X0, Y0, Xc, Yc;
+--- a/C/flexed/wcspih.c
++++ b/C/flexed/wcspih.c
+@@ -20869,7 +20869,7 @@
+ struct wcsprm **wcs)
+
+ {
+- char field[8], *wp, wpoly[12], wtype[8];
++ char field[16], *wp, wpoly[12], wtype[8];
+ int i, ialt, idp, ipv, m, npv, n, nterms, omax, omin, status, wctrl[4];
+ double A1, A2, A3, B1, B2, B3, CNPIX1, CNPIX2, *crval, Rx, Ry, S, wval,
+ X0, Y0, Xc, Yc;
+--- a/C/dis.c
++++ b/C/dis.c
+@@ -2717,7 +2717,7 @@
+ {40, 50, -1, -1, -1, -1, -1, -1, -1, -1},
+ {49, -1, -1, -1, -1, -1, -1, -1, -1, -1}};
+
+- char *fp, id[16];
++ char *fp, id[20];
+ int deg, degree, doaux, idis, idp, im, in, *iparm, kind, m, n, ncoeff,
+ ndparm, niparm;
+ double coeff, coeffm[10], coeffn[10], *dparm, dx, dy, x0, xmax, xmin,
diff --git a/debian/patches/series b/debian/patches/series
index 2ffb5c6..d54d258 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
increase_tspx_test_tol.patch
disable_Ftspx_test.patch
+fix_wcspih.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/wcslib.git
More information about the Debian-astro-commits
mailing list