Package: firefox
Version: 1.5.dfsg+1.5.0.1-1
Severity: wishlist
Tags: patch

An Ubuntu user pointed out that because we don't ship run-mozilla.sh,
it is tricky to run xpcshell, which is useful for some Mozilla
development tasks.
(https://launchpad.net/distros/ubuntu/+source/firefox/+bug/35333)

I thought it was too tricky to fix the rpaths of the libraries and/or
binaries to be correct so that you could just run xpcshell.  But a
simple workaround involving setting LD_LIBRARY_PATH goes a long way.
The attached patch documents this workaround in README.Debian.

Regards,
Ian.

diff --exclude='*~' -ruN 
beforethischange/firefox-1.5.dfsg+1.5.0.1/debian/README.Debian 
firefox-1.5.dfsg+1.5.0.1/debian/README.Debian
--- beforethischange/firefox-1.5.dfsg+1.5.0.1/debian/README.Debian      
2006-04-11 17:02:41.000000000 +0100
+++ firefox-1.5.dfsg+1.5.0.1/debian/README.Debian       2006-04-12 
14:38:52.000000000 +0100
@@ -69,6 +69,24 @@
 "none": Don't use any sound wrapper.
 
 
+Using xpcshell et al.
+---------------------
+
+The `run-mozilla.sh' script supplied by upstream Mozilla is
+overcomplex and incorrect for the Debian package setup.  To run
+xpcshell, or other binaries in /usr/lib/firefox, it is sufficient to
+add /usr/lib/firefox to LD_LIBRARY_PATH.  Eg,
+
+ [EMAIL PROTECTED]:~ $ LD_LIBRARY_PATH=/usr/lib/firefox 
/usr/lib/firefox/xpcshell 
+ js>
+
+We apologise for the fact that this is necessary.  In principle it
+would be possible to arrange for xpcshell to have the correct
+directory compiled in; however, this is tricky given the complexity of
+the Mozilla build system, so that it is probably easier for developers
+who need xpcshell, xpidl, et al, to set LD_LIBRARY_PATH.
+
+
 using Java. (You should use plugin which compiled with gcc-3.2)
 ----------
  
diff --exclude='*~' -ruN 
beforethischange/firefox-1.5.dfsg+1.5.0.1/debian/changelog 
firefox-1.5.dfsg+1.5.0.1/debian/changelog
--- beforethischange/firefox-1.5.dfsg+1.5.0.1/debian/changelog  2006-04-12 
12:16:13.000000000 +0100
+++ firefox-1.5.dfsg+1.5.0.1/debian/changelog   2006-04-12 14:39:25.000000000 
+0100
@@ -9,6 +9,7 @@
       I have no idea why this is necessary :-(.
     Malone 36985.
   * Fix broken UTF-8 in .desktop file (again).  Malone 37779.
+  * Document how to use xpcshell in README.Debian.  Malone 35333.
 
  --
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to