Skip to content
Snippets Groups Projects
Commit 35bb9afb authored by Daniel Letai's avatar Daniel Letai Committed by Tim Wickberg
Browse files

slurm.spec - allow --with-pmix in rpmbuild.

And require the compute nodes to have an identical installation version
to avoid issues with mismatched libraries.

Bug 6598.
parent f13369b0
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ Source: %{slurm_source_dir}.tar.bz2
# --with numa %_with_numa 1 require NUMA support
# --without pam %_without_pam 1 don't require pam-devel RPM to be installed
# --without x11 %_without_x11 1 disable internal X11 support
# --with pmix %_with_pmix path require pmix support
# Options that are off by default (enable with --with <opt>)
%bcond_with cray
......@@ -44,6 +45,7 @@ Source: %{slurm_source_dir}.tar.bz2
%bcond_with lua
%bcond_with numa
%bcond_with x11
%bcond_with pmix
# Use debug by default on all systems
%bcond_without debug
......@@ -116,6 +118,11 @@ BuildRequires: numactl-devel
%endif
%endif
%if %{with pmix}
BuildRequires: pmix
%global pmix %(rpm -q pmix --qf "%{VERSION}")
%endif
# Allow override of sysconfdir via _slurm_sysconfdir.
# Note 'global' instead of 'define' needed here to work around apparent
# bug in rpm macro scoping (or something...)
......@@ -201,6 +208,9 @@ to launch jobs.
Summary: Slurm compute node daemon
Group: System Environment/Base
Requires: %{name}%{?_isa} = %{version}-%{release}
%if %{with pmix}
Requires: pmix = %{pmix_version}
%endif
%description slurmd
Slurm compute node daemon. Used to launch jobs on compute nodes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment