diff --git a/paraview-gcc11-limits.patch b/paraview-gcc11-limits.patch new file mode 100644 index 0000000..84e8ca3 --- /dev/null +++ b/paraview-gcc11-limits.patch @@ -0,0 +1,48 @@ +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); + diff --git a/paraview.changes b/paraview.changes index 9ef33cc..f4f4231 100644 --- a/paraview.changes +++ b/paraview.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jun 2 19:40:42 UTC 2021 - Atri Bhattacharya + +- Add paraview-gcc11-limits.patch: Include limits header wherever + needed to fix compilation with GCC 11 + [https://gitlab.kitware.com/vtk/vtk/-/issues/18194]. + ------------------------------------------------------------------- Sun May 23 00:00:41 UTC 2021 - Atri Bhattacharya diff --git a/paraview.spec b/paraview.spec index 6a2f75e..6f53e21 100644 --- a/paraview.spec +++ b/paraview.spec @@ -48,6 +48,8 @@ Patch0: paraview-desktop-entry-fix.patch Patch2: fix-libharu-missing-m.patch # PATCH-FIX-UPSTREAM paraview-vtkioss-link-pthread.patch badshah400@gmail.com -- Link against pthread when building vtkioss [https://gitlab.kitware.com/paraview/paraview/-/issues/20495] Patch3: paraview-vtkioss-link-pthread.patch +# PATCH-FIX-UPSTREAM paraview-gcc11-limits.patch badshah400@gmail.com -- Include limits header wherever required to fix compilation with GCC 11 [https://gitlab.kitware.com/vtk/vtk/-/issues/18194] +Patch4: paraview-gcc11-limits.patch BuildRequires: Mesa-devel BuildRequires: cgns-devel BuildRequires: cmake >= 3.13