dev-lang/erlang: run configure in serial

./configure does not take much time. And is certainly orders
of magnitude slower than the build itself. Let's keep predictable
parallelism by running sub-configure serially.

Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/790563
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
Sergei Trofimovich 2021-07-05 08:49:43 +01:00
parent 47e711ecd6
commit 79148ea1d4
No known key found for this signature in database
GPG Key ID: ED5E45E06F2AC293
2 changed files with 13 additions and 0 deletions

View File

@ -46,6 +46,7 @@ S="${WORKDIR}/otp-OTP-${PV}"
PATCHES=(
"${FILESDIR}"/${PN}-22.0-dont-ignore-LDFLAGS.patch
"${FILESDIR}"/${PN}-24.0.2-serial-configure.patch
)
SITEFILE=50"${PN}"-gentoo.el

View File

@ -0,0 +1,12 @@
https://bugs.gentoo.org/790563
--- a/configure
+++ b/configure
@@ -355,7 +355,7 @@ for app_dir in $app_dirs; do
echo ""
elif test $app_dir != erts; then
echo $cmd_str >./configure.result.command
- eval $cmd_str 1>./configure.result.stdout 2>./configure.result.stderr || echo "fatal" > "./configure.result.failed" &
+ eval $cmd_str 1>./configure.result.stdout 2>./configure.result.stderr || echo "fatal" > "./configure.result.failed"
else
# ERTS configure gets to use stdout/stderr; the others are printed when done...
echo "=== Running configure in $ERL_TOP/erts ==="