From bc38f879d3d53c8fe990d2cec66b0cead0da6969 Mon Sep 17 00:00:00 2001 From: Ryan Hill Date: Sun, 3 Mar 2013 08:22:03 +0000 Subject: Further build fixes for GCC 4.7 (bug #459440). (Portage version: 2.2.0_alpha164/cvs/Linux x86_64, signed Manifest commit with key 957A8463) --- dev-games/crystalspace/ChangeLog | 6 +- .../files/crystalspace-2.0-gcc47.patch | 88 +++++++++++++++++++--- 2 files changed, 83 insertions(+), 11 deletions(-) (limited to 'dev-games/crystalspace') diff --git a/dev-games/crystalspace/ChangeLog b/dev-games/crystalspace/ChangeLog index bd8e3ed8684c..e6910aa3f8f9 100644 --- a/dev-games/crystalspace/ChangeLog +++ b/dev-games/crystalspace/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-games/crystalspace # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-games/crystalspace/ChangeLog,v 1.58 2013/02/13 17:27:38 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-games/crystalspace/ChangeLog,v 1.59 2013/03/03 08:22:03 dirtyepic Exp $ + + 03 Mar 2013; Ryan Hill + files/crystalspace-2.0-gcc47.patch: + Further build fixes for GCC 4.7 (bug #459440). 13 Feb 2013; Michael Sterrett -crystalspace-1.4.0.ebuild, -files/crystalspace-1.4.0-bullet.patch, diff --git a/dev-games/crystalspace/files/crystalspace-2.0-gcc47.patch b/dev-games/crystalspace/files/crystalspace-2.0-gcc47.patch index c5144b94eb3b..5b76b2e94707 100644 --- a/dev-games/crystalspace/files/crystalspace-2.0-gcc47.patch +++ b/dev-games/crystalspace/files/crystalspace-2.0-gcc47.patch @@ -1,6 +1,45 @@ ---- include/csutil/blockallocator.h -+++ include/csutil/blockallocator.h -@@ -193,7 +193,7 @@ +https://bugs.gentoo.org/426870 +https://bugs.gentoo.org/459440 + + include/csplugincommon/rendermanager/render.h | 6 +++--- + include/csutil/blockallocator.h | 6 +++--- + include/csutil/parray.h | 2 +- + include/csutil/redblacktree.h | 4 ++-- + include/csutil/refarr.h | 2 +- + 5 files changed, 10 insertions(+), 10 deletions(-) + +--- a/include/csplugincommon/rendermanager/render.h ++++ b/include/csplugincommon/rendermanager/render.h +@@ -194,7 +194,7 @@ namespace RenderManager + || (mesh.preCopyNum != 0)) + { + // Render the latest batch of meshes +- RenderMeshes (context, node->meshes, lastShader, lastTicket, lastRenderedMesh, m); ++ this->RenderMeshes (context, node->meshes, lastShader, lastTicket, lastRenderedMesh, m); + lastRenderedMesh = m; + + lastShader = shader; +@@ -208,7 +208,7 @@ namespace RenderManager + } + } + +- RenderMeshes (context, node->meshes, lastShader, lastTicket, lastRenderedMesh, node->meshes.GetSize ()); ++ this->RenderMeshes (context, node->meshes, lastShader, lastTicket, lastRenderedMesh, node->meshes.GetSize ()); + } + }; + +@@ -242,7 +242,7 @@ namespace RenderManager + iShader* shader = context.shaderArray[mesh.contextLocalId+layerOffset]; + + size_t ticket = context.ticketArray[mesh.contextLocalId+layerOffset]; +- RenderMeshes (context, node->meshes, shader, ticket, m, m+1); ++ this->RenderMeshes (context, node->meshes, shader, ticket, m, m+1); + } + } + } +--- a/include/csutil/blockallocator.h ++++ b/include/csutil/blockallocator.h +@@ -193,7 +193,7 @@ public: ~csBlockAllocator() { ObjectDispose dispose (*this, false); @@ -9,7 +48,16 @@ } /** -@@ -215,7 +215,7 @@ +@@ -204,7 +204,7 @@ public: + void Empty () + { + ObjectDispose dispose (*this, true); +- FreeAll (dispose); ++ this->FreeAll (dispose); + } + + /** +@@ -215,7 +215,7 @@ public: void DeleteAll () { ObjectDispose dispose (*this, true); @@ -18,9 +66,9 @@ } /** ---- include/csutil/parray.h -+++ include/csutil/parray.h -@@ -112,7 +112,7 @@ +--- a/include/csutil/parray.h ++++ b/include/csutil/parray.h +@@ -112,7 +112,7 @@ public: { CS_ASSERT (this->GetSize () > 0); T* ret = GetAndClear (this->GetSize () - 1); // see *1* @@ -29,9 +77,29 @@ return ret; } ---- include/csutil/refarr.h -+++ include/csutil/refarr.h -@@ -111,7 +111,7 @@ +--- a/include/csutil/redblacktree.h ++++ b/include/csutil/redblacktree.h +@@ -1155,7 +1155,7 @@ public: + T* Put (const K& key, const T &value) + { + csRedBlackTreePayload* payload = (csRedBlackTreePayload*) +- Insert (csRedBlackTreePayload(key, value)); ++ this->Insert (csRedBlackTreePayload(key, value)); + return (payload != 0) ? &payload->GetValue() : 0; + } + /** +@@ -1194,7 +1194,7 @@ public: + */ + const T& Get (const K& key, const T& fallback) const + { +- const csRedBlackTreePayload* payload = Find (key); ++ const csRedBlackTreePayload* payload = this->Find (key); + if (payload == 0) return fallback; + return payload->GetValue(); + } +--- a/include/csutil/refarr.h ++++ b/include/csutil/refarr.h +@@ -111,7 +111,7 @@ public: { CS_ASSERT (this->GetSize () > 0); csRef ret = this->Get (this->GetSize () - 1); // see *1* -- cgit v1.2.3-65-gdbad