1 |
commit: 79148ea1d49db199aa0f9f1886632b7abca4cc25 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 5 07:49:43 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 5 07:49:43 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79148ea1 |
7 |
|
8 |
dev-lang/erlang: run configure in serial |
9 |
|
10 |
./configure does not take much time. And is certainly orders |
11 |
of magnitude slower than the build itself. Let's keep predictable |
12 |
parallelism by running sub-configure serially. |
13 |
|
14 |
Reported-by: Toralf Förster |
15 |
Closes: https://bugs.gentoo.org/790563 |
16 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
17 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
18 |
|
19 |
dev-lang/erlang/erlang-24.0.2.ebuild | 1 + |
20 |
dev-lang/erlang/files/erlang-24.0.2-serial-configure.patch | 12 ++++++++++++ |
21 |
2 files changed, 13 insertions(+) |
22 |
|
23 |
diff --git a/dev-lang/erlang/erlang-24.0.2.ebuild b/dev-lang/erlang/erlang-24.0.2.ebuild |
24 |
index 96bfbca4106..e329ba63eea 100644 |
25 |
--- a/dev-lang/erlang/erlang-24.0.2.ebuild |
26 |
+++ b/dev-lang/erlang/erlang-24.0.2.ebuild |
27 |
@@ -46,6 +46,7 @@ S="${WORKDIR}/otp-OTP-${PV}" |
28 |
|
29 |
PATCHES=( |
30 |
"${FILESDIR}"/${PN}-22.0-dont-ignore-LDFLAGS.patch |
31 |
+ "${FILESDIR}"/${PN}-24.0.2-serial-configure.patch |
32 |
) |
33 |
|
34 |
SITEFILE=50"${PN}"-gentoo.el |
35 |
|
36 |
diff --git a/dev-lang/erlang/files/erlang-24.0.2-serial-configure.patch b/dev-lang/erlang/files/erlang-24.0.2-serial-configure.patch |
37 |
new file mode 100644 |
38 |
index 00000000000..5068be153ea |
39 |
--- /dev/null |
40 |
+++ b/dev-lang/erlang/files/erlang-24.0.2-serial-configure.patch |
41 |
@@ -0,0 +1,12 @@ |
42 |
+https://bugs.gentoo.org/790563 |
43 |
+--- a/configure |
44 |
++++ b/configure |
45 |
+@@ -355,7 +355,7 @@ for app_dir in $app_dirs; do |
46 |
+ echo "" |
47 |
+ elif test $app_dir != erts; then |
48 |
+ echo $cmd_str >./configure.result.command |
49 |
+- eval $cmd_str 1>./configure.result.stdout 2>./configure.result.stderr || echo "fatal" > "./configure.result.failed" & |
50 |
++ eval $cmd_str 1>./configure.result.stdout 2>./configure.result.stderr || echo "fatal" > "./configure.result.failed" |
51 |
+ else |
52 |
+ # ERTS configure gets to use stdout/stderr; the others are printed when done... |
53 |
+ echo "=== Running configure in $ERL_TOP/erts ===" |