summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2006-05-06 22:11:49 +0000
committerAlfredo Tupone <tupone@gentoo.org>2006-05-06 22:11:49 +0000
commitf55879770cb794ae5107d011a9ae41a0f8153870 (patch)
tree79c95a318b786f4acd055be4a5674f24b7063d6a /games-fps
parentStable on SPARC wrt security bug #132146. (diff)
downloadgentoo-2-f55879770cb794ae5107d011a9ae41a0f8153870.tar.gz
gentoo-2-f55879770cb794ae5107d011a9ae41a0f8153870.tar.bz2
gentoo-2-f55879770cb794ae5107d011a9ae41a0f8153870.zip
Fix for gcc-4.1, bug #124993
(Portage version: 2.1_pre10-r3)
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/quakeforge/ChangeLog6
-rw-r--r--games-fps/quakeforge/files/digest-quakeforge-0.5.52
-rw-r--r--games-fps/quakeforge/files/quakeforge-0.5.5-gcc41.patch342
-rw-r--r--games-fps/quakeforge/quakeforge-0.5.5.ebuild7
4 files changed, 353 insertions, 4 deletions
diff --git a/games-fps/quakeforge/ChangeLog b/games-fps/quakeforge/ChangeLog
index 9cae311be9a2..5ad8ff2e86c8 100644
--- a/games-fps/quakeforge/ChangeLog
+++ b/games-fps/quakeforge/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-fps/quakeforge
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/quakeforge/ChangeLog,v 1.11 2006/03/27 20:34:50 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/quakeforge/ChangeLog,v 1.12 2006/05/06 22:11:49 tupone Exp $
+
+ 06 May 2006; <Tupone@gentoo.org> +files/quakeforge-0.5.5-gcc41.patch,
+ quakeforge-0.5.5.ebuild:
+ Fix for gcc-4.1, bug #124993 by Patrizio Bassi
27 Mar 2006; Chris Gianelloni <wolf31o2@gentoo.org>
quakeforge-0.5.5.ebuild:
diff --git a/games-fps/quakeforge/files/digest-quakeforge-0.5.5 b/games-fps/quakeforge/files/digest-quakeforge-0.5.5
index bbd8667f3939..e2b268f899bc 100644
--- a/games-fps/quakeforge/files/digest-quakeforge-0.5.5
+++ b/games-fps/quakeforge/files/digest-quakeforge-0.5.5
@@ -1 +1,3 @@
MD5 b750b491ce24135f1a4a1360029de3a2 quakeforge-0.5.5.tar.bz2 1954072
+RMD160 1caf8d7b272c9e588708ac39841d46aac2c5df79 quakeforge-0.5.5.tar.bz2 1954072
+SHA256 9ff29340f571fc26d19992a32f58e767e1b811248688f383083bc2ccb263ec6a quakeforge-0.5.5.tar.bz2 1954072
diff --git a/games-fps/quakeforge/files/quakeforge-0.5.5-gcc41.patch b/games-fps/quakeforge/files/quakeforge-0.5.5-gcc41.patch
new file mode 100644
index 000000000000..a609c502ee50
--- /dev/null
+++ b/games-fps/quakeforge/files/quakeforge-0.5.5-gcc41.patch
@@ -0,0 +1,342 @@
+diff -burN quakeforge-0.5.5/libs/audio/cd/cd_file.c quakeforge-new/libs/audio/cd/cd_file.c
+--- quakeforge-0.5.5/libs/audio/cd/cd_file.c 2004-02-07 21:39:44.000000000 -0500
++++ quakeforge-new/libs/audio/cd/cd_file.c 2006-03-28 14:50:26.000000000 -0500
+@@ -84,7 +84,7 @@
+ static int current_track; // current track, used when pausing
+ static plitem_t *tracklist = NULL; // parsed tracklist, dictionary format
+
+-static cvar_t *bgmvolume; // volume cvar
++cvar_t *bgmvolume; // volume cvar
+ static cvar_t *mus_ogglist; // tracklist cvar
+
+
+diff -burN quakeforge-0.5.5/libs/audio/cd/cd_linux.c quakeforge-new/libs/audio/cd/cd_linux.c
+--- quakeforge-0.5.5/libs/audio/cd/cd_linux.c 2004-02-07 00:35:15.000000000 -0500
++++ quakeforge-new/libs/audio/cd/cd_linux.c 2006-03-28 14:50:40.000000000 -0500
+@@ -79,7 +79,7 @@
+ static int cdfile = -1;
+
+ static cvar_t *mus_cddevice;
+-static cvar_t *bgmvolume;
++cvar_t *bgmvolume;
+
+
+ static void
+diff -burN quakeforge-0.5.5/libs/audio/cd/cd_sdl.c quakeforge-new/libs/audio/cd/cd_sdl.c
+--- quakeforge-0.5.5/libs/audio/cd/cd_sdl.c 2004-03-20 23:59:02.000000000 -0500
++++ quakeforge-new/libs/audio/cd/cd_sdl.c 2006-03-28 14:50:52.000000000 -0500
+@@ -65,7 +65,7 @@
+ static SDL_CD *cd_id;
+ static float cdvolume = 1.0;
+
+-static cvar_t *bgmvolume;
++ cvar_t *bgmvolume;
+
+
+ static void
+diff -burN quakeforge-0.5.5/libs/audio/cd/cd_sgi.c quakeforge-new/libs/audio/cd/cd_sgi.c
+--- quakeforge-0.5.5/libs/audio/cd/cd_sgi.c 2004-02-07 00:35:15.000000000 -0500
++++ quakeforge-new/libs/audio/cd/cd_sgi.c 2006-03-28 14:51:01.000000000 -0500
+@@ -65,7 +65,7 @@
+ static char cd_dev[] = "/dev/cdrom";
+
+ static CDPLAYER *cdp = NULL;
+-static cvar_t *bgmvolume;
++cvar_t *bgmvolume;
+
+ static void
+ I_SGI_Eject (void)
+diff -burN quakeforge-0.5.5/libs/audio/cd/cd_win.c quakeforge-new/libs/audio/cd/cd_win.c
+--- quakeforge-0.5.5/libs/audio/cd/cd_win.c 2004-02-07 00:35:15.000000000 -0500
++++ quakeforge-new/libs/audio/cd/cd_win.c 2006-03-28 14:51:07.000000000 -0500
+@@ -68,7 +68,7 @@
+ static void I_CDAudio_Play (int track, qboolean looping);
+ static void I_CDAudio_Stop (void);
+
+-static cvar_t *bgmvolume;
++cvar_t *bgmvolume;
+
+
+ static void
+diff -burN quakeforge-0.5.5/libs/audio/renderer/snd_dma.c quakeforge-new/libs/audio/renderer/snd_dma.c
+--- quakeforge-0.5.5/libs/audio/renderer/snd_dma.c 2004-03-01 06:51:01.000000000 -0500
++++ quakeforge-new/libs/audio/renderer/snd_dma.c 2006-03-28 14:54:03.000000000 -0500
+@@ -72,17 +72,17 @@
+ static channel_t *static_channels[MAX_CHANNELS];
+ static int num_statics;
+
+-static qboolean snd_initialized = false;
+-static int snd_blocked = 0;
++qboolean snd_initialized = false;
++int snd_blocked = 0;
+ static qboolean snd_ambient = 1;
+
+-static vec3_t listener_origin;
+-static vec3_t listener_forward;
+-static vec3_t listener_right;
+-static vec3_t listener_up;
+-static vec_t sound_nominal_clip_dist = 1000.0;
++vec3_t listener_origin;
++vec3_t listener_forward;
++vec3_t listener_right;
++vec3_t listener_up;
++vec_t sound_nominal_clip_dist = 1000.0;
+
+-static unsigned soundtime; // sample PAIRS
++unsigned soundtime; // sample PAIRS
+
+ #define MAX_SFX 512
+ static sfx_t *known_sfx; // hunk allocated [MAX_SFX]
+@@ -97,7 +97,7 @@
+ static cvar_t *ambient_level;
+ static cvar_t *nosound;
+ static cvar_t *precache;
+-static cvar_t *snd_mixahead;
++cvar_t *snd_mixahead;
+ static cvar_t *snd_noextraupdate;
+ static cvar_t *snd_phasesep;
+ static cvar_t *snd_show;
+@@ -122,7 +122,7 @@
+ // isolating performance in the renderer. The fakedma_updates is
+ // number of times s_update() is called per second.
+
+-static qboolean fakedma = false;
++qboolean fakedma = false;
+ //static int fakedma_updates = 15;
+
+
+diff -burN quakeforge-0.5.5/libs/audio/targets/snd_alsa.c quakeforge-new/libs/audio/targets/snd_alsa.c
+--- quakeforge-0.5.5/libs/audio/targets/snd_alsa.c 2004-04-28 21:13:37.000000000 -0400
++++ quakeforge-new/libs/audio/targets/snd_alsa.c 2006-03-28 14:52:01.000000000 -0500
+@@ -43,7 +43,7 @@
+ #include "QF/sys.h"
+
+ static int snd_inited;
+-static int snd_blocked = 0;
++int snd_blocked = 0;
+ static volatile dma_t sn;
+ static snd_pcm_uframes_t buffer_size;
+
+@@ -59,10 +59,10 @@
+ static snd_output_data_t plugin_info_snd_output_data;
+ static snd_output_funcs_t plugin_info_snd_output_funcs;
+
+-static cvar_t *snd_bits;
+-static cvar_t *snd_device;
+-static cvar_t *snd_rate;
+-static cvar_t *snd_stereo;
++cvar_t *snd_bits;
++cvar_t *snd_device;
++cvar_t *snd_rate;
++cvar_t *snd_stereo;
+
+ #define QF_ALSA_NEED(ret, func, params) \
+ static ret (*qf##func) params;
+diff -burN quakeforge-0.5.5/libs/audio/targets/snd_disk.c quakeforge-new/libs/audio/targets/snd_disk.c
+--- quakeforge-0.5.5/libs/audio/targets/snd_disk.c 2004-01-07 22:46:11.000000000 -0500
++++ quakeforge-new/libs/audio/targets/snd_disk.c 2006-03-28 14:51:31.000000000 -0500
+@@ -55,7 +55,7 @@
+
+ static int snd_inited;
+ static QFile *snd_file;
+-static int snd_blocked = 0;
++int snd_blocked = 0;
+ static volatile dma_t sn;
+
+ static plugin_t plugin_info;
+diff -burN quakeforge-0.5.5/libs/audio/targets/snd_oss.c quakeforge-new/libs/audio/targets/snd_oss.c
+--- quakeforge-0.5.5/libs/audio/targets/snd_oss.c 2004-01-15 21:50:26.000000000 -0500
++++ quakeforge-new/libs/audio/targets/snd_oss.c 2006-03-28 14:52:24.000000000 -0500
+@@ -85,10 +85,10 @@
+
+ static int tryrates[] = { 11025, 22050, 22051, 44100, 8000 };
+
+-static cvar_t *snd_stereo;
+-static cvar_t *snd_rate;
+-static cvar_t *snd_device;
+-static cvar_t *snd_bits;
++cvar_t *snd_stereo;
++cvar_t *snd_rate;
++cvar_t *snd_device;
++cvar_t *snd_bits;
+ static cvar_t *snd_oss_mmaped;
+
+ static plugin_t plugin_info;
+diff -burN quakeforge-0.5.5/libs/audio/targets/snd_sdl.c quakeforge-new/libs/audio/targets/snd_sdl.c
+--- quakeforge-0.5.5/libs/audio/targets/snd_sdl.c 2004-01-07 22:46:11.000000000 -0500
++++ quakeforge-new/libs/audio/targets/snd_sdl.c 2006-03-28 14:52:38.000000000 -0500
+@@ -51,7 +51,7 @@
+
+ static dma_t sn;
+ static int snd_inited;
+-static int snd_blocked = 0;
++int snd_blocked = 0;
+
+ static int desired_speed = 11025;
+ static int desired_bits = 16;
+diff -burN quakeforge-0.5.5/libs/console/client.c quakeforge-new/libs/console/client.c
+--- quakeforge-0.5.5/libs/console/client.c 2004-03-01 22:55:17.000000000 -0500
++++ quakeforge-new/libs/console/client.c 2006-03-28 14:56:43.000000000 -0500
+@@ -84,7 +84,7 @@
+
+ static cvar_t *con_notifytime; // seconds
+ static cvar_t *con_alpha;
+-static cvar_t *con_size;
++cvar_t *con_size;
+ static cvar_t *con_speed;
+ static cvar_t *cl_chatmode;
+
+diff -burN quakeforge-0.5.5/libs/console/server.c quakeforge-new/libs/console/server.c
+--- quakeforge-0.5.5/libs/console/server.c 2004-01-27 00:23:36.000000000 -0500
++++ quakeforge-new/libs/console/server.c 2006-03-28 14:56:31.000000000 -0500
+@@ -70,7 +70,7 @@
+
+ #include "compat.h"
+
+-static console_data_t con_data;
++console_data_t con_data;
+
+ static QFile *log_file;
+ static cvar_t *sv_logfile;
+diff -burN quakeforge-0.5.5/libs/gib/gib_classes.c quakeforge-new/libs/gib/gib_classes.c
+--- quakeforge-0.5.5/libs/gib/gib_classes.c 2003-11-28 21:01:31.000000000 -0500
++++ quakeforge-new/libs/gib/gib_classes.c 2006-03-28 14:57:41.000000000 -0500
+@@ -192,7 +192,7 @@
+ unsigned int size;
+ unsigned int i = 0;
+
+- static qboolean
++ qboolean
+ iterator (gib_class_t *class, void *unused)
+ {
+ reply[i++] = class->name;
+@@ -610,13 +610,13 @@
+ gib_classdesc_t desc;
+ enum {CLASS, INSTANCE} mode = INSTANCE;
+
+- static void
++ void
+ mtabfree (void *mtab, void *unused)
+ {
+ free (mtab);
+ }
+
+- static const char *
++ const char *
+ fname (const char *str)
+ {
+ if (mode == INSTANCE)
+diff -burN quakeforge-0.5.5/libs/gib/gib_function.c quakeforge-new/libs/gib/gib_function.c
+--- quakeforge-0.5.5/libs/gib/gib_function.c 2004-04-09 14:18:19.000000000 -0400
++++ quakeforge-new/libs/gib/gib_function.c 2006-03-28 14:58:10.000000000 -0500
+@@ -169,7 +169,7 @@
+ gib_var_t *var;
+ static char argss[] = "args";
+
+- static qboolean
++ qboolean
+ iterate (char *arg, llist_node_t *node)
+ {
+ var = GIB_Var_Get_Complex (&GIB_DATA(cbuf)->locals, &zero,
+@@ -207,7 +207,7 @@
+ gib_var_t *var;
+ static char argss[] = "args";
+
+- static qboolean
++ qboolean
+ iterate (char *arg, llist_node_t *node)
+ {
+ var = GIB_Var_Get_Complex (&GIB_DATA(cbuf)->locals, &zero,
+diff -burN quakeforge-0.5.5/libs/gib/gib_thread.c quakeforge-new/libs/gib/gib_thread.c
+--- quakeforge-0.5.5/libs/gib/gib_thread.c 2003-09-11 02:03:10.000000000 -0400
++++ quakeforge-new/libs/gib/gib_thread.c 2006-03-28 14:58:26.000000000 -0500
+@@ -89,7 +89,7 @@
+ void
+ GIB_Thread_Execute (void)
+ {
+- static qboolean iterator (cbuf_t *cbuf, llist_node_t *node)
++ qboolean iterator (cbuf_t *cbuf, llist_node_t *node)
+ {
+ if (GIB_DATA(cbuf)->program)
+ Cbuf_Execute_Stack (cbuf);
+diff -burN quakeforge-0.5.5/qw/source/cl_chat.c quakeforge-new/qw/source/cl_chat.c
+--- quakeforge-0.5.5/qw/source/cl_chat.c 2003-07-18 02:27:26.000000000 -0400
++++ quakeforge-new/qw/source/cl_chat.c 2006-03-28 15:01:54.000000000 -0500
+@@ -66,7 +66,7 @@
+ static void
+ CL_Ignore_Sanity_Check (void)
+ {
+- static qboolean iterator (ignore_t *ig, llist_node_t *node)
++ qboolean iterator (ignore_t *ig, llist_node_t *node)
+ {
+ if (cl.players[ig->slot].userid != ig->uid) // We got out of sync somehow
+ llist_remove (node);
+@@ -80,12 +80,12 @@
+ {
+ CL_Ignore_Sanity_Check ();
+ if (Cmd_Argc () == 1) {
+- static qboolean live_iterator (ignore_t *ig, llist_node_t *node)
++ qboolean live_iterator (ignore_t *ig, llist_node_t *node)
+ {
+ Sys_Printf ("%5i - %s\n", ig->uid, Info_ValueForKey (cl.players[ig->slot].userinfo, "name"));
+ return true;
+ }
+- static qboolean dead_iterator (ignore_t *ig, llist_node_t *node)
++ qboolean dead_iterator (ignore_t *ig, llist_node_t *node)
+ {
+ Sys_Printf ("%s\n", ig->lastname);
+ return true;
+@@ -145,7 +145,7 @@
+ dstring_t *test = dstring_newstr ();
+ qboolean allowed = true;
+
+- static qboolean iterator (ignore_t *ig, llist_node_t *node)
++ qboolean iterator (ignore_t *ig, llist_node_t *node)
+ {
+ if (cl.players[ig->slot].userid != ig->uid) { // We got out of sync somehow
+ llist_remove (node);
+@@ -183,7 +183,7 @@
+ {
+ ignore_t *found = 0;
+
+- static qboolean iterator (ignore_t *ig, llist_node_t *node)
++ qboolean iterator (ignore_t *ig, llist_node_t *node)
+ {
+ if (!strcmp (ig->lastname, name)) {
+ found = ig;
+diff -burN quakeforge-0.5.5/tools/qfcc/source/method.c quakeforge-new/tools/qfcc/source/method.c
+--- quakeforge-0.5.5/tools/qfcc/source/method.c 2004-02-16 19:39:21.000000000 -0500
++++ quakeforge-new/tools/qfcc/source/method.c 2006-03-28 15:04:18.000000000 -0500
+@@ -61,7 +61,7 @@
+ #include "struct.h"
+ #include "type.h"
+
+-static hashtab_t *known_methods;
++hashtab_t *known_methods;
+
+ static const char *
+ method_get_key (void *meth, void *unused)
+diff -burN quakeforge-0.5.5/libs/video/targets/context_x11.c quakeforge-new/libs/video/targets/context_x11.c
+--- quakeforge-0.5.5/libs/video/targets/context_x11.c 2006-03-29 15:29:07.000000000 -0500
++++ quakeforge-new/libs/video/targets/context_x11.c 2006-03-29 15:29:49.000000000 -0500
+@@ -97,7 +97,7 @@
+ static XF86VidModeModeInfo **vidmodes;
+ static int nummodes;
+ static int original_mode = 0;
+-static vec3_t x_gamma = {-1, -1, -1};
++vec3_t x_gamma = {-1, -1, -1};
+ static qboolean vidmode_avail = false;
+ #endif
+
+diff -burN quakeforge-0.5.5/libs/video/targets/vid_x11.c quakeforge-new/libs/video/targets/vid_x11.c
+--- quakeforge-0.5.5/libs/video/targets/vid_x11.c 2006-03-29 15:29:07.000000000 -0500
++++ quakeforge-new/libs/video/targets/vid_x11.c 2006-03-29 15:30:15.000000000 -0500
+@@ -86,7 +86,7 @@
+ static Colormap x_cmap;
+ static GC x_gc;
+
+-static qboolean doShm;
++qboolean doShm;
+ static XShmSegmentInfo x_shminfo[2];
+
+ static int current_framebuffer;
diff --git a/games-fps/quakeforge/quakeforge-0.5.5.ebuild b/games-fps/quakeforge/quakeforge-0.5.5.ebuild
index cfb8951828b4..0761e329ff90 100644
--- a/games-fps/quakeforge/quakeforge-0.5.5.ebuild
+++ b/games-fps/quakeforge/quakeforge-0.5.5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/quakeforge/quakeforge-0.5.5.ebuild,v 1.10 2006/03/27 20:35:44 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/quakeforge/quakeforge-0.5.5.ebuild,v 1.11 2006/05/06 22:11:49 tupone Exp $
inherit eutils games
@@ -48,8 +48,9 @@ DEPEND="${RDEPEND}
src_unpack() {
unpack ${A}
- cd ${S}
- epatch ${FILESDIR}/${PV}-ipv6.patch
+ cd "${S}"
+ epatch "${FILESDIR}/${PV}"-ipv6.patch \
+ "${FILESDIR}/${P}"-gcc41.patch
}
src_compile() {