Fixed bugs discovered in conflicts directives (#39338)

This commit is contained in:
Massimiliano Culpo
2023-08-09 14:20:49 +02:00
committed by GitHub
parent e24bb5dd1c
commit 3843001004
9 changed files with 8 additions and 14 deletions

View File

@@ -27,7 +27,7 @@ class AmqpCpp(CMakePackage):
)
variant("shared", default=True, description="Build as a shared library (static by default)")
conflicts("tcp", when="platform=darwin", msg="TCP module requires Linux")
conflicts("+tcp", when="platform=darwin", msg="TCP module requires Linux")
depends_on("cmake@3.5:", type="build")
depends_on("openssl@1.1.1:", when="+tcp", type=("build", "link", "run"))

View File

@@ -361,9 +361,7 @@ class Dealii(CMakePackage, CudaPackage):
)
# Optional dependencies:
conflicts(
"+adol-c", when="^netcdf", msg="Symbol clash between the ADOL-C library and " "Netcdf."
)
conflicts("+adol-c", when="+netcdf", msg="Symbol clash between the ADOL-C library and Netcdf.")
conflicts(
"+adol-c",
when="^trilinos+chaco",

View File

@@ -64,7 +64,7 @@ class Gptune(CMakePackage):
conflicts("mpich", when="+mpispawn")
conflicts("spectrum-mpi", when="+mpispawn")
conflicts("cray-mpich", when="+mpispawn")
conflicts("gcc@:7")
conflicts("%gcc@:7")
def cmake_args(self):
spec = self.spec

View File

@@ -29,7 +29,6 @@ class LuaLuajitOpenresty(LuaImplPackage):
)
provides("lua-lang@5.1", when="+lualinks")
conflicts("lua", when="+lualinks")
provides("luajit")
lua_version_override = "5.1"

View File

@@ -34,7 +34,6 @@ class LuaLuajit(LuaImplPackage):
)
provides("lua-lang@5.1", when="+lualinks")
conflicts("lua", when="+lualinks")
provides("luajit")
lua_version_override = "5.1"
conflicts("platform=darwin", msg="luajit not supported on MacOS, see lua-luajit-openresty")

View File

@@ -139,9 +139,6 @@ class Paraview(CMakePackage, CudaPackage, ROCmPackage):
msg="Use paraview@5.9.0 with %xl_r. Earlier versions are not able to build with xl.",
)
# Newer abseil-cpp requires C++14, but paraview uses C++11 by default
conflicts("^abseil-cpp@2023:")
# We only support one single Architecture
for _arch, _other_arch in itertools.permutations(CudaPackage.cuda_arch_values, 2):
conflicts(
@@ -226,6 +223,9 @@ class Paraview(CMakePackage, CudaPackage, ROCmPackage):
depends_on("protobuf@3.4:3.18", when="@:5.10%intel@2021:")
depends_on("protobuf@3.4:3.18", when="@:5.10%xl")
depends_on("protobuf@3.4:3.18", when="@:5.10%xl_r")
# protobuf requires newer abseil-cpp, which in turn requires C++14,
# but paraview uses C++11 by default
depends_on("protobuf@3.4:3.21", when="@:5.11")
depends_on("libxml2")
depends_on("lz4")
depends_on("xz")

View File

@@ -62,9 +62,6 @@ class Plasma(CMakePackage):
conflicts("^netlib-lapack@:3.5")
# clashes with OpenBLAS declarations and has a problem compiling on its own
conflicts("^cblas")
conflicts("^openblas-with-lapack") # incomplete LAPACK implementation
conflicts("^veclibfort")
# only GCC 4.9+ and higher have sufficient support for OpenMP 4+ tasks+deps

View File

@@ -23,4 +23,4 @@ class PyPykwalify(PythonPackage):
depends_on("py-python-dateutil@2.4.2:", type=("build", "run"))
depends_on("py-pyyaml@3.11:", type=("build", "run"), when="@1.6.1")
conflicts("^py-ruamel@0.16.0:", when="@1.6.1")
conflicts("^py-ruamel-yaml@0.16.0:", when="@1.6.1")

View File

@@ -99,6 +99,7 @@ class Xyce(CMakePackage):
# Issue #1712 forces explicitly enumerating blas packages to propagate variants
with when("+pymi_static_tpls"):
# BLAS
depends_on("blas")
depends_on("openblas~shared", when="^openblas")
depends_on("netlib-lapack~shared", when="^netlib-lapack~external-blas")