Bug 89052 - [patch] www/mozilla: Fix ld-run-path issue in libraries
Summary: [patch] www/mozilla: Fix ld-run-path issue in libraries
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-15 08:30 UTC by Volker Stolz
Modified: 2005-11-29 21:16 UTC (History)
0 users

See Also:


Attachments
moz.diff (2.83 KB, patch)
2005-11-15 08:30 UTC, Volker Stolz
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Stolz freebsd_committer freebsd_triage 2005-11-15 08:30:17 UTC
The following patch addresses the issues mentioned in Mozilla Bug #304655
https://bugzilla.mozilla.org/show_bug.cgi?id=304655

To quote the important part:
"The problem of course is that the libembedmoz.so doesn't know how to find the
other mozilla libs that it needs. Distros hack around this issue by adding
${moz_libdir} to the global ldconfig path. Which of course means that it works
with either mozilla or firefox but not both (because one or the other must come
first in the ld library search path).

Of course the correct solution is simply to link libembedmoz.so using
-Wl,-rpath,${moz_libdir}. That way it can find the other libs that it needs."

Fix: The attached patch sets LDFLAGS appropriately. Some manual intervention for
nspr is required.
How-To-Repeat: - Install mozilla
- Check devel/devhelp: It runs ldconfig on mozlibdir, which isn't The Right Thing to do
    and will no longer be required after the patch.
- Check x11/yelp: It requires a shell-wrapper setting LD_LIBRARY_PATH, which is no
    longer necessary
- Check x11-toolkits/hs-gtk2hs: There's no way to get the gtkembedmoz-part to work without
    applying the same hacks as above.

Also there seems to be some interference with devel/nspr, but IANAE and cannot
grasp the implications of mozilla picking up nspr-config from the port.
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-11-15 08:31:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to GNOMErs for reviewing.
Comment 2 Michael Johnson freebsd_committer freebsd_triage 2005-11-29 21:16:10 UTC
State Changed
From-To: open->closed

Committed, Thanks!