[Slackbuilds-users] [FIX] Eclipse + xulrunner issue.

André Barboza bmg.andre at gmail.com
Tue May 3 01:37:43 UTC 2011


Bradley,

This eclipse crash can be solved by setting the environment variable
MOZILLA_FIVE_HOME, and I think that has the same effect of editing the
eclipse.ini.

The Eclipse Internal Browser works well with Firefox 3, but it do not
work with the Firefox 4 library.

I did not make any tests with xulrunner or with the x86 arch. See
below a snapshot of my slackware64 13.37 + eclipse 3.6.2 + Firefox
3.6.16 (from 13.1).

http://img198.imageshack.us/i/snapshot3g.png/
http://img845.imageshack.us/i/snapshot4j.png/

Check the patch file attached.

diff -u eclipse/README eclipse.new//README
--- eclipse/README	2011-04-15 05:47:21.000000000 -0300
+++ eclipse.new//README	2011-05-02 21:41:02.866351305 -0300
@@ -8,8 +8,19 @@
 Tools, and Plug-in Development Environment, including source and both user
 and programmer documentation.

+Issues:
+
+This version do NOT support the Firefox 4 libraries to launch the Internal
+Browser.
+
 If you get an error when trying to start eclipse (from the command line) or
 trying to use its internal web browser (which depends on xulrunner), please
 check these threads:
   http://lists.slackbuilds.org/pipermail/slackbuilds-users/2010-June/005979.html
   http://www.mail-archive.com/slackbuilds-users@slackbuilds.org/msg03436.html
+
+If you have installed both JRE and JDK you will get a classpath error during
+compilation, please check these threads:
+  http://www.linuxquestions.org/questions/slackware-14/
+slackware-13-1-java-jdk-path-problems-with-netbeans-844280/
+  http://www.linuxquestions.org/questions/slackware-14/classpath-problem-803609/
diff -u eclipse/eclipse.SlackBuild eclipse.new//eclipse.SlackBuild
--- eclipse/eclipse.SlackBuild	2011-04-15 05:47:21.000000000 -0300
+++ eclipse.new//eclipse.SlackBuild	2011-05-02 22:03:25.730351041 -0300
@@ -26,7 +26,7 @@
 # This script is just a binary repackaging.

 PRGNAM=eclipse
-VERSION=3.6.1
+VERSION=3.6.2
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}

@@ -50,11 +50,14 @@
 cd $PKG/opt

 # Untar source code tarball according with ARCH value
-# ARCH can be 'i586' or 'x86_64'
+# ARCH can be 'i586', 'i686' or 'x86_64'
 if [ "$ARCH" = "x86_64" ]; then
   tar xvf $CWD/$PRGNAM-SDK-$VERSION-linux-gtk-$ARCH.tar.gz
-elif [ "$ARCH" = "i586" ]; then
+  LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "i586" ] || [ "$ARCH" == "i686" ]; then
+  ARCH=i586
   tar xvf $CWD/$PRGNAM-SDK-$VERSION-linux-gtk.tar.gz
+  LIBDIRSUFFIX=""
 else
   printf "$ARCH is not supported...\n" ; exit 1
 fi
@@ -73,6 +76,16 @@
 mkdir -p $PKG/usr/bin
 cat << EOF > $PKG/usr/bin/$PRGNAM
 #!/bin/sh
