Package: k3d
Version: 0.6.7.0-2.4
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu karmic ubuntu-patch
Hola David,
The k3d package fails to build in Ubuntu karmic because we've switched to
gcc-4.4 as the default compiler, and C++ software must now include <cstdio>
explicitly to get various declarations (rename, fopen, and EOF). Please
consider applying the attached patch (or forwarding it upstream) in
anticipation of Debian's eventual switch to gcc-4.4 by default.
Changelog entry for this Ubuntu upload is as follows:
* debian/patches/gcc4.4_build.patch: include additional header needed for
when building with g++4.4.
diff -u k3d-0.6.7.0/debian/patches/series k3d-0.6.7.0/debian/patches/series
--- k3d-0.6.7.0/debian/patches/series
+++ k3d-0.6.7.0/debian/patches/series
@@ -6,0 +7 @@
+gcc4.4_build.patch
only in patch2:
unchanged:
--- k3d-0.6.7.0.orig/debian/patches/gcc4.4_build.patch
+++ k3d-0.6.7.0/debian/patches/gcc4.4_build.patch
@@ -0,0 +1,36 @@
+Index: k3d-0.6.7.0/k3dsdk/gzstream.cpp
+===================================================================
+--- k3d-0.6.7.0.orig/k3dsdk/gzstream.cpp
++++ k3d-0.6.7.0/k3dsdk/gzstream.cpp
+@@ -31,6 +31,7 @@
+
+ #include <zlib.h>
+ #include <string.h>
++#include <cstdio>
+
+ namespace k3d
+ {
+Index: k3d-0.6.7.0/k3dsdk/path.cpp
+===================================================================
+--- k3d-0.6.7.0.orig/k3dsdk/path.cpp
++++ k3d-0.6.7.0/k3dsdk/path.cpp
+@@ -30,6 +30,7 @@
+
+ #else // K3D_PLATFORM_WIN32
+
++ #include <cstdio>
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <dirent.h>
+Index: k3d-0.6.7.0/modules/jpeg/jpegreader.cpp
+===================================================================
+--- k3d-0.6.7.0.orig/modules/jpeg/jpegreader.cpp
++++ k3d-0.6.7.0/modules/jpeg/jpegreader.cpp
+@@ -29,6 +29,7 @@
+ #include <k3dsdk/module.h>
+ #include <k3dsdk/path.h>
+ #include <k3dsdk/string_modifiers.h>
++#include <cstdio>
+
+ extern "C"
+ {