Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94931 - Eclipse and firefox
Summary: Eclipse and firefox
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High normal
Assignee: Development Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-03 08:58 UTC by Chris Bainbridge (RETIRED)
Modified: 2008-03-28 09:09 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Bainbridge (RETIRED) gentoo-dev 2005-06-03 08:58:17 UTC
Eclipse has a DEPEND on mozilla but it should work with firefox (+konqueror and   friends). The ebuild even has:

    elif [ -f ${ROOT}/usr/lib/MozillaFirefox/libgtkembedmoz.so ] ; then
        einfo "Compiling against www-client/mozilla-firefox"
        mozilla_dir=/usr/lib/MozillaFirefox

which checks for firefox if mozilla is missing... which is currently impossible, since mozilla is in DEPEND, and hence will always be there!

Fix: Mozilla shouldn't always be required, ebuild should require whatever browser the user wants to use, and hopefully set the browser property in eclipse, as even with -mozilla set the default browser is still being set to mozilla (which causes eclipse to throw an exception trying to access help) and everything else is being ignored.
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2005-06-22 13:00:57 UTC
At least the 3.0.2 ebuild can built against firefox. I just changed the depend
to         mozilla? ( || (>=www-client/mozilla-1.5
>=www-client/mozilla-firefox-1.0.2-r2))
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2005-06-22 13:01:58 UTC
The eclipse-sdk needs the mozilla headers to be built so I don't think it will
work ith Konqueror and friends.
Comment 3 Chris Bainbridge (RETIRED) gentoo-dev 2005-06-23 03:21:27 UTC
I think freebsd ship eclipse without requiring mozilla..
http://lists.freebsd.org/pipermail/freebsd-java/2004-August/002712.html
Comment 4 Qui Gon 2005-10-06 09:23:02 UTC
Eclipse should not use a hardcoded env-path to the headers. 'MozillaFirefox' is
unsuitable for flexible building and relocation of sources.

The ebuild should depend on either the new path '/usr/lib/mozilla-firefox' or
require MOZILLA_FIVE_HOME from the environment in 10mozilla or 10MozillaFirefox.

See also Bug #86070

Please fix this!
Comment 5 Josh Nichols (RETIRED) gentoo-dev 2006-04-10 14:45:46 UTC
eclipse now has USE flags for mozilla and firefox, so I think this bug has since been addressed. Could someone from dev-tools verify?
Comment 6 Chris Bainbridge (RETIRED) gentoo-dev 2006-04-11 04:14:08 UTC
I'm using the eclipse-sdk-3.1.2 ebuild from the java-experimental overlay and it says:

SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/R-${PV}-${RELEASE_DATE}/${MY_A}"
# firefox has been removed, because 1.5 seems to cause some problems
IUSE="gnome mozilla jikes nosrc nodoc atk"

I don't know what problems... I'm using 1.5 and have manually set eclipse to use firefox and it's working fine. I don't have mozilla installed, and everything works, so it doesn't seem to be required.
Comment 7 Billy Biggs 2006-04-11 09:30:16 UTC
How did you manually set eclipse to use firefox?

Remember, there are two things: what external browser is used
to open links, and the embedded gecko engine for the Eclipse HTML
widget used in the Javadoc view, the welcome view, and many other
places.

Firefox from mozilla.org is statically linked and cannot be used for
embedding.  I'm not sure about the firefox in gentoo, but...
Comment 8 Chris Bainbridge (RETIRED) gentoo-dev 2006-04-11 09:58:47 UTC
I just added firefox as an external browser in Preferences -> General -> Web Browser, my USE flags are:

[ebuild   R   ] dev-util/eclipse-sdk-3.1.2  -atk -gnome -jikes -mozilla -nodoc -nosrc 0 kB [2]

I don't know what internal renderer it's using - maybe gecko-sdk which was installed as a depend of mplayerplug-in?
Comment 9 Alistair Bush (RETIRED) gentoo-dev 2008-03-28 09:09:24 UTC
I would say this has been fixed with stable swt having firefox & seamonkey use flags.

dev-java/swt
    gentoo:                  3.3.1.1 {:3}
    installed:               3.3.1.1* {:3}
    Description:             GTK based SWT Library
    Homepage:                http://www.eclipse.org/
    Relevant USE flags:      (-cairo) (-elibc_FreeBSD) (firefox) (-gnome) (opengl) (-seamonkey) (-xulrunner)
    License:                 CPL-1.0 LGPL-2.1 MPL-1.1
    Installed time:          Wed Mar 26 00:46:06 2008
    Source repository:       gentoo