openmpi: fix internal-libevent variant (#49463)

This commit is contained in:
Matt Thompson 2025-03-17 04:06:43 -04:00 committed by GitHub
parent 52969dfa78
commit 95a0f1924d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")