mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-cluster/slurm: Version Bump
Signed-off-by: Justin Lecher <jlec@gentoo.org> Package-Manager: Portage-2.3.24, Repoman-2.3.6
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
DIST slurm-16.05.11.tar.bz2 6100281 BLAKE2B d9e368f22f55c457e2fb6caaca0a496e6de1c0c77af891e62259db88fa7fca68d4df0731f1a6cada046341698e673860eb7d3883ef9dba8589fc01c7882a1735 SHA512 6922f6987a586288ea8229b4603b42c705ea159af4ceb3763790ba5cc2fb8dabf7747d7a27a886d50eeb3a7ed743c26b86354b9d05802c46ecd86b215ace85ba
|
||||
DIST slurm-17.02.9.tar.bz2 6053443 BLAKE2B 73635de40d0f083de068306cae933a499a9df24790caf12859a64f7e61a0a77a4383137f5f6cf65699e6c07bd2e240c9cf74be4378124f71047e18e99bbbff55 SHA512 9a0b502a16b1fe61fd42ef92cb9cdc0eaa5abb4e9a3b0b6d87337ca0597223c4e132632f22b13a4a5109c03a3f422dd49df6421b637c446973e6d521fb23075c
|
||||
DIST slurm-17.11.4.tar.bz2 6203468 BLAKE2B 8f79fa83c6c196da6c1f47f83a763d044e86192ac584f4afad20ed1c57aac051b9f308c03d7d670ff9c974663d7931a6ccaae55dd49d2135fc08fb81c4aa50e4 SHA512 027f7dee51980f1351c56934ebdf510cf72c049544cdfbbfc450223b5e27a9d21b9f6fcf7a3a043b7cc18c913e9ce6dcd8d0153a5e7625c84cc9a67b69832962
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
configure.ac | 2 +-
|
||||
src/plugins/task/cgroup/task_cgroup_devices.c | 6 ++++++
|
||||
2 files changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 869a989..2936983 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -141,7 +141,7 @@ AC_CHECK_HEADERS(mcheck.h values.h socket.h sys/socket.h \
|
||||
AC_HEADER_SYS_WAIT
|
||||
AC_HEADER_TIME
|
||||
AC_HEADER_STDC
|
||||
-
|
||||
+AC_HEADER_MAJOR
|
||||
|
||||
dnl Checks for structures.
|
||||
dnl
|
||||
diff --git a/src/plugins/task/cgroup/task_cgroup_devices.c b/src/plugins/task/cgroup/task_cgroup_devices.c
|
||||
index 554583c..9be99d8 100644
|
||||
--- a/src/plugins/task/cgroup/task_cgroup_devices.c
|
||||
+++ b/src/plugins/task/cgroup/task_cgroup_devices.c
|
||||
@@ -42,6 +42,12 @@
|
||||
#include <sched.h>
|
||||
#include <glob.h>
|
||||
#include <sys/types.h>
|
||||
+#ifdef MAJOR_IN_MKDEV
|
||||
+# include <sys/mkdev.h>
|
||||
+#endif
|
||||
+#ifdef MAJOR_IN_SYSMACROS
|
||||
+# include <sys/sysmacros.h>
|
||||
+#endif
|
||||
#include <sys/stat.h>
|
||||
#include <slurm/slurm.h>
|
||||
#include <slurm/slurm_errno.h>
|
||||
16
sys-cluster/slurm/files/slurm-17.11.4-buffer.patch
Normal file
16
sys-cluster/slurm/files/slurm-17.11.4-buffer.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
src/plugins/node_features/knl_cray/node_features_knl_cray.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/plugins/node_features/knl_cray/node_features_knl_cray.c b/src/plugins/node_features/knl_cray/node_features_knl_cray.c
|
||||
index 51f72df226..3a5ffef60d 100644
|
||||
--- a/src/plugins/node_features/knl_cray/node_features_knl_cray.c
|
||||
+++ b/src/plugins/node_features/knl_cray/node_features_knl_cray.c
|
||||
@@ -2986,7 +2986,7 @@ extern void node_features_p_step_config(bool mem_sort, bitstr_t *numa_bitmap)
|
||||
if (mem_sort && (numa_available() != -1)) {
|
||||
struct stat sb;
|
||||
int buf_len, fd, i, len, rc;
|
||||
- char buf[8];
|
||||
+ char buf[10];
|
||||
|
||||
if (stat(ZONE_SORT_PATH, &sb) == -1) {
|
||||
rc = system(MODPROBE_PATH " zonesort_module");
|
||||
@@ -1,7 +1,13 @@
|
||||
diff -urN slurm-16.05.2.orig/configure.ac slurm-16.05.2/configure.ac
|
||||
--- slurm-16.05.2.orig/configure.ac 2016-07-07 02:51:37.000000000 +0300
|
||||
+++ slurm-16.05.2/configure.ac 2016-07-15 20:02:41.373270765 +0300
|
||||
@@ -261,44 +261,6 @@
|
||||
configure.ac | 39 ---------------------------------------
|
||||
doc/man/man1/Makefile.am | 8 --------
|
||||
src/Makefile.am | 3 +--
|
||||
3 files changed, 1 insertion(+), 49 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 2f177ec..ff4d69b 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -238,44 +238,6 @@ AC_SUBST(HAVE_SOME_CURSES)
|
||||
PKG_CHECK_MODULES([CHECK], [check >= 0.9.8], [ac_have_check="yes"], [ac_have_check="no"])
|
||||
AM_CONDITIONAL(HAVE_CHECK, test "x$ac_have_check" = "xyes")
|
||||
|
||||
@@ -43,10 +49,10 @@ diff -urN slurm-16.05.2.orig/configure.ac slurm-16.05.2/configure.ac
|
||||
-
|
||||
-AM_CONDITIONAL(BUILD_SVIEW, [test "x$ac_glib_test" = "xyes"] && [test "x$ac_gtk_test" = "xyes"])
|
||||
-
|
||||
X_AC_DATABASES
|
||||
|
||||
dnl Cray ALPS/Basil support depends on mySQL
|
||||
@@ -503,7 +465,6 @@
|
||||
X_AC_CRAY
|
||||
|
||||
@@ -477,7 +439,6 @@ AC_CONFIG_FILES([Makefile
|
||||
src/sshare/Makefile
|
||||
src/sstat/Makefile
|
||||
src/strigger/Makefile
|
||||
@@ -54,16 +60,40 @@ diff -urN slurm-16.05.2.orig/configure.ac slurm-16.05.2/configure.ac
|
||||
src/plugins/Makefile
|
||||
src/plugins/accounting_storage/Makefile
|
||||
src/plugins/accounting_storage/common/Makefile
|
||||
diff -urN slurm-16.05.2.orig/src/Makefile.am slurm-16.05.2/src/Makefile.am
|
||||
--- slurm-16.05.2.orig/src/Makefile.am 2016-07-07 02:51:37.000000000 +0300
|
||||
+++ slurm-16.05.2/src/Makefile.am 2016-07-15 20:02:41.373270765 +0300
|
||||
@@ -27,8 +27,7 @@
|
||||
diff --git a/doc/man/man1/Makefile.am b/doc/man/man1/Makefile.am
|
||||
index 246f16d..ba39af2 100644
|
||||
--- a/doc/man/man1/Makefile.am
|
||||
+++ b/doc/man/man1/Makefile.am
|
||||
@@ -29,10 +29,6 @@ if WITH_BLCR
|
||||
man1_MANS += srun_cr.1
|
||||
endif
|
||||
|
||||
-if BUILD_SVIEW
|
||||
-man1_MANS += sview.1
|
||||
-endif
|
||||
-
|
||||
EXTRA_DIST = $(man1_MANS)
|
||||
|
||||
if HAVE_MAN2HTML
|
||||
@@ -65,10 +61,6 @@ if WITH_BLCR
|
||||
html_DATA += srun_cr.html
|
||||
endif
|
||||
|
||||
-if BUILD_SVIEW
|
||||
-html_DATA += sview.html
|
||||
-endif
|
||||
-
|
||||
MOSTLYCLEANFILES = ${html_DATA}
|
||||
|
||||
EXTRA_DIST += $(html_DATA)
|
||||
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||
index bcd5aa7..a8cbf17 100644
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -28,5 +28,4 @@ SUBDIRS = \
|
||||
srun_cr \
|
||||
sshare \
|
||||
sstat \
|
||||
- strigger \
|
||||
- sview
|
||||
+ strigger
|
||||
|
||||
if !REAL_BG_L_P_LOADED
|
||||
SUBDIRS += srun
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
@@ -17,19 +17,19 @@ else
|
||||
fi
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
INHERIT_GIT=""
|
||||
SRC_URI="https://www.schedmd.com/download/latest/${MY_P}.tar.bz2"
|
||||
SRC_URI="https://download.schedmd.com/slurm/${MY_P}.tar.bz2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
fi
|
||||
|
||||
inherit autotools eutils pam perl-module prefix user ${INHERIT_GIT}
|
||||
|
||||
DESCRIPTION="SLURM: A Highly Scalable Resource Manager"
|
||||
DESCRIPTION="A Highly Scalable Resource Manager"
|
||||
HOMEPAGE="https://www.schedmd.com"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="lua multiple-slurmd +munge mysql pam perl ssl static-libs torque"
|
||||
IUSE="debug lua multiple-slurmd +munge mysql pam perl ssl static-libs torque"
|
||||
|
||||
DEPEND="
|
||||
!sys-cluster/torque
|
||||
@@ -54,7 +54,7 @@ RESTRICT="primaryuri test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-disable-sview.patch
|
||||
"${FILESDIR}"/${P}-sysmacros.patch
|
||||
"${FILESDIR}"/${P}-buffer.patch
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
@@ -71,10 +71,8 @@ pkg_setup() {
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if [ ${#PATCHES[0]} -ne 0 ]; then
|
||||
epatch "${PATCHES[@]}"
|
||||
fi
|
||||
eapply_user
|
||||
default
|
||||
|
||||
# pids should go to /var/run/slurm
|
||||
sed -e "s:/var/run/slurmctld.pid:${EPREFIX}/var/run/slurm/slurmctld.pid:g" \
|
||||
-e "s:/var/run/slurmd.pid:${EPREFIX}/var/run/slurm/slurmd.pid:g" \
|
||||
@@ -101,6 +99,7 @@ src_configure() {
|
||||
--docdir="${EPREFIX}/usr/share/doc/${P}"
|
||||
--htmldir="${EPREFIX}/usr/share/doc/${P}"
|
||||
)
|
||||
use debug || myconf+=( --disable-debug )
|
||||
use pam && myconf+=( --with-pam_dir=$(getpam_mod_dir) )
|
||||
use mysql || myconf+=( --without-mysql_config )
|
||||
econf "${myconf[@]}" \
|
||||
@@ -113,19 +112,21 @@ src_configure() {
|
||||
# --htmldir does not seems to propagate... Documentations are installed
|
||||
# in /usr/share/doc/slurm-2.3.0/html
|
||||
# instead of /usr/share/doc/slurm-2.3.0.2/html
|
||||
sed -e "s|htmldir = .*/html|htmldir = \${prefix}/share/doc/slurm-${PVR}/html|g" -i doc/html/Makefile || die
|
||||
sed \
|
||||
-e "s|htmldir = .*/html|htmldir = \${prefix}/share/doc/slurm-${PVR}/html|g" \
|
||||
-i doc/html/Makefile || die
|
||||
if use perl ; then
|
||||
# small hack to make it compile
|
||||
mkdir -p "${S}/src/api/.libs"
|
||||
mkdir -p "${S}/src/db_api/.libs"
|
||||
touch "${S}/src/api/.libs/libslurm.so"
|
||||
touch "${S}/src/db_api/.libs/libslurmdb.so"
|
||||
cd "${LIBSLURM_PERL_S}"
|
||||
mkdir -p "${S}/src/api/.libs" || die
|
||||
mkdir -p "${S}/src/db_api/.libs" || die
|
||||
touch "${S}/src/api/.libs/libslurm.so" || die
|
||||
touch "${S}/src/db_api/.libs/libslurmdb.so" || die
|
||||
cd "${LIBSLURM_PERL_S}" || die
|
||||
S="${LIBSLURM_PERL_S}" SRC_PREP="no" perl-module_src_configure
|
||||
cd "${LIBSLURMDB_PERL_S}"
|
||||
cd "${LIBSLURMDB_PERL_S}" || die
|
||||
S="${LIBSLURMDB_PERL_S}" SRC_PREP="no" perl-module_src_configure
|
||||
cd "${S}"
|
||||
rm -rf "${S}/src/api/.libs" "${S}/src/db_api/.libs"
|
||||
cd "${S}" || die
|
||||
rm -rf "${S}/src/api/.libs" "${S}/src/db_api/.libs" || die
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -133,26 +134,24 @@ src_compile() {
|
||||
default
|
||||
use pam && emake -C contribs/pam
|
||||
if use perl ; then
|
||||
cd "${LIBSLURM_PERL_S}"
|
||||
cd "${LIBSLURM_PERL_S}" || die
|
||||
S="${LIBSLURM_PERL_S}" perl-module_src_compile
|
||||
cd "${LIBSLURMDB_PERL_S}"
|
||||
cd "${LIBSLURMDB_PERL_S}" || die
|
||||
S="${LIBSLURMDB_PERL_S}" perl-module_src_compile
|
||||
cd "${S}"
|
||||
fi
|
||||
if use torque ; then
|
||||
emake -C contribs/torque
|
||||
cd "${S}" || die
|
||||
fi
|
||||
use torque && emake -C contribs/torque
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
use pam && emake DESTDIR="${D}" -C contribs/pam install
|
||||
if use perl; then
|
||||
cd "${LIBSLURM_PERL_S}"
|
||||
cd "${LIBSLURM_PERL_S}" || die
|
||||
S="${LIBSLURM_PERL_S}" perl-module_src_install
|
||||
cd "${LIBSLURMDB_PERL_S}"
|
||||
cd "${LIBSLURMDB_PERL_S}" || die
|
||||
S="${LIBSLURMDB_PERL_S}" perl-module_src_install
|
||||
cd "${S}"
|
||||
cd "${S}" || die
|
||||
fi
|
||||
if use torque; then
|
||||
emake DESTDIR="${D}" -C contribs/torque
|
||||
@@ -162,30 +161,29 @@ src_install() {
|
||||
# install sample configs
|
||||
keepdir /etc/slurm
|
||||
insinto /etc/slurm
|
||||
doins etc/bluegene.conf.example
|
||||
doins etc/cgroup.conf.example
|
||||
doins etc/cgroup_allowed_devices_file.conf.example
|
||||
doins etc/slurm.conf.example
|
||||
doins etc/slurmdbd.conf.example
|
||||
doins \
|
||||
etc/bluegene.conf.example \
|
||||
etc/cgroup.conf.example \
|
||||
etc/cgroup_allowed_devices_file.conf.example \
|
||||
etc/slurm.conf.example \
|
||||
etc/slurmdbd.conf.example
|
||||
exeinto /etc/slurm
|
||||
doexe etc/cgroup.release_common.example
|
||||
doexe etc/slurm.epilog.clean
|
||||
doexe \
|
||||
etc/slurm.epilog.clean
|
||||
# install init.d files
|
||||
newinitd "$(prefixify_ro "${FILESDIR}/slurmd.initd")" slurmd
|
||||
newinitd "$(prefixify_ro "${FILESDIR}/slurmctld.initd")" slurmctld
|
||||
newinitd "$(prefixify_ro "${FILESDIR}/slurmdbd.initd")" slurmdbd
|
||||
newinitd "$(prefixify_ro ${FILESDIR}/slurmd.initd)" slurmd
|
||||
newinitd "$(prefixify_ro ${FILESDIR}/slurmctld.initd)" slurmctld
|
||||
newinitd "$(prefixify_ro ${FILESDIR}/slurmdbd.initd)" slurmdbd
|
||||
# install conf.d files
|
||||
newconfd "${FILESDIR}/slurm.confd" slurm
|
||||
# Install logrotate file
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/logrotate" slurm
|
||||
# cgroups support
|
||||
exeinto /etc/slurm/cgroup
|
||||
doexe etc/cgroup.release_common.example
|
||||
mv "${ED}"/etc/slurm/cgroup/{cgroup.release_common.example,release_common} || die "Can't move cgroup.release_common.example"
|
||||
ln -s release_common "${ED}"/etc/slurm/cgroup/release_cpuset || die "Can't create symbolic link release_cpuset"
|
||||
ln -s release_common "${ED}"/etc/slurm/cgroup/release_devices || die "Can't create symbolic link release_devices"
|
||||
ln -s release_common "${ED}"/etc/slurm/cgroup/release_freezer || die "Can't create symbolic link release_freezer"
|
||||
|
||||
newbashcomp contribs/slurm_completion_help/slurm_completion.sh ${PN}
|
||||
bashcomp_alias \
|
||||
sreport sacctmgr scontrol squeue scancel sshare sbcast sinfo \
|
||||
sprio sacct salloc sbatch srun sattach sdiag sstat
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
@@ -214,12 +212,12 @@ pkg_postinst() {
|
||||
for folder_path in ${paths[@]}; do
|
||||
create_folders_and_fix_permissions $folder_path
|
||||
done
|
||||
einfo
|
||||
echo
|
||||
|
||||
elog "Please visit the file '/usr/share/doc/${P}/html/configurator.html"
|
||||
elog "through a (javascript enabled) browser to create a configureation file."
|
||||
elog "Copy that file to /etc/slurm/slurm.conf on all nodes (including the headnode) of your cluster."
|
||||
einfo
|
||||
echo
|
||||
elog "For cgroup support, please see https://www.schedmd.com/slurmdocs/cgroup.conf.html"
|
||||
elog "Your kernel must be compiled with the wanted cgroup feature:"
|
||||
elog " General setup --->"
|
||||
Reference in New Issue
Block a user