[xmoto] gcc fix.

Jon Ciesla limb at fedoraproject.org
Fri Jan 6 15:07:16 UTC 2012


commit 4b479be85bef2e5ea127af8213421c0433fe1c63
Author: Jon Ciesla <limburgher at gmail.com>
Date:   Fri Jan 6 09:07:08 2012 -0600

    gcc fix.

 xmoto-0.5.9-gcc470.patch |   10 ++++++++++
 xmoto.spec               |    7 ++++++-
 2 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/xmoto-0.5.9-gcc470.patch b/xmoto-0.5.9-gcc470.patch
new file mode 100644
index 0000000..f950c53
--- /dev/null
+++ b/xmoto-0.5.9-gcc470.patch
@@ -0,0 +1,10 @@
+--- src/helpers/System.cpp~	2011-10-11 15:18:14.000000000 -0500
++++ src/helpers/System.cpp	2012-01-06 08:07:57.621066735 -0600
+@@ -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>;
diff --git a/xmoto.spec b/xmoto.spec
index 3a40524..4f4ab09 100644
--- a/xmoto.spec
+++ b/xmoto.spec
@@ -1,6 +1,6 @@
 Name:		xmoto
 Version:	0.5.9
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Challenging 2D Motocross Platform Game
 
 Group:		Amusements/Games
@@ -21,6 +21,7 @@ Patch8:		xmoto-0.5.0-helpers-text-includes.patch
 Patch9:		xmoto-0.5.0-helpers-log-include.patch
 #Patch10:	xmoto-0.5.2-x86-64.patch
 Patch11:	xmoto-0.5.8-libpng15.patch
+Patch12:	xmoto-0.5.9-gcc470.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	desktop-file-utils
@@ -68,6 +69,7 @@ yourself and others, racing against the clock.
 %patch9 -p0
 #%patch10 -p0
 %patch11 -p0
+%patch12 -p0
 
 #fix encoding
 sed -i 's/\r//' src/xmscene/Camera.cpp
@@ -129,6 +131,9 @@ fi
 %{_mandir}/man6/xmoto.6.gz
 
 %changelog
+* Fri Jan 06 2012 Jon Ciesla <limburgher at gmail.com> 0.5.9-2
+- Patched for gcc 4.7.0.
+
 * Wed Dec 07 2011 Jon Ciesla <limburgher at gmail.com> 0.5.9-1
 - New upstream.
 


More information about the scm-commits mailing list