Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100015 - dev-java/swt-3.1 is using the wrong path for GECKO_SDK if compiled with the firefox useflag
Summary: dev-java/swt-3.1 is using the wrong path for GECKO_SDK if compiled with the f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Saleem Abdulrasool (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-23 04:46 UTC by Niklas Bolander
Modified: 2005-08-06 11:03 UTC (History)
0 users

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


Attachments
Fixed ebuild (swt-3.1-r1.ebuild,5.08 KB, text/plain)
2005-07-23 04:47 UTC, Niklas Bolander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Niklas Bolander 2005-07-23 04:46:18 UTC
The ebuild sets GECKO_SDK to /usr/lib/MozillaFirefox, should   
be /usr/lib/mozilla-firefox. 

Reproducible: Always
Steps to Reproduce:
1.USE="firefox mozilla" emerge swt 
Actual Results:  
cc1plus: /usr/lib/MozillaFirefox/include/mozilla-config.h: No such file or 
directory 
 

Expected Results:  
>>> Regenerating /etc/ld.so.cache... 
>>> dev-java/swt-3.1 merged.
Comment 1 Niklas Bolander 2005-07-23 04:47:26 UTC
Created attachment 64118 [details]
Fixed ebuild
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2005-07-23 05:00:27 UTC
(In reply to comment #1)
> Created an attachment (id=64118) [edit]
> Fixed ebuild
> 

It is better to attach diffs against the current ebuild so we can quickly see
what is changed. I don't know if this has anything to do with this but this is
the latest change in mozilla-firefox:

*mozilla-firefox-1.0.6-r2 (23 Jul 2005)

23 Jul 2005; Jory A. Pratt <anarchy@gentoo.org> files/10MozillaFirefox,
-mozilla-firefox-1.0.6-r1.ebuild, +mozilla-firefox-1.0.6-r2.ebuild:
update for 10MozillaFirefox lib dir
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2005-07-23 05:04:34 UTC
Ah yes. It seems that the swt ebuild has hardcoded the path to firefox. I think
it would be better to come up with a solution that works with both the old and
new path. The path to firefox is in for example /etc/env.d/10MozillaFirefox. 
Comment 4 Niklas Bolander 2005-07-23 06:15:51 UTC
/etc/env.d/10MozillaFirefox contains the ldpath but the header files are in    
another directory so it's unfortunatly not usable here. 
 
And here's a pseudo diff for those who havn't compared it to the original yet. 
Sorry for not posting it originaly: 
--                      GECKO_SDK=/usr/lib/MozillaFirefox 
++                      GECKO_SDK=/usr/lib/mozilla-firefox 
Comment 5 Niklas Bolander 2005-07-23 07:54:18 UTC
The ldpath in /etc/env.d/10MozillaFirefox has been updated from firefox 1.06-r2  
so it could be used to find the headers now.  
Comment 6 Saleem Abdulrasool (RETIRED) gentoo-dev 2005-07-23 12:55:01 UTC
Using the LD_LIBRARY_PATH for the headers IMO is bad.  That env variable is
meant to be used for libraries not for headers.
Comment 7 Saleem Abdulrasool (RETIRED) gentoo-dev 2005-08-06 11:03:45 UTC
Fixed this in -r1.  Please retry emerging it in about an hour and reopen the bug
if the problem persists.