summaryrefslogtreecommitdiff
path: root/sys-cluster/slurm
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-12-14 13:26:14 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-12-14 13:26:14 +0000
commit6abbf81ef2f298e3221ff5e67a1f3c5f23958212 (patch)
tree25413d1cb3a0cbfe36029db32398c0f333609215 /sys-cluster/slurm
parent9c417bacd51da6d8b57fa9f37425161d30d4b95b (diff)
gentoo resync : 14.12.2020
Diffstat (limited to 'sys-cluster/slurm')
-rw-r--r--sys-cluster/slurm/Manifest6
-rw-r--r--sys-cluster/slurm/slurm-20.02.5.1.ebuild265
-rw-r--r--sys-cluster/slurm/slurm-20.11.0.1.ebuild (renamed from sys-cluster/slurm/slurm-20.02.4.1.ebuild)4
3 files changed, 2 insertions, 273 deletions
diff --git a/sys-cluster/slurm/Manifest b/sys-cluster/slurm/Manifest
index c43b6c007aac..030cc2728a4c 100644
--- a/sys-cluster/slurm/Manifest
+++ b/sys-cluster/slurm/Manifest
@@ -4,8 +4,6 @@ AUX slurm.tmpfiles 31 BLAKE2B f08dbc53517cc15463be5264505d858fcf1f2196565868d164
AUX slurmctld.initd 1842 BLAKE2B 25c9fd76dc888544888abb2790d8a0ae66254c0f8807bf48433a54fd34f49d2f4f95b5c6dd9e4ab1f40938c274be6be2e88cdb8959ecb12b4a86d07bc0a5bc86 SHA512 4356552630d1a154bbf369012c0315baf08b5b98ff6411d66ea3b1b039bfff5f105091b110e8fa1e64209eb0990038abda86d980cf2316ca97a5c10a43243df6
AUX slurmd.initd 2001 BLAKE2B a0464ee0407406c7ceadd8e78f0229f5c6eda7081a691e24e609caa50f627d9bbf9c2d57bc6746b9c719a66cf2f4b0d756ecbbaf3bcd070846ad5ced6b289c9d SHA512 bb9447c25d2e96de1aea5935084ea78ea403701bd655d89d1a9d1d21bdbf88bdbae3888cfd618aabcc86dd8808401157ff84402ef35c4e138263457fd954046a
AUX slurmdbd.initd 1717 BLAKE2B e177a937f8bd97bb2f45e479e0f34b23cc23ab44b0000165a856ff8476560638a567baecad8aa8d57aeb76062f248039da7f440ddca8f5827e4729136a10d7de SHA512 6d21f667f4222ab62dc8d7f648e00205da982612d58b98e8e35e6b6602b3ad31c03e5130402437c77d3677b424da7b5226e2bfa8c5d29bc908fd618fc02697a8
-DIST slurm-20-02-4-1.tar.gz 8689917 BLAKE2B 69d78b7f82065f7ca1c869c0648012cc23e746c81b1a76d612d96fe2c6c66cc2fc1727a1e164a0f6d338b568c45bb1ac78b815181325a3982957683b77ae60d5 SHA512 932989a3c03468783d244d9925472fb9bb4dd0007a91dccc37a3b12763ed81902ad0dc039b8527526bde58f7540d056727df4cdab7581182b028f67e597fb7d5
-DIST slurm-20-02-5-1.tar.gz 8690263 BLAKE2B dd05ea11cd59385135d8988b6490d3aea6aed9e487afb8e920fc5104408fb8b440c8e8af85732f888841d5d7f9a09e95e3df7cb91b5d0fa855ff9b2127265263 SHA512 3eaeee276453ab9aea4f0eb921e8172a912b86d59a93756fc0b83a8c08eeda04c9f3cf64a33d2eab0b8e8daefb19c0e0bfcb895a5aefb327eaf18ed4e216161d
-EBUILD slurm-20.02.4.1.ebuild 7988 BLAKE2B c95a6d86019b74668c7f3cdb46b0bddad929d438f6085b24edf4c44caf6c0a766251f05ebef3b77d675f5bab9e3c992185dea028d9d3334b3785f5b391b31cdc SHA512 ae6b7c18c32f217bc690ad53070e125e9259ba684e0683891f1ee61bb2b65189aad460e2eecca3fbc911a5abdabf83ba0b63fa3c1f56968c71bae2ad00983fa9
-EBUILD slurm-20.02.5.1.ebuild 7988 BLAKE2B c95a6d86019b74668c7f3cdb46b0bddad929d438f6085b24edf4c44caf6c0a766251f05ebef3b77d675f5bab9e3c992185dea028d9d3334b3785f5b391b31cdc SHA512 ae6b7c18c32f217bc690ad53070e125e9259ba684e0683891f1ee61bb2b65189aad460e2eecca3fbc911a5abdabf83ba0b63fa3c1f56968c71bae2ad00983fa9
+DIST slurm-20-11-0-1.tar.gz 8762691 BLAKE2B 1e24a04b3faf97f4df98bd982d67d47f79670b863f466326e45e00fac0b99124122e94e30054a97471e4337234cbd213806791bdd5b3bddfeb05bef55f42931e SHA512 9a57f2610f7294ba6cd265746b874e32a7930100f30c0adf41d95b261787c441bdcacaa641f0b9785150b94fc7d6b5b7608ec618f668bffcae6f774752f17678
+EBUILD slurm-20.11.0.1.ebuild 7764 BLAKE2B 252d3cb8c68645d40b1d0bfe28295d896985787c7b66213569f55ce39d40a2fbfdcac327963453e499948c11f81e9f278864a3174eb9fe3cf86bbe10b59af094 SHA512 3b69f91188cbd5cd436989c2f561c5cf553c2522c7fb46b072fd4b9e55f60f619a286f237f752f0c5072623989cbc7a5c89191a2b6d8144582219f1f1b7fc03c
MISC metadata.xml 1199 BLAKE2B b52e7cae7554d439e7f25da2a80d98993d5c7f7abd5ba8b76c09bf60731b035040f976ac1bfc3c153f81b8feed89e2ceb5e6b676c25cc7b6219c4bcd87bd7e50 SHA512 8f48d582e61789373fc07ffd1db123cb8f43d337b03611972e480179ca5b43f2866392203f470d3d69784f2aae79cbcffdf583cba0aa4a9c25969f2c72a3f55f
diff --git a/sys-cluster/slurm/slurm-20.02.5.1.ebuild b/sys-cluster/slurm/slurm-20.02.5.1.ebuild
deleted file mode 100644
index 74a772b3b669..000000000000
--- a/sys-cluster/slurm/slurm-20.02.5.1.ebuild
+++ /dev/null
@@ -1,265 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-if [[ ${PV} == *9999* ]]; then
- EGIT_REPO_URI="https://github.com/SchedMD/slurm.git"
- INHERIT_GIT="git-r3"
- MY_P="${P}"
-else
- if [[ ${PV} == *pre* || ${PV} == *rc* ]]; then
- MY_PV=$(ver_rs '-0.') # pre-releases or release-candidate
- else
- MY_PV=$(ver_rs 1-4 '-') # stable releases
- fi
- MY_P="${PN}-${MY_PV}"
- INHERIT_GIT=""
- SRC_URI="https://github.com/SchedMD/slurm/archive/${MY_P}.tar.gz"
- KEYWORDS="~amd64 ~x86"
-fi
-
-inherit autotools bash-completion-r1 pam perl-module prefix toolchain-funcs systemd ${INHERIT_GIT}
-
-DESCRIPTION="A Highly Scalable Resource Manager"
-HOMEPAGE="https://www.schedmd.com https://github.com/SchedMD/slurm"
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="debug hdf5 html ipmi json lua multiple-slurmd +munge mysql netloc numa ofed pam perl slurmdbd static-libs ucx torque X"
-
-COMMON_DEPEND="
- !sys-cluster/torque
- !net-analyzer/slurm
- !net-analyzer/sinfo
- || ( sys-cluster/pmix[-pmi] >=sys-cluster/openmpi-2.0.0 )
- mysql? (
- || ( dev-db/mariadb-connector-c dev-db/mysql-connector-c )
- slurmdbd? ( || ( dev-db/mariadb:* dev-db/mysql:* ) )
- )
- munge? ( sys-auth/munge )
- pam? ( sys-libs/pam )
- lua? ( dev-lang/lua:0= )
- !lua? ( !dev-lang/lua )
- ipmi? ( sys-libs/freeipmi )
- json? ( dev-libs/json-c:= )
- amd64? ( netloc? ( || ( sys-apps/netloc >=sys-apps/hwloc-2.1.0[netloc] ) ) )
- hdf5? ( sci-libs/hdf5:= )
- numa? ( sys-process/numactl )
- ofed? ( sys-fabric/ofed )
- ucx? ( sys-cluster/ucx )
- X? ( net-libs/libssh2 )
- >=sys-apps/hwloc-1.1.1-r1
- sys-libs/ncurses:0=
- app-arch/lz4:0=
- sys-libs/readline:0="
-
-DEPEND="${COMMON_DEPEND}
- html? ( sys-apps/man2html )"
-
-RDEPEND="${COMMON_DEPEND}
- acct-user/slurm
- acct-group/slurm
- dev-libs/libcgroup"
-
-REQUIRED_USE="torque? ( perl )"
-
-S="${WORKDIR}/${PN}-${MY_P}"
-
-LIBSLURM_PERL_S="${S}/contribs/perlapi/libslurm/perl"
-LIBSLURMDB_PERL_S="${S}/contribs/perlapi/libslurmdb/perl"
-
-RESTRICT="test"
-
-src_unpack() {
- if [[ ${PV} == *9999* ]]; then
- git-r3_src_unpack
- else
- default
- fi
-}
-
-src_prepare() {
- tc-ld-disable-gold
- default
-
- # pids should go to /var/run/slurm
- sed \
- -e 's:/tmp:/var/tmp:g' \
- -e "s:/var/run/slurmctld.pid:${EPREFIX}/run/slurm/slurmctld.pid:g" \
- -e "s:/var/run/slurmd.pid:${EPREFIX}/run/slurm/slurmd.pid:g" \
- -e "s:StateSaveLocation=.*:StateSaveLocation=${EPREFIX}/var/spool/slurm:g" \
- -e "s:SlurmdSpoolDir=.*:SlurmdSpoolDir=${EPREFIX}/var/spool/slurm/slurmd:g" \
- -i "${S}/etc/slurm.conf.example" \
- || die "Can't sed for /var/run/slurmctld.pid"
- sed \
- -e "s:/var/run/slurmdbd.pid:${EPREFIX}/run/slurm/slurmdbd.pid:g" \
- -i "${S}/etc/slurmdbd.conf.example" \
- || die "Can't sed for /var/run/slurmdbd.pid"
- # gentooify systemd services
- sed \
- -e 's:sysconfig/.*:conf.d/slurm:g' \
- -e 's:var/run/:run/slurm/:g' \
- -e '/^EnvironmentFile=.*/d' \
- -i "${S}/etc"/*.service.in \
- || die "Can't sed systemd services for sysconfig or var/run/"
-
- sed -e '/AM_PATH_GTK_2_0/d' -i configure.ac || die
-
- hprefixify auxdir/{ax_check_zlib,x_ac_{lz4,ofed,munge}}.m4
- eautoreconf
-}
-
-src_configure() {
- local myconf=(
- --sysconfdir="${EPREFIX}/etc/${PN}"
- --with-hwloc="${EPREFIX}/usr"
- --htmldir="${EPREFIX}/usr/share/doc/${PF}"
- )
- use pam && myconf+=( --with-pam_dir=$(getpam_mod_dir) )
- use mysql || myconf+=( --without-mysql_config )
- use amd64 && myconf+=( $(use_with netloc) )
- econf "${myconf[@]}" \
- $(use_enable debug) \
- $(use_enable pam) \
- $(use_enable X x11) \
- $(use_with munge) \
- $(use_with json) \
- $(use_with hdf5) \
- $(use_with ofed) \
- $(use_with ucx) \
- $(use_enable static-libs static) \
- $(use_enable multiple-slurmd)
-
- # --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
- if use perl ; then
- # small hack to make it compile
- 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}" || die
- S="${LIBSLURMDB_PERL_S}" SRC_PREP="no" perl-module_src_configure
- cd "${S}" || die
- rm -rf "${S}/src/api/.libs" "${S}/src/db_api/.libs" || die
- fi
-}
-
-src_compile() {
- default
- use pam && emake -C contribs/pam
- if use perl ; then
- cd "${LIBSLURM_PERL_S}" || die
- S="${LIBSLURM_PERL_S}" perl-module_src_compile
- cd "${LIBSLURMDB_PERL_S}" || die
- S="${LIBSLURMDB_PERL_S}" perl-module_src_compile
- 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}" || die
- S="${LIBSLURM_PERL_S}" perl-module_src_install
- cd "${LIBSLURMDB_PERL_S}" || die
- S="${LIBSLURMDB_PERL_S}" perl-module_src_install
- cd "${S}" || die
- fi
- if use torque; then
- emake DESTDIR="${D}" -C contribs/torque
- rm -f "${D}"/usr/bin/mpiexec || die
- fi
- use static-libs || find "${ED}" -name '*.la' -exec rm {} +
- # install sample configs
- keepdir /etc/slurm
- insinto /etc/slurm
- doins \
- etc/prolog.example \
- etc/cgroup.conf.example \
- etc/slurm.conf.example \
- etc/slurmdbd.conf.example
- exeinto /etc/slurm
- keepdir /etc/slurm/layouts.d
- insinto /etc/slurm/layouts.d
- newins etc/layouts.d.power.conf.example power.conf.example
- newins etc/layouts.d.power_cpufreq.conf.example power_cpufreq.conf.example
- newins etc/layouts.d.unit.conf.example unit.conf.example
- # 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
- # install conf.d files
- newconfd "${FILESDIR}/slurm.confd" slurm
- # install logrotate file
- insinto /etc/logrotate.d
- newins "${FILESDIR}/logrotate" slurm
- # install bashcomp
- newbashcomp contribs/slurm_completion_help/slurm_completion.sh scontrol
- bashcomp_alias scontrol \
- sreport sacctmgr squeue scancel sshare sbcast sinfo \
- sprio sacct salloc sbatch srun sattach sdiag sstat
- # install systemd files
- systemd_newtmpfilesd "${FILESDIR}/slurm.tmpfiles" slurm.conf
- systemd_dounit etc/slurmd.service etc/slurmctld.service etc/slurmdbd.service
-}
-
-pkg_preinst() {
- if use munge; then
- sed -i 's,\(SLURM_USE_MUNGE=\).*,\11,' "${D}"/etc/conf.d/slurm || die
- fi
-}
-
-create_folders_and_fix_permissions() {
- einfo "Fixing permissions in ${@}"
- mkdir -p ${@} || die
- chown -R ${PN}:${PN} ${@} || die
-}
-
-pkg_postinst() {
- paths=(
- "${EROOT}"/var/${PN}/checkpoint
- "${EROOT}"/var/${PN}
- "${EROOT}"/var/spool/${PN}/slurmd
- "${EROOT}"/var/spool/${PN}
- "${EROOT}"/var/log/${PN}
- /var/tmp/${PN}/${PN}d
- /var/tmp/${PN}
- /run/${PN}
- )
- local folder_path
- for folder_path in ${paths[@]}; do
- create_folders_and_fix_permissions $folder_path
- done
- 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."
- 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 " For the proctrack plugin:"
- elog " freezer"
- elog " For the task plugin:"
- elog " cpuset, memory, devices"
- elog " For the accounting plugin:"
- elog " cpuacct, memory, blkio"
- elog "Then, set these options in /etc/slurm/slurm.conf:"
- elog " ProctrackType=proctrack/cgroup"
- elog " TaskPlugin=task/cgroup"
- einfo
- ewarn "Paths were created for slurm. Please use these paths in /etc/slurm/slurm.conf:"
- for folder_path in ${paths[@]}; do
- ewarn " ${folder_path}"
- done
-}
diff --git a/sys-cluster/slurm/slurm-20.02.4.1.ebuild b/sys-cluster/slurm/slurm-20.11.0.1.ebuild
index 74a772b3b669..e74fe466f7ea 100644
--- a/sys-cluster/slurm/slurm-20.02.4.1.ebuild
+++ b/sys-cluster/slurm/slurm-20.11.0.1.ebuild
@@ -190,10 +190,6 @@ src_install() {
etc/slurmdbd.conf.example
exeinto /etc/slurm
keepdir /etc/slurm/layouts.d
- insinto /etc/slurm/layouts.d
- newins etc/layouts.d.power.conf.example power.conf.example
- newins etc/layouts.d.power_cpufreq.conf.example power_cpufreq.conf.example
- newins etc/layouts.d.unit.conf.example unit.conf.example
# install init.d files
newinitd "$(prefixify_ro "${FILESDIR}/slurmd.initd")" slurmd
newinitd "$(prefixify_ro "${FILESDIR}/slurmctld.initd")" slurmctld