summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJory Pratt <anarchy@gentoo.org>2005-11-02 17:04:45 +0000
committerJory Pratt <anarchy@gentoo.org>2005-11-02 17:04:45 +0000
commitf855f17919dce1ed5de47f5a7020705f4bf24f89 (patch)
tree7e844d76427aba2ba8d07ffccdb545df85444145 /media-gfx/blender
parentAdded useful Emacs autoloads. (diff)
downloadgentoo-2-f855f17919dce1ed5de47f5a7020705f4bf24f89.tar.gz
gentoo-2-f855f17919dce1ed5de47f5a7020705f4bf24f89.tar.bz2
gentoo-2-f855f17919dce1ed5de47f5a7020705f4bf24f89.zip
patch added wrt bug #111237
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'media-gfx/blender')
-rw-r--r--media-gfx/blender/ChangeLog6
-rw-r--r--media-gfx/blender/files/blender-2.37a-x86_64.patch120
2 files changed, 125 insertions, 1 deletions
diff --git a/media-gfx/blender/ChangeLog b/media-gfx/blender/ChangeLog
index 20da5eb4138c..1bdf25241124 100644
--- a/media-gfx/blender/ChangeLog
+++ b/media-gfx/blender/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-gfx/blender
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.64 2005/10/31 20:09:13 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.65 2005/11/02 17:04:45 anarchy Exp $
+
+ 02 Nov 2005; Jory A. Pratt <anarchy@gentoo.org>
+ +files/blender-2.37a-x86_64.patch:
+ patch added wrt bug #111237
31 Oct 2005; Simon Stelling <blubb@gentoo.org>
+files/blender-2.37a-gcc-4.0.patch, blender-2.37a.ebuild:
diff --git a/media-gfx/blender/files/blender-2.37a-x86_64.patch b/media-gfx/blender/files/blender-2.37a-x86_64.patch
new file mode 100644
index 000000000000..73bd42b16858
--- /dev/null
+++ b/media-gfx/blender/files/blender-2.37a-x86_64.patch
@@ -0,0 +1,120 @@
+--- blender/source/gameengine/Expressions/KX_HashedPtr.cpp.x86_64 2004-03-22 17:01:28.000000000 -0500
++++ blender/source/gameengine/Expressions/KX_HashedPtr.cpp 2005-06-05 10:09:48.000000000 -0400
+@@ -57,5 +57,5 @@
+
+ unsigned int CHashedPtr::hash() const
+ {
+- return KX_Hash((unsigned int) m_valptr);
++ return KX_Hash((unsigned int)((unsigned long) m_valptr & 0x00000000FFFFFFFF));
+ }
+--- blender/source/gameengine/Ketsji/KX_WorldIpoController.cpp.x86_64 2005-03-09 14:45:59.000000000 -0500
++++ blender/source/gameengine/Ketsji/KX_WorldIpoController.cpp 2005-06-05 10:09:48.000000000 -0400
+@@ -92,10 +92,10 @@
+ iporeplica->AddInterpolator(copyipo);
+
+ MT_Scalar* scaal = ((KX_ScalarInterpolator*)*i)->GetTarget();
+- int orgbase = (int)this;
+- int orgloc = (int)scaal;
+- int offset = orgloc-orgbase;
+- int newaddrbase = (int)iporeplica + offset;
++ long orgbase = (long)this;
++ long orgloc = (long)scaal;
++ long offset = orgloc-orgbase;
++ long newaddrbase = (long)iporeplica + offset;
+ MT_Scalar* blaptr = (MT_Scalar*) newaddrbase;
+ copyipo->SetNewTarget((MT_Scalar*)blaptr);
+ }
+--- blender/source/gameengine/Ketsji/KX_ObColorIpoSGController.cpp.x86_64 2004-03-22 17:01:52.000000000 -0500
++++ blender/source/gameengine/Ketsji/KX_ObColorIpoSGController.cpp 2005-06-05 10:09:48.000000000 -0400
+@@ -87,10 +87,10 @@
+ iporeplica->AddInterpolator(copyipo);
+
+ MT_Scalar* scaal = ((KX_ScalarInterpolator*)*i)->GetTarget();
+- int orgbase = (int)this;
+- int orgloc = (int)scaal;
+- int offset = orgloc-orgbase;
+- int newaddrbase = (int)iporeplica + offset;
++ long orgbase = (long)this;
++ long orgloc = (long)scaal;
++ long offset = orgloc-orgbase;
++ long newaddrbase = (long)iporeplica + offset;
+ MT_Scalar* blaptr = (MT_Scalar*) newaddrbase;
+ copyipo->SetNewTarget((MT_Scalar*)blaptr);
+ }
+--- blender/source/gameengine/Ketsji/KX_LightIpoSGController.cpp.x86_64 2004-03-22 17:01:52.000000000 -0500
++++ blender/source/gameengine/Ketsji/KX_LightIpoSGController.cpp 2005-06-05 10:09:48.000000000 -0400
+@@ -97,10 +97,10 @@
+ iporeplica->AddInterpolator(copyipo);
+
+ MT_Scalar* scaal = ((KX_ScalarInterpolator*)*i)->GetTarget();
+- int orgbase = (int)this;
+- int orgloc = (int)scaal;
+- int offset = orgloc-orgbase;
+- int newaddrbase = (int)iporeplica + offset;
++ long orgbase = (long)this;
++ long orgloc = (long)scaal;
++ long offset = orgloc-orgbase;
++ long newaddrbase = (long)iporeplica + offset;
+ MT_Scalar* blaptr = (MT_Scalar*) newaddrbase;
+ copyipo->SetNewTarget((MT_Scalar*)blaptr);
+ }
+--- blender/source/gameengine/Ketsji/KX_IPO_SGController.cpp.x86_64 2005-03-25 05:33:37.000000000 -0500
++++ blender/source/gameengine/Ketsji/KX_IPO_SGController.cpp 2005-06-05 10:09:48.000000000 -0400
+@@ -168,10 +168,10 @@
+ iporeplica->AddInterpolator(copyipo);
+
+ MT_Scalar* scaal = ((KX_ScalarInterpolator*)*i)->GetTarget();
+- int orgbase = (int)&m_ipo_xform;
+- int orgloc = (int)scaal;
+- int offset = orgloc-orgbase;
+- int newaddrbase = (int)&iporeplica->m_ipo_xform;
++ long orgbase = (long)&m_ipo_xform;
++ long orgloc = (long)scaal;
++ long offset = orgloc-orgbase;
++ long newaddrbase = (long)&iporeplica->m_ipo_xform;
+ newaddrbase += offset;
+ MT_Scalar* blaptr = (MT_Scalar*) newaddrbase;
+ copyipo->SetNewTarget((MT_Scalar*)blaptr);
+--- blender/source/gameengine/Ketsji/KX_GameObject.cpp.x86_64 2005-04-18 07:44:21.000000000 -0400
++++ blender/source/gameengine/Ketsji/KX_GameObject.cpp 2005-06-05 10:09:48.000000000 -0400
+@@ -1069,10 +1069,10 @@
+ PyObject* kwds)
+ {
+ KX_IPhysicsController* ctrl = GetPhysicsController();
+- int physid=0;
++ long physid=0;
+ if (ctrl)
+ {
+- physid= (int)ctrl->GetUserData();
++ physid= (long)ctrl->GetUserData();
+ }
+ return PyInt_FromLong(physid);
+ }
+--- blender/source/gameengine/Ketsji/KX_CameraIpoSGController.cpp.x86_64 2004-07-21 20:26:34.000000000 -0400
++++ blender/source/gameengine/Ketsji/KX_CameraIpoSGController.cpp 2005-06-05 10:09:48.000000000 -0400
+@@ -92,10 +92,10 @@
+ iporeplica->AddInterpolator(copyipo);
+
+ MT_Scalar* scaal = ((KX_ScalarInterpolator*)*i)->GetTarget();
+- int orgbase = (int)this;
+- int orgloc = (int)scaal;
+- int offset = orgloc-orgbase;
+- int newaddrbase = (int)iporeplica + offset;
++ long orgbase = (long)this;
++ long orgloc = (long)scaal;
++ long offset = orgloc-orgbase;
++ long newaddrbase = (long)iporeplica + offset;
+ MT_Scalar* blaptr = (MT_Scalar*) newaddrbase;
+ copyipo->SetNewTarget((MT_Scalar*)blaptr);
+ }
+--- blender/source/kernel/gen_system/GEN_HashedPtr.h.x86_64 2002-12-27 08:11:00.000000000 -0500
++++ blender/source/kernel/gen_system/GEN_HashedPtr.h 2005-06-05 10:09:48.000000000 -0400
+@@ -40,7 +40,7 @@
+ void* m_valptr;
+ public:
+ GEN_HashedPtr(void* val) : m_valptr(val) {};
+- unsigned int hash() const { return GEN_Hash((unsigned int) m_valptr);};
++ unsigned int hash() const { return GEN_Hash((unsigned int)((unsigned long) m_valptr & 0x00000000FFFFFFFF));};
+ inline friend bool operator ==(const GEN_HashedPtr & rhs, const GEN_HashedPtr & lhs) { return rhs.m_valptr == lhs.m_valptr;};
+ };
+