add mosh as a broken package
authorFredrik Fornwall <fredrik@fornwall.net>
Fri, 24 Jul 2015 00:04:18 +0000 (20:04 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Fri, 24 Jul 2015 00:04:18 +0000 (20:04 -0400)
packages/mosh/BROKEN.txt [new file with mode: 0644]
packages/mosh/build.sh [new file with mode: 0644]
packages/mosh/pty_compat.cc.patch [new file with mode: 0644]

diff --git a/packages/mosh/BROKEN.txt b/packages/mosh/BROKEN.txt
new file mode 100644 (file)
index 0000000..7e5928b
--- /dev/null
@@ -0,0 +1 @@
+Segfaults after ssh auth
diff --git a/packages/mosh/build.sh b/packages/mosh/build.sh
new file mode 100644 (file)
index 0000000..f8a3603
--- /dev/null
@@ -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 (file)
index 0000000..4e950fd
--- /dev/null
@@ -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 <unistd.h>
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
+-#include <sys/stropts.h>
+ #include <termios.h>
+
+ #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)" );