[Bf-committers] Fedora package patch cleanup.
Richard Shaw
hobbes1069 at gmail.com
Tue Sep 6 20:11:26 CEST 2011
Hey guys, I inhereted a lot of patches when I started trying to build
blender 2.5X for Fedora and I've weeded out a lot of them but there's
a couple still around that I'd like to remove if I can.
1. This does something with bmake. I'm using cmake for building, do I need this?
--- blender-2.44/release/plugins/bmake.bid 2004-12-27
20:28:48.000000000 +0100
+++ blender-2.44/release/plugins/bmake 2007-08-09 18:13:34.000000000 +0200
@@ -60,10 +60,10 @@ elif ( test $UNAME = "OpenBSD" ) then
LDFLAGS="-Bshareable";
elif ( test $UNAME = "Linux" ) then
CC="gcc";
- CFLAGS="-fPIC -funsigned-char -O2";
+ CFLAGS="${RPM_OPT_FLAGS} -fPIC -funsigned-char";
- LD="ld";
- LDFLAGS="-Bshareable";
+ LD="gcc";
+ LDFLAGS="--shared ${RPM_OPT_FLAGS}";
elif ( test $UNAME = "SunOS" ) then
CC="cc";
CFLAGS="-O";
2. I'm assuming this has something to do with 64bit system builds?
Index: source/gameengine/Expressions/Value.cpp
===================================================================
--- source/gameengine/Expressions/Value.cpp.orig 2010-04-18
12:28:37.000000000 +0200
+++ source/gameengine/Expressions/Value.cpp 2010-10-28
14:56:24.000000000 +0200
@@ -543,8 +543,8 @@ CValue* CValue::ConvertPythonToValue(PyO
CListValue* listval = new CListValue();
bool error = false;
- int i;
- int numitems = PyList_Size(pyobj);
+ Py_ssize_t i;
+ Py_ssize_t numitems = PyList_Size(pyobj);
for (i=0;i<numitems;i++)
{
PyObject* listitem = PyList_GetItem(pyobj,i);
/* borrowed ref */
3. I don't see how this does anything useful, but I may have already
removed segments that no longer applied cleanly:
Index: release/plugins/sequence/dnr.c
===================================================================
--- release/plugins/sequence/dnr.c.orig 2008-11-12 23:16:53.000000000 +0200
+++ release/plugins/sequence/dnr.c 2010-10-28 14:56:30.000000000 +0200
@@ -110,9 +110,12 @@ static void doit(unsigned char * src_, u
unsigned char * dst = dst_;
while (count--) {
- *dst = table[(*src++ << 8) | *dst]; dst++;
- *dst = table[(*src++ << 8) | *dst]; dst++;
- *dst = table[(*src++ << 8) | *dst]; dst++;
+ *dst = table[(*src++ << 8) | *dst];
+ dst++;
+ *dst = table[(*src++ << 8) | *dst];
+ dst++;
+ *dst = table[(*src++ << 8) | *dst];
+ dst++;
*dst++ = *src++;
4. I don't know anything about this one...
Index: extern/bullet2/src/LinearMath/btVector3.h
===================================================================
--- extern/bullet2/src/LinearMath/btVector3.h.orig 2009-03-17
23:44:58.000000000 +0200
+++ extern/bullet2/src/LinearMath/btVector3.h 2010-10-28
14:56:38.000000000 +0200
@@ -63,7 +63,8 @@ public:
public:
/**@brief No initialization constructor */
- SIMD_FORCE_INLINE btVector3() {}
+ SIMD_FORCE_INLINE btVector3() {
+ m_floats[0]=m_floats[1]=m_floats[2]=m_floats[3]=btScalar(0.);}
Index: extern/bullet2/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.h
===================================================================
--- extern/bullet2/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.h.orig
2009-09-14 16:45:32.000000000 +0200
+++ extern/bullet2/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.h
2010-10-28 14:56:38.000000000 +0200
@@ -94,7 +94,8 @@ ATTRIBUTE_ALIGNED16 (struct) btOptimized
//for child nodes
int m_subPart;
int m_triangleIndex;
- int m_padding[5];//bad, due to alignment
+ int:5*8*sizeof(int);
+// int m_padding[5];//bad, due to alignment
};
Thanks,
Richard
More information about the Bf-committers
mailing list