commit:     4d86f2c183a535d8085a823d51effdab8d05b4f3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 27 04:15:25 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Nov 27 04:15:25 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=4d86f2c1

src_test: apply MAKEFLAGS tweak as done for emake

Copy da7c15042191648cb21a886b8afcf739b55c66c3 for src_test's custom
make calls (we avoid emake for other reasons in there, see comment wrt
nonfatal), otherwise we don't make use of the jobserver for tests.

Bug: https://bugs.gentoo.org/692576
Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/phase-helpers.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
index e1f301a5f5..619965e0b9 100644
--- a/bin/phase-helpers.sh
+++ b/bin/phase-helpers.sh
@@ -744,6 +744,9 @@ __eapi0_src_compile() {
 }
 
 __eapi0_src_test() {
+       # Prevent MAKEOPTS from resetting MAKEFLAGS jobserver mode for bug 
692576.
+       [[ -n ${MAKEFLAGS} ]] && local MAKEOPTS=""
+
        # Since we don't want emake's automatic die
        # support (EAPI 4 and later), and we also don't
        # want the warning messages that it produces if

Reply via email to