1 |
commit: 05f8053ee47fb207421205cb98570a4ee8b4990e |
2 |
Author: Rafael Kitover <rkitover <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Apr 20 00:21:20 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 5 08:46:35 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05f8053e |
7 |
|
8 |
dev-ml/camlp4: Avoid stack overflow in build. |
9 |
|
10 |
Add ulimit -s 11530000 (set stack limit to 11GiB) to src_compile() to |
11 |
try to avoid stack overflow errors. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/644352 |
14 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
15 |
Signed-off-by: Rafael Kitover <rkitover <AT> gmail.com> |
16 |
Closes: https://github.com/gentoo/gentoo/pull/15433 |
17 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
18 |
|
19 |
dev-ml/camlp4/camlp4-4.04_p1.ebuild | 2 ++ |
20 |
dev-ml/camlp4/camlp4-4.05_p1.ebuild | 2 ++ |
21 |
dev-ml/camlp4/camlp4-4.08_p1.ebuild | 4 +++- |
22 |
3 files changed, 7 insertions(+), 1 deletion(-) |
23 |
|
24 |
diff --git a/dev-ml/camlp4/camlp4-4.04_p1.ebuild b/dev-ml/camlp4/camlp4-4.04_p1.ebuild |
25 |
index 8bf8d05f279..af8352a49da 100644 |
26 |
--- a/dev-ml/camlp4/camlp4-4.04_p1.ebuild |
27 |
+++ b/dev-ml/camlp4/camlp4-4.04_p1.ebuild |
28 |
@@ -33,6 +33,8 @@ src_configure() { |
29 |
} |
30 |
|
31 |
src_compile() { |
32 |
+ # Increase stack limit to 11GiB to avoid stack overflow error. |
33 |
+ ulimit -s 11530000 |
34 |
emake byte |
35 |
use ocamlopt && emake native |
36 |
} |
37 |
|
38 |
diff --git a/dev-ml/camlp4/camlp4-4.05_p1.ebuild b/dev-ml/camlp4/camlp4-4.05_p1.ebuild |
39 |
index fe6e0dc150a..c7ad55154b1 100644 |
40 |
--- a/dev-ml/camlp4/camlp4-4.05_p1.ebuild |
41 |
+++ b/dev-ml/camlp4/camlp4-4.05_p1.ebuild |
42 |
@@ -33,6 +33,8 @@ src_configure() { |
43 |
} |
44 |
|
45 |
src_compile() { |
46 |
+ # Increase stack limit to 11GiB to avoid stack overflow error. |
47 |
+ ulimit -s 11530000 |
48 |
emake byte |
49 |
use ocamlopt && emake native |
50 |
} |
51 |
|
52 |
diff --git a/dev-ml/camlp4/camlp4-4.08_p1.ebuild b/dev-ml/camlp4/camlp4-4.08_p1.ebuild |
53 |
index 0c86d665428..731b5432fd9 100644 |
54 |
--- a/dev-ml/camlp4/camlp4-4.08_p1.ebuild |
55 |
+++ b/dev-ml/camlp4/camlp4-4.08_p1.ebuild |
56 |
@@ -1,4 +1,4 @@ |
57 |
-# Copyright 1999-2019 Gentoo Authors |
58 |
+# Copyright 1999-2020 Gentoo Authors |
59 |
# Distributed under the terms of the GNU General Public License v2 |
60 |
|
61 |
EAPI=7 |
62 |
@@ -34,6 +34,8 @@ src_configure() { |
63 |
} |
64 |
|
65 |
src_compile() { |
66 |
+ # Increase stack limit to 11GiB to avoid stack overflow error. |
67 |
+ ulimit -s 11530000 |
68 |
emake byte |
69 |
use ocamlopt && emake native |
70 |
} |