Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 101571

Summary: dev-util/eclipse-sdk should determine MOZILLA_FIVE_HOME dynamically
Product: Gentoo Linux Reporter: Saleem Abdulrasool (RETIRED) <compnerd>
Component: New packagesAssignee: Development Tools Team <dev-tools>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://eclipse.org
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: eclipse-sdk-MOZILLA_FIVE_HOME-export.patch

Description Saleem Abdulrasool (RETIRED) gentoo-dev 2005-08-06 13:12:35 UTC
We should resort to the use of pkg-config for the linking against mozilla.  We
can use the following:

pkg-config $browser-xpcom --variable=libdir

The browser can be mozilla or firefox.
Comment 1 Brian Merrill 2006-05-03 11:35:35 UTC
Even if it's not determined dynamically, the MOZILLA_FIVE_HOME variable needs to at least be set at some point for the user to enable the internal web browser and for certain plugins such as the Ruby RDT plugin.  This could be as simple as adding a few lines to the /usr/bin/eclipse-3.1 wrapper launcher.  Please see the included patch intended for use with eclipse-sdk-3.1.2-r2, i.e. ebuilds that have the "nogecko-sdk" USE flag.
Comment 2 Brian Merrill 2006-05-03 11:40:41 UTC
Created attachment 86084 [details, diff]
eclipse-sdk-MOZILLA_FIVE_HOME-export.patch
Comment 3 bugs 2006-07-10 11:34:05 UTC
Just a quick comment from a related issue I had.
Chatted with bsmedberg in the moznet dev channel when looking into this for monodevelop.
He notes the path can be fetched from the Gecko install using:
libxpcomglue.a or libxpcomglue_s.a and GRE_GetGREPathWithProperties
And thoughtfully, the seamonkey ebuild registers itself nicely for linking.
# grep seamonkey /etc/ld.so.conf
/usr/lib/seamonkey
# cat /etc/env.d/10seamonkey
LDPATH=/usr/lib/seamonkey

Using this variable to fetch a web browser just seems dumb.  That seems like something the user should configure, and the program try a few defaults (mozilla,firefox,w3m,konqueror whatever) if one isn't initially set.

Comment 4 Christian Requena 2007-06-26 18:15:34 UTC
Amazing that this is still open.

Eclipse (eclipse-sdk-3.2.1-r2) is started using a Shell Script "/usr/bin/eclipse-3.2". Here you can find this lines: 

if [[ -d /usr/lib/gecko-sdk/lib/ ]] && [[ -f /usr/lib/gecko-sdk/lib/libgtkembedmoz.so ]] ; then
    export MOZILLA_FIVE_HOME="/usr/lib/gecko-sdk/lib/"
fi

I've seamonkey and firefox installed on my System, but none of them makes this "gecko-sdk" directory. There was a package "gecko-sdk" but it is out of protage.

Why don't just check in some "preferred" order, and take the first positive. I've  /usr/lib/[mozilla-firefox|seamonkey] and eclipse works with both.

Have Fun!
Comment 5 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-04-06 21:15:05 UTC
I didn't notice that bug 214785 was dupe of this, so duping the other way as that one is already FIXED.
Although the solution is not dynamic but based on use flags in swt, it should work well.
In 3.3.1.1-r1 in CVS.


*** This bug has been marked as a duplicate of bug 214785 ***