1 |
commit: bd3624647bbe0e6366651230e1610bdac8f4eab3 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 28 01:25:39 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 28 01:40:54 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd362464 |
7 |
|
8 |
dev-util/ragel: drop Julia check which causes sandbox failure |
9 |
|
10 |
Closes: https://bugs.gentoo.org/776688 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
.../ragel/files/ragel-7.0.4-drop-julia-check.patch | 45 ++++++++++++++++++++++ |
14 |
dev-util/ragel/ragel-7.0.4.ebuild | 4 ++ |
15 |
2 files changed, 49 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/ragel/files/ragel-7.0.4-drop-julia-check.patch b/dev-util/ragel/files/ragel-7.0.4-drop-julia-check.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..10ede37ae36 |
20 |
--- /dev/null |
21 |
+++ b/dev-util/ragel/files/ragel-7.0.4-drop-julia-check.patch |
22 |
@@ -0,0 +1,45 @@ |
23 |
+--- a/configure.ac |
24 |
++++ b/configure.ac |
25 |
+@@ -305,41 +305,7 @@ AC_PATH_PROG([OCAML_BIN], [ocaml]) |
26 |
+ AC_PATH_PROG([RUST_BIN], [rustc]) |
27 |
+ AC_PATH_PROG([JULIA_BIN], [julia]) |
28 |
+ |
29 |
+-dnl |
30 |
+-dnl Julia requires a large virtual address space. On systems where this is |
31 |
+-dnl limited by ulimit, julia will fail to run. |
32 |
+-dnl |
33 |
+- |
34 |
+-if test "x$JULIA_BIN" != x; then |
35 |
+- echo 'println( "can run julia programs" );' > conftest.jl |
36 |
+- echo -n "checking if julia is able to run programs ... " |
37 |
+- if sh -c "$JULIA_BIN conftest.jl" >>config.log 2>&1; then |
38 |
+- echo "yes" |
39 |
+- else |
40 |
+- echo "no" |
41 |
+- JULIA_BIN="" |
42 |
+- fi |
43 |
+- rm -f conftest.jl |
44 |
+-fi |
45 |
+- |
46 |
+-dnl We can run julia, now make sure we have 1.0 |
47 |
+-if test "x$JULIA_BIN" != x; then |
48 |
+- echo -n "checking if julia is version 1.0 or later ... " |
49 |
+- |
50 |
+- dnl We assume the form "julia version X.X.X" |
51 |
+- dnl 1. everything before the version number. |
52 |
+- dnl 2. Remove trailing version. |
53 |
+- dnl 3. Verify it is plain number greater than 1. |
54 |
+- dnl Any failure comes out as empty string. Note the sed command is wrapped |
55 |
+- dnl in [] so autotools do not interpret anything in it. |
56 |
+- JULIA1="`$JULIA_BIN -v | sed ['s/[A-Za-z ]\+//g; s/\.[0-9\.]*//; /^[1-9][0-9]*/!d;']`" |
57 |
+- if test "x$JULIA1" != x; then |
58 |
+- echo "yes" |
59 |
+- else |
60 |
+- JULIA_BIN="" |
61 |
+- echo "no" |
62 |
+- fi |
63 |
+-fi |
64 |
++JULIA_BIN="" |
65 |
+ |
66 |
+ AC_PATH_PROG([GNUSTEP_CONFIG], [gnustep-config]) |
67 |
+ |
68 |
|
69 |
diff --git a/dev-util/ragel/ragel-7.0.4.ebuild b/dev-util/ragel/ragel-7.0.4.ebuild |
70 |
index f9733495756..3611668b385 100644 |
71 |
--- a/dev-util/ragel/ragel-7.0.4.ebuild |
72 |
+++ b/dev-util/ragel/ragel-7.0.4.ebuild |
73 |
@@ -32,6 +32,10 @@ BDEPEND=" |
74 |
DEPEND="~dev-util/colm-0.14.7" |
75 |
RDEPEND="${DEPEND}" |
76 |
|
77 |
+PATCHES=( |
78 |
+ #"${FILESDIR}"/${PN}-7.0.4-drop-julia-check.patch |
79 |
+) |
80 |
+ |
81 |
src_prepare() { |
82 |
default |