| Summary: | dev-util/eclipse-sdk should determine MOZILLA_FIVE_HOME dynamically | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Saleem Abdulrasool (RETIRED) <compnerd> |
| Component: | New packages | Assignee: | 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)
2005-08-06 13:12: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. Created attachment 86084 [details, diff]
eclipse-sdk-MOZILLA_FIVE_HOME-export.patch
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. 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!
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 *** |