From fca46c9e74417ccf71e966dd6541f90d964c0f89 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 20 Jun 2018 01:20:00 +0200 Subject: [PATCH] vim-python: Copy patch from vim --- packages/vim-python/build.sh | 1 + packages/vim-python/src-if_cscope.c.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 packages/vim-python/src-if_cscope.c.patch diff --git a/packages/vim-python/build.sh b/packages/vim-python/build.sh index 227327cbc..9dc5e6382 100755 --- a/packages/vim-python/build.sh +++ b/packages/vim-python/build.sh @@ -4,6 +4,7 @@ TERMUX_PKG_DEPENDS="ncurses, vim-runtime, python" # 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.1.0050 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SHA256=1b2081a19347ec13703facd1f662e5f2c58d870a217bf3f8d34f8b777bab984b TERMUX_PKG_SRCURL="https://github.com/vim/vim/archive/v${TERMUX_PKG_VERSION}.tar.gz" TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" diff --git a/packages/vim-python/src-if_cscope.c.patch b/packages/vim-python/src-if_cscope.c.patch new file mode 100644 index 000000000..375ae96f2 --- /dev/null +++ b/packages/vim-python/src-if_cscope.c.patch @@ -0,0 +1,12 @@ +diff -uNr vim-8.1.0050/src/if_cscope.c vim-8.1.0050.mod/src/if_cscope.c +--- vim-8.1.0050/src/if_cscope.c 2018-06-12 21:25:52.000000000 +0300 ++++ vim-8.1.0050.mod/src/if_cscope.c 2018-06-19 20:32:38.661663690 +0300 +@@ -962,7 +962,7 @@ + PERROR(_("cs_create_connection setpgid failed")); + # endif + # endif +- if (execl("/bin/sh", "sh", "-c", cmd, (char *)NULL) == -1) ++ if (execl("@TERMUX_PREFIX@/bin/sh", "sh", "-c", cmd, (char *)NULL) == -1) + PERROR(_("cs_create_connection exec failed")); + + exit(127);