The two plugins slurmctld/nonstop and mpi/mvapich will only be built if
munge is enabled.
From e7db7fea4da8f420d5336c8de767363fe6d66cdc Mon Sep 17 00:00:00 2001
From: Hongjia Cao <[email protected]>
Date: Fri, 23 Oct 2015 08:43:44 +0800
Subject: [PATCH] fix %files listing in slurm.spec

mpi_mvapich.so and slurmctld_nonstop.so will not be built without munge
---
 slurm.spec | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/slurm.spec b/slurm.spec
index b303567..47397c1 100644
--- a/slurm.spec
+++ b/slurm.spec
@@ -956,7 +956,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/slurm/mpi_mpich1_shmem.so
 %{_libdir}/slurm/mpi_mpichgm.so
 %{_libdir}/slurm/mpi_mpichmx.so
+%if %{slurm_with munge}
 %{_libdir}/slurm/mpi_mvapich.so
+%endif
 %{_libdir}/slurm/mpi_openmpi.so
 %{_libdir}/slurm/mpi_pmi2.so
 %endif
@@ -986,7 +988,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/slurm/select_cons_res.so
 %{_libdir}/slurm/select_linear.so
 %{_libdir}/slurm/select_serial.so
+%if %{slurm_with munge}
 %{_libdir}/slurm/slurmctld_nonstop.so
+%endif
 %{_libdir}/slurm/switch_generic.so
 %{_libdir}/slurm/switch_none.so
 %{_libdir}/slurm/task_none.so
-- 
2.1.1

Reply via email to