1 |
commit: 5612366a33d4ee1767f27e39b8431ffe5c76661c |
2 |
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 25 20:44:16 2020 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 25 20:47:32 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5612366a |
7 |
|
8 |
Revert "sys-cluster/slurm: improve netloc dep, disable-static" |
9 |
|
10 |
This reverts commit 742fa1d6fa947439c72884ebe6193627f0f7539c. |
11 |
This change was partialy incorporated already |
12 |
|
13 |
Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org> |
14 |
|
15 |
sys-cluster/slurm/slurm-20.02.2.1-r1.ebuild | 267 ---------------------------- |
16 |
1 file changed, 267 deletions(-) |
17 |
|
18 |
diff --git a/sys-cluster/slurm/slurm-20.02.2.1-r1.ebuild b/sys-cluster/slurm/slurm-20.02.2.1-r1.ebuild |
19 |
deleted file mode 100644 |
20 |
index 1a37f7c41a8..00000000000 |
21 |
--- a/sys-cluster/slurm/slurm-20.02.2.1-r1.ebuild |
22 |
+++ /dev/null |
23 |
@@ -1,267 +0,0 @@ |
24 |
-# Copyright 1999-2020 Gentoo Authors |
25 |
-# Distributed under the terms of the GNU General Public License v2 |
26 |
- |
27 |
-EAPI="7" |
28 |
- |
29 |
-if [[ "${PV}" == *9999* ]]; then |
30 |
- EGIT_REPO_URI="https://github.com/SchedMD/slurm.git" |
31 |
- INHERIT_GIT="git-r3" |
32 |
- MY_P="${P}" |
33 |
-else |
34 |
- if [[ "${PV}" == *pre* || "${PV}" == *rc* ]]; then |
35 |
- MY_PV=$(ver_rs '-0.') # pre-releases or release-candidate |
36 |
- else |
37 |
- MY_PV=$(ver_rs 1-3 '-') # stable releases |
38 |
- fi |
39 |
- MY_P="${PN}-${MY_PV}" |
40 |
- INHERIT_GIT="" |
41 |
- SRC_URI="https://github.com/SchedMD/slurm/archive/${MY_P}.tar.gz" |
42 |
- KEYWORDS="~amd64 ~x86" |
43 |
-fi |
44 |
- |
45 |
-inherit autotools bash-completion-r1 pam perl-module prefix toolchain-funcs systemd ${INHERIT_GIT} |
46 |
- |
47 |
-DESCRIPTION="A Highly Scalable Resource Manager" |
48 |
-HOMEPAGE="https://www.schedmd.com https://github.com/SchedMD/slurm" |
49 |
- |
50 |
-LICENSE="GPL-2" |
51 |
-SLOT="0" |
52 |
-IUSE="debug hdf5 html ipmi json lua multiple-slurmd +munge mysql netloc numa ofed pam perl slurmdbd ucx torque X" |
53 |
- |
54 |
-COMMON_DEPEND=" |
55 |
- app-arch/lz4:0= |
56 |
- !net-analyzer/slurm |
57 |
- !net-analyzer/sinfo |
58 |
- >=sys-apps/hwloc-1.1.1-r1 |
59 |
- !sys-cluster/torque |
60 |
- sys-libs/ncurses:0= |
61 |
- sys-libs/readline:0= |
62 |
- |
63 |
- || ( sys-cluster/pmix[-pmi] >=sys-cluster/openmpi-2.0.0 ) |
64 |
- |
65 |
- amd64? ( netloc? ( || ( >=sys-apps/hwloc-2.1.0[netloc] sys-apps/netloc ) ) ) |
66 |
- hdf5? ( sci-libs/hdf5:= ) |
67 |
- ipmi? ( sys-libs/freeipmi ) |
68 |
- json? ( dev-libs/json-c:= ) |
69 |
- lua? ( dev-lang/lua:0= ) |
70 |
- !lua? ( !dev-lang/lua ) |
71 |
- mysql? ( |
72 |
- || ( dev-db/mariadb-connector-c dev-db/mysql-connector-c ) |
73 |
- slurmdbd? ( || ( dev-db/mariadb dev-db/mysql ) ) |
74 |
- ) |
75 |
- munge? ( sys-auth/munge ) |
76 |
- numa? ( sys-process/numactl ) |
77 |
- ofed? ( sys-fabric/ofed ) |
78 |
- pam? ( sys-libs/pam ) |
79 |
- ucx? ( sys-cluster/ucx ) |
80 |
- X? ( net-libs/libssh2 ) |
81 |
-" |
82 |
-DEPEND="${COMMON_DEPEND} |
83 |
- html? ( sys-apps/man2html ) |
84 |
-" |
85 |
-RDEPEND="${COMMON_DEPEND} |
86 |
- acct-user/slurm |
87 |
- acct-group/slurm |
88 |
- dev-libs/libcgroup |
89 |
-" |
90 |
-REQUIRED_USE="torque? ( perl )" |
91 |
- |
92 |
-S="${WORKDIR}/${PN}-${MY_P}" |
93 |
- |
94 |
-LIBSLURM_PERL_S="${S}/contribs/perlapi/libslurm/perl" |
95 |
-LIBSLURMDB_PERL_S="${S}/contribs/perlapi/libslurmdb/perl" |
96 |
- |
97 |
-RESTRICT="test" |
98 |
- |
99 |
-src_unpack() { |
100 |
- if [[ "${PV}" == *9999* ]]; then |
101 |
- git-r3_src_unpack |
102 |
- else |
103 |
- default |
104 |
- fi |
105 |
-} |
106 |
- |
107 |
-src_prepare() { |
108 |
- tc-ld-disable-gold |
109 |
- default |
110 |
- |
111 |
- # pids should go to /var/run/slurm |
112 |
- sed \ |
113 |
- -e 's:/tmp:/var/tmp:g' \ |
114 |
- -e "s:/var/run/slurmctld.pid:${EPREFIX}/run/slurm/slurmctld.pid:g" \ |
115 |
- -e "s:/var/run/slurmd.pid:${EPREFIX}/run/slurm/slurmd.pid:g" \ |
116 |
- -e "s:StateSaveLocation=.*:StateSaveLocation=${EPREFIX}/var/spool/slurm:g" \ |
117 |
- -e "s:SlurmdSpoolDir=.*:SlurmdSpoolDir=${EPREFIX}/var/spool/slurm/slurmd:g" \ |
118 |
- -i "${S}/etc/slurm.conf.example" \ |
119 |
- || die "Can't sed for /var/run/slurmctld.pid" |
120 |
- sed \ |
121 |
- -e "s:/var/run/slurmdbd.pid:${EPREFIX}/run/slurm/slurmdbd.pid:g" \ |
122 |
- -i "${S}/etc/slurmdbd.conf.example" \ |
123 |
- || die "Can't sed for /var/run/slurmdbd.pid" |
124 |
- # gentooify systemd services |
125 |
- sed \ |
126 |
- -e 's:sysconfig/.*:conf.d/slurm:g' \ |
127 |
- -e 's:var/run/:run/slurm/:g' \ |
128 |
- -e '/^EnvironmentFile=.*/d' \ |
129 |
- -i "${S}/etc"/*.service.in \ |
130 |
- || die "Can't sed systemd services for sysconfig or var/run/" |
131 |
- |
132 |
- sed -e '/AM_PATH_GTK_2_0/d' -i configure.ac || die |
133 |
- |
134 |
- hprefixify auxdir/{ax_check_zlib,x_ac_{lz4,ofed,munge}}.m4 |
135 |
- eautoreconf |
136 |
-} |
137 |
- |
138 |
-src_configure() { |
139 |
- local myconf=( |
140 |
- $(use_enable debug) |
141 |
- $(use_enable multiple-slurmd) |
142 |
- $(use_enable pam) |
143 |
- $(use_enable X x11) |
144 |
- $(use_with hdf5) |
145 |
- $(use_with json) |
146 |
- $(use_with munge) |
147 |
- $(use_with ofed) |
148 |
- $(use_with ucx) |
149 |
- --disable-static |
150 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}" |
151 |
- --sysconfdir="${EPREFIX}/etc/${PN}" |
152 |
- --with-hwloc="${EPREFIX}/usr" |
153 |
- ) |
154 |
- use pam && myconf+=( --with-pam_dir=$(getpam_mod_dir) ) |
155 |
- use mysql || myconf+=( --without-mysql_config ) |
156 |
- use amd64 && myconf+=( $(use_with netloc) ) |
157 |
- econf "${myconf[@]}" |
158 |
- |
159 |
- # --htmldir does not seems to propagate... Documentations are installed |
160 |
- # in /usr/share/doc/slurm-2.3.0/html |
161 |
- # instead of /usr/share/doc/slurm-2.3.0.2/html |
162 |
- sed \ |
163 |
- -e "s|htmldir = .*/html|htmldir = \${prefix}/share/doc/slurm-${PVR}/html|g" \ |
164 |
- -i doc/html/Makefile || die |
165 |
- if use perl ; then |
166 |
- # small hack to make it compile |
167 |
- mkdir -p "${S}/src/api/.libs" || die |
168 |
- mkdir -p "${S}/src/db_api/.libs" || die |
169 |
- touch "${S}/src/api/.libs/libslurm.so" || die |
170 |
- touch "${S}/src/db_api/.libs/libslurmdb.so" || die |
171 |
- cd "${LIBSLURM_PERL_S}" || die |
172 |
- S="${LIBSLURM_PERL_S}" SRC_PREP="no" perl-module_src_configure |
173 |
- cd "${LIBSLURMDB_PERL_S}" || die |
174 |
- S="${LIBSLURMDB_PERL_S}" SRC_PREP="no" perl-module_src_configure |
175 |
- cd "${S}" || die |
176 |
- rm -rf "${S}/src/api/.libs" "${S}/src/db_api/.libs" || die |
177 |
- fi |
178 |
-} |
179 |
- |
180 |
-src_compile() { |
181 |
- default |
182 |
- use pam && emake -C contribs/pam |
183 |
- if use perl ; then |
184 |
- cd "${LIBSLURM_PERL_S}" || die |
185 |
- S="${LIBSLURM_PERL_S}" perl-module_src_compile |
186 |
- cd "${LIBSLURMDB_PERL_S}" || die |
187 |
- S="${LIBSLURMDB_PERL_S}" perl-module_src_compile |
188 |
- cd "${S}" || die |
189 |
- fi |
190 |
- use torque && emake -C contribs/torque |
191 |
-} |
192 |
- |
193 |
-src_install() { |
194 |
- default |
195 |
- use pam && emake DESTDIR="${D}" -C contribs/pam install |
196 |
- if use perl; then |
197 |
- cd "${LIBSLURM_PERL_S}" || die |
198 |
- S="${LIBSLURM_PERL_S}" perl-module_src_install |
199 |
- cd "${LIBSLURMDB_PERL_S}" || die |
200 |
- S="${LIBSLURMDB_PERL_S}" perl-module_src_install |
201 |
- cd "${S}" || die |
202 |
- fi |
203 |
- if use torque; then |
204 |
- emake DESTDIR="${D}" -C contribs/torque |
205 |
- rm -f "${D}"/usr/bin/mpiexec || die |
206 |
- fi |
207 |
- find "${ED}" -name '*.la' -exec rm {} + |
208 |
- # install sample configs |
209 |
- keepdir /etc/slurm |
210 |
- insinto /etc/slurm |
211 |
- doins \ |
212 |
- etc/prolog.example \ |
213 |
- etc/cgroup.conf.example \ |
214 |
- etc/slurm.conf.example \ |
215 |
- etc/slurmdbd.conf.example |
216 |
- exeinto /etc/slurm |
217 |
- keepdir /etc/slurm/layouts.d |
218 |
- insinto /etc/slurm/layouts.d |
219 |
- newins etc/layouts.d.power.conf.example power.conf.example |
220 |
- newins etc/layouts.d.power_cpufreq.conf.example power_cpufreq.conf.example |
221 |
- newins etc/layouts.d.unit.conf.example unit.conf.example |
222 |
- # install init.d files |
223 |
- newinitd "$(prefixify_ro "${FILESDIR}/slurmd.initd")" slurmd |
224 |
- newinitd "$(prefixify_ro "${FILESDIR}/slurmctld.initd")" slurmctld |
225 |
- newinitd "$(prefixify_ro "${FILESDIR}/slurmdbd.initd")" slurmdbd |
226 |
- # install conf.d files |
227 |
- newconfd "${FILESDIR}/slurm.confd" slurm |
228 |
- # install logrotate file |
229 |
- insinto /etc/logrotate.d |
230 |
- newins "${FILESDIR}/logrotate" slurm |
231 |
- # install bashcomp |
232 |
- newbashcomp contribs/slurm_completion_help/slurm_completion.sh scontrol |
233 |
- bashcomp_alias scontrol \ |
234 |
- sreport sacctmgr squeue scancel sshare sbcast sinfo \ |
235 |
- sprio sacct salloc sbatch srun sattach sdiag sstat |
236 |
- # install systemd files |
237 |
- systemd_newtmpfilesd "${FILESDIR}/slurm.tmpfiles" slurm.conf |
238 |
- systemd_dounit etc/slurmd.service etc/slurmctld.service etc/slurmdbd.service |
239 |
-} |
240 |
- |
241 |
-pkg_preinst() { |
242 |
- if use munge; then |
243 |
- sed -i 's,\(SLURM_USE_MUNGE=\).*,\11,' "${D}"/etc/conf.d/slurm || die |
244 |
- fi |
245 |
-} |
246 |
- |
247 |
-create_folders_and_fix_permissions() { |
248 |
- einfo "Fixing permissions in ${@}" |
249 |
- mkdir -p ${@} || die |
250 |
- chown -R ${PN}:${PN} ${@} || die |
251 |
-} |
252 |
- |
253 |
-pkg_postinst() { |
254 |
- paths=( |
255 |
- "${EROOT}/var/${PN}/checkpoint" |
256 |
- "${EROOT}/var/${PN}" |
257 |
- "${EROOT}/var/spool/${PN}/slurmd" |
258 |
- "${EROOT}/var/spool/${PN}" |
259 |
- "${EROOT}/var/log/${PN}" |
260 |
- "/var/tmp/${PN}/${PN}d" |
261 |
- "/var/tmp/${PN}" |
262 |
- "/run/${PN}" |
263 |
- ) |
264 |
- local folder_path |
265 |
- for folder_path in ${paths[@]}; do |
266 |
- create_folders_and_fix_permissions $folder_path |
267 |
- done |
268 |
- echo |
269 |
- |
270 |
- elog "Please visit the file '/usr/share/doc/${P}/html/configurator.html" |
271 |
- elog "through a (javascript enabled) browser to create a configureation file." |
272 |
- elog "Copy that file to /etc/slurm/slurm.conf on all nodes (including the headnode) of your cluster." |
273 |
- echo |
274 |
- elog "For cgroup support, please see https://www.schedmd.com/slurmdocs/cgroup.conf.html" |
275 |
- elog "Your kernel must be compiled with the wanted cgroup feature:" |
276 |
- elog " For the proctrack plugin:" |
277 |
- elog " freezer" |
278 |
- elog " For the task plugin:" |
279 |
- elog " cpuset, memory, devices" |
280 |
- elog " For the accounting plugin:" |
281 |
- elog " cpuacct, memory, blkio" |
282 |
- elog "Then, set these options in /etc/slurm/slurm.conf:" |
283 |
- elog " ProctrackType=proctrack/cgroup" |
284 |
- elog " TaskPlugin=task/cgroup" |
285 |
- einfo |
286 |
- ewarn "Paths were created for slurm. Please use these paths in /etc/slurm/slurm.conf:" |
287 |
- for folder_path in ${paths[@]}; do |
288 |
- ewarn " ${folder_path}" |
289 |
- done |
290 |
-} |