vim: Undef `SIGTSTP` to workaround `Ctrl+Z` issue

This commit is contained in:
Tee KOBAYASHI 2022-02-27 02:23:56 +09:00 committed by xtkoba
parent ea0c7347ea
commit 17b1dff42b
6 changed files with 56 additions and 8 deletions

View File

@ -7,6 +7,7 @@ TERMUX_PKG_RECOMMENDS="diffutils"
# vim should only be updated every 50 releases on multiples of 50.
# Update both vim and vim-python to the same version in one PR.
TERMUX_PKG_VERSION=8.2.4450
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL="https://github.com/vim/vim/archive/v${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=b0a5acbe83bbdd4b1412abd9dc2ae2e3593c6cff8ff11c551fda3e6e2a87ec81
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="

View File

@ -0,0 +1,13 @@
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -157,9 +157,9 @@
#endif
#if defined(SIGTSTP)
static RETSIGTYPE sig_tstp SIGPROTOARG;
+#endif
// volatile because it is used in signal handler sig_tstp() and sigcont_handler().
static volatile sig_atomic_t in_mch_suspend = FALSE;
-#endif
#if defined(SIGINT)
static RETSIGTYPE catch_sigint SIGPROTOARG;
#endif

View File

@ -1,7 +1,17 @@
diff -uNr vim-8.2.0000/src/os_unix.h vim-8.2.0000.mod/src/os_unix.h
--- vim-8.2.0000/src/os_unix.h 2019-12-12 15:18:35.000000000 +0200
+++ vim-8.2.0000.mod/src/os_unix.h 2019-12-20 19:27:51.141441414 +0200
@@ -350,7 +350,7 @@
--- a/src/os_unix.h
+++ b/src/os_unix.h
@@ -138,6 +138,10 @@
#include <signal.h>
+#ifdef __ANDROID__
+#undef SIGTSTP
+#endif
+
#if defined(DIRSIZ) && !defined(MAXNAMLEN)
# define MAXNAMLEN DIRSIZ
#endif
@@ -356,7 +360,7 @@
# ifdef VMS
# define DFLT_DIR "./,sys$login:,tmp:"
# else

View File

@ -7,6 +7,7 @@ TERMUX_PKG_RECOMMENDS="diffutils"
# vim should only be updated every 50 releases on multiples of 50.
# Update both vim and vim-python to the same version in one PR.
TERMUX_PKG_VERSION=8.2.4450
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL="https://github.com/vim/vim/archive/v${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=b0a5acbe83bbdd4b1412abd9dc2ae2e3593c6cff8ff11c551fda3e6e2a87ec81
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="

View File

@ -0,0 +1,13 @@
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -157,9 +157,9 @@
#endif
#if defined(SIGTSTP)
static RETSIGTYPE sig_tstp SIGPROTOARG;
+#endif
// volatile because it is used in signal handler sig_tstp() and sigcont_handler().
static volatile sig_atomic_t in_mch_suspend = FALSE;
-#endif
#if defined(SIGINT)
static RETSIGTYPE catch_sigint SIGPROTOARG;
#endif

View File

@ -1,7 +1,17 @@
diff -uNr vim-8.2.0000/src/os_unix.h vim-8.2.0000.mod/src/os_unix.h
--- vim-8.2.0000/src/os_unix.h 2019-12-12 15:18:35.000000000 +0200
+++ vim-8.2.0000.mod/src/os_unix.h 2019-12-20 19:27:51.141441414 +0200
@@ -350,7 +350,7 @@
--- a/src/os_unix.h
+++ b/src/os_unix.h
@@ -138,6 +138,10 @@
#include <signal.h>
+#ifdef __ANDROID__
+#undef SIGTSTP
+#endif
+
#if defined(DIRSIZ) && !defined(MAXNAMLEN)
# define MAXNAMLEN DIRSIZ
#endif
@@ -356,7 +360,7 @@
# ifdef VMS
# define DFLT_DIR "./,sys$login:,tmp:"
# else