Skip to content

Commit

Permalink
slurm.spec - Add --with yaml arugment to require YAML support.
Browse files Browse the repository at this point in the history
Bug 17731
  • Loading branch information
naterini authored and mcmult committed Oct 9, 2023
1 parent 0615879 commit 78c8d4a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ documents those changes that are of interest to users and administrators.
"Core bitmaps size mismatch on node [HOSTNAME]", which causes jobs to enter
state "Requested node configuration is not available".
-- slurmctd - Allow startup with zero nodes.
-- slurm.spec - Add `--with yaml` arugment to require YAML support.

* Changes in Slurm 23.02.5
==========================
Expand Down
8 changes: 8 additions & 0 deletions slurm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Source: %{slurm_source_dir}.tar.bz2
# --with cray_network %_with_cray_network 1 build for a non-Cray system with a Cray network
# --with cray_shasta %_with_cray_shasta 1 build for a Cray Shasta system
# --with slurmrestd %_with_slurmrestd 1 build slurmrestd
# --with yaml %_with_yaml 1 build with yaml serializer
# --with slurmsmwd %_with_slurmsmwd 1 build slurmsmwd
# --without debug %_without_debug 1 don't compile with debugging symbols
# --with hdf5 %_with_hdf5 path require hdf5 support
Expand Down Expand Up @@ -58,6 +59,7 @@ Source: %{slurm_source_dir}.tar.bz2
%bcond_with pmix
%bcond_with nvml
%bcond_with jwt
%bcond_with yaml

# Use debug by default on all systems
%bcond_without debug
Expand Down Expand Up @@ -156,6 +158,11 @@ BuildRequires: libjwt-devel >= 1.10.0
Requires: libjwt >= 1.10.0
%endif

%if %{with yaml}
BuildRequires: libyaml >= 0.2.5
BuildRequires: libyaml-devel >= 0.2.5
%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...)
Expand Down Expand Up @@ -363,6 +370,7 @@ notifies slurm about failed nodes.
%{?_without_x11:--disable-x11} \
%{?_with_ucx} \
%{?_with_jwt} \
%{?_with_yaml} \
%{?_with_nvml} \
%{?_with_cflags}

Expand Down

0 comments on commit 78c8d4a

Please sign in to comment.