summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-07-05 19:43:06 +0100
committerMarek Szuba <marecki@gentoo.org>2021-07-05 20:38:07 +0100
commita17a8b449369e304c9fb14370598f7e305b90210 (patch)
tree8e7465b669a1588f189ecb1c4476187ebabff7eb /sys-cluster
parentdev-libs/libcgroup: keyword 0.41-r6 for ~riscv (diff)
downloadgentoo-a17a8b449369e304c9fb14370598f7e305b90210.tar.gz
gentoo-a17a8b449369e304c9fb14370598f7e305b90210.tar.bz2
gentoo-a17a8b449369e304c9fb14370598f7e305b90210.zip
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@gentoo.org>
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/slurm/slurm-20.11.0.1-r101.ebuild4
1 files changed, 4 insertions, 0 deletions
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