[chess: 1/6] We need to include cstddef staring with gcc 4.6.

Bruno Wolff III bruno at fedoraproject.org
Thu Feb 10 03:58:43 UTC 2011


commit e0d1def6ec6ac3c953ef16914d068ef5a56e66f2
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Wed Feb 9 21:11:15 2011 -0600

    We need to include cstddef staring with gcc 4.6.

 chess-gcc46.patch |   17 +++++++++++++++++
 chess.spec        |    7 ++++++-
 2 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/chess-gcc46.patch b/chess-gcc46.patch
new file mode 100644
index 0000000..f101a69
--- /dev/null
+++ b/chess-gcc46.patch
@@ -0,0 +1,17 @@
+--- include/stdafx.h.orig	2011-02-09 21:07:24.000000000 -0600
++++ include/stdafx.h	2011-02-09 21:08:07.000000000 -0600
+@@ -20,6 +20,7 @@
+ 
+ #include "OgreNoMemoryMacros.h"
+ 
++#include <cstddef>
+ #include <CEGUI/CEGUISystem.h>
+ #include <CEGUI/CEGUILogger.h>
+ #include <CEGUI/CEGUISchemeManager.h>
+@@ -47,4 +48,4 @@
+ #define min(a,b)  (((a) < (b)) ? (a) : (b))
+ #define max(a,b)  (((a) > (b)) ? (a) : (b))
+ 
+-#endif
+\ No newline at end of file
++#endif
diff --git a/chess.spec b/chess.spec
index ea0de45..b827b9c 100644
--- a/chess.spec
+++ b/chess.spec
@@ -1,6 +1,6 @@
 Name:           chess
 Version:        1.0
-Release:        33%{?dist}
+Release:        34%{?dist}
 Summary:        3D chess game
 Group:          Amusements/Games
 License:        GPLv2+
@@ -16,6 +16,7 @@ Patch1:         chess-ogre14.patch
 Patch2:         chess-ogre16.patch
 Patch3:         chess-disambiguate-Vector3.patch
 Patch4:         chess-ogre17.patch
+Patch5:         chass-gcc46.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  ogre-devel ois-devel cegui-devel coldet-devel boost-devel
 BuildRequires:  desktop-file-utils
@@ -35,6 +36,7 @@ graphics this is not playable!
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1 -b .ogre17
+%patch5
 sed -i 's/\r//' Readme.txt License/gpl.txt
 # remove patch backup file to stop it from getting installed
 rm media/gui/tahoma-12.font.ogre14
@@ -91,6 +93,9 @@ fi
 
 
 %changelog
+* Mon Feb 09 2011 Bruno Wolff III <bruno at wolff.to> - 1.2-34
+- Include cstddef for gcc 4.6
+
 * Mon Feb 07 2011 Bruno Wolff III <bruno at wolff.to> - 1.2-33
 - Rebuild for boost sonmae bump.
 


More information about the scm-commits mailing list