From dd6f8fa7dfb2546c73b82c101d125129eea621f5 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 1 Jun 2016 09:35:52 -0400 Subject: [PATCH] mosh: Fix /bin/sh -> $PREFIX/bin/sh in mosh.pl --- packages/mosh/build.sh | 2 +- packages/mosh/mosh.pl.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 packages/mosh/mosh.pl.patch diff --git a/packages/mosh/build.sh b/packages/mosh/build.sh index 456e52da9..30c4599fa 100644 --- a/packages/mosh/build.sh +++ b/packages/mosh/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=http://mosh.mit.edu/ TERMUX_PKG_DESCRIPTION="Mobile shell that supports roaming and intelligent local echo" TERMUX_PKG_VERSION=1.2.5.20160523 -TERMUX_PKG_BUILD_REVISION=2 +TERMUX_PKG_BUILD_REVISION=3 TERMUX_PKG_SRCURL=http://mosh.mit.edu/mosh-${TERMUX_PKG_VERSION}.tar.gz _COMMIT=05fe24d50ddbabf1c87be748b7397907ae1b9654 TERMUX_PKG_SRCURL=https://github.com/mobile-shell/mosh/archive/${_COMMIT}.zip diff --git a/packages/mosh/mosh.pl.patch b/packages/mosh/mosh.pl.patch new file mode 100644 index 000000000..e0c709cb2 --- /dev/null +++ b/packages/mosh/mosh.pl.patch @@ -0,0 +1,12 @@ +diff -u -r ../mosh-05fe24d50ddbabf1c87be748b7397907ae1b9654/scripts/mosh.pl ./scripts/mosh.pl +--- ../mosh-05fe24d50ddbabf1c87be748b7397907ae1b9654/scripts/mosh.pl 2016-05-25 02:13:12.000000000 -0400 ++++ ./scripts/mosh.pl 2016-06-01 05:51:47.622538718 -0400 +@@ -370,7 +370,7 @@ + if ( $use_remote_ip eq 'proxy' ) { + # Non-standard shells and broken shrc files cause the ssh + # proxy to break mysteriously. +- $ENV{ 'SHELL' } = '/bin/sh'; ++ $ENV{ 'SHELL' } = '@TERMUX_PREFIX@/bin/sh'; + my $quoted_proxy_command = shell_quote( $0, "--family=$family" ); + push @sshopts, ( '-S', 'none', '-o', "ProxyCommand=$quoted_proxy_command --fake-proxy -- %h %p" ); + }