From 430caaf5f657344996a243fa255a0bc2c34527d4 Mon Sep 17 00:00:00 2001 From: kjrstory Date: Mon, 20 Sep 2021 20:31:54 +0900 Subject: 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 --- .../repos/builtin/packages/paraview/package.py | 3 ++ .../packages/paraview/paraview-gcc11-limits.patch | 49 ++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 var/spack/repos/builtin/packages/paraview/paraview-gcc11-limits.patch (limited to 'var') 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 + #include ++#include + #include + #include + +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 + #include + #include ++#include + #include + #include + +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 + #include + #include ++#include + #include + #include + +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 ++#include + + vtkStandardNewMacro(vtkHyperTreeGridThreshold); + + -- cgit v1.2.3-60-g2f50