summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-08-22 18:11:34 +0100
committerSam James <sam@gentoo.org>2023-08-22 18:11:34 +0100
commite105854611974017415af6199d521b78f1134ff4 (patch)
treeb2074b58c13ad80126ca2bdf71bd32069fd9dcb6
parentcmake.eclass: add CMAKE_SKIP_TESTS (diff)
downloadgentoo-e105854611974017415af6199d521b78f1134ff4.tar.gz
gentoo-e105854611974017415af6199d521b78f1134ff4.tar.bz2
gentoo-e105854611974017415af6199d521b78f1134ff4.zip
check-reqs.eclass: clarify failed requirements error
Explicitly suggest lower MAKEOPTS jobs and/or adding swap for bad RAM amount. Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--eclass/check-reqs.eclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass
index f6409e9a02c5..fac2f4553d74 100644
--- a/eclass/check-reqs.eclass
+++ b/eclass/check-reqs.eclass
@@ -291,9 +291,11 @@ _check-reqs_output() {
[[ ${EBUILD_PHASE} == "pretend" && -z ${CHECKREQS_DONOTHING} ]] && msg="eerror"
if [[ -n ${CHECKREQS_FAILED} ]]; then
${msg}
- ${msg} "Space constraints set in the ebuild were not met!"
- ${msg} "The build will most probably fail, you should enhance the space"
- ${msg} "as per failed tests."
+ ${msg} "Memory or space constraints set in the ebuild were not met!"
+ ${msg} "The build will most probably fail, you should:"
+ ${msg} "- enhance the memory (reduce MAKEOPTS, add swap), or"
+ ${msg} "- add more space"
+ ${msg} "as required depending on the failed tests."
${msg}
[[ ${EBUILD_PHASE} == "pretend" && -z ${CHECKREQS_DONOTHING} ]] && \