On 13-09-23 7:56 AM, Caleb wrote:
On Sun, Sep 22, 2013 at 9:12 PM, Nick Alexander <[email protected]
<mailto:[email protected]>> wrote:

    I think it is best to do this in two parts.  Keep the packaging step
    (the @BINPATH@/@DLL_PREFIX@gssapi@DLL_SUFFIX@ line in
    package-manifest.in <http://package-manifest.in>), but add a copying
    step to
    
http://mxr.mozilla.org/mozilla-central/source/mobile/android/app/Makefile.in#46
    such as:

    libs::
             $(NSINSTALL) /path/to/libgssapi.so $(DIST)/bin


I added that line, and now packaging succeeds--hooray! I'm still getting
a "Fail to load gssapi library" message during page load, so there's
more debugging to be done, but at least I've got a place to start.

Huzzah! Progress. Can you verify that libgssapi.so is in the APK (which is just a zip file), and that it's in the correct location?

To help with debugging the linker, set the environment variable (on you device) MOZ_DEBUG_LINKER=1, as per:

http://mxr.mozilla.org/mozilla-central/source/mozglue/linker/Logging.h#55

There are some tricky aspects to library loading in our configuration; let me know how you get on.

    Try that and let me know how it goes.  If you get the packaging to
    work, we can address building libgss for Android.  (My initial
    feeling is that shouldn't be part of the m-c build, but we can
    discuss this with the relevant people if desired.)


Building the GSSAPI library separately certainly would be simpler.
Getting a cross-compiled library wasn't simple, and I haven't been able
to successfully test the resulting binary, so it's not yet clear that
I've got the cross-compilation parameters right. I imagine it'll take a
fair bit of work to get the library to build as part of the Mozilla build.

That said, I think building the GSSAPI library from source as part of
the Firefox for Android build is our only option, for security reasons:
it's virtually impossible to verify or audit a binary blob.

Roger that.

Also, in my experience, integrating the latest release of a library is a
much smoother process if the recipe for building the library is included
in the main build routine. This is something of a security concern as
well, because a smoother integration process means security-related
fixes are more likely to get integrated promptly.

Roger this as well.

We can take this up with the broader community in the future.

Best,
Nick
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to