commit:     e105854611974017415af6199d521b78f1134ff4
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 22 17:11:34 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Aug 22 17:11:34 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1058546

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 <AT> gentoo.org>

 eclass/check-reqs.eclass | 8 +++++---
 1 file 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} ]] 
&& \

Reply via email to