openmpi: fix pmi@4.2.3: compat (#40686)

This commit is contained in:
AMD Toolchain Support 2023-10-24 19:06:32 +01:00 committed by GitHub
parent 83532b5469
commit 95558d67ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -555,11 +555,14 @@ class Openmpi(AutotoolsPackage, CudaPackage):
# PMIx is unavailable for @1, and required for @2:
# OpenMPI @2: includes a vendored version:
# depends_on('pmix@1.1.2', when='@2.1.6')
# depends_on('pmix@3.2.3', when='@4.1.2')
depends_on("pmix@1.0:1", when="@2.0:2 ~internal-pmix")
depends_on("pmix@3.2:", when="@4.0:4 ~internal-pmix")
depends_on("pmix@4.2:", when="@5.0:5 ~internal-pmix")
with when("~internal-pmix"):
depends_on("pmix@1", when="@2")
depends_on("pmix@3.2:", when="@4:")
depends_on("pmix@4.2:", when="@5:")
# pmix@4.2.3 contains a breaking change, compat fixed in openmpi@4.1.6
# See https://www.mail-archive.com/announce@lists.open-mpi.org//msg00158.html
depends_on("pmix@:4.2.2", when="@:4.1.5")
# Libevent is required when *vendored* PMIx is used
depends_on("libevent@2:", when="@main")