From b0c63398322d5a76711e19672b36b02468fc2c8c Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Tue, 19 Jun 2018 19:04:44 +0300 Subject: [PATCH] nano: fix shell path --- packages/nano/build.sh | 1 + packages/nano/src-text.c.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 packages/nano/src-text.c.patch diff --git a/packages/nano/build.sh b/packages/nano/build.sh index d0130578b..7ff5458ab 100644 --- a/packages/nano/build.sh +++ b/packages/nano/build.sh @@ -1,6 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://www.nano-editor.org/ TERMUX_PKG_DESCRIPTION="Small, free and friendly text editor" TERMUX_PKG_VERSION=2.9.8 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SHA256=07192c320b74c1fb78437021e9affa6a9d55b806ee012de601902392eaa03601 TERMUX_PKG_SRCURL=https://www.nano-editor.org/dist/v${TERMUX_PKG_VERSION:0:3}/nano-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_DEPENDS="libandroid-support, libandroid-glob, ncurses" diff --git a/packages/nano/src-text.c.patch b/packages/nano/src-text.c.patch new file mode 100644 index 000000000..54d606688 --- /dev/null +++ b/packages/nano/src-text.c.patch @@ -0,0 +1,12 @@ +diff -uNr nano-2.9.8/src/text.c nano-2.9.8.mod/src/text.c +--- nano-2.9.8/src/text.c 2018-06-02 11:20:07.000000000 +0300 ++++ nano-2.9.8.mod/src/text.c 2018-06-19 19:03:48.071389233 +0300 +@@ -1147,7 +1147,7 @@ + /* Check which shell to use. If none is specified, use /bin/sh. */ + shellenv = getenv("SHELL"); + if (shellenv == NULL) +- shellenv = (char *) "/bin/sh"; ++ shellenv = (char *) "@TERMUX_PREFIX@/bin/sh"; + + /* Fork a child process to run the command in. */ + if ((pid = fork()) == 0) {