nano: fix src-files.c.patch

This commit is contained in:
Leonid Pliushch 2020-03-29 23:26:47 +03:00
parent 51daecfc3d
commit 6c42a73017
2 changed files with 14 additions and 4 deletions

View File

@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.nano-editor.org/
TERMUX_PKG_DESCRIPTION="Small, free and friendly text editor"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=4.9
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://nano-editor.org/dist/latest/nano-$TERMUX_PKG_VERSION.tar.xz
TERMUX_PKG_SHA256=0e399729d105cb1a587b4140db5cf1b23215a0886a42b215efa98137164233a6
TERMUX_PKG_DEPENDS="libandroid-support, libandroid-glob, ncurses"

View File

@ -1,7 +1,16 @@
diff -u -r ../nano-4.6/src/files.c ./src/files.c
--- ../nano-4.6/src/files.c 2019-11-29 10:12:07.000000000 +0000
+++ ./src/files.c 2019-12-01 16:31:03.622452000 +0000
@@ -1359,7 +1359,7 @@
diff -uNr nano-4.9/src/files.c nano-4.9.mod/src/files.c
--- nano-4.9/src/files.c 2020-03-24 12:02:59.000000000 +0200
+++ nano-4.9.mod/src/files.c 2020-03-29 22:56:40.998957339 +0300
@@ -999,7 +999,7 @@
const char *theshell = getenv("SHELL");
if (theshell == NULL)
- theshell = (char *)"/bin/sh";
+ theshell = (char *)"@TERMUX_PREFIX@/bin/sh";
/* Child: close the unused read end of the output pipe. */
close(from_fd[0]);
@@ -1448,7 +1448,7 @@
tempdir = check_writable_directory(P_tmpdir);
if (tempdir == NULL)