From 7d27e11698c32abf5f363cb1a9ec1120939b87a7 Mon Sep 17 00:00:00 2001 From: Julien Cortial <101571984+jcortial-safran@users.noreply.github.com> Date: Wed, 21 May 2025 20:27:15 +0200 Subject: [PATCH] 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. --- .../repos/spack_repo/builtin/packages/vtk/package.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/spack_repo/builtin/packages/vtk/package.py b/var/spack/repos/spack_repo/builtin/packages/vtk/package.py index 6257b63df15..edbc9846db0 100644 --- a/var/spack/repos/spack_repo/builtin/packages/vtk/package.py +++ b/var/spack/repos/spack_repo/builtin/packages/vtk/package.py @@ -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