From: Fredrik Fornwall Date: Fri, 24 Jul 2015 00:04:18 +0000 (-0400) Subject: add mosh as a broken package X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/commitdiff_plain/966a875d310de652483ba32e6daa15ceaecaaa54 add mosh as a broken package --- diff --git a/packages/mosh/BROKEN.txt b/packages/mosh/BROKEN.txt new file mode 100644 index 00000000..7e5928b6 --- /dev/null +++ b/packages/mosh/BROKEN.txt @@ -0,0 +1 @@ +Segfaults after ssh auth diff --git a/packages/mosh/build.sh b/packages/mosh/build.sh new file mode 100644 index 00000000..f8a3603f --- /dev/null +++ b/packages/mosh/build.sh @@ -0,0 +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 +TERMUX_PKG_SRCURL=http://mosh.mit.edu/mosh-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_DEPENDS="libandroid-support, protobuf, ncurses, openssl, perl" + +export PROTOC=$TERMUX_TOPDIR/protobuf/host-build/src/protoc diff --git a/packages/mosh/pty_compat.cc.patch b/packages/mosh/pty_compat.cc.patch new file mode 100644 index 00000000..4e950fd4 --- /dev/null +++ b/packages/mosh/pty_compat.cc.patch @@ -0,0 +1,20 @@ +diff -u -r ../mosh-1.2.4/src/util/pty_compat.cc ./src/util/pty_compat.cc +--- ../mosh-1.2.4/src/util/pty_compat.cc 2013-03-10 21:45:37.000000000 +0100 ++++ ./src/util/pty_compat.cc 2014-01-23 03:18:24.000000000 +0100 +@@ -39,7 +39,6 @@ + #include + #include + #include +-#include + #include + + #include "pty_compat.h" +@@ -92,7 +91,7 @@ + return -1; + } + +-#ifndef _AIX ++#ifndef __ANDROID__ + if ( ioctl(slave, I_PUSH, "ptem") < 0 || + ioctl(slave, I_PUSH, "ldterm") < 0 ) { + perror( "ioctl(I_PUSH)" );