From a17a8b449369e304c9fb14370598f7e305b90210 Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Mon, 5 Jul 2021 19:43:06 +0100 Subject: 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 --- sys-cluster/slurm/slurm-20.11.0.1-r101.ebuild | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys-cluster') 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 7f857b26e59b..e5987b34b2c7 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 -- cgit v1.2.3-65-gdbad