forked from pool/paraview
Accepting request 896983 from home:badshah400:branches:science
Add paraview-gcc11-limits.patch: Include limits header wherever needed to fix compilation with GCC 11 [https://gitlab.kitware.com/vtk/vtk/-/issues/18194]. OBS-URL: https://build.opensuse.org/request/show/896983 OBS-URL: https://build.opensuse.org/package/show/science/paraview?expand=0&rev=94
This commit is contained in:
parent
0dbea3e4a6
commit
6c63999d66
48
paraview-gcc11-limits.patch
Normal file
48
paraview-gcc11-limits.patch
Normal file
@ -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 <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);
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 2 19:40:42 UTC 2021 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- 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 <badshah400@gmail.com>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user