tags 461673 patch

On Sun, Jan 20, 2008 at 10:14:12AM +0100, Martin Michlmayr wrote:
> Package: grass
> Version: 6.2.3-1
> Usertags: ftbfs-gcc-4.3
> Your package fails to build with GCC 4.3.  Version 4.3 has not been
> released yet but I'm building with a snapshot in order to find errors
> and give people an advance warning.  In GCC 4.3, the C++ header
> dependencies have been cleaned up.  The advantage of this is that
> programs will compile faster.  The downside is that you actually
> need to directly #include everything you use (but you really should
> do this anyway, otherwise your program won't work with any compiler
> other than GCC).  There's some more information about this at
> http://gcc.gnu.org/gcc-4.3/porting_to.html
> You can reproduce this problem with gcc-4.3 or gcc-snapshot from
> unstable.

Dear GIS maintainers,
attached dpatch fixes compilation with GCC 4.3. Shall I NMU?

#! /bin/sh /usr/share/dpatch/dpatch-run
## Fix GCC 4.3 compatbility, jmm
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

diff -aur grass-6.2.3.orig/raster/r.terraflow/IOStream/include/ami_stream.h 
--- grass-6.2.3.orig/raster/r.terraflow/IOStream/include/ami_stream.h   
2004-11-09 14:29:58.000000000 +0100
+++ grass-6.2.3/raster/r.terraflow/IOStream/include/ami_stream.h        
2008-03-21 01:03:36.000000000 +0100
@@ -51,6 +51,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <unistd.h>
+#include <cstring>
 #include <iostream>
 using namespace std;
Only in grass-6.2.3/raster/r.terraflow/IOStream/include: ami_stream.h~
Pkg-grass-devel mailing list

Reply via email to