Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 760465 - =sys-cluster/slurm-20.11.0.1: invalid handling of USE=-lua
Summary: =sys-cluster/slurm-20.11.0.1: invalid handling of USE=-lua
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexey Shvetsov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
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: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Szuba 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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53b559b7358366581882f69cdcfbf5366475c1c6

commit 53b559b7358366581882f69cdcfbf5366475c1c6
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2020-12-17 13:48:15 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
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
    631552.
    
    Closes: https://bugs.gentoo.org/752867
    Bug: https://bugs.gentoo.org/760465
    Bug: https://bugs.gentoo.org/760468
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 profiles/package.mask                              |   1 +
 .../slurm/files/slurm-20.11.0.1_autoconf-lua.patch |  50 ++++
 sys-cluster/slurm/slurm-20.11.0.1-r100.ebuild      | 269 +++++++++++++++++++++
 3 files changed, 320 insertions(+)