summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Kursawe <phosphan@gentoo.org>2004-10-05 10:27:45 +0000
committerPatrick Kursawe <phosphan@gentoo.org>2004-10-05 10:27:45 +0000
commit7ebea39e5eb908397a357e47ee5eda7531526686 (patch)
tree4d91d475c12008c192c5b5affc26d6bd800deb6e /x11-misc/xaos
parentget_libdir fixin. (Manifest recommit) (diff)
downloadgentoo-2-7ebea39e5eb908397a357e47ee5eda7531526686.tar.gz
gentoo-2-7ebea39e5eb908397a357e47ee5eda7531526686.tar.bz2
gentoo-2-7ebea39e5eb908397a357e47ee5eda7531526686.zip
Added patch for gcc 3.4
Diffstat (limited to 'x11-misc/xaos')
-rw-r--r--x11-misc/xaos/ChangeLog6
-rw-r--r--x11-misc/xaos/files/gcc3.4.patch227
-rw-r--r--x11-misc/xaos/xaos-3.1.ebuild10
3 files changed, 241 insertions, 2 deletions
diff --git a/x11-misc/xaos/ChangeLog b/x11-misc/xaos/ChangeLog
index 397539097b5a..a39f63f9f2f1 100644
--- a/x11-misc/xaos/ChangeLog
+++ b/x11-misc/xaos/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for x11-misc/xaos
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/xaos/ChangeLog,v 1.11 2004/10/02 15:42:26 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/xaos/ChangeLog,v 1.12 2004/10/05 10:27:45 phosphan Exp $
+
+ 05 Oct 2004; Patrick Kursawe <phosphan@gentoo.org> +files/gcc3.4.patch,
+ xaos-3.1.ebuild:
+ Adding patch for gcc 3.4.
27 Jul 2004; Ciaran McCreesh <ciaranm@gentoo.org> xaos-3.1.ebuild:
Added -sparc, see bug #58508
diff --git a/x11-misc/xaos/files/gcc3.4.patch b/x11-misc/xaos/files/gcc3.4.patch
new file mode 100644
index 000000000000..bc228e51dc3b
--- /dev/null
+++ b/x11-misc/xaos/files/gcc3.4.patch
@@ -0,0 +1,227 @@
+diff -ru ./src/engine/docalc.c ../XaoS-3.1-new/./src/engine/docalc.c
+--- ./src/engine/docalc.c 2002-09-25 17:52:08.000000000 +0200
++++ ../XaoS-3.1-new/./src/engine/docalc.c 2004-10-05 12:16:32.000000000 +0200
+@@ -119,7 +119,7 @@
+ SCALC (register number_t zre, register number_t zim, register number_t pre,
+ register number_t pim)
+ CONSTF REGISTERS (3);
+- static unsigned int FUNCTYPE
++REGISTERS(3) static unsigned int FUNCTYPE
+ SCALC (register number_t zre, register number_t zim,
+ register number_t pre, register number_t pim)
+ #else
+@@ -127,7 +127,7 @@
+ CALC (register number_t zre, register number_t zim, register number_t pre,
+ register number_t pim)
+ CONSTF REGISTERS (3);
+- static unsigned
++REGISTERS(3) static unsigned
+ CALC (register number_t zre, register number_t zim,
+ register number_t pre, register number_t pim)
+ #endif
+@@ -256,7 +256,7 @@
+ SCALC (register number_t zre, register number_t zim, register number_t pre,
+ register number_t pim)
+ CONSTF REGISTERS (3);
+- static unsigned int FUNCTYPE
++REGISTERS(3) static unsigned int FUNCTYPE
+ SCALC (register number_t zre, register number_t zim,
+ register number_t pre, register number_t pim)
+ #else
+@@ -264,7 +264,7 @@
+ CALC (register number_t zre, register number_t zim, register number_t pre,
+ register number_t pim)
+ CONSTF REGISTERS (3);
+- static unsigned int FUNCTYPE
++REGISTERS(3) static unsigned int FUNCTYPE
+ CALC (register number_t zre, register number_t zim,
+ register number_t pre, register number_t pim)
+ #endif
+@@ -348,7 +348,7 @@
+ SPERI (register number_t zre, register number_t zim, register number_t pre,
+ register number_t pim)
+ CONSTF REGISTERS (3);
+- static unsigned int FUNCTYPE
++REGISTERS(3) static unsigned int FUNCTYPE
+ SPERI (register number_t zre, register number_t zim,
+ register number_t pre, register number_t pim)
+ #else
+@@ -356,7 +356,7 @@
+ PERI (register number_t zre, register number_t zim, register number_t pre,
+ register number_t pim)
+ CONSTF REGISTERS (3);
+- static unsigned int FUNCTYPE
++REGISTERS(3) static unsigned int FUNCTYPE
+ PERI (register number_t zre, register number_t zim,
+ register number_t pre, register number_t pim)
+ #endif
+@@ -471,7 +471,7 @@
+ SPERI (register number_t zre, register number_t zim, register number_t pre,
+ register number_t pim)
+ CONSTF REGISTERS (3);
+- static unsigned int FUNCTYPE
++REGISTERS(3) static unsigned int FUNCTYPE
+ SPERI (register number_t zre, register number_t zim,
+ register number_t pre, register number_t pim)
+ #else
+@@ -479,7 +479,7 @@
+ PERI (register number_t zre, register number_t zim, register number_t pre,
+ register number_t pim)
+ CONSTF REGISTERS (3);
+- static unsigned int FUNCTYPE
++REGISTERS(3) static unsigned int FUNCTYPE
+ PERI (register number_t zre, register number_t zim,
+ register number_t pre, register number_t pim)
+ #endif
+diff -ru ./src/engine/formulas.c ../XaoS-3.1-new/./src/engine/formulas.c
+--- ./src/engine/formulas.c 2003-01-10 11:26:12.000000000 +0100
++++ ../XaoS-3.1-new/./src/engine/formulas.c 2004-10-05 12:14:31.000000000 +0200
+@@ -251,7 +251,7 @@
+ truecolor_output (number_t zre, number_t zim, number_t pre, number_t pim,
+ int mode, int inset)
+ CONSTF REGISTERS (3);
+- static unsigned int
++REGISTERS(3) static unsigned int
+ truecolor_output (number_t zre, number_t zim, number_t pre,
+ number_t pim, int mode, int inset)
+ {
+@@ -445,7 +445,7 @@
+ color_output (number_t zre, number_t zim, unsigned int iter)
+ CONSTF REGISTERS (3);
+ static unsigned int
+- color_output (number_t zre, number_t zim, unsigned int iter)
++REGISTERS(3) color_output (number_t zre, number_t zim, unsigned int iter)
+ {
+ int i;
+ iter <<= SHIFT;
+@@ -529,7 +529,7 @@
+ incolor_output (number_t zre, number_t zim, number_t pre, number_t pim,
+ unsigned int iter)
+ CONSTF REGISTERS (3);
+- static unsigned int
++REGISTERS(3) static unsigned int
+ incolor_output (number_t zre, number_t zim, number_t pre, number_t pim,
+ unsigned int iter)
+ {
+diff -ru ./src/engine/plane.c ../XaoS-3.1-new/./src/engine/plane.c
+--- ./src/engine/plane.c 2002-09-25 17:52:08.000000000 +0200
++++ ../XaoS-3.1-new/./src/engine/plane.c 2004-10-05 12:18:09.000000000 +0200
+@@ -53,7 +53,7 @@
+ };
+
+
+-void
++REGISTERS(3) void
+ recalculate (int plane, number_t * x1, number_t * y1)
+ {
+ number_t x = *x1, y = *y1;
+diff -ru ./src/engine/zoom.c ../XaoS-3.1-new/./src/engine/zoom.c
+--- ./src/engine/zoom.c 2003-02-03 17:16:41.000000000 +0100
++++ ../XaoS-3.1-new/./src/engine/zoom.c 2004-10-05 12:17:35.000000000 +0200
+@@ -1327,7 +1327,7 @@
+ static void
+ addprices (realloc_t * r, realloc_t * r2)
+ REGISTERS (3);
+- static void addprices (realloc_t * r, realloc_t * r2)
++REGISTERS(3) static void addprices (realloc_t * r, realloc_t * r2)
+ {
+ realloc_t *r3;
+ while (r < r2)
+diff -ru ./src/engine/zoomd.c ../XaoS-3.1-new/./src/engine/zoomd.c
+--- ./src/engine/zoomd.c 2002-09-25 17:52:09.000000000 +0200
++++ ../XaoS-3.1-new/./src/engine/zoomd.c 2004-10-05 12:17:22.000000000 +0200
+@@ -28,7 +28,7 @@
+ static void
+ calcline (realloc_t * RESTRICT ry)
+ REGISTERS (3);
+- static void calcline (realloc_t * RESTRICT ry)
++REGISTERS(3) static void calcline (realloc_t * RESTRICT ry)
+ {
+ number_t y;
+ int range = cfractalc.range;
+@@ -140,7 +140,7 @@
+ static void
+ calccolumn (realloc_t * RESTRICT rx)
+ REGISTERS (3);
+- static void calccolumn (realloc_t * RESTRICT rx)
++REGISTERS (3) static void calccolumn (realloc_t * RESTRICT rx)
+ {
+ number_t x;
+ int range = cfractalc.range;
+diff -ru ./src/ui/ui.c ../XaoS-3.1-new/./src/ui/ui.c
+--- ./src/ui/ui.c 2003-03-19 13:09:31.000000000 +0100
++++ ../XaoS-3.1-new/./src/ui/ui.c 2004-10-05 12:21:20.000000000 +0200
+@@ -97,6 +97,10 @@
+
+ xio_pathdata configfile;
+ static void ui_unregistermenus (void);
++static void ui_mkimages(int,int);
++static void
++main_loop (void)
++ NORETURN;
+
+ int prog_argc;
+ char **prog_argv;
+@@ -1732,10 +1736,7 @@
+ uih_updatemenus (uih, driver->name);
+ }
+
+-static void
+-main_loop (void)
+- NORETURN;
+- static void main_loop (void)
++NORETURN static void main_loop (void)
+ {
+ int inmovement = 1;
+ int x, y, b, k;
+diff -ru ./src/ui-hlp/save.c ../XaoS-3.1-new/./src/ui-hlp/save.c
+--- ./src/ui-hlp/save.c 2003-02-03 17:16:44.000000000 +0100
++++ ../XaoS-3.1-new/./src/ui-hlp/save.c 2004-10-05 12:22:05.000000000 +0200
+@@ -294,7 +294,7 @@
+ static void
+ savepos (struct uih_context *uih)
+ REGISTERS (3);
+- static void savepos (struct uih_context *uih)
++REGISTERS(3) static void savepos (struct uih_context *uih)
+ {
+ int n = ndecimals (uih);
+ start_save (uih, "view");
+@@ -308,7 +308,7 @@
+ static void
+ savepos2 (struct uih_context *uih)
+ REGISTERS (3);
+- static void savepos2 (struct uih_context *uih)
++REGISTERS(3) static void savepos2 (struct uih_context *uih)
+ {
+ int n = ndecimals (uih);
+ start_save (uih, "animateview");
+@@ -322,7 +322,7 @@
+ static void
+ savepos3 (struct uih_context *uih)
+ REGISTERS (3);
+- static void savepos3 (struct uih_context *uih)
++REGISTERS(3) static void savepos3 (struct uih_context *uih)
+ {
+ int n = ndecimals (uih);
+ start_save (uih, "morphview");
+diff -ru ./src/util/timers.c ../XaoS-3.1-new/./src/util/timers.c
+--- ./src/util/timers.c 2003-02-03 11:16:52.000000000 +0100
++++ ../XaoS-3.1-new/./src/util/timers.c 2004-10-05 12:22:05.000000000 +0200
+@@ -331,7 +331,7 @@
+ #endif
+ }
+
+-int
++REGISTERS(3) int
+ tl_lookup_timer (tl_timer * t)
+ {
+ if (t->stopped)
+@@ -409,7 +409,7 @@
+ #endif
+ }
+
+-void
++REGISTERS(3) void
+ tl_reset_timer (tl_timer * t)
+ {
+ if (t->stopped)
diff --git a/x11-misc/xaos/xaos-3.1.ebuild b/x11-misc/xaos/xaos-3.1.ebuild
index 32ca81de01a3..9f3068e8ab36 100644
--- a/x11-misc/xaos/xaos-3.1.ebuild
+++ b/x11-misc/xaos/xaos-3.1.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/xaos/xaos-3.1.ebuild,v 1.9 2004/07/27 07:00:19 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/xaos/xaos-3.1.ebuild,v 1.10 2004/10/05 10:27:45 phosphan Exp $
+
+inherit eutils
IUSE="X svga aalib nls"
@@ -25,6 +27,12 @@ DEPEND="X? ( virtual/x11 )
# ggi? ( media-libs/libggi )
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/gcc3.4.patch
+}
+
src_compile() {
local myconf
use X || myconf="--with-x11-driver=no"