diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2004-12-09 09:46:42 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2004-12-09 09:46:42 +0000 |
commit | 6ecaabd2440e39552df7b31f84a28ff790648db5 (patch) | |
tree | cefc080c769e28605f10da9a34cd262acd5b4ec4 | |
parent | xmms-mad versioned DEP to fix bugs on popping and skipped starts. (Manifest r... (diff) | |
download | gentoo-2-6ecaabd2440e39552df7b31f84a28ff790648db5.tar.gz gentoo-2-6ecaabd2440e39552df7b31f84a28ff790648db5.tar.bz2 gentoo-2-6ecaabd2440e39552df7b31f84a28ff790648db5.zip |
add patch to fix some 64-bit issues from Tyler Montbriand via bug #66263
-rw-r--r-- | games-action/armagetron/ChangeLog | 6 | ||||
-rw-r--r-- | games-action/armagetron/armagetron-0.2.6.0.ebuild | 3 | ||||
-rw-r--r-- | games-action/armagetron/files/0.2.6.0-64bit.patch | 69 |
3 files changed, 76 insertions, 2 deletions
diff --git a/games-action/armagetron/ChangeLog b/games-action/armagetron/ChangeLog index 57fd4cc07bcb..c82afd3aa2ec 100644 --- a/games-action/armagetron/ChangeLog +++ b/games-action/armagetron/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-action/armagetron # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-action/armagetron/ChangeLog,v 1.6 2004/12/07 09:32:13 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-action/armagetron/ChangeLog,v 1.7 2004/12/09 09:46:42 mr_bones_ Exp $ + + 09 Dec 2004; Michael Sterrett <mr_bones_@gentoo.org> + +files/0.2.6.0-64bit.patch, armagetron-0.2.6.0.ebuild: + add patch to fix some 64-bit issues from Tyler Montbriand via bug #66263 07 Dec 2004; Michael Sterrett <mr_bones_@gentoo.org> armagetron-0.2.6.0.ebuild: diff --git a/games-action/armagetron/armagetron-0.2.6.0.ebuild b/games-action/armagetron/armagetron-0.2.6.0.ebuild index 379d49977878..d165d3b72fe5 100644 --- a/games-action/armagetron/armagetron-0.2.6.0.ebuild +++ b/games-action/armagetron/armagetron-0.2.6.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-action/armagetron/armagetron-0.2.6.0.ebuild,v 1.7 2004/12/07 09:32:13 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-action/armagetron/armagetron-0.2.6.0.ebuild,v 1.8 2004/12/09 09:46:42 mr_bones_ Exp $ inherit games flag-o-matic @@ -33,6 +33,7 @@ src_unpack() { -e 's/$(SYNC)/$(SYNCDISK)/' Makefile.global.in \ || die 'sed Makefile.global.in failed' filter-flags -fno-exceptions + epatch "${FILESDIR}/${PV}-64bit.patch" } src_install() { diff --git a/games-action/armagetron/files/0.2.6.0-64bit.patch b/games-action/armagetron/files/0.2.6.0-64bit.patch new file mode 100644 index 000000000000..7ec5baea3f97 --- /dev/null +++ b/games-action/armagetron/files/0.2.6.0-64bit.patch @@ -0,0 +1,69 @@ +diff --unified -r armagetron-0.2.6.0/src/engine/eWall.cpp armagetron-patch/src/engine/eWall.cpp +--- armagetron-0.2.6.0/src/engine/eWall.cpp 2003-10-13 14:43:15.000000000 -0600 ++++ armagetron-patch/src/engine/eWall.cpp 2004-10-03 15:14:47.953792336 -0600 +@@ -280,6 +280,6 @@ + #else + static eWall* pwall = NULL; + static eWall& wall = *pwall; +- return reinterpret_cast<eWall *> (reinterpret_cast<int>(&this[-viewer]) - reinterpret_cast<int>(&wall.view[0]) + reinterpret_cast<int>(&wall)); ++ return reinterpret_cast<eWall *> (reinterpret_cast<long int>(&this[-viewer]) - reinterpret_cast<long int>(&wall.view[0]) + reinterpret_cast<long int>(&wall)); + #endif + } +diff --unified -r armagetron-0.2.6.0/src/network/nNetwork.cpp armagetron-patch/src/network/nNetwork.cpp +--- armagetron-0.2.6.0/src/network/nNetwork.cpp 2003-10-14 01:38:56.000000000 -0600 ++++ armagetron-patch/src/network/nNetwork.cpp 2004-10-03 15:17:14.870457608 -0600 +@@ -1618,7 +1618,7 @@ + + // if (peer!=id) + // con << "Changed incoming address.\n"; +- int lenleft = reinterpret_cast<int>(bend) - reinterpret_cast<int>(b); ++ int lenleft = reinterpret_cast<long int>(bend) - reinterpret_cast<long int>(b); + + #ifndef NOEXCEPT + try +@@ -1629,7 +1629,7 @@ + pmess = tNEW( nMessage )(b,id,lenleft); + nMessage& mess = *pmess; + +- lenleft = reinterpret_cast<int>(bend) - reinterpret_cast<int>(b); ++ lenleft = reinterpret_cast<long int>(bend) - reinterpret_cast<long int>(b); + + bool mess_is_new=true; + // see if we have got this packet before +diff --unified -r armagetron-0.2.6.0/src/network/nServerInfo.cpp armagetron-patch/src/network/nServerInfo.cpp +--- armagetron-0.2.6.0/src/network/nServerInfo.cpp 2003-10-13 14:43:15.000000000 -0600 ++++ armagetron-patch/src/network/nServerInfo.cpp 2004-10-03 15:16:02.983386104 -0600 +@@ -403,8 +403,8 @@ + static nServerInfo& info = *this; // will not cause recursion since it is called only once. + // uaaa. Pointer magic... + return reinterpret_cast<nServerInfo *> +- ( reinterpret_cast<int> (anchor) - +- reinterpret_cast<int> (&info.next) + reinterpret_cast<int>( &info ) ++ ( reinterpret_cast<long int> (anchor) - ++ reinterpret_cast<long int> (&info.next) + reinterpret_cast<long int>( &info ) + ); + } + +diff --unified -r armagetron-0.2.6.0/src/network/net_udp.cpp armagetron-patch/src/network/net_udp.cpp +--- armagetron-0.2.6.0/src/network/net_udp.cpp 2003-10-13 14:43:15.000000000 -0600 ++++ armagetron-patch/src/network/net_udp.cpp 2004-10-03 15:19:34.741194024 -0600 +@@ -420,7 +420,8 @@ + + int ANET_Read (int& sock, int8 *buf, int len, struct sockaddr *addr) + { +- NET_SIZE addrlen = sizeof (struct sockaddr); ++// NET_SIZE addrlen = sizeof (struct sockaddr); ++ socklen_t addrlen = (socklen_t)sizeof (struct sockaddr); + + int ret; + +@@ -541,7 +542,8 @@ + + int ANET_GetSocketAddr (int sock, struct sockaddr *addr) + { +- NET_SIZE addrlen = sizeof(struct sockaddr); ++// NET_SIZE addrlen = sizeof(struct sockaddr); ++ socklen_t addrlen = (socklen_t)sizeof(struct sockaddr); + unsigned int a; + + memset(addr, 0, sizeof(struct sockaddr)); |