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