diff --git a/supertux-0.3.1-gcc44.patch b/supertux-0.3.1-gcc44.patch new file mode 100644 index 0000000..bba9144 --- /dev/null +++ b/supertux-0.3.1-gcc44.patch @@ -0,0 +1,26 @@ +Fix build with GCC 4.4 + +Lubomir Rintel + +diff -up supertux-0.3.1/src/lisp/lisp.cpp.gcc44 supertux-0.3.1/src/lisp/lisp.cpp +--- supertux-0.3.1/src/lisp/lisp.cpp.gcc44 2009-03-01 15:13:40.000000000 +0100 ++++ supertux-0.3.1/src/lisp/lisp.cpp 2009-03-01 15:13:53.000000000 +0100 +@@ -19,6 +19,7 @@ + + #include + ++#include + #include "lisp.hpp" + + namespace lisp +diff -up supertux-0.3.1/src/random_generator.cpp.gcc44 supertux-0.3.1/src/random_generator.cpp +--- supertux-0.3.1/src/random_generator.cpp.gcc44 2009-03-01 15:14:05.000000000 +0100 ++++ supertux-0.3.1/src/random_generator.cpp 2009-03-01 15:14:18.000000000 +0100 +@@ -39,6 +39,7 @@ + #include + #include + #include ++#include + #include "random_generator.hpp" + + RandomGenerator systemRandom; // global random number generator diff --git a/supertux.spec b/supertux.spec index 8c2f486..31695cb 100644 --- a/supertux.spec +++ b/supertux.spec @@ -6,7 +6,7 @@ Name: supertux Version: 0.3.1 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Jump'n run like game Group: Amusements/Games License: GPLv2+ @@ -16,6 +16,7 @@ Source0: http://download.berlios.de/supertux/supertux-%{version}d.tar.bz2 Patch0: supertux-0.3.1-gcc43.patch Patch1: supertux-0.3.1-comments.patch Patch2: supertux-0.3.1-cons_disable.patch +Patch3: supertux-0.3.1-gcc44.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: SDL-devel >= 1.2.4 BuildRequires: SDL_image-devel @@ -45,6 +46,7 @@ Grabbing power-ups and other stuff on the way. %patch0 -p1 -b .gcc43 %patch1 -p1 -b .comments %patch2 -p1 -b .cons_disable +%patch3 -p1 -b .gcc44 # We want to just call this release "supertux", not "supertux2". find . -depth -name 'supertux2*' \ @@ -89,6 +91,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/pixmaps/* %changelog +* Sun Mar 01 2009 Lubomir Rintel - 0.3.1-7 +- Fix build with GCC 4.4 + * Wed Feb 25 2009 Fedora Release Engineering - 0.3.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild