summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorkjrstory <kjrstory@gmail.com>2021-09-20 20:31:54 +0900
committerGitHub <noreply@github.com>2021-09-20 07:31:54 -0400
commit430caaf5f657344996a243fa255a0bc2c34527d4 (patch)
treed59ab91d4418e73ebfdfedc181f6ae2d1b06c019 /var
parent6476e0cf02302f581a4309ffb56c6e0d7ad47dde (diff)
downloadspack-430caaf5f657344996a243fa255a0bc2c34527d4.tar.gz
spack-430caaf5f657344996a243fa255a0bc2c34527d4.tar.bz2
spack-430caaf5f657344996a243fa255a0bc2c34527d4.tar.xz
spack-430caaf5f657344996a243fa255a0bc2c34527d4.zip
paraview: patch for version 5.9.1 with gcc 11.1.0 (#25887)
* paraview: patch for version 5.9.1 with gcc 11.1.0 * Fix : blank line contains whitespace
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/paraview/package.py3
-rw-r--r--var/spack/repos/builtin/packages/paraview/paraview-gcc11-limits.patch49
2 files changed, 52 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/paraview/package.py b/var/spack/repos/builtin/packages/paraview/package.py
index 715a8d3fb6..b6122441ee 100644
--- a/var/spack/repos/builtin/packages/paraview/package.py
+++ b/var/spack/repos/builtin/packages/paraview/package.py
@@ -172,6 +172,9 @@ class Paraview(CMakePackage, CudaPackage):
# Broken downstream FindMPI
patch('vtkm-findmpi-downstream.patch', when='@5.9.0')
+ # Include limits header wherever needed to fix compilation with GCC 11
+ patch('paraview-gcc11-limits.patch', when='@5.9.1 %gcc@11.1.0:')
+
def url_for_version(self, version):
_urlfmt = 'http://www.paraview.org/files/v{0}/ParaView-v{1}{2}.tar.{3}'
"""Handle ParaView version-based custom URLs."""
diff --git a/var/spack/repos/builtin/packages/paraview/paraview-gcc11-limits.patch b/var/spack/repos/builtin/packages/paraview/paraview-gcc11-limits.patch
new file mode 100644
index 0000000000..3010362083
--- /dev/null
+++ b/var/spack/repos/builtin/packages/paraview/paraview-gcc11-limits.patch
@@ -0,0 +1,49 @@
+Index: ParaView-v5.9.1/VTK/Common/Core/vtkGenericDataArrayLookupHelper.h
+===================================================================
+--- ParaView-v5.9.1.orig/VTK/Common/Core/vtkGenericDataArrayLookupHelper.h
++++ ParaView-v5.9.1/VTK/Common/Core/vtkGenericDataArrayLookupHelper.h
+@@ -25,6 +25,7 @@
+ #include "vtkIdList.h"
+ #include <algorithm>
+ #include <cmath>
++#include <limits>
+ #include <unordered_map>
+ #include <vector>
+
+Index: ParaView-v5.9.1/VTK/Rendering/Core/vtkColorTransferFunction.cxx
+===================================================================
+--- ParaView-v5.9.1.orig/VTK/Rendering/Core/vtkColorTransferFunction.cxx
++++ ParaView-v5.9.1/VTK/Rendering/Core/vtkColorTransferFunction.cxx
+@@ -21,6 +21,7 @@
+ #include <algorithm>
+ #include <cmath>
+ #include <iterator>
++#include <limits>
+ #include <set>
+ #include <vector>
+
+Index: ParaView-v5.9.1/VTK/Common/DataModel/vtkPiecewiseFunction.cxx
+===================================================================
+--- ParaView-v5.9.1.orig/VTK/Common/DataModel/vtkPiecewiseFunction.cxx
++++ ParaView-v5.9.1/VTK/Common/DataModel/vtkPiecewiseFunction.cxx
+@@ -22,6 +22,7 @@
+ #include <cassert>
+ #include <cmath>
+ #include <iterator>
++#include <limits>
+ #include <set>
+ #include <vector>
+
+Index: ParaView-v5.9.1/VTK/Filters/HyperTree/vtkHyperTreeGridThreshold.cxx
+===================================================================
+--- ParaView-v5.9.1.orig/VTK/Filters/HyperTree/vtkHyperTreeGridThreshold.cxx
++++ ParaView-v5.9.1/VTK/Filters/HyperTree/vtkHyperTreeGridThreshold.cxx
+@@ -27,6 +27,7 @@
+ #include "vtkHyperTreeGridNonOrientedCursor.h"
+
+ #include <cmath>
++#include <limits>
+
+ vtkStandardNewMacro(vtkHyperTreeGridThreshold);
+
+