1 |
commit: a17a8b449369e304c9fb14370598f7e305b90210 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 5 18:43:06 2021 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 5 19:38:07 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a17a8b44 |
7 |
|
8 |
sys-cluster/slurm: only call lua-single_pkg_setup when USE=lua is set |
9 |
|
10 |
Calling this unconditionally can be a problem when the default Lua |
11 |
target is not available on a certain architecture, as it is currently |
12 |
the case with lua5-1 on riscv. |
13 |
|
14 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
15 |
|
16 |
sys-cluster/slurm/slurm-20.11.0.1-r101.ebuild | 4 ++++ |
17 |
1 file changed, 4 insertions(+) |
18 |
|
19 |
diff --git a/sys-cluster/slurm/slurm-20.11.0.1-r101.ebuild b/sys-cluster/slurm/slurm-20.11.0.1-r101.ebuild |
20 |
index 7f857b26e59..e5987b34b2c 100644 |
21 |
--- a/sys-cluster/slurm/slurm-20.11.0.1-r101.ebuild |
22 |
+++ b/sys-cluster/slurm/slurm-20.11.0.1-r101.ebuild |
23 |
@@ -78,6 +78,10 @@ PATCHES=( |
24 |
"${FILESDIR}"/${PN}-20.11.0.1_autoconf-lua.patch |
25 |
) |
26 |
|
27 |
+pkg_setup() { |
28 |
+ use lua && lua-single_pkg_setup |
29 |
+} |
30 |
+ |
31 |
src_unpack() { |
32 |
if [[ ${PV} == *9999* ]]; then |
33 |
git-r3_src_unpack |