summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/openmpi/package.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py
index 87e5bc4f2b..5325235612 100644
--- a/var/spack/repos/builtin/packages/openmpi/package.py
+++ b/var/spack/repos/builtin/packages/openmpi/package.py
@@ -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")