VTK: Patch ADIOS2 module to fix cyclic dependency (#27784)

This commit is contained in:
kwryankrattiger 2022-01-05 10:21:08 -06:00 committed by GitHub
parent b23bd81cd9
commit 9e616ca7b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 59 additions and 1 deletions

View File

@ -69,6 +69,7 @@ class Paraview(CMakePackage, CudaPackage):
description='Build editions include only certain modules. ' description='Build editions include only certain modules. '
'Editions are listed in decreasing order of size.') 'Editions are listed in decreasing order of size.')
conflicts('+adios2', when='@:5.10 ~mpi')
conflicts('+python', when='+python3') conflicts('+python', when='+python3')
# Python 2 support dropped with 5.9.0 # Python 2 support dropped with 5.9.0
conflicts('+python', when='@5.9:') conflicts('+python', when='@5.9:')
@ -144,7 +145,8 @@ class Paraview(CMakePackage, CudaPackage):
# depends_on('hdf5~mpi', when='~mpi') # depends_on('hdf5~mpi', when='~mpi')
depends_on('hdf5+hl+mpi', when='+hdf5+mpi') depends_on('hdf5+hl+mpi', when='+hdf5+mpi')
depends_on('hdf5+hl~mpi', when='+hdf5~mpi') depends_on('hdf5+hl~mpi', when='+hdf5~mpi')
depends_on('adios2', when='+adios2') depends_on('adios2+mpi', when='+adios2+mpi')
depends_on('adios2~mpi', when='+adios2~mpi')
depends_on('jpeg') depends_on('jpeg')
depends_on('jsoncpp') depends_on('jsoncpp')
depends_on('libogg') depends_on('libogg')
@ -201,6 +203,10 @@ class Paraview(CMakePackage, CudaPackage):
# Include limits header wherever needed to fix compilation with GCC 11 # Include limits header wherever needed to fix compilation with GCC 11
patch('paraview-gcc11-limits.patch', when='@5.9.1 %gcc@11.1.0:') patch('paraview-gcc11-limits.patch', when='@5.9.1 %gcc@11.1.0:')
# Fix IOADIOS2 module to work with kits
# https://gitlab.kitware.com/vtk/vtk/-/merge_requests/8653
patch('vtk-adios2-module-no-kit.patch', when='@:5.10')
def url_for_version(self, version): def url_for_version(self, version):
_urlfmt = 'http://www.paraview.org/files/v{0}/ParaView-v{1}{2}.tar.{3}' _urlfmt = 'http://www.paraview.org/files/v{0}/ParaView-v{1}{2}.tar.{3}'
"""Handle ParaView version-based custom URLs.""" """Handle ParaView version-based custom URLs."""

View File

@ -0,0 +1,24 @@
From 19cd0302104e94421813427071351aa5326e4dbb Mon Sep 17 00:00:00 2001
From: Ryan Krattiger <ryan.krattiger@kitware.com>
Date: Thu, 2 Dec 2021 16:58:10 -0600
Subject: [PATCH] ADIOS2: Move IOADIOS2 to StandAlone kit
---
IO/ADIOS2/vtk.module | 2 -
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/VTK/IO/ADIOS2/vtk.module b/VTK/IO/ADIOS2/vtk.module
index 5ee89b9a65e..b89e54d7683 100644
--- a/VTK/IO/ADIOS2/vtk.module
+++ b/VTK/IO/ADIOS2/vtk.module
@@ -3,7 +3,5 @@ NAME
LIBRARY_NAME
vtkIOADIOS2
-KIT
- VTK::IO
DEPENDS
VTK::CommonCore
VTK::CommonExecutionModel
--
GitLab

View File

@ -77,6 +77,10 @@ class Vtk(CMakePackage):
# use internal FindHDF5 # use internal FindHDF5
patch('internal_findHDF5.patch', when='@:8') patch('internal_findHDF5.patch', when='@:8')
# Fix IOADIOS2 module to work with kits
# https://gitlab.kitware.com/vtk/vtk/-/merge_requests/8653
patch('vtk-adios2-module-no-kit.patch', when='@:9.0.3')
# The use of the OpenGL2 backend requires at least OpenGL Core Profile # The use of the OpenGL2 backend requires at least OpenGL Core Profile
# version 3.2 or higher. # version 3.2 or higher.
depends_on('gl@3.2:', when='+opengl2') depends_on('gl@3.2:', when='+opengl2')

View File

@ -0,0 +1,24 @@
From 19cd0302104e94421813427071351aa5326e4dbb Mon Sep 17 00:00:00 2001
From: Ryan Krattiger <ryan.krattiger@kitware.com>
Date: Thu, 2 Dec 2021 16:58:10 -0600
Subject: [PATCH] ADIOS2: Move IOADIOS2 to StandAlone kit
---
IO/ADIOS2/vtk.module | 2 -
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/IO/ADIOS2/vtk.module b/IO/ADIOS2/vtk.module
index 5ee89b9a65e..b89e54d7683 100644
--- a/IO/ADIOS2/vtk.module
+++ b/IO/ADIOS2/vtk.module
@@ -3,7 +3,5 @@ NAME
LIBRARY_NAME
vtkIOADIOS2
-KIT
- VTK::IO
DEPENDS
VTK::CommonCore
VTK::CommonExecutionModel
--
GitLab