1 |
commit: a88ef569b6a663414a4129c926fa696e0e5453d2 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 26 15:35:45 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 26 15:36:01 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a88ef569 |
7 |
|
8 |
dev-lang/erlang: fix USE=pgo loop, bug #686786 |
9 |
|
10 |
It does not completely recover PGO support but |
11 |
at least stops ./configure from looping indefinitely. |
12 |
|
13 |
Reported-by: Dennis Schridde |
14 |
Bug: https://bugs.gentoo.org/686786 |
15 |
Package-Manager: Portage-2.3.66, Repoman-2.3.12 |
16 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
17 |
|
18 |
dev-lang/erlang/erlang-21.3-r1.ebuild | 1 + |
19 |
dev-lang/erlang/files/erlang-21.3-pgo-loop.patch | 13 +++++++++++++ |
20 |
2 files changed, 14 insertions(+) |
21 |
|
22 |
diff --git a/dev-lang/erlang/erlang-21.3-r1.ebuild b/dev-lang/erlang/erlang-21.3-r1.ebuild |
23 |
index 75e06e5602b..ed159555d82 100644 |
24 |
--- a/dev-lang/erlang/erlang-21.3-r1.ebuild |
25 |
+++ b/dev-lang/erlang/erlang-21.3-r1.ebuild |
26 |
@@ -49,6 +49,7 @@ PATCHES=( |
27 |
"${FILESDIR}/${PN}-add-epmd-pid-file-creation-for-openrc.patch" |
28 |
"${FILESDIR}/${PN}-custom-autoconf.patch" |
29 |
"${FILESDIR}/${PN}-21.3-lto.patch" |
30 |
+ "${FILESDIR}/${PN}-21.3-pgo-loop.patch" |
31 |
) |
32 |
|
33 |
SITEFILE=50"${PN}"-gentoo.el |
34 |
|
35 |
diff --git a/dev-lang/erlang/files/erlang-21.3-pgo-loop.patch b/dev-lang/erlang/files/erlang-21.3-pgo-loop.patch |
36 |
new file mode 100644 |
37 |
index 00000000000..82add992a44 |
38 |
--- /dev/null |
39 |
+++ b/dev-lang/erlang/files/erlang-21.3-pgo-loop.patch |
40 |
@@ -0,0 +1,13 @@ |
41 |
+https://bugs.gentoo.org/686786 |
42 |
+ |
43 |
+--- a/erts/configure.in |
44 |
++++ b/erts/configure.in |
45 |
+@@ -682,7 +682,7 @@ elif test "X$PROFILE_INSTR_GENERATE" = "Xtrue" -a "X$PROFILE_INSTR_USE" = "Xtrue |
46 |
+ PROFILE_COMPILER=clang |
47 |
+ AC_MSG_RESULT([yes, using -fprofile-instr-generate]) |
48 |
+ else |
49 |
+- if $enable_pgo = yes; then |
50 |
++ if test $enable_pgo = yes; then |
51 |
+ AC_MSG_ERROR(cannot use PGO with this compiler) |
52 |
+ else |
53 |
+ AC_MSG_RESULT([no]) |