From fdfb9c99503fe59da0b7c75665c81bc696e92c03 Mon Sep 17 00:00:00 2001 From: Tristan Heaven Date: Wed, 30 Apr 2008 23:36:38 +0000 Subject: Fix building with gcc-4.3 (Portage version: 2.1.5_rc6) --- games-arcade/ri-li/ChangeLog | 6 +- games-arcade/ri-li/files/ri-li-2.0.1-gcc43.patch | 291 +++++++++++++++++++++++ games-arcade/ri-li/ri-li-2.0.1.ebuild | 8 +- 3 files changed, 303 insertions(+), 2 deletions(-) create mode 100644 games-arcade/ri-li/files/ri-li-2.0.1-gcc43.patch (limited to 'games-arcade') diff --git a/games-arcade/ri-li/ChangeLog b/games-arcade/ri-li/ChangeLog index 8643a90a054c..76968fcbbe13 100644 --- a/games-arcade/ri-li/ChangeLog +++ b/games-arcade/ri-li/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-arcade/ri-li # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/ri-li/ChangeLog,v 1.7 2008/03/26 21:39:04 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-arcade/ri-li/ChangeLog,v 1.8 2008/04/30 23:36:37 nyhm Exp $ + + 30 Apr 2008; Tristan Heaven + +files/ri-li-2.0.1-gcc43.patch, ri-li-2.0.1.ebuild: + Fix building with gcc-4.3 *ri-li-2.0.1 (26 Mar 2008) diff --git a/games-arcade/ri-li/files/ri-li-2.0.1-gcc43.patch b/games-arcade/ri-li/files/ri-li-2.0.1-gcc43.patch new file mode 100644 index 000000000000..7c7de0f9395d --- /dev/null +++ b/games-arcade/ri-li/files/ri-li-2.0.1-gcc43.patch @@ -0,0 +1,291 @@ +--- src/audio.cc ++++ src/audio.cc +@@ -22,7 +22,7 @@ + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + #include +-#include ++#include + #include + + #include "audio.h" +@@ -57,7 +57,7 @@ + char PathFile[512]; + + if(Mix_OpenAudio(22050,AUDIO_S16,1,1024)) { +- cerr <<"Enable to init Sound card ! "< ++#include + #include + #include + #include +--- src/editeur.cc ++++ src/editeur.cc +@@ -25,7 +25,7 @@ + #include + #endif + +-#include ++#include + #include + #include + #include +@@ -374,7 +374,7 @@ + + // Sauve le niveau + if(Niveau.Save()==false) { +- cerr <<"ERREUR Saving levels!"< + #endif + +-#include ++#include + #include + #include + #include +--- src/loco.cc ++++ src/loco.cc +@@ -21,7 +21,7 @@ + // with this program; if not, write to the Free Software Foundation, Inc., + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +-#include ++#include + #include + #include + #include +--- src/main.cc ++++ src/main.cc +@@ -23,7 +23,7 @@ + + #include + #include +-#include ++#include + #include + #include + #include +@@ -115,7 +115,7 @@ + + // Initilise SDL + if( SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_AUDIO|SDL_INIT_NOPARACHUTE) < 0 ) { +- cerr <<"Impossible d'initialiser SDL:"<vfmt->BitsPerPixel==8) { +- cerr <<"Impossible d'utiliser 8bits pour la vidéo !"<vfmt->BitsPerPixel,vOption); + + if(sdlVideo==NULL) { +- cerr <<"Impossible de passer dans le mode vidéo 800x600 !"< ++#include + #include + #include + #include +@@ -92,7 +92,7 @@ + // Teste la resolution video + sdlVideoInfo=(SDL_VideoInfo*)SDL_GetVideoInfo(); + if(sdlVideoInfo->vfmt->BitsPerPixel==8) { +- cerr <<"Impossible d'utiliser 8bits pour la vidéo !"<vfmt->BitsPerPixel,vOption); + if(sdlVideo==NULL) { +- cerr <<"Impossible de passer dans le mode vidéo 800x600 !"< ++#include + #include + #include "mouse.h" + #include "preference.h" +--- src/sprite.cc ++++ src/sprite.cc +@@ -21,7 +21,7 @@ + // with this program; if not, write to the Free Software Foundation, Inc., + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +-#include ++#include + #include + #include + #include +@@ -84,7 +84,7 @@ + strcpy(PathFile,Langue[Pref.Langue]); + GetPath(PathFile); + if(FileExiste(PathFile)==false) { +- cerr <<"Impossible de trouver "< ++#include + #include + #include + #include "preference.h" +--- src/utils.cc ++++ src/utils.cc +@@ -21,7 +21,7 @@ + // with this program; if not, write to the Free Software Foundation, Inc., + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +-#include ++#include + #include + #include + #include +@@ -77,7 +77,7 @@ + + file=fopen(Path,"r"); + if(!file) { +- cerr <<"ERREUR: Impossible d'ouvrir '"<1024) { + AfficheChargeur(); + if( fread(Po,1,1024,file) != 1024 ) { +- cerr <<"ERREUR de lecture du fichier '"<512) { + if( fwrite(Buf,1,512,file) != 512 ) { +- cerr <<"ERREUR d'ecriture du fichier '"<0) { + if( fwrite(Buf,1,(size_t)L,file) != (size_t)L ) { +- cerr <<"ERREUR d'ecriture du fichier '"<