Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 760465 - =sys-cluster/slurm- invalid handling of USE=-lua
Summary: =sys-cluster/slurm- invalid handling of USE=-lua
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexey Shvetsov
Depends on:
Reported: 2020-12-17 13:10 UTC by Marek Szuba
Modified: 2021-01-05 15:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Marek Szuba archtester gentoo-dev 2020-12-17 13:10:48 UTC
Upstream autoconf scripts automagically enable support for job-submission scripts written in Lua if configure can find Lua. The ebuild attempts to address this by soft-blocking dev-lang/lua if USE=-lua is set, which causes two problems:

1. It effectively prevents setting USE=-lua on Slurm if there are any dev-lang/lua revdeps installed, and

2. It doesn't actually work - the block on dev-lang/lua is soft so it is entirely possible for it to still be present while sys-cluster/slurm is being emerged, leading to configure picking it up anyway.
Comment 1 Larry the Git Cow gentoo-dev 2020-12-17 13:54:23 UTC
The bug has been referenced in the following commit(s):

commit 53b559b7358366581882f69cdcfbf5366475c1c6
Author:     Marek Szuba <>
AuthorDate: 2020-12-17 13:48:15 +0000
Commit:     Marek Szuba <>
CommitDate: 2020-12-17 13:54:14 +0000

    sys-cluster/slurm: migrate to lua-single.eclass
    Version compatibility as per upstream build scripts. Includes fixes
    for Bugs: 760465 (the applied patch + 'use_enable lua' in src_configure)
    and 760468 (dev-libs/glib:2 in COMMON_DEPEND), both should be directly
    applicable to the unmigrated ebuild as well. Still vulnerable to Bug
    Signed-off-by: Marek Szuba <>

 profiles/package.mask                              |   1 +
 .../slurm/files/slurm- |  50 ++++
 sys-cluster/slurm/slurm-      | 269 +++++++++++++++++++++
 3 files changed, 320 insertions(+)