[rafkill] gcc fix.
Jon Ciesla
limb at fedoraproject.org
Fri Jan 6 14:22:23 UTC 2012
commit a3c8fc0640e91b5d299207e369976b2b34283559
Author: Jon Ciesla <limburgher at gmail.com>
Date: Fri Jan 6 08:22:16 2012 -0600
gcc fix.
rafkill-1.2.3-gcc470.patch | 10 ++++++++++
rafkill.spec | 7 ++++++-
2 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/rafkill-1.2.3-gcc470.patch b/rafkill-1.2.3-gcc470.patch
new file mode 100644
index 0000000..fc0e7e9
--- /dev/null
+++ b/rafkill-1.2.3-gcc470.patch
@@ -0,0 +1,10 @@
+--- src/system.cpp~ 2012-01-06 07:43:08.000000000 -0600
++++ src/system.cpp 2012-01-06 07:47:39.945306410 -0600
+@@ -2,6 +2,7 @@
+ #include <string.h>
+ #include <strings.h>
+ #include <string>
++#include <unistd.h>
+
+ #ifdef WINDOWS
+ static const char * type(){
diff --git a/rafkill.spec b/rafkill.spec
index 93035cd..edac1d1 100644
--- a/rafkill.spec
+++ b/rafkill.spec
@@ -1,6 +1,6 @@
Name: rafkill
Version: 1.2.3
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: Top-down shooter with powerups
Group: Amusements/Games
License: GPLv2
@@ -11,6 +11,7 @@ Source2: rafkill.6
Source3: rafkill.png
Patch0: rafkill-1.2.2-shatter-crash.patch
Patch1: rafkill-1.2.2-gcc43.patch
+Patch2: rafkill-1.2.3-gcc470.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: allegro-devel dumb-devel scons desktop-file-utils
Requires: hicolor-icon-theme
@@ -25,6 +26,7 @@ powerups or even a complete new ship with the points you've earned sofar.
%setup -q
%patch0 -p1 -z .shatter
%patch1 -p1 -z .gcc43
+%patch2 -p0 -z .gcc470
# sigh hack hack hack
FLAGS=""
for i in $RPM_OPT_FLAGS; do
@@ -89,6 +91,9 @@ fi
%changelog
+* Fri Jan 06 2012 Jon Ciesla <limburgher at gmail.com> - 1.2.3-8
+- Patch for gcc 4.7.0.
+
* Fri Jul 15 2011 Jon Ciesla <limb at jcomserv.net> - 1.2.3-7
- Bump and rebuild for new Allegro.
More information about the scm-commits
mailing list