From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/files/, sci-libs/vtk/
Date: Mon, 30 Jan 2023 13:26:25 +0000 (UTC) [thread overview]
Message-ID: <1675085128.4b5edf17f69a4315b3fdc422d4a8c4e81c73d6b7.sam@gentoo> (raw)
commit: 4b5edf17f69a4315b3fdc422d4a8c4e81c73d6b7
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Sun Jan 29 08:42:49 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan 30 13:25:28 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b5edf17
sci-libs/vtk: fix build with gcc-13
Add #include <cstdint> to build with gcc-13
Closes: https://bugs.gentoo.org/892435
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/29329
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../vtk-9.2.5-Add-include-cstdint-for-gcc-13.patch | 20 +++++++++++++++
...dd-include-cstdint-to-compile-with-gcc-13.patch | 30 ++++++++++++++++++++++
sci-libs/vtk/vtk-9.2.5.ebuild | 2 ++
3 files changed, 52 insertions(+)
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
new file mode 100644
index 000000000000..3ab71521b6b5
--- /dev/null
+++ b/sci-libs/vtk/files/vtk-9.2.5-Add-include-cstdint-for-gcc-13.patch
@@ -0,0 +1,20 @@
+From 69351f357a82c0bb7f97f4f707962de3400760a8 Mon Sep 17 00:00:00 2001
+From: Bernd Waibel <waebbl-gentoo@posteo.net>
+Date: Sun, 29 Jan 2023 12:17:36 +0100
+Subject: [PATCH] Add #include <cstdint> for gcc-13
+
+Bug: https://gitlab.kitware.com/vtk/vtk/-/issues/18782
+Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
+--- a/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h
++++ b/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h
+@@ -50,6 +50,7 @@
+ #include "vtkRenderingMatplotlibModule.h" // For export macro
+
+ #include <vector> // for std::vector
++#include <cstdint> // for std::uint64_t
+
+ struct _object;
+ typedef struct _object PyObject;
+--
+2.39.1
+
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
new file mode 100644
index 000000000000..82bf19b6b07f
--- /dev/null
+++ b/sci-libs/vtk/files/vtk-9.2.5-Add-include-cstdint-to-compile-with-gcc-13.patch
@@ -0,0 +1,30 @@
+https://gitlab.kitware.com/vtk/vtk/-/merge-requests/9857
+
+From ef95422b62296e4c136917095eace14f48cefb82 Mon Sep 17 00:00:00 2001
+From: Laurent Rineau <laurent.rineau@cgal.org>
+Date: Tue, 17 Jan 2023 16:18:53 +0100
+Subject: [PATCH] Add #include <cstdint> to compile with gcc13
+
+The `vtkSEPReader` was introduced by MRs !4909 (from my former
+collaborator Maxime) and !4938. Then it was highly modified by
+!7516. The later MR is the one that introduced the uses of
+`std::uint8_t` and `std::uint32_t`.
+
+Those types needs the inclusion of `<cstdint>`.
+--- a/IO/Image/vtkSEPReader.h
++++ b/IO/Image/vtkSEPReader.h
+@@ -25,8 +25,9 @@
+ #include "vtkImageAlgorithm.h"
+ #include "vtkNew.h" // for ivars
+
+-#include <array> // for std::array
+-#include <string> // for std::string
++#include <array> // for std::array
++#include <cstdint> // for std::uint8_t and std::uint32_t
++#include <string> // for std::string
+
+ namespace details
+ {
+--
+GitLab
+
diff --git a/sci-libs/vtk/vtk-9.2.5.ebuild b/sci-libs/vtk/vtk-9.2.5.ebuild
index 5f5b88e80ce1..88721c38e704 100644
--- a/sci-libs/vtk/vtk-9.2.5.ebuild
+++ b/sci-libs/vtk/vtk-9.2.5.ebuild
@@ -161,6 +161,8 @@ PATCHES=(
"${FILESDIR}"/${PN}-9.2.2-vtkGeometryFilter-add-missing-mutex-header-file.patch
"${FILESDIR}"/${PN}-9.2.2-VTKm-respect-user-CXXFLAGS.patch
"${FILESDIR}"/${PN}-9.2.2-link-with-glut-library-for-freeglut.patch
+ "${FILESDIR}"/${PN}-9.2.5-Add-include-cstdint-to-compile-with-gcc-13.patch
+ "${FILESDIR}"/${PN}-9.2.5-Add-include-cstdint-for-gcc-13.patch
)
DOCS=( CONTRIBUTING.md README.md )
next reply other threads:[~2023-01-30 13:26 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-30 13:26 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-05-08 6:29 [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/files/, sci-libs/vtk/ Sam James
2025-01-14 16:20 Andreas Sturmlechner
2024-12-05 18:01 Sam James
2024-11-25 15:32 Andreas Sturmlechner
2024-09-08 13:51 Sam James
2024-09-07 14:50 Sam James
2024-07-04 11:12 Miroslav Ć ulc
2024-04-11 9:44 Andrew Ammerlaan
2024-01-10 12:41 Sam James
2023-11-21 12:47 Guilherme Amadio
2023-03-07 7:57 Sam James
2022-09-01 2:24 Sam James
2022-02-21 23:24 Sam James
2021-12-03 22:51 Sam James
2021-06-10 3:38 Sam James
2020-12-15 2:13 Sam James
2020-06-06 13:17 Andreas Sturmlechner
2020-06-06 10:04 Andreas Sturmlechner
2020-06-06 9:42 Andreas Sturmlechner
2019-11-28 19:04 Andreas Sturmlechner
2019-08-30 8:57 Andreas Sturmlechner
2017-01-26 20:12 David Seifert
2017-01-02 22:09 Justin Lecher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1675085128.4b5edf17f69a4315b3fdc422d4a8c4e81c73d6b7.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox