fix SYS_SECCOMP error on recent android versions.
This commit is contained in:
parent
4b8b6e3fb7
commit
42214580f9
@ -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_EXTRA_CONFIGURE_ARGS="--without-x --with-lua=no --with-bitmap-terminals"
|
||||||
TERMUX_PKG_DEPENDS="libandroid-support, readline, pango, libgd"
|
TERMUX_PKG_DEPENDS="libandroid-support, readline, pango, libgd"
|
||||||
TERMUX_PKG_HOSTBUILD=yes
|
TERMUX_PKG_HOSTBUILD=yes
|
||||||
|
TERMUX_PKG_REVISION=1
|
||||||
|
|
||||||
termux_step_host_build() {
|
termux_step_host_build() {
|
||||||
"$TERMUX_PKG_SRCDIR/configure"
|
"$TERMUX_PKG_SRCDIR/configure"
|
||||||
|
11
packages/gnuplot/plot.c.patch
Normal file
11
packages/gnuplot/plot.c.patch
Normal file
@ -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);
|
Loading…
x
Reference in New Issue
Block a user