Browse Source

ncurses: fix path to tmpdir in 'tic'

android-5
Leonid Plyushch 7 years ago
committed by Fredrik Fornwall
parent
commit
86c94e0487
  1. 1
      packages/ncurses/build.sh
  2. 12
      packages/ncurses/tic-fix-tmp-path.patch

1
packages/ncurses/build.sh

@ -1,6 +1,7 @@
TERMUX_PKG_HOMEPAGE=http://invisible-island.net/ncurses/ TERMUX_PKG_HOMEPAGE=http://invisible-island.net/ncurses/
TERMUX_PKG_DESCRIPTION="Library for text-based user interfaces in a terminal-independent manner" TERMUX_PKG_DESCRIPTION="Library for text-based user interfaces in a terminal-independent manner"
TERMUX_PKG_VERSION=6.0.20170909 TERMUX_PKG_VERSION=6.0.20170909
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=d504add16629f6c68b7a28a866833d17e89df0942185646bfd35958eb9f6d3e2 TERMUX_PKG_SHA256=d504add16629f6c68b7a28a866833d17e89df0942185646bfd35958eb9f6d3e2
TERMUX_PKG_SRCURL=http://invisible-mirror.net/archives/ncurses/current/ncurses-${TERMUX_PKG_VERSION:0:3}-${TERMUX_PKG_VERSION:4}.tgz TERMUX_PKG_SRCURL=http://invisible-mirror.net/archives/ncurses/current/ncurses-${TERMUX_PKG_VERSION:0:3}-${TERMUX_PKG_VERSION:4}.tgz
# --without-normal disables static libraries: # --without-normal disables static libraries:

12
packages/ncurses/tic-fix-tmp-path.patch

@ -0,0 +1,12 @@
diff -uNr ncurses-6.0-20170909/progs/tic.c ncurses-6.0-20170909.mod/progs/tic.c
--- ncurses-6.0-20170909/progs/tic.c 2017-08-26 23:56:55.000000000 +0300
+++ ncurses-6.0-20170909.mod/progs/tic.c 2017-09-14 15:45:21.992857305 +0300
@@ -386,7 +386,7 @@
{
FILE *result = 0;
- _nc_STRCPY(filename, "/tmp/XXXXXX", PATH_MAX);
+ _nc_STRCPY(filename, "@TERMUX_PREFIX@/tmp/XXXXXX", PATH_MAX);
#if HAVE_MKSTEMP
{
int oldmask = (int) umask(077);
Loading…
Cancel
Save