[guardian-dev] Building Android GPG on OS X

Tim Bray tbray at textuality.com
Wed Apr 9 20:21:09 EDT 2014


I’m actually making progress, to the extent that I can just cd into
external/libksba/src and type “make” and it all builds fine, now it’s just
a matter of figuring out how to get autoconf not to screw it up.  If you
were to do a fresh checkout of gnupg-for-android and type make -C extern, I
bet libksba would go up in smoke for you too.

Anyhow, reading the top-level descriptions of openkeychain, having trouble
figuring out how it’s different from gnupg.  Guess I’ll install it...


On Wed, Apr 9, 2014 at 2:29 PM, Hans-Christoph Steiner <
hans at guardianproject.info> wrote:

>
> Yeah, its a bear.  If you want an easier platform to work on, there is
> OpenKeychain.  We collaborate on aspects, and also share some code, so
> working
> there might be a less painful path into GPGA.
>
> .hc
>
> On 04/09/2014 05:09 PM, Tim Bray wrote:
> > Hm, https://dev.guardianproject.info/issues/1548 suggests that one
> doesn’t
> > really need libkbsa for GPG Android.  But it may be less work to figure
> out
> > what’s wrong than to wrangle AutoHell to bypass libkbsa.  I’m on Precise
> > too, so there’s no good reason.  Last time I put this much work into
> > building something it was ImageMagick, about 10 years ago...
> >
> >
> > On Wed, Apr 9, 2014 at 12:55 PM, Hans-Christoph Steiner <
> > hans at guardianproject.info> wrote:
> >
> >>
> >> I've never seen this one... doesn't ring a bell.  libkbsa pretty much
> >> always
> >> just built for me.  I'm on Ubuntu/precise, and our build server is
> >> Debian/wheezy.
> >>
> >> .hc
> >>
> >> On 04/08/2014 07:42 PM, Tim Bray wrote:
> >>> haha, of course that’s ASN.1 not assembler. I’ve hated ASN.1 for longer
> >>> than most of you have been alive.
> >>>
> >>>
> >>> On Tue, Apr 8, 2014 at 4:28 PM, Tim Bray <tbray at textuality.com> wrote:
> >>>
> >>>> Per advice, I installed Ubuntu on VirtualBox, and the GPG build got
> >>>> muuuuuuuuch further.
> >>>>
> >>>> Now, this is weird... it’s getting assembler syntax errors building
> >>>> libksba, on asn1-gentables.c
> >>>>
> >>>> things like ./tmttv2.asn:6: parse error
> >>>>
> >>>> A bit of digging fails to reveal anything obvious; before I dive
> deeper,
> >>>> anyone seen this before?
> >>>>
> >>>> Command line is
> >>>>
> >>>> cc -I. -DBUILD_GENTOOLS -o asn1-gentables \
> >>>> ./asn1-gentables.c \
> >>>>                 `test -f 'asn1-parse.c' || echo './'`asn1-parse.c  \
> >>>>                 ./asn1-func.c      \
> >>>>                 ./gen-help.c
> >>>>
> >>>>
> >>>>
> >>>>  On Thu, Apr 3, 2014 at 9:10 AM, Tim Bray <tbray at textuality.com>
> 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
> >>>>> ​.
> >>>>>
> >>>>> ​
> >>>>> 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:
> >>>>> ​​
> >>>>> r
> >>>>> ​​
> >>>>> equired file './t
> >>>>> ​​
> >>>>> est-driver' not found
> >>>>> parallel-tests:   'auto
> >>>>> ​​
> >>>>> make --add-mi
> >>>>> ​​
> >>>>> ssing' can install 'test-driver'
> >>>>> SOLUTION: ​​like it says, automake --add-missing
> >>>>> ACTION: Make AutoHell run automake --add-missing if required
> >>>>>
> >>>>> 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]​
> >>>>> ​​
> >>>>>
> >>>>>
> >>>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Guardian-dev mailing list
> >>>
> >>> Post: Guardian-dev at lists.mayfirst.org
> >>> List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev
> >>>
> >>> To Unsubscribe
> >>>         Send email to:  Guardian-dev-unsubscribe at lists.mayfirst.org
> >>>         Or visit:
> >>
> https://lists.mayfirst.org/mailman/options/guardian-dev/hans%40guardianproject.info
> >>>
> >>> You are subscribed as: hans at guardianproject.info
> >>>
> >>
> >> --
> >> PGP fingerprint: 5E61 C878 0F86 295C E17D  8677 9F0F E587 374B BE81
> >> _______________________________________________
> >> Guardian-dev mailing list
> >>
> >> Post: Guardian-dev at lists.mayfirst.org
> >> List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev
> >>
> >> To Unsubscribe
> >>         Send email to:  Guardian-dev-unsubscribe at lists.mayfirst.org
> >>         Or visit:
> >>
> https://lists.mayfirst.org/mailman/options/guardian-dev/tbray%40textuality.com
> >>
> >> You are subscribed as: tbray at textuality.com
> >>
> >
> >
> >
> > _______________________________________________
> > Guardian-dev mailing list
> >
> > Post: Guardian-dev at lists.mayfirst.org
> > List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev
> >
> > To Unsubscribe
> >         Send email to:  Guardian-dev-unsubscribe at lists.mayfirst.org
> >         Or visit:
> https://lists.mayfirst.org/mailman/options/guardian-dev/hans%40guardianproject.info
> >
> > You are subscribed as: hans at guardianproject.info
> >
>
> --
> PGP fingerprint: 5E61 C878 0F86 295C E17D  8677 9F0F E587 374B BE81
> _______________________________________________
> Guardian-dev mailing list
>
> Post: Guardian-dev at lists.mayfirst.org
> List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev
>
> To Unsubscribe
>         Send email to:  Guardian-dev-unsubscribe at lists.mayfirst.org
>         Or visit:
> https://lists.mayfirst.org/mailman/options/guardian-dev/tbray%40textuality.com
>
> You are subscribed as: tbray at textuality.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mayfirst.org/pipermail/guardian-dev/attachments/20140409/a2a31da0/attachment-0001.html>


More information about the Guardian-dev mailing list