From 085f74c1ef78eefd356da6a4c715e052eea5851b Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Tue, 17 Jan 2023 17:13:50 -0700 Subject: [PATCH] Add patch to fix build with gcc 13 --- vtk-include.patch | 11 +++++++++++ vtk.spec | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 vtk-include.patch diff --git a/vtk-include.patch b/vtk-include.patch new file mode 100644 index 0000000..85d6e2f --- /dev/null +++ b/vtk-include.patch @@ -0,0 +1,11 @@ +diff -up VTK-9.2.5/IO/Image/vtkSEPReader.h.include VTK-9.2.5/IO/Image/vtkSEPReader.h +--- VTK-9.2.5/IO/Image/vtkSEPReader.h.include 2023-01-05 08:51:35.000000000 -0700 ++++ VTK-9.2.5/IO/Image/vtkSEPReader.h 2023-01-17 07:43:41.988095734 -0700 +@@ -26,6 +26,7 @@ + #include "vtkNew.h" // for ivars + + #include // for std::array ++#include // for std::uint8_t + #include // for std::string + + namespace details diff --git a/vtk.spec b/vtk.spec index 4180136..8d86dac 100644 --- a/vtk.spec +++ b/vtk.spec @@ -49,6 +49,9 @@ Source2: xorg.conf Patch0: vtk-libharu.patch # Fix issue with Mayavi Patch1: https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9616.patch +# Add missing includes for gcc 13 +# https://gitlab.kitware.com/vtk/vtk/-/issues/18782 +Patch2: vtk-include.patch URL: https://vtk.org/