1 |
commit: 0980511b01c8aeba0da6936228433088c33c7298 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 31 11:37:07 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 31 11:38:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0980511b |
7 |
|
8 |
sci-libs/vtk: add various GCC 11 fixes |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
.../vtk/files/vtk-9.0.1-limits-include-gcc11.patch | 84 ++++++++++++++++++++++ |
13 |
sci-libs/vtk/vtk-9.0.1.ebuild | 1 + |
14 |
2 files changed, 85 insertions(+) |
15 |
|
16 |
diff --git a/sci-libs/vtk/files/vtk-9.0.1-limits-include-gcc11.patch b/sci-libs/vtk/files/vtk-9.0.1-limits-include-gcc11.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..5473378512f |
19 |
--- /dev/null |
20 |
+++ b/sci-libs/vtk/files/vtk-9.0.1-limits-include-gcc11.patch |
21 |
@@ -0,0 +1,84 @@ |
22 |
+From c7d6a8d81367a4ed92163c059aa3181386eabc24 Mon Sep 17 00:00:00 2001 |
23 |
+From: Ben Boeckel <ben.boeckel@×××××××.com> |
24 |
+Date: Mon, 3 May 2021 11:55:27 -0400 |
25 |
+Subject: [PATCH] vtkDataArrayPrivate: include <limits> for std::numeric_limits |
26 |
+ |
27 |
+See: #18194 |
28 |
+--- |
29 |
+ Common/Core/vtkDataArrayPrivate.txx | 1 + |
30 |
+ 1 file changed, 1 insertion(+) |
31 |
+ |
32 |
+diff --git a/Common/Core/vtkDataArrayPrivate.txx b/Common/Core/vtkDataArrayPrivate.txx |
33 |
+index eb366f1c6d0..6709f7f3ac1 100644 |
34 |
+--- a/Common/Core/vtkDataArrayPrivate.txx |
35 |
++++ b/Common/Core/vtkDataArrayPrivate.txx |
36 |
+@@ -24,6 +24,7 @@ |
37 |
+ #include <algorithm> |
38 |
+ #include <array> |
39 |
+ #include <cassert> // for assert() |
40 |
++#include <limits> |
41 |
+ #include <vector> |
42 |
+ |
43 |
+ namespace vtkDataArrayPrivate |
44 |
+-- |
45 |
+GitLab |
46 |
+diff --git a/Common/Core/vtkGenericDataArrayLookupHelper.h b/Common/Core/vtkGenericDataArrayLookupHelper.h |
47 |
+index f278e27..de6d842 100644 |
48 |
+--- a/Common/Core/vtkGenericDataArrayLookupHelper.h |
49 |
++++ b/Common/Core/vtkGenericDataArrayLookupHelper.h |
50 |
+@@ -25,6 +25,7 @@ |
51 |
+ #include "vtkIdList.h" |
52 |
+ #include <algorithm> |
53 |
+ #include <cmath> |
54 |
++#include <limits> |
55 |
+ #include <unordered_map> |
56 |
+ #include <vector> |
57 |
+ |
58 |
+diff --git a/Common/DataModel/vtkPiecewiseFunction.cxx b/Common/DataModel/vtkPiecewiseFunction.cxx |
59 |
+index c75935fd..9459ce90 100644 |
60 |
+--- a/Common/DataModel/vtkPiecewiseFunction.cxx |
61 |
++++ b/Common/DataModel/vtkPiecewiseFunction.cxx |
62 |
+@@ -22,6 +22,7 @@ |
63 |
+ #include <cassert> |
64 |
+ #include <cmath> |
65 |
+ #include <iterator> |
66 |
++#include <limits> |
67 |
+ #include <set> |
68 |
+ #include <vector> |
69 |
+ |
70 |
+diff --git a/Rendering/Core/vtkColorTransferFunction.cxx b/Rendering/Core/vtkColorTransferFunction.cxx |
71 |
+index 40504e5..125597b 100644 |
72 |
+--- a/Rendering/Core/vtkColorTransferFunction.cxx |
73 |
++++ b/Rendering/Core/vtkColorTransferFunction.cxx |
74 |
+@@ -21,6 +21,7 @@ |
75 |
+ #include <algorithm> |
76 |
+ #include <cmath> |
77 |
+ #include <iterator> |
78 |
++#include <limits> |
79 |
+ #include <set> |
80 |
+ #include <vector> |
81 |
+ |
82 |
+diff --git a/Filters/HyperTree/vtkHyperTreeGridThreshold.cxx b/Filters/HyperTree/vtkHyperTreeGridThreshold.cxx |
83 |
+index 9944db6..01a1517 100644 |
84 |
+--- a/Filters/HyperTree/vtkHyperTreeGridThreshold.cxx |
85 |
++++ b/Filters/HyperTree/vtkHyperTreeGridThreshold.cxx |
86 |
+@@ -28,6 +28,7 @@ |
87 |
+ #include "vtkHyperTreeGridNonOrientedCursor.h" |
88 |
+ |
89 |
+ #include <cmath> |
90 |
++#include <limits> |
91 |
+ |
92 |
+ vtkStandardNewMacro(vtkHyperTreeGridThreshold); |
93 |
+ |
94 |
+diff --git a/Common/DataModel/Testing/Cxx/UnitTestLine.cxx b/Common/DataModel/Testing/Cxx/UnitTestLine.cxx |
95 |
+index 7823d61..02f627d 100644 |
96 |
+--- a/Common/DataModel/Testing/Cxx/UnitTestLine.cxx |
97 |
++++ b/Common/DataModel/Testing/Cxx/UnitTestLine.cxx |
98 |
+@@ -14,6 +14,7 @@ |
99 |
+ =========================================================================*/ |
100 |
+ |
101 |
+ #include <cmath> |
102 |
++#include <limits> |
103 |
+ |
104 |
+ #include "vtkLine.h" |
105 |
+ #include "vtkMath.h" |
106 |
|
107 |
diff --git a/sci-libs/vtk/vtk-9.0.1.ebuild b/sci-libs/vtk/vtk-9.0.1.ebuild |
108 |
index bf7a3ba0a1b..848e2fce63d 100644 |
109 |
--- a/sci-libs/vtk/vtk-9.0.1.ebuild |
110 |
+++ b/sci-libs/vtk/vtk-9.0.1.ebuild |
111 |
@@ -132,6 +132,7 @@ BDEPEND=" |
112 |
PATCHES=( |
113 |
"${FILESDIR}"/${P}-0001-fix-kepler-compute_arch-if-CUDA-toolkit-11-is-used.patch |
114 |
"${FILESDIR}"/${PN}-8.2.0-freetype-2.10.3-provide-FT_CALLBACK_DEF.patch |
115 |
+ "${FILESDIR}"/${PN}-9.0.1-limits-include-gcc11.patch |
116 |
) |
117 |
|
118 |
DOCS=( CONTRIBUTING.md README.md ) |