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
This commit is contained in:
kjrstory 2021-09-20 20:31:54 +09:00 committed by GitHub
parent 6476e0cf02
commit 430caaf5f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 0 deletions

View File

@ -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."""

View File

@ -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);