tag 672674 + patch pending thanks
planning to upload this on May 24, same for the other KDE 4.7 build failures.
diff -Nru kdegames-4.7.4/debian/changelog kdegames-4.7.4/debian/changelog --- kdegames-4.7.4/debian/changelog 2012-03-06 20:30:43.000000000 +0100 +++ kdegames-4.7.4/debian/changelog 2012-05-22 01:21:07.000000000 +0200 @@ -1,3 +1,10 @@ +kdegames (4:4.7.4-2.1) unstable; urgency=low + + * Non maintainer upload. + * Fix build failure with GCC 4.7. Closes: #672674. + + -- Matthias Klose <d...@debian.org> Mon, 21 May 2012 23:20:05 +0200 + kdegames (4:4.7.4-2) unstable; urgency=low * Team upload. Upload to unstable. diff -Nru kdegames-4.7.4/debian/patches/ftbfs-gcc-4.7.diff kdegames-4.7.4/debian/patches/ftbfs-gcc-4.7.diff --- kdegames-4.7.4/debian/patches/ftbfs-gcc-4.7.diff 1970-01-01 01:00:00.000000000 +0100 +++ kdegames-4.7.4/debian/patches/ftbfs-gcc-4.7.diff 2012-05-22 01:45:55.000000000 +0200 @@ -0,0 +1,24 @@ +Index: kdegames-4.7.4/kblocks/KBlocksPlayNetwork.cpp +=================================================================== +--- kdegames-4.7.4.orig/kblocks/KBlocksPlayNetwork.cpp 2010-05-16 10:06:07.000000000 +0000 ++++ kdegames-4.7.4/kblocks/KBlocksPlayNetwork.cpp 2012-05-21 23:19:56.951968277 +0000 +@@ -12,6 +12,7 @@ + #ifdef Q_OS_WIN + #include <windows.h> + #endif ++#include <unistd.h> + + KBlocksPlayNetwork::KBlocksPlayNetwork(int capacity, const string& serverIP, int localPort) + { +Index: kdegames-4.7.4/kpat/patsolve/memory.h +=================================================================== +--- kdegames-4.7.4.orig/kpat/patsolve/memory.h 2011-05-20 20:13:20.000000000 +0000 ++++ kdegames-4.7.4/kpat/patsolve/memory.h 2012-05-21 23:45:44.076007099 +0000 +@@ -20,6 +20,7 @@ + #define MEMORY_H + + #include <sys/types.h> ++#include <stdlib.h> + + struct TREE; + diff -Nru kdegames-4.7.4/debian/patches/series kdegames-4.7.4/debian/patches/series --- kdegames-4.7.4/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ kdegames-4.7.4/debian/patches/series 2012-05-22 01:14:41.000000000 +0200 @@ -0,0 +1 @@ +ftbfs-gcc-4.7.diff