From d0e177e7118ebf1b55004e9ae34516af1266ad9a Mon Sep 17 00:00:00 2001 From: "Daryl W. Grunau" Date: Thu, 28 Oct 2021 15:19:19 -0600 Subject: depend on libevent when +pmix (#27020) Co-authored-by: Daryl W. Grunau --- var/spack/repos/builtin/packages/openmpi/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py index c43b0578bb..6d3e12d6e5 100644 --- a/var/spack/repos/builtin/packages/openmpi/package.py +++ b/var/spack/repos/builtin/packages/openmpi/package.py @@ -314,6 +314,7 @@ class Openmpi(AutotoolsPackage): depends_on('pbs', when='schedulers=tm') depends_on('slurm', when='schedulers=slurm') depends_on('pmix', when='+pmix') + depends_on('libevent', when='+pmix') depends_on('openssh', type='run') @@ -707,7 +708,7 @@ class Openmpi(AutotoolsPackage): lustre_opt = '--with-lustre={0}'.format(spec['lustre'].prefix) config_args.append(lustre_opt) # external libevent - if spec.satisfies('@4.0.0:'): + if spec.satisfies('@4.0.0:') or spec.satisfies('+pmix'): config_args.append('--with-libevent={0}'.format(spec['libevent'].prefix)) # Hwloc support if '~internal-hwloc' in spec and spec.satisfies('@1.5.2:'): -- cgit v1.2.3-60-g2f50