[raidem] Need to include stdio.h with gcc 4.7

Bruno Wolff III bruno at fedoraproject.org
Wed Jan 11 06:21:03 UTC 2012


commit 1a1a4731f959e3f17f0bd6b33f819b501c40cc24
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Wed Jan 11 00:17:53 2012 -0600

    Need to include stdio.h with gcc 4.7

 raidem-gcc4.7-stdio.patch |  192 +++++++++++++++++++++++++++++++++++++++++++++
 raidem.spec               |    8 ++-
 2 files changed, 198 insertions(+), 2 deletions(-)
---
diff --git a/raidem-gcc4.7-stdio.patch b/raidem-gcc4.7-stdio.patch
new file mode 100644
index 0000000..09b8f7d
--- /dev/null
+++ b/raidem-gcc4.7-stdio.patch
@@ -0,0 +1,192 @@
+--- include/config.h.orig	2012-01-10 23:58:58.305413718 -0600
++++ include/config.h	2012-01-10 23:59:17.965912466 -0600
+@@ -2,6 +2,8 @@
+ #ifndef __included_configa_h
+ #define __included_configa_h
+ 
++#include <stdio.h>
++
+ extern FILE *fopen_cfg(const char *cfg, char *mode);
+ extern void read_config_file(int *w, int *h, int *bpp);
+ extern void write_config_file(const int w, const int h, const int bpp);
+--- include/input-controller.h.orig	2012-01-10 23:49:49.924717349 -0600
++++ include/input-controller.h	2012-01-10 23:57:22.166194918 -0600
+@@ -2,6 +2,8 @@
+ #ifndef __included_input_controller_h
+ #define __included_input_controller_h
+ 
++#include <stdio.h>
++
+ #include <objc/Object.h>
+ 
+ enum RAID_KEY {
+--- src/gui/widget-packingbox.m.orig	2012-01-11 00:02:44.820202581 -0600
++++ src/gui/widget-packingbox.m	2012-01-11 00:03:00.998258730 -0600
+@@ -6,6 +6,7 @@
+  *  2) child_spacing is the space between adjacent widgets.
+  */
+ 
++#include <stdio.h>
+ #include <allegro.h>
+ #include <assert.h>
+ #include "gui/widget-packingbox.h"
+--- src/gui/widget-pane.m.orig	2012-01-11 00:03:15.207064597 -0600
++++ src/gui/widget-pane.m	2012-01-11 00:03:48.410284554 -0600
+@@ -1,6 +1,7 @@
+ /* widget-pane.m,
+  */
+ 
++#include <stdio.h>
+ #include <allegro.h>
+ #include <assert.h>
+ #include "gui/widget-pane.h"
+--- src/seborrhea/container-animation.m.orig	2012-01-11 00:04:21.056433713 -0600
++++ src/seborrhea/container-animation.m	2012-01-11 00:04:35.110219877 -0600
+@@ -4,6 +4,7 @@
+  * animation.  All of the frames must have the same dimensions.
+  */
+ 
++#include <stdio.h>
+ #include <assert.h>
+ #include "seborrhea/container-animation.h"
+ #include "seborrhea/seborrhea-common.h"
+--- src/seborrhea/container-file.m.orig	2012-01-11 00:04:49.427039470 -0600
++++ src/seborrhea/container-file.m	2012-01-11 00:05:07.413325433 -0600
+@@ -3,6 +3,7 @@
+  * A basic container that allows us to find an item by its name.
+  */
+ 
++#include <stdio.h>
+ #include <assert.h>
+ #include "seborrhea/container-file.h"
+ #include "seborrhea/seborrhea-command.h"
+--- src/seborrhea/container-lump.m.orig	2012-01-11 00:05:29.695157340 -0600
++++ src/seborrhea/container-lump.m	2012-01-11 00:05:50.399788793 -0600
+@@ -4,6 +4,7 @@
+  * This allows us to safely grab a random thing from it.
+  */
+ 
++#include <stdio.h>
+ #include <assert.h>
+ #include <stdlib.h>
+ #include "maybe-alrand.h"
+--- src/seborrhea/container-metafile.m.orig	2012-01-11 00:06:07.521964933 -0600
++++ src/seborrhea/container-metafile.m	2012-01-11 00:06:22.810908079 -0600
+@@ -4,6 +4,7 @@
+  * processing metafiles.
+  */
+ 
++#include <stdio.h>
+ #include <assert.h>
+ #include <ctype.h>
+ #include <zzip/zzip.h>
+--- src/seborrhea/container.m.orig	2012-01-11 00:07:38.145482718 -0600
++++ src/seborrhea/container.m	2012-01-11 00:07:51.876227824 -0600
+@@ -3,6 +3,7 @@
+  * Abstract container class, from which we get Files, Animations, etc.
+  */
+ 
++#include <stdio.h>
+ #include <assert.h>
+ #include <stdlib.h>
+ #include "seborrhea/container.h"
+--- src/seborrhea/container-queue.m.orig	2012-01-11 00:06:35.518523152 -0600
++++ src/seborrhea/container-queue.m	2012-01-11 00:06:50.383412402 -0600
+@@ -5,6 +5,7 @@
+  * in order, instead of randomly.
+  */
+ 
++#include <stdio.h>
+ #include <assert.h>
+ #include "seborrhea/container-queue.h"
+ #include "seborrhea/seborrhea-common.h"
+--- src/seborrhea/container-shuffle.m.orig	2012-01-11 00:07:06.127413383 -0600
++++ src/seborrhea/container-shuffle.m	2012-01-11 00:07:22.925548340 -0600
+@@ -4,6 +4,7 @@
+  * has been used up, the queue will be randomised.
+  */
+ 
++#include <stdio.h>
+ #include <assert.h>
+ #include "maybe-alrand.h"
+ #include "seborrhea/container-shuffle.h"
+--- src/seborrhea/dirlist.m.orig	2012-01-11 00:08:06.182046019 -0600
++++ src/seborrhea/dirlist.m	2012-01-11 00:08:21.653012300 -0600
+@@ -1,6 +1,7 @@
+ /* seborrhea-dirlist.m,
+  */
+ 
++#include <stdio.h>
+ #include <assert.h>
+ #include <dirent.h>
+ #include <stdlib.h>
+--- src/seborrhea/font-glyphkeeper.m.orig	2012-01-11 00:08:38.286126283 -0600
++++ src/seborrhea/font-glyphkeeper.m	2012-01-11 00:08:53.261029517 -0600
+@@ -3,6 +3,7 @@
+  * TTF support using Glyph Keeper.
+  */
+ 
++#include <stdio.h>
+ #include <assert.h>
+ #include <glyph.h>
+ #include "seborrhea/font-glyphkeeper.h"
+--- src/seborrhea/font.m.orig	2012-01-11 00:09:04.726486716 -0600
++++ src/seborrhea/font.m	2012-01-11 00:09:19.297338596 -0600
+@@ -8,6 +8,7 @@
+  *  load-font-with-sizes ("base name" px px ...)
+  */
+ 
++#include <stdio.h>
+ #include <assert.h>
+ #include <stdarg.h>
+ #include <stdlib.h>
+--- src/seborrhea/seborrhea-allegro.m.orig	2012-01-11 00:09:34.716298267 -0600
++++ src/seborrhea/seborrhea-allegro.m	2012-01-11 00:09:53.310661516 -0600
+@@ -3,6 +3,7 @@
+  * Seborrhea image and sample classes using Allegro to load and stuff.
+  */
+ 
++#include <stdio.h>
+ #include <allegro.h>
+ #include <assert.h>
+ #ifndef NO_FBLEND
+--- src/seborrhea/spline.m.orig	2012-01-11 00:10:12.014038619 -0600
++++ src/seborrhea/spline.m	2012-01-11 00:10:24.299600051 -0600
+@@ -3,6 +3,7 @@
+  * Splines for Seborrhea.
+  */
+ 
++#include <stdio.h>
+ #include <allegro.h>
+ #include <assert.h>
+ #include <math.h>
+--- src/seborrhea/token.m.orig	2012-01-11 00:10:42.879961519 -0600
++++ src/seborrhea/token.m	2012-01-11 00:11:01.143282694 -0600
+@@ -1,6 +1,7 @@
+ /* token.m,
+  */
+ 
++#include <stdio.h>
+ #include <assert.h>
+ #include <ctype.h>
+ #include <stdlib.h>
+--- src/video.m.orig	2012-01-11 00:00:23.738271794 -0600
++++ src/video.m	2012-01-11 00:00:44.726939345 -0600
+@@ -10,6 +10,7 @@
+ 
+ #ifndef NO_VIDEO_BITMAPS
+ 
++#include <stdio.h>
+ #include <allegro.h>
+ #include <assert.h>
+ #include "common.h"
+--- src/waypoint.m.orig	2012-01-11 00:01:25.597133737 -0600
++++ src/waypoint.m	2012-01-11 00:01:48.418034156 -0600
+@@ -3,6 +3,7 @@
+  * This file calculates the points along a spline for waypoints.
+  */
+ 
++#include <stdio.h>
+ #include <assert.h>
+ #include <math.h>
+ #include <stdlib.h>
diff --git a/raidem.spec b/raidem.spec
index b6f451f..ff75814 100644
--- a/raidem.spec
+++ b/raidem.spec
@@ -1,6 +1,6 @@
 Name:           raidem
 Version:        0.3.1
