From 42214580f9fce2674a5ffc34fac71a420e7e011f Mon Sep 17 00:00:00 2001 From: its-pointless Date: Sat, 9 Feb 2019 09:15:38 +1100 Subject: [PATCH] fix SYS_SECCOMP error on recent android versions. --- packages/gnuplot/build.sh | 1 + packages/gnuplot/plot.c.patch | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 packages/gnuplot/plot.c.patch diff --git a/packages/gnuplot/build.sh b/packages/gnuplot/build.sh index 082e8c9e6..bfb78807c 100644 --- a/packages/gnuplot/build.sh +++ b/packages/gnuplot/build.sh @@ -7,6 +7,7 @@ TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/project/gnuplot/gnuplot/${TE TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-x --with-lua=no --with-bitmap-terminals" TERMUX_PKG_DEPENDS="libandroid-support, readline, pango, libgd" TERMUX_PKG_HOSTBUILD=yes +TERMUX_PKG_REVISION=1 termux_step_host_build() { "$TERMUX_PKG_SRCDIR/configure" diff --git a/packages/gnuplot/plot.c.patch b/packages/gnuplot/plot.c.patch new file mode 100644 index 000000000..c99893208 --- /dev/null +++ b/packages/gnuplot/plot.c.patch @@ -0,0 +1,11 @@ +--- ./src/plot.c.orig 2019-02-08 21:42:42.500914619 +0000 ++++ ./src/plot.c 2019-02-08 21:43:56.702190583 +0000 +@@ -281,7 +281,7 @@ + #endif + /* make sure that we really have revoked root access, this might happen if + gnuplot is compiled without vga support but is installed suid by mistake */ +-#ifdef __linux__ ++#if defined(__linux__) && !defined(__ANDROID__) + if (setuid(getuid()) != 0) { + fprintf(stderr,"gnuplot: refusing to run at elevated privilege\n"); + exit(EXIT_FAILURE);