On Wed, Sep 4, 2013 at 11:24 AM, Nick Alexander <[email protected]>wrote:
> Hi Caleb, > > Sorry for the delayed reply. No worries, thanks for taking the time to respond. :) > > > On 13-08-31 1:52 PM, Caleb wrote: > >> Okay, I'm having no success packaging libgssapi.so into the lib/$ABI >> folder and my forehead is sore from beating it against the wall >> (metaphorically, at least), so I'm going to ask for guidance on that >> process as well. >> >> I've followed the same pattern for libgssapi.so that's used for >> libmozglue in packager.mk <http://packager.mk> and package-manifest.in >> <http://package-manifest.in>. Here's the diff against changeset >> >> e14094829697: http://pastebin.com/nSuhQGym >> >> However, I'm getting this message when I run `./mach package`: >> >> 0:23.10 creating res/xml/preferences_devtools.**xml >> 0:23.56 make[4]: Leaving directory >> `/home/caleb/Projects/Mozilla/**objdir-droid/mobile/android/**base' >> 0:23.58 mv: cannot stat ‘libgssapi.so’: No such file or directory >> 0:23.58 make[3]: *** [make-package-internal] Error 1 >> 0:23.58 make[3]: Leaving directory >> `/home/caleb/Projects/Mozilla/**objdir-droid/mobile/android/**installer' >> 0:23.58 make[2]: *** [make-package] Error 2 >> 0:23.58 make[2]: Leaving directory >> `/home/caleb/Projects/Mozilla/**objdir-droid/mobile/android/**installer' >> 0:23.58 make[1]: *** [default] Error 2 >> 0:23.58 make[1]: Leaving directory >> `/home/caleb/Projects/Mozilla/**objdir-droid/mobile/android/**installer' >> 0:23.58 make: *** [package] Error 2 >> 0:23.58 make: Leaving directory >> `/home/caleb/Projects/Mozilla/**objdir-droid' >> >> Some find output after running `./mach package`: >> >> ~/Projects/Mozilla$ find ./ -name libmozglue.so >> ./objdir-droid/dist/fennec/**lib/armeabi-v7a/libmozglue.so >> ./objdir-droid/dist/lib/**libmozglue.so >> ./objdir-droid/dist/bin/**libmozglue.so >> ./objdir-droid/mozglue/build/**libmozglue.so >> >> ~/Projects/Mozilla$ find ./ -name libgssapi.so >> ./objdir-droid/dist/lib/**libgssapi.so >> ./objdir-droid/dist/bin/**libgssapi.so >> ./objdir-droid/libgssapi.so >> > > Can you post your .mozconfig? I'm a little surprised you're building > libgssapi.so at all; for me it's part of libxul. > Here's my .mozconfig: ac_add_options --with-android-ndk="$HOME/dev/android-ndk-r8e" ac_add_options --with-android-sdk="$HOME/dev/android-sdk-linux/platforms/android-16" ac_add_options --enable-application=mobile/android ac_add_options --target=arm-linux-androideabi mk_add_options MOZ_OBJDIR=./objdir-droid I'm very surprised to hear libgssapi is built into libxul for you. Can you provide a link to the relevant code? The only GSSAPI-related code in Mozilla that I can find is the interface to system shared libraries: http://mxr.mozilla.org/mozilla-central/source/extensions/auth/nsAuthGSSAPI.h I was under the impression that Mozilla depended on system libraries to do GSSAPI operations. If that understanding isn't correct, my plan of attack would definitely change. > > I wondered if the changes you've made to package-manifest.in are getting > picked up; could you check the corresponding $(OBJDIR)/.../package-manifest > to be certain libgssapi is where you expect? 'cuz it looks like it's not > getting written to the package staging directory (that being dist/fennec). > Looks like the changes are getting picked up: ... [xpcom] bin/dependentlibs.list bin/libmozglue.so bin/libgssapi.so bin/lib/libplugin-container.so ... I think it's worth noting I haven't implemented any sort of build step for libgssapi, so I'm not surprised libgssapi.so isn't showing up in dist/fennec. I was doing the same "and-then-a-miracle-happens" approach that I used when packaging libgssapi in the assets folder: build, manually copy the binary into the appropriate folder, then run `./mach package` again. All the in-tree instances of libgssapi.so were created manually. However, manually copying libgssapi.so to dist/fennec/lib/armeabi-v7a/ (or using a symlink) doesn't work: the file/symlink is deleted when I run `./mach package` > > Nick >
_______________________________________________ mobile-firefox-dev mailing list [email protected] https://mail.mozilla.org/listinfo/mobile-firefox-dev

