[clsparse] 01/02: Add patch fixing FTBFS with ppc64el.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Nov 15 12:16:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository clsparse.

commit 4331dda0938bee3179f22665ee685371b7643341
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Nov 15 11:54:20 2016 +0000

    Add patch fixing FTBFS with ppc64el.
    
    Gbp-Dch: short
    Closes: #844008
    Thanks: Fernando Seiti Furusato for the patch
---
 debian/patches/Add-support-for-AltiVec.patch | 96 ++++++++++++++++++++++++++++
 debian/patches/series                        |  1 +
 2 files changed, 97 insertions(+)

diff --git a/debian/patches/Add-support-for-AltiVec.patch b/debian/patches/Add-support-for-AltiVec.patch
new file mode 100644
index 0000000..e08d7e1
--- /dev/null
+++ b/debian/patches/Add-support-for-AltiVec.patch
@@ -0,0 +1,96 @@
+From: Fernando Seiti Furusato <ferseiti at linux.vnet.ibm.com>
+Date: Tue, 15 Nov 2016 11:40:02 +0000
+Subject: Add support for AltiVec.
+
+---
+ src/include/clSPARSE-error.h             | 5 +++++
+ src/include/clSPARSE.h                   | 6 ++++++
+ src/library/internal/kernel-cache.hpp    | 6 ++++++
+ src/library/internal/kernel-wrap.hpp     | 6 ++++++
+ src/library/internal/ocl-type-traits.hpp | 6 ++++++
+ 5 files changed, 29 insertions(+)
+
+diff --git a/src/include/clSPARSE-error.h b/src/include/clSPARSE-error.h
+index 13c2323..9541311 100644
+--- a/src/include/clSPARSE-error.h
++++ b/src/include/clSPARSE-error.h
+@@ -23,6 +23,11 @@
+ #ifndef _CLSPARSE_ERROR_H_
+ #define _CLSPARSE_ERROR_H_
+ 
++#ifdef __ALTIVEC__
++#undef bool
++#undef vector
++#endif
++
+ #if defined(__APPLE__) || defined(__MACOSX)
+ #   include <OpenCL/cl.h>
+ #else
+diff --git a/src/include/clSPARSE.h b/src/include/clSPARSE.h
+index 0af7f5a..eca1c80 100644
+--- a/src/include/clSPARSE.h
++++ b/src/include/clSPARSE.h
+@@ -24,6 +24,12 @@
+ #ifndef _CL_SPARSE_H_
+ #define _CL_SPARSE_H_
+ 
++#ifdef __ALTIVEC__
++#include <altivec.h>
++#undef bool
++#undef vector
++#endif
++
+ // CMake-generated file to define export related preprocessor macros
+ #include "clsparse_export.h"
+ 
+diff --git a/src/library/internal/kernel-cache.hpp b/src/library/internal/kernel-cache.hpp
+index ffb870d..85ad40b 100644
+--- a/src/library/internal/kernel-cache.hpp
++++ b/src/library/internal/kernel-cache.hpp
+@@ -23,6 +23,12 @@
+ #define CL_HPP_MINIMUM_OPENCL_VERSION BUILD_CLVERSION
+ #define CL_HPP_TARGET_OPENCL_VERSION BUILD_CLVERSION
+ 
++#ifdef __ALTIVEC__
++#include <altivec.h>
++#undef bool
++#undef vector
++#endif
++
+ #include <CL/cl2.hpp>
+ 
+ #include <string>
+diff --git a/src/library/internal/kernel-wrap.hpp b/src/library/internal/kernel-wrap.hpp
+index c1bd726..ffc3a6b 100644
+--- a/src/library/internal/kernel-wrap.hpp
++++ b/src/library/internal/kernel-wrap.hpp
+@@ -22,6 +22,12 @@
+ #define CL_HPP_MINIMUM_OPENCL_VERSION BUILD_CLVERSION
+ #define CL_HPP_TARGET_OPENCL_VERSION BUILD_CLVERSION
+ 
++#ifdef __ALTIVEC__
++#include <altivec.h>
++#undef bool
++#undef vector
++#endif
++
+ #include <CL/cl2.hpp>
+ 
+ #include <iostream>
+diff --git a/src/library/internal/ocl-type-traits.hpp b/src/library/internal/ocl-type-traits.hpp
+index de577f5..46ff3db 100644
+--- a/src/library/internal/ocl-type-traits.hpp
++++ b/src/library/internal/ocl-type-traits.hpp
+@@ -17,6 +17,12 @@
+ #ifndef OCL_TYPE_TRAITS_HPP_
+ #define OCL_TYPE_TRAITS_HPP_
+ 
++#ifdef __ALTIVEC__
++#include <altivec.h>
++#undef bool
++#undef vector
++#endif
++
+ #include <type_traits>
+ 
+ #if defined(__APPLE__) || defined(__MACOSX)
diff --git a/debian/patches/series b/debian/patches/series
index 85f00a7..61f042b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 Use-system-MathJax.patch
 Disable-multilib-compiler-options.patch
 Add-support-for-GNU-Hurd-and-kFreeBSD.patch
+Add-support-for-AltiVec.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clsparse.git



More information about the debian-science-commits mailing list