[guardian-dev] Building Android GPG on OS X
Hans-Christoph Steiner
hans at guardianproject.info
Thu Apr 3 14:29:47 EDT 2014
On 04/03/2014 12:10 PM, Tim Bray wrote:
>
> ¡Hola!
>
>
> T
>
> h
>
> e
>
>
> p
>
> r
>
> o
>
> b
>
> l
>
> e
>
> m
>
>
> is in the subject line.
> I don’t really understand GNU AutoHell but have wrestled it enough times.
> Hey, I’ve never built an NDK project before either, so this should be
> entertaining.
>
>
> I’m going to grind away at this until I get a build or horribly stuck, but
> if anybody’s got any general
> advice, or alternatively thinks trying to build this on OS X is silly,
> would be happy to hear about that.
Building the native bits on OSX most likely will not work. Its a patches
welcome situation, we all work on Debian/Ubuntu for the most part. Its just a
lot easier to do Android native stuff on Debian/Ubuntu than anything else. I
recommend using an Ubuntu VM for building the native builds. That said, if
you are up for taking on fixing it for OSX, I'm happy to answer questions.
> Diary this far, because there are some action items
> for myself or whoever.
>
>
> 1.
> git clone & git submodule, OK
>
> 2. make -C external/ distclean clean-assets
> Problem: external/Makefile has wrong NDK location
> Solution: Edit external/Makefile to fix NDK_BASE
> ACTION: Make AutoHell fix that up
>
> 3. make -C external/ distclean clean-assets
> lots of errors about this directory or that not having a distclean target.
> Ignore them
>
> 4. make -C external/
> Problem: OS X autoconf & automake are out of date
> Solution: brew install
>
> 5. make -C external/
> Problem: gettext not found
> ... SubProblem: brew doesn’t seem to have a useful recipe
> Solution: Install gettext from gnu.org
> ACTION: Make a better gettext recipe for brew
>
> 6. make -C external/
> [it's working in external/libgpg-error]
> parallel-tests: error: required file './test-driver' not found
> parallel-tests: 'automake --add-missing' can install 'test-driver'
> SOLUTION: like it says, automake --add-missing
> ACTION: Make AutoHell run automake --add-missing if required
Hmm, I've never had to run that. Its also running on our Debian build server,
which builds from scratch. Might be OSX related. I recommend using automake
1.11. 1.14 is known to not working when building GnuPG.
> Then redo make distclean etc for a clean start
>
> 7. make -C external/
> Yay, it made the makefile for libgpg-error-1.13-beta5
> PROBLEM:
> ls -l libgpg-error/libtool
> -rwxr-xr-x 1 twbray staff 298243 Apr 3 08:57 libgpg-error/libtool
> # brute force and ignorance to make libtool comply with android style
> sed -i 's,^fast_install=.*,fast_install=needless,' libgpg-error/libtool
> sed: 1: "libgpg-error/libtool": extra characters at the end of l command
> make: *** [libgpg-error/Makefile] Error 1
>
>
> [time for a shower, more later]
I think this might be related to using automake 1.14
.hc
More information about the Guardian-dev
mailing list