From 6dcbc30a2cbdc7a159776757ce6f7997ab7ad943 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Mon, 17 Jul 2017 21:39:09 +0200 Subject: [PATCH] qhull: fix to work around a known issue of the library with intel compiler (#4648) --- .../repos/builtin/packages/qhull/package.py | 2 ++ .../qhull/qhull-unused-intel-17.02.patch | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 var/spack/repos/builtin/packages/qhull/qhull-unused-intel-17.02.patch diff --git a/var/spack/repos/builtin/packages/qhull/package.py b/var/spack/repos/builtin/packages/qhull/package.py index 308b0521fa..aaad704d66 100644 --- a/var/spack/repos/builtin/packages/qhull/package.py +++ b/var/spack/repos/builtin/packages/qhull/package.py @@ -43,4 +43,6 @@ class Qhull(CMakePackage): version('2012.1', 'd0f978c0d8dfb2e919caefa56ea2953c', url="http://www.qhull.org/download/qhull-2012.1-src.tgz") + patch('qhull-unused-intel-17.02.patch', when='@2015.2') + depends_on('cmake@2.6:', type='build') diff --git a/var/spack/repos/builtin/packages/qhull/qhull-unused-intel-17.02.patch b/var/spack/repos/builtin/packages/qhull/qhull-unused-intel-17.02.patch new file mode 100644 index 0000000000..70eb3bd722 --- /dev/null +++ b/var/spack/repos/builtin/packages/qhull/qhull-unused-intel-17.02.patch @@ -0,0 +1,18 @@ +--- a/src/libqhull_r/qhull_ra.h 2017-06-30 14:24:52.252635925 +0200 ++++ b/src/libqhull_r/qhull_ra.h 2017-06-30 14:25:27.356635296 +0200 +@@ -101,13 +101,8 @@ + + */ + +-#if defined(__cplusplus) && defined(__INTEL_COMPILER) && !defined(QHULL_OS_WIN) +-template +-inline void qhullUnused(T &x) { (void)x; } +-# define QHULL_UNUSED(x) qhullUnused(x); +-#else +-# define QHULL_UNUSED(x) (void)x; +-#endif ++#define QHULL_UNUSED(x) (void)x; ++ + + /***** -libqhull_r.c prototypes (alphabetical after qhull) ********************/ +