diff options
author | QuellynSnead <quellyn@lanl.gov> | 2022-03-02 09:26:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-02 11:26:31 -0500 |
commit | e6dcd382ee158a7eb9f26f33a367e170837c9d1f (patch) | |
tree | 58795b88c7dafe2bc2a26026f4a3cb30bcb3e68d /var | |
parent | a94f11a2b23d9f1418c42a97b438984559aeb6f4 (diff) | |
download | spack-e6dcd382ee158a7eb9f26f33a367e170837c9d1f.tar.gz spack-e6dcd382ee158a7eb9f26f33a367e170837c9d1f.tar.bz2 spack-e6dcd382ee158a7eb9f26f33a367e170837c9d1f.tar.xz spack-e6dcd382ee158a7eb9f26f33a367e170837c9d1f.zip |
Paraview: Use 'UNIX Makefiles' instead of ninja as the CMake generator for XL (#29163)
* hypre: Add releases 2.21.0 and 2.22.0
* Revert "hypre: Add releases 2.21.0 and 2.22.0"
This reverts commit 8921cdb3ac772794f82ff07b0aa816c204aca921.
* Address external linkage failures in elfutils 0.185:
https://bugs.gentoo.org/794601
https://sourceware.org/pipermail/elfutils-devel/2021q2/003862.html
Encountered while building within a Spack environment.
* Revert "Address external linkage failures in elfutils 0.185:"
This reverts commit 76b93e4504defd856b62027371064a5e65a027a5.
* paraview: The ninja generator has problems with XL and CCE
See https://gitlab.kitware.com/paraview/paraview/-/issues/21223
* paraview: Add variant to allow choice of cmake generator.
This will be necessary until problems with cmake+ninja on XL and
CCE builds can be resolved.
See https://gitlab.kitware.com/paraview/paraview/-/issues/21223
* paraview: ninja generator problems with XL/CCE
By popular preference, abandon the idea of a special variant
and select the generator based on compiler.
* Greg Becker suggested using the dedicated "generator" method to
pass the choice of makefile generator to cmake.
* paraview: The build errors I saw before with paraview%cce + ninja
have not reappeared in subsequent testing, so I'm dropping it from this
PR. If they re-occur I'll report the issue separately to KitWare.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/paraview/package.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/paraview/package.py b/var/spack/repos/builtin/packages/paraview/package.py index e5938aa308..c47392ff63 100644 --- a/var/spack/repos/builtin/packages/paraview/package.py +++ b/var/spack/repos/builtin/packages/paraview/package.py @@ -106,7 +106,6 @@ class Paraview(CMakePackage, CudaPackage): depends_on('cmake@3.3:', type='build') - generator = 'Ninja' depends_on('ninja', type='build') # Workaround for @@ -220,6 +219,14 @@ class Paraview(CMakePackage, CudaPackage): # https://gitlab.kitware.com/vtk/vtk/-/merge_requests/8653 patch('vtk-adios2-module-no-kit.patch', when='@5.8:5.10') + @property + def generator(self): + # https://gitlab.kitware.com/paraview/paraview/-/issues/21223 + if self.spec.satisfies('%xl') or self.spec.satisfies('%xl_r'): + return "Unix Makefiles" + else: + return "Ninja" + def url_for_version(self, version): _urlfmt = 'http://www.paraview.org/files/v{0}/ParaView-v{1}{2}.tar.{3}' """Handle ParaView version-based custom URLs.""" |