Need Plugins directory added to LD_LIBRARY_PATH

VERIFIED FIXED in mozilla0.9.1

Status

SeaMonkey
Build Config
P3
normal
VERIFIED FIXED
18 years ago
13 years ago

People

(Reporter: Jazmin Jonson, Assigned: cls)

Tracking

Trunk
mozilla0.9.1
All
Linux

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

18 years ago
My plugin is not just one library but several. Mozilla
can't find the libraries referenced by the first library
even though the libraries are in the plugin directory.

What is the possibility of this getting put into the Netscape6.0 release?
(Assignee)

Comment 1

18 years ago
Cc'ing the big brains.  The fix seems fairly straight-forward but I'm wondering
what's the proper thing to do for the future when we have user level plugins &
component registries working.  Will we need to add each of those paths to our
default LD_LIBRARY_PATH (or equiv) list?

Wrt Netscape 6, you'll need to attach a patch and mail pdt@netscape.com about it.
Status: NEW → ASSIGNED
Summary: Need Plugins directory added to LD_LIBRARY_PATH → Need Plugins directory added to LD_LIBRARY_PATH
We could programmatically add to LD_LIBRARY_PATH when we get per-user
components, I guess.  I'm not sure there's a better way, other than just
insisting that plugins be a single library.  (Or contain their own magic to set
up the path correctly.)
Personally, I think that this is a problem that the component should solve, not
mozilla.  Plus, I can't think of a way to solve it.
(Assignee)

Comment 4

17 years ago
Setting milestones to Future.
(Assignee)

Updated

17 years ago
Target Milestone: --- → mozilla0.9
(Assignee)

Updated

17 years ago
Target Milestone: mozilla0.9 → mozilla0.9.1
(Assignee)

Comment 5

17 years ago
Here's the straigh-forward "fix".  I'm leaning towards having the plugins
perform their own magic to find their dependent libs though.

Index: build/unix/run-mozilla.sh
===================================================================
RCS file: /cvsroot/mozilla/build/unix/run-mozilla.sh,v
retrieving revision 1.27
diff -u -r1.27 run-mozilla.sh
--- run-mozilla.sh	2000/10/25 20:32:37	1.27
+++ run-mozilla.sh	2001/04/18 06:34:34
@@ -343,7 +343,7 @@
 #
 ##
 ## Set LD_LIBRARY_PATH
-LD_LIBRARY_PATH=${MOZ_DIST_BIN}${LD_LIBRARY_PATH+":$LD_LIBRARY_PATH"}
+LD_LIBRARY_PATH=${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/plugins${LD_LIBRARY_PATH+":$LD_LIBRARY_PATH"}
 #
 ## Set SHLIB_PATH for HPUX
 SHLIB_PATH=${MOZ_DIST_BIN}${SHLIB_PATH+":$SHLIB_PATH"}

That looks fine to me.  Very uncomplicated.
a=blizzard for mozilla 0.9
(Assignee)

Comment 8

17 years ago
Patch was checked in before the 0.9 branch.  Marking fixed.
Status: ASSIGNED → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → FIXED

Comment 9

17 years ago
verified.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.