diff options
author | Sam James <sam@gentoo.org> | 2021-05-28 01:25:39 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-05-28 01:40:54 +0000 |
commit | bd3624647bbe0e6366651230e1610bdac8f4eab3 (patch) | |
tree | d7ffccb8cd31830c3795d619df43195b47eb433f | |
parent | dev-libs/simdjson-0.9.5: Version bump (diff) | |
download | gentoo-bd3624647bbe0e6366651230e1610bdac8f4eab3.tar.gz gentoo-bd3624647bbe0e6366651230e1610bdac8f4eab3.tar.bz2 gentoo-bd3624647bbe0e6366651230e1610bdac8f4eab3.zip |
dev-util/ragel: drop Julia check which causes sandbox failure
Closes: https://bugs.gentoo.org/776688
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | dev-util/ragel/files/ragel-7.0.4-drop-julia-check.patch | 45 | ||||
-rw-r--r-- | dev-util/ragel/ragel-7.0.4.ebuild | 4 |
2 files changed, 49 insertions, 0 deletions
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 new file mode 100644 index 000000000000..10ede37ae361 --- /dev/null +++ b/dev-util/ragel/files/ragel-7.0.4-drop-julia-check.patch @@ -0,0 +1,45 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -305,41 +305,7 @@ AC_PATH_PROG([OCAML_BIN], [ocaml]) + AC_PATH_PROG([RUST_BIN], [rustc]) + AC_PATH_PROG([JULIA_BIN], [julia]) + +-dnl +-dnl Julia requires a large virtual address space. On systems where this is +-dnl limited by ulimit, julia will fail to run. +-dnl +- +-if test "x$JULIA_BIN" != x; then +- echo 'println( "can run julia programs" );' > conftest.jl +- echo -n "checking if julia is able to run programs ... " +- if sh -c "$JULIA_BIN conftest.jl" >>config.log 2>&1; then +- echo "yes" +- else +- echo "no" +- JULIA_BIN="" +- fi +- rm -f conftest.jl +-fi +- +-dnl We can run julia, now make sure we have 1.0 +-if test "x$JULIA_BIN" != x; then +- echo -n "checking if julia is version 1.0 or later ... " +- +- dnl We assume the form "julia version X.X.X" +- dnl 1. everything before the version number. +- dnl 2. Remove trailing version. +- dnl 3. Verify it is plain number greater than 1. +- dnl Any failure comes out as empty string. Note the sed command is wrapped +- dnl in [] so autotools do not interpret anything in it. +- JULIA1="`$JULIA_BIN -v | sed ['s/[A-Za-z ]\+//g; s/\.[0-9\.]*//; /^[1-9][0-9]*/!d;']`" +- if test "x$JULIA1" != x; then +- echo "yes" +- else +- JULIA_BIN="" +- echo "no" +- fi +-fi ++JULIA_BIN="" + + AC_PATH_PROG([GNUSTEP_CONFIG], [gnustep-config]) + diff --git a/dev-util/ragel/ragel-7.0.4.ebuild b/dev-util/ragel/ragel-7.0.4.ebuild index f97334957561..3611668b3856 100644 --- a/dev-util/ragel/ragel-7.0.4.ebuild +++ b/dev-util/ragel/ragel-7.0.4.ebuild @@ -32,6 +32,10 @@ BDEPEND=" DEPEND="~dev-util/colm-0.14.7" RDEPEND="${DEPEND}" +PATCHES=( + #"${FILESDIR}"/${PN}-7.0.4-drop-julia-check.patch +) + src_prepare() { default |