summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Marsh <chrismarsh.c2@gmail.com>2024-06-03 12:21:09 -0600
committerGitHub <noreply@github.com>2024-06-03 14:21:09 -0400
commit90c4f9d463b1a4acb83404a7fe887253f7531d96 (patch)
treee7b720ac77463d818d334352e44e8d766b2bf1f0
parent93ccd81d86aa5d92b8d57e23fa07cd7e14518dd1 (diff)
downloadspack-90c4f9d463b1a4acb83404a7fe887253f7531d96.tar.gz
spack-90c4f9d463b1a4acb83404a7fe887253f7531d96.tar.bz2
spack-90c4f9d463b1a4acb83404a7fe887253f7531d96.tar.xz
spack-90c4f9d463b1a4acb83404a7fe887253f7531d96.zip
Apply patch to allow vtk to compile with %gcc 13 and 14. (#44332)
* Apply patch from upstream to allow vtk compilation with %gcc 12 and 14. * Fixes #44331 * fix soec usage * fix compiler version range * Finalize version range, switch to .diff file --------- Co-authored-by: Chrismarsh <Chrismarsh@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/vtk/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/vtk/package.py b/var/spack/repos/builtin/packages/vtk/package.py
index aba885513b..13a372f836 100644
--- a/var/spack/repos/builtin/packages/vtk/package.py
+++ b/var/spack/repos/builtin/packages/vtk/package.py
@@ -208,6 +208,14 @@ class Vtk(CMakePackage):
when="@9.1",
)
+ # vtk@9 does not compile with gcc 13 or 14
+ # https://gitlab.kitware.com/vtk/vtk/-/issues/18782
+ patch(
+ "https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9996.diff",
+ sha256="dab51ffd0d62b00c089c1245e6b105f740106b53893305c87193d4ba03a948e0",
+ when="@9.1:9.2 %gcc@13:",
+ )
+
@when("@9.2:")
def patch(self):
# provide definition for Ioss::Init::Initializer::Initializer(),