FS#41171 - [firefox] missing libxpcom.so file

Attached to Project: Arch Linux
Opened by Olivier Langlois (lano1106) - Friday, 11 July 2014, 18:54 GMT
Last edited by Evangelos Foutras (foutrelis) - Wednesday, 23 September 2015, 15:25 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Ionut Biru (wonder)
Evangelos Foutras (foutrelis)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

In order to use firefox libxul.so through xulrunner, you need to dynamically load firefox libxpcom.so as explained in the indenpendant glue section at:

https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Glue

with code looking like:

const char *lPath = "/usr/lib/firefox/libxpcom.so";

std::string lXulSdkLibrary = lPath;
std::string lXulSdkDirectory = lXulSdkLibrary.substr( 0, lXulSdkLibrary.find_last_of( "/\\" ) );
std::string lApplicationDirectory = APPLICATION_DIRECTORY;

nsresult lResult = NS_OK;
lResult = XPCOMGlueStartup( lXulSdkLibrary.c_str() );

in the last year this .so file stopped to be bundled with firefox. This is problematic as the workaround for that would be to use the xulrunner libxul.so which doesn't work neither:

https://bugs.archlinux.org/task/41169

I need to inspect firefox source code in more details to be sure but maybe by using this configure switch could impact whether or not libxpcom.so is generated:

--enable-application=APP
Options include:
browser (Firefox)
xulrunner
tools/update-packaging (AUS-related packaging tools)

Since compiling firefox can take hours to me, I won't be able to confirm rapidly but based on my memory this .so file was included when package version was <= 20.

Additional info:
* package version(s) 30.0
* config and/or log files etc.


Steps to reproduce:

lano1106@hpmini ~/dev/packages/firefox/repos/extra-i686/src/mozilla-release $ pacman -Ql firefox | grep libxpcom
lano1106@hpmini ~/dev/packages/firefox/repos/extra-i686/src/mozilla-release :( $

This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Wednesday, 23 September 2015, 15:25 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See last comment.
Comment by Evangelos Foutras (foutrelis) - Friday, 11 July 2014, 19:51 GMT
As you mentioned, libxpcom.so is included in the xulrunner package. If there's a problem with it, it needs to be fixed there.
Comment by Olivier Langlois (lano1106) - Friday, 11 July 2014, 20:14 GMT
libxul.so is bundled with xulrunner. Not libxpcom.so.

libxpcom.so used to be bundled with firefox at /usr/lib/firefox

This .so is a prerequisite in order to be able to dynamically link with firefox libxul.so

so the problem is really in the firefox package bundling.
Comment by Matt Zimmerman (mzimmerman) - Friday, 24 October 2014, 14:43 GMT
installing xulrunner and icu fixed it for me when it happened a few moments ago although I'm not sure xulrunner was required.

XPCOMGlueLoad error for file /usr/lib/firefox/libxul.so:
libicui18n.so.54: cannot open shared object file: No such file or directory
Comment by Evangelos Foutras (foutrelis) - Wednesday, 23 September 2015, 15:25 GMT

Loading...