Author: steve-guest
Date: 2012-04-17 06:20:58 +0000 (Tue, 17 Apr 2012)
New Revision: 13492

Added:
   packages/trunk/xmoto/debian/patches/gcc-4.7-fixes.patch
Modified:
   packages/trunk/xmoto/debian/changelog
   packages/trunk/xmoto/debian/patches/series
Log:
Fix "ftbfs with GCC-4.7" by including unistd.h where appropriate (closes: 
#667422).

Modified: packages/trunk/xmoto/debian/changelog
===================================================================
--- packages/trunk/xmoto/debian/changelog       2012-04-17 05:55:28 UTC (rev 
13491)
+++ packages/trunk/xmoto/debian/changelog       2012-04-17 06:20:58 UTC (rev 
13492)
@@ -21,8 +21,11 @@
   * wrap-and-sort control files.
   * Build-depend on libpng-dev only, dropping the libpng12-dev alternative
     (closes: #662565).
+  * Fix "ftbfs with GCC-4.7" by including unistd.h where appropriate
+    (closes: #667422; thanks to Cyril Brulebois for his patch for another
+    gcc-4.7-related issue, which was already included upstream).
 
- -- Stephen Kitt <st...@sk2.org>  Tue, 17 Apr 2012 07:34:47 +0200
+ -- Stephen Kitt <st...@sk2.org>  Tue, 17 Apr 2012 08:18:03 +0200
 
 xmoto (0.5.5-1) unstable; urgency=low
 

Added: packages/trunk/xmoto/debian/patches/gcc-4.7-fixes.patch
===================================================================
--- packages/trunk/xmoto/debian/patches/gcc-4.7-fixes.patch                     
        (rev 0)
+++ packages/trunk/xmoto/debian/patches/gcc-4.7-fixes.patch     2012-04-17 
06:20:58 UTC (rev 13492)
@@ -0,0 +1,14 @@
+Description: Add missing header, allowing building with gcc-4.7
+Author: Stephen Kitt <st...@sk2.org>
+Bug: http://todo.xmoto.tuxfamily.org/index.php?do=details&task_id=800
+
+--- xmoto-0.5.9.orig/src/helpers/System.cpp
++++ xmoto-0.5.9/src/helpers/System.cpp
+@@ -24,6 +24,7 @@
+ #include "Log.h"
+ #include "VExcept.h"
+ #include <sstream>
++#include <unistd.h>
+ 
+ std::vector<std::string>* System::getDisplayModes(int windowed) {
+     std::vector<std::string>* modes = new std::vector<std::string>;

Modified: packages/trunk/xmoto/debian/patches/series
===================================================================
--- packages/trunk/xmoto/debian/patches/series  2012-04-17 05:55:28 UTC (rev 
13491)
+++ packages/trunk/xmoto/debian/patches/series  2012-04-17 06:20:58 UTC (rev 
13492)
@@ -2,3 +2,4 @@
 desktop.patch
 manpage.patch
 spelling.patch
+gcc-4.7-fixes.patch


_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to