diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-10-17 15:26:29 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-10-17 15:26:29 +0000 |
commit | 362718a723eccaf894601db64c1b2a203de95d02 (patch) | |
tree | d3c8846480e7cb25acf451f1ceb584d3807330aa /games-strategy/scorched3d | |
parent | Some modifications required by the move. (diff) | |
download | historical-362718a723eccaf894601db64c1b2a203de95d02.tar.gz historical-362718a723eccaf894601db64c1b2a203de95d02.tar.bz2 historical-362718a723eccaf894601db64c1b2a203de95d02.zip |
Added patch from Piotr Chmura <chmooreck@poczta.onet.pl> for GCC 4.1/AMD64 and closing bug #148816.
Package-Manager: portage-2.1.2_pre2-r5
Diffstat (limited to 'games-strategy/scorched3d')
-rw-r--r-- | games-strategy/scorched3d/ChangeLog | 7 | ||||
-rw-r--r-- | games-strategy/scorched3d/Manifest | 30 | ||||
-rw-r--r-- | games-strategy/scorched3d/files/scorched3d-40-gcc4.patch | 215 | ||||
-rw-r--r-- | games-strategy/scorched3d/scorched3d-40.ebuild | 3 |
4 files changed, 245 insertions, 10 deletions
diff --git a/games-strategy/scorched3d/ChangeLog b/games-strategy/scorched3d/ChangeLog index f2d33a038cbb..16a3f9262352 100644 --- a/games-strategy/scorched3d/ChangeLog +++ b/games-strategy/scorched3d/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-strategy/scorched3d # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/scorched3d/ChangeLog,v 1.35 2006/09/27 14:21:05 nyhm Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/scorched3d/ChangeLog,v 1.36 2006/10/17 15:26:29 wolf31o2 Exp $ + + 17 Oct 2006; Chris Gianelloni <wolf31o2@gentoo.org> + +files/scorched3d-40-gcc4.patch, scorched3d-40.ebuild: + Added patch from Piotr Chmura <chmooreck@poczta.onet.pl> for GCC 4.1/AMD64 + and closing bug #148816. 27 Sep 2006; Tristan Heaven <nyhm@gentoo.org> scorched3d-40.ebuild: Add inherit eutils diff --git a/games-strategy/scorched3d/Manifest b/games-strategy/scorched3d/Manifest index c5b04d490124..7ea08d4dbd2a 100644 --- a/games-strategy/scorched3d/Manifest +++ b/games-strategy/scorched3d/Manifest @@ -1,20 +1,27 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX scorched3d-40-freealut.patch 1642 RMD160 f1b34457eb557593c9d41227353cd0d44d7e1737 SHA1 ea6eabe5a8d79f31e67b8cf2827ecbadf67789a6 SHA256 65bb549d836d2cd724cb1ab2ce41b57696f2ac0ae3ba5b9457acab57e04c039f MD5 8fa3a944a0ab30b2ca9ce943f979ae20 files/scorched3d-40-freealut.patch 1642 RMD160 f1b34457eb557593c9d41227353cd0d44d7e1737 files/scorched3d-40-freealut.patch 1642 SHA256 65bb549d836d2cd724cb1ab2ce41b57696f2ac0ae3ba5b9457acab57e04c039f files/scorched3d-40-freealut.patch 1642 +AUX scorched3d-40-gcc4.patch 8484 RMD160 bdd202713b9ac4d57e08a3b2bf7ff60093c110a3 SHA1 8801919284a8d75f0160d3db90e25db2635295e7 SHA256 f88e7299096cfc7a465923da247ca1f51629ce4eed3a69d5d1d0b1018e4cc1f6 +MD5 780cf437966ad888456814734936a46b files/scorched3d-40-gcc4.patch 8484 +RMD160 bdd202713b9ac4d57e08a3b2bf7ff60093c110a3 files/scorched3d-40-gcc4.patch 8484 +SHA256 f88e7299096cfc7a465923da247ca1f51629ce4eed3a69d5d1d0b1018e4cc1f6 files/scorched3d-40-gcc4.patch 8484 AUX scorched3d-40-unicode.patch 1759 RMD160 89b0ce779ad07ad8dcb4252be3029e8251e94c0e SHA1 3cb5b91921633217be19adb1720419737a27bd56 SHA256 c84ef2cd1f60bba076ab44f8ee4417476dfd0969da0136b2c6a98727c6efbb3a MD5 dad88edac755cb2ed6d706d2688823a3 files/scorched3d-40-unicode.patch 1759 RMD160 89b0ce779ad07ad8dcb4252be3029e8251e94c0e files/scorched3d-40-unicode.patch 1759 SHA256 c84ef2cd1f60bba076ab44f8ee4417476dfd0969da0136b2c6a98727c6efbb3a files/scorched3d-40-unicode.patch 1759 DIST Scorched3D-40-src.tar.gz 55427740 RMD160 2e900986a8a9262d3ffb85d1f6e6bfd4b4d9b9a6 SHA1 91a80b8a968532b505082d477c646b3a8e805ecd SHA256 8722d1f06e50f25f8e373f4388668a8b056e978dba8b86f197a45c3fa1f9008b -EBUILD scorched3d-40.ebuild 1403 RMD160 05230a78f1973d6fa3a135c861ecde31b26e3cdf SHA1 71ff5838c92aa0e55a694f575c07b6a10bf090ce SHA256 c57e984b4a7d0b7135d2559d5dbd860b0ad30cd134e75cc988fb0f564e62bf01 -MD5 684104d05b6d77ae3413ddb3aade6905 scorched3d-40.ebuild 1403 -RMD160 05230a78f1973d6fa3a135c861ecde31b26e3cdf scorched3d-40.ebuild 1403 -SHA256 c57e984b4a7d0b7135d2559d5dbd860b0ad30cd134e75cc988fb0f564e62bf01 scorched3d-40.ebuild 1403 -MISC ChangeLog 4646 RMD160 ab05a768eff12335b25e79f438b94eb7154da89a SHA1 f06ebb9b4dce40f1622dc502ef1885511481f6f0 SHA256 f53a98eb347b2566bf7b442dc3a55837d7d6052714bce25d89cd617e5fe4b04c -MD5 291d8911eb95a27f2671241d04ff6d37 ChangeLog 4646 -RMD160 ab05a768eff12335b25e79f438b94eb7154da89a ChangeLog 4646 -SHA256 f53a98eb347b2566bf7b442dc3a55837d7d6052714bce25d89cd617e5fe4b04c ChangeLog 4646 +EBUILD scorched3d-40.ebuild 1445 RMD160 1d902faf3dbae44ae40d2089bc749b3cd22c750d SHA1 9b58c34362d50f15e84552020f683eb808717222 SHA256 1f18b6bfb756f4683a03de7e4a103fe4e42db64d413bd6bab945cbe351a09f55 +MD5 977318e737b5514879b5161750f054c4 scorched3d-40.ebuild 1445 +RMD160 1d902faf3dbae44ae40d2089bc749b3cd22c750d scorched3d-40.ebuild 1445 +SHA256 1f18b6bfb756f4683a03de7e4a103fe4e42db64d413bd6bab945cbe351a09f55 scorched3d-40.ebuild 1445 +MISC ChangeLog 4866 RMD160 78cc7475f4151f1846b094c91f59c4d5029b9cfe SHA1 0191022cd6eaea292cf25161cb5f7f30f32388cd SHA256 539cdd1453ed12523e54ee6736605ee56791237e7cc56462624a3cc1cb30979c +MD5 63cf7ab3586f139cd37dd9e87138df9e ChangeLog 4866 +RMD160 78cc7475f4151f1846b094c91f59c4d5029b9cfe ChangeLog 4866 +SHA256 539cdd1453ed12523e54ee6736605ee56791237e7cc56462624a3cc1cb30979c ChangeLog 4866 MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158 @@ -22,3 +29,10 @@ SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata MD5 46acb721ced930a58d0ec5e4cdd7dbf8 files/digest-scorched3d-40 259 RMD160 e66449962fd7234ee9774d1f5d46c13af5ecd6ac files/digest-scorched3d-40 259 SHA256 b892449b76a28869efd1fbd3df0537f743f17a82493c3c9094ee923a8eea2ddc files/digest-scorched3d-40 259 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.5 (GNU/Linux) + +iD8DBQFFNPUCkT4lNIS36YERAtERAJ0TsuJ3Rx656vXPkYo3wwR1K7GhdACfakza +44znJBJkBkpJfOszMPuc2aY= +=EGXa +-----END PGP SIGNATURE----- diff --git a/games-strategy/scorched3d/files/scorched3d-40-gcc4.patch b/games-strategy/scorched3d/files/scorched3d-40-gcc4.patch new file mode 100644 index 000000000000..a242ed5ee1ab --- /dev/null +++ b/games-strategy/scorched3d/files/scorched3d-40-gcc4.patch @@ -0,0 +1,215 @@ +diff -urN scorched.orig/src/client/ServerBrowser.cpp scorched/src/client/ServerBrowser.cpp +--- scorched3d-40/work/scorched/src/client/ServerBrowser.cpp 2006-07-05 19:16:14.000000000 +0200 ++++ scorched3d-40-long/work/scorched/src/client/ServerBrowser.cpp 2006-09-08 20:58:37.000000000 +0200 +@@ -79,7 +79,7 @@ + + int ServerBrowser::threadFunc(void *var) + { +- bool lan = (bool) (int(var)==1); ++ bool lan = (bool) (long(var)==1); + bool result = false; + if (lan) result = instance_->serverCollector_.fetchLANList(); + else result = instance_->serverCollector_.fetchServerList(); +diff -urN scorched.orig/src/coms/NetServer.cpp scorched/src/coms/NetServer.cpp +--- scorched3d-40/work/scorched/src/coms/NetServer.cpp 2006-02-13 18:54:26.000000000 +0100 ++++ scorched3d-40-long/work/scorched/src/coms/NetServer.cpp 2006-09-08 21:03:27.000000000 +0200 +@@ -235,7 +235,7 @@ + itor++) + { + TCPsocket sock = (*itor).first; +- disconnectClient((unsigned int) sock); ++ disconnectClient((unsigned long) sock); + } + SDL_UnlockMutex(setMutex_); + } +@@ -247,7 +247,7 @@ + + NetMessage *message = NetMessagePool::instance()-> + getFromPool(NetMessage::DisconnectMessage, +- (unsigned int) client, ++ (unsigned long) client, + getIpAddress(client)); + + if (delayed) +@@ -264,7 +264,7 @@ + + void NetServer::sendMessage(NetBuffer &buffer) + { +- sendMessage(buffer, (unsigned int) firstDestination_); ++ sendMessage(buffer, (unsigned long) firstDestination_); + } + + void NetServer::sendMessage(NetBuffer &buffer, unsigned int dest) +@@ -276,7 +276,7 @@ + // Get a new buffer from the pool + NetMessage *message = NetMessagePool::instance()-> + getFromPool(NetMessage::NoMessage, +- (unsigned int) destination, ++ (unsigned long) destination, + getIpAddress(destination)); + + // Add message to new buffer +@@ -305,7 +305,7 @@ + { + NetMessagePool::instance()->addToPool(message); + Logger::log(formatString("Unknown sendMessage destination %i", +- (int) client)); ++ (long) client)); + } + SDL_UnlockMutex(setMutex_); + } +diff -urN scorched.orig/src/coms/NetServerProtocol.cpp scorched/src/coms/NetServerProtocol.cpp +--- scorched3d-40/work/scorched/src/coms/NetServerProtocol.cpp 2006-02-13 18:54:26.000000000 +0100 ++++ scorched3d-40-long/work/scorched/src/coms/NetServerProtocol.cpp 2006-09-08 21:04:27.000000000 +0200 +@@ -125,7 +125,7 @@ + // allocate the buffer memory + NetMessage *buffer = NetMessagePool::instance()-> + getFromPool(NetMessage::BufferMessage, +- (unsigned int) socket, ++ (unsigned long) socket, + NetServer::getIpAddress(socket)); + buffer->getBuffer().allocate(len); + buffer->getBuffer().setBufferUsed(len); +@@ -161,7 +161,7 @@ + // Allocate a new buffer + NetMessage *newMessage = NetMessagePool::instance()-> + getFromPool(NetMessage::BufferMessage, +- (unsigned int) socket, ++ (unsigned long) socket, + NetServer::getIpAddress(socket)); + NetBuffer &newBuffer = newMessage->getBuffer(); + newBuffer.allocate(destLen); +@@ -291,7 +291,7 @@ + // allocate the buffer memory + NetMessage *netBuffer = NetMessagePool::instance()-> + getFromPool(NetMessage::BufferMessage, +- (unsigned int) socket, ++ (unsigned long) socket, + NetServer::getIpAddress(socket)); + netBuffer->getBuffer().reset(); + +@@ -354,7 +354,7 @@ + // allocate the buffer memory + NetMessage *netBuffer = NetMessagePool::instance()-> + getFromPool(NetMessage::BufferMessage, +- (unsigned int) socket, ++ (unsigned long) socket, + NetServer::getIpAddress(socket)); + netBuffer->getBuffer().reset(); + +diff -urN scorched.orig/src/coms/NetServerRead.cpp scorched/src/coms/NetServerRead.cpp +--- scorched3d-40/work/scorched/src/coms/NetServerRead.cpp 2006-02-13 18:54:26.000000000 +0100 ++++ scorched3d-40-long/work/scorched/src/coms/NetServerRead.cpp 2006-09-08 21:05:53.000000000 +0200 +@@ -62,7 +62,7 @@ + // Send the player connected notification + NetMessage *message = NetMessagePool::instance()-> + getFromPool(NetMessage::ConnectMessage, +- (unsigned int) socket_, ++ (unsigned long) socket_, + NetServer::getIpAddress(socket_)); + messageHandler_->addMessage(message); + +@@ -94,7 +94,7 @@ + sentDisconnect_ = true; + NetMessage *message = NetMessagePool::instance()-> + getFromPool(NetMessage::DisconnectMessage, +- (unsigned int) socket_, ++ (unsigned long) socket_, + NetServer::getIpAddress(socket_)); + messageHandler_->addMessage(message); + } +@@ -189,7 +189,7 @@ + Logger::log(formatString( + "Warning: %s net loop took %.2f seconds, client %i", + (send?"Send":"Recv"), +- timeDiff, (unsigned int) socket_)); ++ timeDiff, (unsigned long) socket_)); + } + } + +@@ -199,7 +199,7 @@ + sentDisconnect_ = true; + NetMessage *message = NetMessagePool::instance()-> + getFromPool(NetMessage::DisconnectMessage, +- (unsigned int) socket_, ++ (unsigned long) socket_, + NetServer::getIpAddress(socket_)); + messageHandler_->addMessage(message); + } +diff -urN scorched.orig/src/dialogs/HelpButtonDialog.cpp scorched/src/dialogs/HelpButtonDialog.cpp +--- scorched3d-40/work/scorched/src/dialogs/HelpButtonDialog.cpp 2006-04-30 13:56:33.000000000 +0200 ++++ scorched3d-40-long/work/scorched/src/dialogs/HelpButtonDialog.cpp 2006-09-08 20:48:43.000000000 +0200 +@@ -127,7 +127,7 @@ + void HelpButtonDialog::VolumeMenu::menuSelection(const char* menuName, + const int position, GLMenuItem &item) + { +- int data = (int) item.getUserData(); ++ long data = (long) item.getUserData(); + if (data != -1) + { + int volume = int(float(data) * 12.8f); +diff -urN scorched.orig/src/engine/ScorchedCollisionHandler.cpp scorched/src/engine/ScorchedCollisionHandler.cpp +--- scorched3d-40/work/scorched/src/engine/ScorchedCollisionHandler.cpp 2006-04-07 01:08:28.000000000 +0200 ++++ scorched3d-40-long/work/scorched/src/engine/ScorchedCollisionHandler.cpp 2006-09-08 20:50:43.000000000 +0200 +@@ -90,8 +90,8 @@ + ScorchedCollisionInfo *info1, ScorchedCollisionInfo *info2, + dContactGeom *contacts, int noContacts) + { +- unsigned int playerId1 = (unsigned int) info1->data; +- unsigned int playerId2 = (unsigned int) info2->data; ++ unsigned long playerId1 = (unsigned long) info1->data; ++ unsigned long playerId2 = (unsigned long) info2->data; + Target *target1 = context_->targetContainer->getTargetById(playerId1); + Target *target2 = context_->targetContainer->getTargetById(playerId2); + if (!target1 || !target2) return; +@@ -136,7 +136,7 @@ + } + + ShotBounce *particle = (ShotBounce *) bounceInfo->data; +- unsigned int id = (unsigned int) otherInfo->data; ++ unsigned long id = (unsigned long) otherInfo->data; + + // only collide with the ground, walls or landscape, + // or iteself +@@ -257,7 +257,7 @@ + otherInfo = (ScorchedCollisionInfo *) dGeomGetData(o1); + } + +- unsigned int id = (unsigned int) otherInfo->data; ++ unsigned long id = (unsigned long) otherInfo->data; + ShotProjectile *shot = (ShotProjectile *) particleInfo->data; + shot->incLandedCounter(); + Vector particlePositionV( +diff -urN scorched.orig/src/ode/obstack.cpp scorched/src/ode/obstack.cpp +--- scorched3d-40/work/scorched/src/ode/obstack.cpp 2004-09-14 15:18:26.000000000 +0200 ++++ scorched3d-40-long/work/scorched/src/ode/obstack.cpp 2006-09-08 20:55:39.000000000 +0200 +@@ -29,7 +29,7 @@ + // macros and constants + + #define ROUND_UP_OFFSET_TO_EFFICIENT_SIZE(arena,ofs) \ +- ofs = (size_t) (dEFFICIENT_SIZE( ((intP)(arena)) + ofs ) - ((intP)(arena)) ); ++ ofs = (size_t) (dEFFICIENT_SIZE( ((long)(arena)) + ofs ) - ((long)(arena)) ); + + #define MAX_ALLOC_SIZE \ + ((size_t)(dOBSTACK_ARENA_SIZE - sizeof (Arena) - EFFICIENT_ALIGNMENT + 1)) +diff -urN scorched.orig/src/tankgraph/GLWTankTip.cpp scorched/src/tankgraph/GLWTankTip.cpp +--- scorched3d-40/work/scorched/src/tankgraph/GLWTankTip.cpp 2006-07-11 03:36:06.000000000 +0200 ++++ scorched3d-40-long/work/scorched/src/tankgraph/GLWTankTip.cpp 2006-09-08 20:44:53.000000000 +0200 +@@ -68,7 +68,7 @@ + + void TankUndoMenu::itemSelected(GLWSelectorEntry *entry, int position) + { +- tank_->getPosition().revertSettings((unsigned int) entry->getUserData()); ++ tank_->getPosition().revertSettings((unsigned long) entry->getUserData()); + } + + TankFuelTip::TankFuelTip(Tank *tank) : +@@ -236,7 +236,7 @@ + void TankBatteryTip::itemSelected(GLWSelectorEntry *entry, int position) + { + TankAIHuman *tankAI = (TankAIHuman *) tank_->getTankAI(); +- for (int i=1; i<=(int) entry->getUserData(); i++) ++ for (int i=1; i<=(long) entry->getUserData(); i++) + { + if (tank_->getLife().getLife() < + tank_->getLife().getMaxLife()) diff --git a/games-strategy/scorched3d/scorched3d-40.ebuild b/games-strategy/scorched3d/scorched3d-40.ebuild index 9c82e04456f2..4500702b1e83 100644 --- a/games-strategy/scorched3d/scorched3d-40.ebuild +++ b/games-strategy/scorched3d/scorched3d-40.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-strategy/scorched3d/scorched3d-40.ebuild,v 1.4 2006/09/27 14:21:05 nyhm Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/scorched3d/scorched3d-40.ebuild,v 1.5 2006/10/17 15:26:29 wolf31o2 Exp $ inherit eutils wxwidgets games @@ -33,6 +33,7 @@ src_unpack() { cd "${S}" epatch "${FILESDIR}"/${P}-freealut.patch epatch "${FILESDIR}"/${P}-unicode.patch + epatch "${FILESDIR}"/${P}-gcc4.patch } pkg_setup() { |