summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2007-02-16 20:09:03 +0000
committerAlfredo Tupone <tupone@gentoo.org>2007-02-16 20:09:03 +0000
commit29dc0ee7f3e75d1279441bbbec6937162716fdfe (patch)
treeaebf12ed48b5ed7fcc52ad2d3705d54d3ece0655 /dev-games/cel
parentmark -amd64; bug 167001 (diff)
downloadgentoo-2-29dc0ee7f3e75d1279441bbbec6937162716fdfe.tar.gz
gentoo-2-29dc0ee7f3e75d1279441bbbec6937162716fdfe.tar.bz2
gentoo-2-29dc0ee7f3e75d1279441bbbec6937162716fdfe.zip
Fixing compilation for amd64
(Portage version: 2.1.1-r2)
Diffstat (limited to 'dev-games/cel')
-rw-r--r--dev-games/cel/ChangeLog6
-rw-r--r--dev-games/cel/cel-1.0.ebuild8
-rw-r--r--dev-games/cel/files/cel-1.0-amd64.patch25
3 files changed, 37 insertions, 2 deletions
diff --git a/dev-games/cel/ChangeLog b/dev-games/cel/ChangeLog
index b0afefc45a9d..53aaef506642 100644
--- a/dev-games/cel/ChangeLog
+++ b/dev-games/cel/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-games/cel
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-games/cel/ChangeLog,v 1.16 2007/02/03 00:01:56 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-games/cel/ChangeLog,v 1.17 2007/02/16 20:09:03 tupone Exp $
+
+ 16 Feb 2007; <tupone@gentoo.org> +files/cel-1.0-amd64.patch,
+ cel-1.0.ebuild:
+ Fixing compilation for amd64
*cel-1.0 (03 Feb 2007)
diff --git a/dev-games/cel/cel-1.0.ebuild b/dev-games/cel/cel-1.0.ebuild
index c56ae30c2da1..b7ecf784f1b2 100644
--- a/dev-games/cel/cel-1.0.ebuild
+++ b/dev-games/cel/cel-1.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-games/cel/cel-1.0.ebuild,v 1.2 2007/02/08 07:28:51 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-games/cel/cel-1.0.ebuild,v 1.3 2007/02/16 20:09:03 tupone Exp $
inherit eutils
@@ -21,6 +21,12 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/${MY_P}
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}"-amd64.patch
+}
+
src_compile() {
econf \
--disable-separate-debug-info \
diff --git a/dev-games/cel/files/cel-1.0-amd64.patch b/dev-games/cel/files/cel-1.0-amd64.patch
new file mode 100644
index 000000000000..b909a4183cbc
--- /dev/null
+++ b/dev-games/cel/files/cel-1.0-amd64.patch
@@ -0,0 +1,25 @@
+--- plugins/network/tcp/tcpgameclient.cpp.old 2007-02-16 20:03:01.000000000 +0100
++++ plugins/network/tcp/tcpgameclient.cpp 2007-02-16 20:04:06.000000000 +0100
+@@ -341,7 +341,9 @@
+ packet->Read (temp_game_info.game_name);
+ packet->Read (temp_game_info.hostname);
+ packet->Read (temp_game_info.port_nb);
+- packet->Read (temp_game_info.max_players);
++ uint32 max_players;
++ packet->Read (max_players);
++ temp_game_info.max_players = max_players;
+ packet->Read (temp_game_info.custom_data);
+ if (!game->IsServerAvailable ())
+ game->game_info = temp_game_info;
+--- plugins/network/tcp/tcpgameserver.cpp.old 2007-02-16 20:03:12.000000000 +0100
++++ plugins/network/tcp/tcpgameserver.cpp 2007-02-16 20:08:18.000000000 +0100
+@@ -450,7 +450,8 @@
+ answer_packet->Write (game->game_info.game_name);
+ answer_packet->Write (game->game_info.hostname);
+ answer_packet->Write (game->game_info.port_nb);
+- answer_packet->Write (game->game_info.max_players);
++ uint32 max_players = game->game_info.max_players;
++ answer_packet->Write (max_players);
+ answer_packet->Write (game->game_info.custom_data);
+
+ // send packet