From 4288878f7712d16bd7a938566c9765e6b7b00a69 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 12 Feb 2013 19:51:39 -0400 Subject: update --- doc/design/assistant/android.mdwn | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/doc/design/assistant/android.mdwn b/doc/design/assistant/android.mdwn index 170a45a0f..c7fcb2c57 100644 --- a/doc/design/assistant/android.mdwn +++ b/doc/design/assistant/android.mdwn @@ -11,11 +11,7 @@ and also have to `cabal install` all necessary dependencies. ### TODO -* port rsync * port busybox, so it doesn't need KBOX's busybox -* port gpg -* port ssh, so it doesn't need KBOX's version - (probably use dropbear, only outgoing is likely to work due to firewall) * Make a runshell wrapper for Android, setting paths, etc. * Build a standalone tarball for Android. * Make build system that can generate ports, and tarball, from source @@ -47,3 +43,31 @@ I did so like this: PATH=~/.ghc/android-14/arm-linux-androideabi-4.7/bin:$PATH NO_OPENSSL=1 NO_GETTEXT=1 NO_GECOS_IN_PWENT=1 NO_GETPASS=1 NO_NSEC=1 NO_MKDTEMP=1 NO_PTHREADS=1 NO_PERL=1 NO_CURL=1 NO_EXPAT=1 NO_TCLTK=1 NO_ICONV=1 make This required first making cc a symlink to arm-linux-androideabi-gcc + +#### rsync + +Copy in config.sub and config.guess from recent autoconf, and build: + + PATH=~/.ghc/android-14/arm-linux-androideabi-4.7/bin:$PATH ./configure --host=arm-linux-androideabi --disable-locale --disable-iconv-open --disable-iconv --disable-acl-support --disable-xattr-support + PATH=~/.ghc/android-14/arm-linux-androideabi-4.7/bin:$PATH make + +Build failures can be worked around by removing uses of `S_IEXEC` and +getpass. + +#### gnupg + + PATH=~/.ghc/android-14/arm-linux-androideabi-4.7/bin:$PATH ./configure --host=arm-linux-androideabi --disable-gnupg-iconv --enable-minimal --disable-card-support --disable-agent-support --disable-photo-viewers --disable-keyserver-helpers --disable-nls + PATH=~/.ghc/android-14/arm-linux-androideabi-4.7/bin:$PATH make + +Build fails in docs, but see `g10/gpg` + +#### dropbear + +Use git://github.com/android/platform_external_dropbear + +Copy in config.sub and config.guess from recent autoconf, and build: + + PATH=~/.ghc/android-14/arm-linux-androideabi-4.7/bin:$PATH ./configure --host=arm-linux-androideabi --disable-lastlog --disable-utmp --disable-utmpx --disable-wtmp --disable-wtmpx + PATH=~/.ghc/android-14/arm-linux-androideabi-4.7/bin:$PATH make + +TODO build fails -- cgit v1.2.3