Mantis - firefox
Viewing Issue Advanced Details
1893 other major always 2006-10-28 05:51 2010-01-24 11:23
james  
wbonnet  
normal  
closed  
fixed  
none    
none  
0001893: Firefox directories keep moving
The firefox directories contain the version, this means the plugins fail on update and it\'s difficult and/or foolish to link to any of the firefox libs, eg, libnss3.so.

See bug:
http://www.blastwave.org/mantis/view_bug_page.php?f_id=0001889 [^]

I also need to link other packages to some mozilla libs.

As for CSW packages we never need to have more than one instance can you please remove the version form the paths? The plugins and libs can then become just:
/opt/csw/libexec/firefox/lib/firefox/plugins/
/opt/csw/libexec/firefox/lib/firefox/

There might be issues with version 1.X vs 2.X but the libs names themselves should allow for this I hope.
Issue History
2009-03-26 20:40 wbonnet Assigned To jgoerzen => wbonnet
2009-05-10 22:57 wbonnet Note Added: 0006087
2009-05-10 22:57 wbonnet Status assigned => resolved
2009-05-10 22:57 wbonnet Resolution open => fixed
2010-01-24 11:22 wbonnet Note Added: 0007331
2010-01-24 11:22 wbonnet Status resolved => closed

Notes
(0004137)
jgoerzen   
2006-10-30 12:02   
Any idea how/where I can remove the version from the PATH?
(0004139)
james   
2006-10-30 12:17   
The RPATH doesn\'t contain the version anyway:
$ dump -Lv firefox-bin | grep RPATH
[58] RPATH /opt/csw/lib/$ISALIST:/opt/csw/lib:/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib/v8:/opt/SUNWspro/lib:/usr/ccs/lib:/lib:/usr/lib
...because the wrapper script sets LD_LIBRARY_PATH (see below).

The exec script has line:
moz_libdir=/opt/csw/libexec/firefox/lib/firefox-2.0
...an easy edit.


/opt/csw/libexec/firefox/lib/firefox-2.0/run-mozilla.sh
sets the path from where is lives:
cmdname=`basename \"$0\"`
MOZ_DIST_BIN=`dirname \"$0\"`

which sets LD_LIBRARY_PATH:
## Set LD_LIBRARY_PATH
LD_LIBRARY_PATH=${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/plugins:${MRE_HOME}${LD_LIBRARY_PATH+\":$LD_LIBRARY_PATH\"}
...so no action is needed there (unless you want to strip that line and set the RPATH in the bins). Just move it and it will work from its location.
(0006087)
wbonnet   
2009-05-10 22:57   
Directories are renamed. It will be available in the next release of package
(0007331)
wbonnet   
2010-01-24 11:22   
Fix is now publish to current