Package: libhmsbeagle / 3.1.2+dfsg-13

fix-922776.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Fix #922776
On ppc64el, altivec.h redefines bool, pixel and vector which can collide with
c++ types.
This altivec.h inclusion is done by opencl in CL/cl_platform.h .
As altivec.h explains, it's possible to undefine those for C++ compatibility in
libhmsbeagle/GPU/GPUInterface.h where we don't need them and where it fails,
while doing that on the right plateform.
Finally, enable libhmsbeagle1v5 on ppc64el.
Author: Frédéric Bonnard <frediz@debian.org>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: libhmsbeagle/libhmsbeagle/GPU/GPUInterface.h
===================================================================
--- libhmsbeagle.orig/libhmsbeagle/GPU/GPUInterface.h
+++ libhmsbeagle/libhmsbeagle/GPU/GPUInterface.h
@@ -58,6 +58,11 @@
         #include <OpenCL/opencl.h>
 #   else
         #include <CL/opencl.h>
+#       if defined(__VEC__) && defined(__ALTIVEC__) && !defined(__APPLE_ALTIVEC__)
+            #undef vector
+            #undef pixel
+            #undef bool
+#       endif
 #   endif
 #   ifdef BEAGLE_XCODE
         #include "libhmsbeagle/GPU/kernels/BeagleOpenCL_kernels_xcode.h"