1 |
commit: 295d9880d9cd001ebc35c1e2cb35884ccc0f7f59 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 1 21:52:51 2021 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 1 21:52:51 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=295d9880 |
7 |
|
8 |
net-libs/nodejs: disallow USE=lto with gcc-11+ |
9 |
|
10 |
Runtime errors + a segfault in the test suite. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/787158 |
13 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
14 |
|
15 |
net-libs/nodejs/nodejs-12.22.1-r1.ebuild | 10 +++++++++- |
16 |
net-libs/nodejs/nodejs-14.16.1-r1.ebuild | 10 +++++++++- |
17 |
net-libs/nodejs/nodejs-16.0.0-r1.ebuild | 10 +++++++++- |
18 |
3 files changed, 27 insertions(+), 3 deletions(-) |
19 |
|
20 |
diff --git a/net-libs/nodejs/nodejs-12.22.1-r1.ebuild b/net-libs/nodejs/nodejs-12.22.1-r1.ebuild |
21 |
index aa8392c1ff2..52bbbaf5862 100644 |
22 |
--- a/net-libs/nodejs/nodejs-12.22.1-r1.ebuild |
23 |
+++ b/net-libs/nodejs/nodejs-12.22.1-r1.ebuild |
24 |
@@ -59,7 +59,15 @@ pkg_pretend() { |
25 |
|
26 |
if [[ ${MERGE_TYPE} != "binary" ]]; then |
27 |
if use lto; then |
28 |
- tc-is-gcc || die "${PN} only supports LTO for gcc" |
29 |
+ if tc-is-gcc; then |
30 |
+ if [[ $(gcc-major-version) -ge 11 ]]; then |
31 |
+ # Bug #787158 |
32 |
+ die "LTO builds of ${PN} using gcc-11+ currently fail tests and produce runtime errors. Either switch to gcc-10 or unset USE=lto for this ebuild" |
33 |
+ fi |
34 |
+ else |
35 |
+ # configure.py will abort on this later if we do not |
36 |
+ die "${PN} only supports LTO for gcc" |
37 |
+ fi |
38 |
fi |
39 |
fi |
40 |
} |
41 |
|
42 |
diff --git a/net-libs/nodejs/nodejs-14.16.1-r1.ebuild b/net-libs/nodejs/nodejs-14.16.1-r1.ebuild |
43 |
index 02e8c08318b..0cc7ac183ee 100644 |
44 |
--- a/net-libs/nodejs/nodejs-14.16.1-r1.ebuild |
45 |
+++ b/net-libs/nodejs/nodejs-14.16.1-r1.ebuild |
46 |
@@ -54,7 +54,15 @@ pkg_pretend() { |
47 |
|
48 |
if [[ ${MERGE_TYPE} != "binary" ]]; then |
49 |
if use lto; then |
50 |
- tc-is-gcc || die "${PN} only supports LTO for gcc" |
51 |
+ if tc-is-gcc; then |
52 |
+ if [[ $(gcc-major-version) -ge 11 ]]; then |
53 |
+ # Bug #787158 |
54 |
+ die "LTO builds of ${PN} using gcc-11+ currently fail tests and produce runtime errors. Either switch to gcc-10 or unset USE=lto for this ebuild" |
55 |
+ fi |
56 |
+ else |
57 |
+ # configure.py will abort on this later if we do not |
58 |
+ die "${PN} only supports LTO for gcc" |
59 |
+ fi |
60 |
fi |
61 |
fi |
62 |
} |
63 |
|
64 |
diff --git a/net-libs/nodejs/nodejs-16.0.0-r1.ebuild b/net-libs/nodejs/nodejs-16.0.0-r1.ebuild |
65 |
index e9e14a67345..e9b170f229d 100644 |
66 |
--- a/net-libs/nodejs/nodejs-16.0.0-r1.ebuild |
67 |
+++ b/net-libs/nodejs/nodejs-16.0.0-r1.ebuild |
68 |
@@ -53,7 +53,15 @@ pkg_pretend() { |
69 |
|
70 |
if [[ ${MERGE_TYPE} != "binary" ]]; then |
71 |
if use lto; then |
72 |
- tc-is-gcc || die "${PN} only supports LTO for gcc" |
73 |
+ if tc-is-gcc; then |
74 |
+ if [[ $(gcc-major-version) -ge 11 ]]; then |
75 |
+ # Bug #787158 |
76 |
+ die "LTO builds of ${PN} using gcc-11+ currently fail tests and produce runtime errors. Either switch to gcc-10 or unset USE=lto for this ebuild" |
77 |
+ fi |
78 |
+ else |
79 |
+ # configure.py will abort on this later if we do not |
80 |
+ die "${PN} only supports LTO for gcc" |
81 |
+ fi |
82 |
fi |
83 |
fi |
84 |
} |