Browse Source

add mosh as a broken package

android-5
Fredrik Fornwall 10 years ago
parent
commit
966a875d31
  1. 1
      packages/mosh/BROKEN.txt
  2. 7
      packages/mosh/build.sh
  3. 20
      packages/mosh/pty_compat.cc.patch

1
packages/mosh/BROKEN.txt

@ -0,0 +1 @@
Segfaults after ssh auth

7
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

20
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 <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)" );
Loading…
Cancel
Save