Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/files/, sci-libs/vtk/
Date: Mon, 30 Jan 2023 13:26:30
Message-Id: 1675085128.4b5edf17f69a4315b3fdc422d4a8c4e81c73d6b7.sam@gentoo
1 commit: 4b5edf17f69a4315b3fdc422d4a8c4e81c73d6b7
2 Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
3 AuthorDate: Sun Jan 29 08:42:49 2023 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 30 13:25:28 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b5edf17
7
8 sci-libs/vtk: fix build with gcc-13
9
10 Add #include <cstdint> to build with gcc-13
11
12 Closes: https://bugs.gentoo.org/892435
13 Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
14 Closes: https://github.com/gentoo/gentoo/pull/29329
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 .../vtk-9.2.5-Add-include-cstdint-for-gcc-13.patch | 20 +++++++++++++++
18 ...dd-include-cstdint-to-compile-with-gcc-13.patch | 30 ++++++++++++++++++++++
19 sci-libs/vtk/vtk-9.2.5.ebuild | 2 ++
20 3 files changed, 52 insertions(+)
21
22 diff --git a/sci-libs/vtk/files/vtk-9.2.5-Add-include-cstdint-for-gcc-13.patch b/sci-libs/vtk/files/vtk-9.2.5-Add-include-cstdint-for-gcc-13.patch
23 new file mode 100644
24 index 000000000000..3ab71521b6b5
25 --- /dev/null
26 +++ b/sci-libs/vtk/files/vtk-9.2.5-Add-include-cstdint-for-gcc-13.patch
27 @@ -0,0 +1,20 @@
28 +From 69351f357a82c0bb7f97f4f707962de3400760a8 Mon Sep 17 00:00:00 2001
29 +From: Bernd Waibel <waebbl-gentoo@××××××.net>
30 +Date: Sun, 29 Jan 2023 12:17:36 +0100
31 +Subject: [PATCH] Add #include <cstdint> for gcc-13
32 +
33 +Bug: https://gitlab.kitware.com/vtk/vtk/-/issues/18782
34 +Signed-off-by: Bernd Waibel <waebbl-gentoo@××××××.net>
35 +--- a/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h
36 ++++ b/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h
37 +@@ -50,6 +50,7 @@
38 + #include "vtkRenderingMatplotlibModule.h" // For export macro
39 +
40 + #include <vector> // for std::vector
41 ++#include <cstdint> // for std::uint64_t
42 +
43 + struct _object;
44 + typedef struct _object PyObject;
45 +--
46 +2.39.1
47 +
48
49 diff --git a/sci-libs/vtk/files/vtk-9.2.5-Add-include-cstdint-to-compile-with-gcc-13.patch b/sci-libs/vtk/files/vtk-9.2.5-Add-include-cstdint-to-compile-with-gcc-13.patch
50 new file mode 100644
51 index 000000000000..82bf19b6b07f
52 --- /dev/null
53 +++ b/sci-libs/vtk/files/vtk-9.2.5-Add-include-cstdint-to-compile-with-gcc-13.patch
54 @@ -0,0 +1,30 @@
55 +https://gitlab.kitware.com/vtk/vtk/-/merge-requests/9857
56 +
57 +From ef95422b62296e4c136917095eace14f48cefb82 Mon Sep 17 00:00:00 2001
58 +From: Laurent Rineau <laurent.rineau@××××.org>
59 +Date: Tue, 17 Jan 2023 16:18:53 +0100
60 +Subject: [PATCH] Add #include <cstdint> to compile with gcc13
61 +
62 +The `vtkSEPReader` was introduced by MRs !4909 (from my former
63 +collaborator Maxime) and !4938. Then it was highly modified by
64 +!7516. The later MR is the one that introduced the uses of
65 +`std::uint8_t` and `std::uint32_t`.
66 +
67 +Those types needs the inclusion of `<cstdint>`.
68 +--- a/IO/Image/vtkSEPReader.h
69 ++++ b/IO/Image/vtkSEPReader.h
70 +@@ -25,8 +25,9 @@
71 + #include "vtkImageAlgorithm.h"
72 + #include "vtkNew.h" // for ivars
73 +
74 +-#include <array> // for std::array
75 +-#include <string> // for std::string
76 ++#include <array> // for std::array
77 ++#include <cstdint> // for std::uint8_t and std::uint32_t
78 ++#include <string> // for std::string
79 +
80 + namespace details
81 + {
82 +--
83 +GitLab
84 +
85
86 diff --git a/sci-libs/vtk/vtk-9.2.5.ebuild b/sci-libs/vtk/vtk-9.2.5.ebuild
87 index 5f5b88e80ce1..88721c38e704 100644
88 --- a/sci-libs/vtk/vtk-9.2.5.ebuild
89 +++ b/sci-libs/vtk/vtk-9.2.5.ebuild
90 @@ -161,6 +161,8 @@ PATCHES=(
91 "${FILESDIR}"/${PN}-9.2.2-vtkGeometryFilter-add-missing-mutex-header-file.patch
92 "${FILESDIR}"/${PN}-9.2.2-VTKm-respect-user-CXXFLAGS.patch
93 "${FILESDIR}"/${PN}-9.2.2-link-with-glut-library-for-freeglut.patch
94 + "${FILESDIR}"/${PN}-9.2.5-Add-include-cstdint-to-compile-with-gcc-13.patch
95 + "${FILESDIR}"/${PN}-9.2.5-Add-include-cstdint-for-gcc-13.patch
96 )
97
98 DOCS=( CONTRIBUTING.md README.md )