From 95a0f1924da90560212e130c44b73860c930fe84 Mon Sep 17 00:00:00 2001 From: Matt Thompson Date: Mon, 17 Mar 2025 04:06:43 -0400 Subject: [PATCH] openmpi: fix internal-libevent variant (#49463) --- var/spack/repos/builtin/packages/openmpi/package.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py index 6591f04bae5..2f4a285cb21 100644 --- a/var/spack/repos/builtin/packages/openmpi/package.py +++ b/var/spack/repos/builtin/packages/openmpi/package.py @@ -1084,10 +1084,16 @@ def configure_args(self): config_args.extend(["--enable-debug"]) # Package dependencies - for dep in ["libevent", "lustre", "singularity", "valgrind"]: + for dep in ["lustre", "singularity", "valgrind"]: if "^" + dep in spec: config_args.append("--with-{0}={1}".format(dep, spec[dep].prefix)) + # libevent support + if spec.satisfies("+internal-libevent"): + config_args.append("--with-libevent=internal") + elif "^libevent" in spec: + config_args.append("--with-libevent={0}".format(spec["libevent"].prefix)) + # PMIx support if spec.satisfies("+internal-pmix"): config_args.append("--with-pmix=internal")