+if [ "\$MOZILLA_FIVE_HOME" == "" ] || [ ! -x \$MOZILLA_FIVE_HOME ]; then
+  if [ -x /usr/lib${LIBDIRSUFFIX}/xulrunner/libxul.so ]; then
+    export MOZILLA_FIVE_HOME=/usr/lib${LIBDIRSUFFIX}/xulrunner
+  elif [ -x \$(dirname \`readlink /usr/bin/firefox\`)/libxul.so ]; then
+    export MOZILLA_FIVE_HOME=\$(dirname \`readlink /usr/bin/firefox\`)
+  elif [ -x \$(dirname \`readlink /usr/bin/seamonkey\`)/libxul.so ]; then
+    export MOZILLA_FIVE_HOME=\$(dirname \`readlink /usr/bin/seamonkey\`)
+  fi
+fi
+
 cd \$HOME
 /opt/eclipse/eclipse \$@
 EOF
diff -u eclipse/eclipse.info eclipse.new//eclipse.info
--- eclipse/eclipse.info	2011-04-19 03:02:45.000000000 -0300
+++ eclipse.new//eclipse.info	2011-04-07 01:14:26.000000000 -0300
@@ -1,10 +1,10 @@
 PRGNAM="eclipse"
-VERSION="3.6.1"
+VERSION="3.6.2"
 HOMEPAGE="http://www.eclipse.org"
-DOWNLOAD="http://archive.eclipse.org/eclipse/downloads/drops/R-3.6.1-201009090800/eclipse-SDK-3.6.1-linux-gtk.tar.gz"
-MD5SUM="2bc114d4d3b513ef68a175654e5f44f3"
-DOWNLOAD_x86_64="http://archive.eclipse.org/eclipse/downloads/drops/R-3.6.1-201009090800/eclipse-SDK-3.6.1-linux-gtk-x86_64.tar.gz"
-MD5SUM_x86_64="7215b722ad397c5680f80fb2493453e2"
+DOWNLOAD="http://download.eclipse.org/eclipse/downloads/drops/R-3.6.2-201102101200/eclipse-SDK-3.6.2-linux-gtk.tar.gz"
+MD5SUM="7777a21debf1e05591731ac5c93b6bb6"
+DOWNLOAD_x86_64="http://download.eclipse.org/eclipse/downloads/drops/R-3.6.2-201102101200/eclipse-SDK-3.6.2-linux-gtk-x86_64.tar.gz"
+MD5SUM_x86_64="b82be4ed2dabf9dc53188b9dc3891f32"
 MAINTAINER="Andre Barboza"
 EMAIL="bmg.andre at gmail.com"
-APPROVED="pprkut"
+APPROVED=""




On 1 May 2011 04:00, Bradley D. Thornton <Bradley at northtech.us> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
>
> Regarding this issue brought by Antonio on this list:
>
> <snip>
> There's an issue with Eclipse and it's internal web browser that cause
> a fatal error with the Java VM. When you launch eclipse you may get a
> message like these ones:
>
> This one is from my system (slackware 13.0 + jdk 6u16 + firefox 3.6.3):
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> <snip>
>
> I didn't opt for the rebuild of xulrunner, because when I checked, my
> package was tagged 'alien', and I can't for the life of me remember why
> I would have used the AlienBOB version (perhaps it had something to do
> with my 'custom', offshore versions of ffmpeg, mplayer, etc. ;) ).
>
> Anyway, I figured it would be best to leave those things alone since
> there's so much multimedia stuff that depends upon Eric's offshore
> packages, and that is prolly the reason I had that particular version
> there. Like I said though, I don't recall.
>
> Anyway, Antonio's other fix didn't do it, when I substituted lib64/ for lib/
>
> Neither did removing seamonky and seamonkey-solibs, lke Leonardo said
> worked for him on his box[es].
>
> And I'm not having any issues at all w/RSSOwl at all, like Luis Henrique
> and Dave Margell indicated was fixed when they did this:
>
> <snip>
>> -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/seamonkey
>
> just below the '-vmargs' line in the /usr/lib/RSSOwl/RSSOwl.ini file,
> and then it never crashed again :)
> </snip>
>
> I'll keep that little ditty though, just in case I do begin experiencing
> crash issues w/RSSOwl, but Erik Hanson indicated it might be a 32bit
> only issue, and I'm running pure64 on this particular workstation.
>
> What did work for me, however, was to:
>
> <code>
> # upgradepkg eclipse-3.6.1-x86_64-1_SBo.tgz%eclipse-3.6-x86_64-1_SBo.tgz
> </code>
>
> When eclipse 3.6.1 hit, I went and installed it as soon as I could, long
> before the warning notice in the README for the Slackbuild. I even
> submitted a bug report to Eclipse, and got one response, several months
> later asking a couple of questions that led nowhere.
>
> It seems they're clueless over at Eclipse to this bug, and my ticket is
> still open after all these months.
>
> Maybe when the next version is released their bug will be fixed?
>
> For the time being, Eclipse 3.6.0 works fine, so my recommendation at
> this time, for people running Slackware64, is to avoid installing 3.6.1
> since this bug has not been addressed, and none of the kludges to fix it
> seem to apply for 64bit OS.
>
> I'd be interested in hearing other perspectives.
>
>
> - --
> Bradley D. Thornton
> Manager Network Services
> NorthTech Computer
> TEL: +1.760.666.2703  (US)
> TEL: +44.203.318.2755 (UK)
> http://NorthTech.US
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Find this cert at x-hkp://pool.sks-keyservers.net
>
> iQEbBAEBAwAGBQJNvQUGAAoJEE1wgkIhr9j3dk4H9A7/CnG3UKGnxtzhHC1WN2bV
> 6nPLk2Sy1KCTKCBHtCRcJT1eSjs58hdyXN29iq7CuAPvNKxL8Me8pWkJnRLUE5xX
> S+h8PMsVR2bM2qeVFv9tocyy2fl21p3OBlbUkiNU0P63IUxZD7a41wpkGF049OtO
> wTCvhHJ70Y7HdnP0pisKs1ux1pMckAdM68sRPACycmy27zkEhbeidi1W3JUCGGLY
> 4iBIkPBWEIFBuAtC9n+6w8TW8UipDqiZnds6vHS8yzJSX2CHC3YXbZTaBWdZZ+bo
> kmWmLSuBYB9Am+ud7yMQ0CK2af1eHQotj16llRxWQYKUo/FNRsuSDZTpOgtBhg==
> =4d3n
> -----END PGP SIGNATURE-----
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eclipse.diff
Type: application/octet-stream
Size: 3624 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20110502/8916380b/attachment.obj>


More information about the SlackBuilds-users mailing list