Control: tags 878453 + pending
Dear maintainer,
I've prepared an NMU for altos (versioned as 1.8.2-1.1) and uploaded it
to DELAYED/10. Please feel free to tell me if I should cancel it.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
diff -Nru altos-1.8.2/debian/changelog altos-1.8.2/debian/changelog
--- altos-1.8.2/debian/changelog 2017-09-19 05:48:07.000000000 +0300
+++ altos-1.8.2/debian/changelog 2017-11-09 14:35:18.000000000 +0200
@@ -1,3 +1,11 @@
+altos (1.8.2-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Add patch from Andreas Stührk to fix FTBFS with gcc 7.
+ (Closes: #878453)
+
+ -- Adrian Bunk <[email protected]> Thu, 09 Nov 2017 14:35:18 +0200
+
altos (1.8.2-1) unstable; urgency=medium
[ Bdale Garbee ]
diff -Nru altos-1.8.2/debian/patches/fix_build_gcc-7.patch altos-1.8.2/debian/patches/fix_build_gcc-7.patch
--- altos-1.8.2/debian/patches/fix_build_gcc-7.patch 1970-01-01 02:00:00.000000000 +0200
+++ altos-1.8.2/debian/patches/fix_build_gcc-7.patch 2017-11-09 14:35:18.000000000 +0200
@@ -0,0 +1,31 @@
+Index: altos-1.8.2/src/math/kf_rem_pio2.c
+===================================================================
+--- altos-1.8.2.orig/src/math/kf_rem_pio2.c
++++ altos-1.8.2/src/math/kf_rem_pio2.c
+@@ -77,7 +77,8 @@ twon8 = 3.9062500000e-03; /* 0x3b80000
+
+ /* compute q[0],q[1],...q[jk] */
+ for (i=0;i<=jk;i++) {
+- for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; q[i] = fw;
++ for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j];
++ q[i] = fw;
+ }
+
+ jz = jk;
+Index: altos-1.8.2/src/math/sf_cos.c
+===================================================================
+--- altos-1.8.2.orig/src/math/sf_cos.c
++++ altos-1.8.2/src/math/sf_cos.c
+@@ -16,12 +16,6 @@
+ #include "fdlibm.h"
+
+ #ifdef __STDC__
+-static const float one=1.0;
+-#else
+-static float one=1.0;
+-#endif
+-
+-#ifdef __STDC__
+ float cosf(float x)
+ #else
+ float cosf(x)
diff -Nru altos-1.8.2/debian/patches/series altos-1.8.2/debian/patches/series
--- altos-1.8.2/debian/patches/series 2017-09-19 05:48:07.000000000 +0300
+++ altos-1.8.2/debian/patches/series 2017-11-09 14:35:18.000000000 +0200
@@ -0,0 +1 @@
+fix_build_gcc-7.patch