vtk: add patch for missing includes (#50248)

Adds patch from upstream VTK for VTK 9.1 and 9.2 adding a missing include, without which VTK will fail to compile with modern compilers.
This commit is contained in:
Julien Cortial 2025-05-21 20:27:15 +02:00 committed by GitHub
parent cac7684faa
commit 7d27e11698
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,14 +71,19 @@ class Vtk(CMakePackage):
variant("examples", default=False, description="Enable building & installing the VTK examples")
patch("gcc.patch", when="@6.1.0")
# patch to fix some missing stl includes
# which lead to build errors on newer compilers
# patches to fix some missing stl includes
# which lead to build errors on newer compilers
patch(
"https://gitlab.kitware.com/vtk/vtk/-/commit/e066c3f4fbbfe7470c6207db0fc3f3952db633c.diff",
when="@9:9.0",
sha256="0546696bd02f3a99fccb9b7c49533377bf8179df16d901cefe5abf251173716d",
)
patch(
"https://gitlab.kitware.com/vtk/vtk/-/commit/1233ceec268d5366c66f5e79786ec784042b591.diff",
when="@9.1:9.2",
sha256="38380bd20443d94d8ce9f339b9b2fbdea03400aa9d6dbb7e3ef138a65f11c080",
)
# Patch for paraview 5.10: +hdf5 ^hdf5@1.13.2:
# https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9690