Skip to content
Snippets Groups Projects
Commit 3cdebc6d authored by Mark Grondona's avatar Mark Grondona
Browse files

o get rid of --with-slurm-conf in favor of standard sysconfdir

 o update slurm.spec.in for eventual passing of "with-PACKAGE" args
   in make rpm target
parent 6f7bba57
No related branches found
No related tags found
No related merge requests found
...@@ -146,26 +146,9 @@ AC_SUBST(SLURMD_PORT) ...@@ -146,26 +146,9 @@ AC_SUBST(SLURMD_PORT)
dnl Set SLURM_CONFIG_DIR in config.h dnl Set SLURM_CONFIG_DIR in config.h
dnl dnl
AC_MSG_CHECKING(for slurm config dir location) AC_DEFINE_UNQUOTED(SLURM_CONFIG_DIR, "$sysconfdir",
AC_ARG_WITH(slurm-conf,
AC_HELP_STRING([--with-slurm-conf=DIR],
[set slurm config dir location]),
[ if test -n "$withval" -a "$withval" != yes -a "$withval" != no; then
slurmconf="$withval"
fi
]
)
#
# FIXME: default config dir is in srcdir
# during development. Needs to be
# moved to $prefix/etc!!
#
topsrcdir=`cd $srcdir && pwd`
AC_MSG_RESULT(${slurmconf=${topsrcdir}/etc})
AC_DEFINE_UNQUOTED(SLURM_CONFIG_DIR, "$slurmconf",
[Define Default slurm config dir]) [Define Default slurm config dir])
AC_DEFINE_UNQUOTED(SLURM_CONFIG_FILE, "$slurmconf/slurm.conf", AC_DEFINE_UNQUOTED(SLURM_CONFIG_FILE, "$sysconfdir/slurm.conf",
[Define Default slurm config file location]) [Define Default slurm config file location])
......
...@@ -12,12 +12,17 @@ Source: %{name}-%{version}-%{release}.tgz ...@@ -12,12 +12,17 @@ Source: %{name}-%{version}-%{release}.tgz
Requires: readline popt Requires: readline popt
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
%define _with_elan 1 #
%define _with_totalview 1 # Defaults are --with-elan --with-totalview
#
%{!?_with_elan: %{!?_without_elan: %define _with_elan --with-elan}}
%{!?_with_totalview: %{!?_without_totalview: %define _with_totalview --with-totalview}}
%{?_with_elan:BuildRequires: qsnetdevkit}
%package devel %package devel
Summary: Development package for SLURM. Summary: Development package for SLURM.
Group: System Environment/Base Group: Development/System
Requires: slurm Requires: slurm
%package auth-none %package auth-none
...@@ -59,18 +64,18 @@ SLURM authentication module for Chris Dunlap's Munge ...@@ -59,18 +64,18 @@ SLURM authentication module for Chris Dunlap's Munge
%setup -n %{name}-%{version}-%{release} %setup -n %{name}-%{version}-%{release}
%build %build
%if %{_with_elan}
WITHELAN=--with-elan
%endif
%if %{_with_totalview}
WITHTV=--with-totalview
%endif
PFX_FIX=--program-prefix=%{?_program_prefix:%{_program_prefix}} PFX_FIX=--program-prefix=%{?_program_prefix:%{_program_prefix}}
WITHCONF=--sysconfdir=/etc/slurm
WITHCONF=--with-slurm-conf=/etc/slurm
# for now we build with debugging symbols
%configure --enable-debug $PFX_FIX $WITHCONF $WITHELAN $WITHTV CFLAGS="-g -Wall"
%configure \
--enable-debug \
$PFX_FIX $WITHCONF $WITHELAN $WITHTV \
%{?_with_elan} \
%{?_without_elan} \
%{?_with_totalview} \
%{?_without_totalview}
make make
......
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