Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945081 - cmake.eclass: Please make it possible to override ctest jobs/load-avg
Summary: cmake.eclass: Please make it possible to override ctest jobs/load-avg
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-11-27 05:17 UTC by Michał Górny
Modified: 2025-04-02 07:06 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-11-27 05:17:13 UTC
Right now, ctest unconditionally take jobs/load-avg from MAKEOPTS.  However, unlike most build systems, ctest does not start any jobs if load-avg is exceeded.  Which means package builds can block for hours without doing anything.  I think it would be helpful to be able to override these values for ctest specifically, i.e. have CTEST_JOBS and CTEST_LOAD_AVG variables, or alike.
Comment 1 Larry the Git Cow gentoo-dev 2025-04-02 07:06:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=643d2156371598447342722fae90f614fad3432c

commit 643d2156371598447342722fae90f614fad3432c
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-12-01 16:50:31 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2025-04-02 07:06:07 +0000

    cmake.eclass: Permit overriding CTEST_{JOBS,LOADAVG}
    
    Closes: https://bugs.gentoo.org/945081
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 eclass/cmake.eclass | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)