[SCM] pd-xsample/master: Fix UInt32 define for PPC64

umlaeute at users.alioth.debian.org umlaeute at users.alioth.debian.org
Tue Sep 5 18:33:43 UTC 2017


The following commit has been merged in the master branch:
commit 11fe23d8bdee149b3e2add355f2710f88a7ff847
Author: IOhannes m zmölnig (Debian/GNU) <umlaeute at debian.org>
Date:   Tue Sep 5 17:24:48 2017 +0200

    Fix UInt32 define for PPC64
    
    Closes: #873602
    Thanks: Roberto Oliveira <robertoguimaraes8 at gmail.com>

diff --git a/debian/patches/fix_ftbfs_ppc64le.patch b/debian/patches/fix_ftbfs_ppc64le.patch
new file mode 100644
index 0000000..6cc9e2c
--- /dev/null
+++ b/debian/patches/fix_ftbfs_ppc64le.patch
@@ -0,0 +1,38 @@
+Description: fix build on powerpc architecture
+Author: Roberto Oliveira <robertoguimaraes8 at gmail.com>
+Last-Update: 2017-08-30
+
+Add definition for UInt32 type and add missing altivec include
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+
+--- a/source/groove.cpp
++++ b/source/groove.cpp
+@@ -22,6 +22,10 @@
+ #pragma warning (disable:4244)
+ #endif
+ 
++#ifdef __powerpc__
++#include <altivec.h>
++#endif
++
+ #define XZONE_TABLE 512
+ 
+ 
+--- a/source/main.h
++++ b/source/main.h
+@@ -77,6 +77,14 @@
+     #include <Carbon/Carbon.h>
+     #endif
+ 
++   #ifdef __powerpc__
++   #if __LP64__
++      typedef unsigned int UInt32;
++   #else
++      typedef unsigned long UInt32;
++   #endif
++   #endif
++
+ 	// Initialize a prefetch constant for use with vec_dst(), vec_dstt(), vec_dstst or vec_dststt
+ 	// Taken from the "AltiVec tutorial" by Ian Ollmann, Ph.D. 
+ 	inline UInt32 GetPrefetchConstant( int blockSizeInVectors,int blockCount,int blockStride )
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7d5ab6d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_ftbfs_ppc64le.patch

-- 
pd-xsample packaging



More information about the pkg-multimedia-commits mailing list