[blender/f18] fix build on big endian arches

Dan Horák sharkcz at fedoraproject.org
Mon Oct 29 10:05:33 UTC 2012


commit ef64933f7e9b4af90cccb938978aadd89ce861b7
Author: Dan Horák <dan at danny.cz>
Date:   Mon Oct 29 11:03:56 2012 +0100

    fix build on big endian arches

 blender-2.64a-big-endian.patch |   12 ++++++++++++
 blender.spec                   |    8 +++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/blender-2.64a-big-endian.patch b/blender-2.64a-big-endian.patch
new file mode 100644
index 0000000..c15e097
--- /dev/null
+++ b/blender-2.64a-big-endian.patch
@@ -0,0 +1,12 @@
+diff -up blender-2.64a/source/blender/avi/intern/avi_endian.c.big blender-2.64a/source/blender/avi/intern/avi_endian.c
+--- blender-2.64a/source/blender/avi/intern/avi_endian.c.big	2012-10-29 09:49:54.000000000 +0100
++++ blender-2.64a/source/blender/avi/intern/avi_endian.c	2012-10-29 09:50:01.000000000 +0100
+@@ -49,7 +49,7 @@
+ #ifdef __BIG_ENDIAN__
+ 
+ /* copied from BLI_endian_switch_inline.h */
+-static void invert(int *num)
++static void invert(int *val)
+ {
+ 	int tval = *val;
+ 	*val = ((tval >> 24))             |
diff --git a/blender.spec b/blender.spec
index 2c2423d..ed8c266 100644
--- a/blender.spec
+++ b/blender.spec
@@ -13,7 +13,7 @@
 Name:           blender
 Epoch:          1
 Version:        %{blender_api}a
-Release:        2%{?dist}
+Release:        3%{?dist}
 
 Summary:        3D modeling, animation, rendering and post-production
 
@@ -35,6 +35,8 @@ Patch3:        blender-2.64-openjpeg_stdbool.patch
 Patch4:        blender-2.64-64bit.patch
 
 Patch5:	       blender-2.64a-droid.patch
+# fix typo in big endian support
+Patch6:	       blender-2.64a-big-endian.patch
 
 BuildRequires:  desktop-file-utils
 BuildRequires:  gettext
@@ -146,6 +148,7 @@ addon packages to extend blender.
 %patch4 -p1 -b .64bit
 
 %patch5 -p1 -b .droid
+%patch6 -p1 -b .big-endian
 
 find -name '.svn' -print | xargs rm -rf
 
@@ -277,6 +280,9 @@ fi || :
 %{_sysconfdir}/rpm/macros.blender
 
 %changelog
+* Mon Oct 29 2012 Dan Horák <dan[at]danny.cz> - 1:2.64a-3
+- fix build on big endian arches
+
 * Thu Oct 18 2012 Jochen Schmitt <Jochen herr-schmitt de> - 1:2.64a-2
 - Loading droid-sans font from /usr/share/fonts (#867205)
 


More information about the scm-commits mailing list