-Release:        18%{?dist}
+Release:        19%{?dist}
 Summary:        2d top-down shoot'em up
 Group:          Amusements/Games
 License:        zlib
@@ -13,6 +13,7 @@ Source2:        raidem.desktop
 Patch0:         raidem-0.3.1-syslibs.patch
 Patch1:         raidem-0.3.1-zziplib.patch
 Patch2:         raidem-libpng15.patch
+Patch3:         raidem-gcc4.7-stdio.patch
 BuildRequires:  gcc-objc glyph-keeper-allegro-devel freetype-devel adime-devel
 BuildRequires:  zziplib-devel libpng-devel AllegroOGG-devel
 BuildRequires:  automake desktop-file-utils
@@ -87,7 +88,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
-* Wed Jan 04 2012 Bruno WOlff III <bruno at wolff.to> - 0.3.1-18
+* Wed Jan 11 2012 Bruno Wolff III <bruno at wolff.to> - 0.3.1-19
+- Need to include stdio.h with gcc 4.7
+
+* Wed Jan 04 2012 Bruno Wolff III <bruno at wolff.to> - 0.3.1-18
 - Rebuild for gcc update
 
 * Sun Nov 06 2011 Bruno Wolff III <bruno at wolff.to> - 0.3.1-17


More information about the scm-commits mailing list