Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63905 - Eclipse-cdt fails to build with Eclipse-3.1_pre1
Summary: Eclipse-cdt fails to build with Eclipse-3.1_pre1
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Development Tools Team
URL:
Whiteboard:
Keywords:
: 64515 (view as bug list)
Depends on:
Blocks: 71530 139127
  Show dependency tree
 
Reported: 2004-09-13 09:57 UTC by Tom K
Modified: 2006-07-20 12:21 UTC (History)
1 user (show)

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


Attachments
patch to make eclipse-cdt compile against eclipse-3.1 (00-eclipse-3.1.patch,1.04 KB, patch)
2004-09-14 04:58 UTC, Tor Håkon Haugen
Details | Diff
ebuild to make eclipse-cdt compile against eclipse-3.1 (eclipse-cdt-2.0-r2.ebuild,2.07 KB, text/plain)
2004-09-14 05:01 UTC, Tor Håkon Haugen
Details
patch (eclipse-cdt-patch.diff,1.52 KB, text/plain)
2004-11-03 10:56 UTC, Andy Daniels
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom K 2004-09-13 09:57:09 UTC
emerging eclipse-cdt-2.0-r2 fails during the build with:

 * Building Java code 
 Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/launcher/Main

It seems a few of us are having this problem --
http://forums.gentoo.org/viewtopic.php?t=222073&highlight=

I downgraded to eclipse-3.0.0-r3, and that allowed eclipse-cdt to emerge succesfully. I guess the build is looking for eclipse-3 directories, but not 3.1?

Reproducible: Always
Steps to Reproduce:
1. emerge eclipse-sdk-3.1_pre1.ebuild
2. emerge eclipse-cdt-2.0-r2.ebuild
3. eclipse-cdt breaks immediately on building java files

Actual Results:  
 

Expected Results:  
eclipse-cdt should install with eclipse-3.1
Comment 1 Tor Håkon Haugen 2004-09-14 03:34:44 UTC
For now this ebuild should be limited to the 3.0 release of eclipse.

In the ebuild, line 25 and 27, it refers to /usr/lib/eclipse-3. To use this with eclipse 3.1, it needs to be changed to /usr/lib/eclipse-3.1 (which would break the 3.0 release).

Also, in the build.xml file, you will have to change line 17 and 53. After doing this it will compile, but I have yet to see the installation work.
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-09-14 03:59:50 UTC
I'm not even sure the CDT will work with 3.1. I have updated the CDT ebuild
to require 3.0.x, and not accept a 3.1.

If anybody wants to submit a patch for the ebuild that allows it to work
for 3.1, don't be shy;)
Comment 3 Tor Håkon Haugen 2004-09-14 04:58:59 UTC
Created attachment 39563 [details, diff]
patch to make eclipse-cdt compile against eclipse-3.1
Comment 4 Tor Håkon Haugen 2004-09-14 05:01:29 UTC
Created attachment 39564 [details]
ebuild to make eclipse-cdt compile against eclipse-3.1

This ebuild will only work against eclipse-3.1.
Comment 5 Tor Håkon Haugen 2004-09-14 08:01:34 UTC
Sorry about the "bad" submit.

The first patch is supposed to be called "00-eclipse-3.1.patch" and be placed under eclipse-cdt/files/ catalog in portage. Also you will have to place the new ebuild in parallel with the old one.

Since eclipse 3.0 and 3.1 can be installed at the same time, I don't see a easy way of selecting which one the eclipse-cdt package shall be installed to.
What if the user wants to install the packages to both versions?
Comment 6 Thomas Matthijs (RETIRED) gentoo-dev 2004-09-21 04:12:05 UTC
*** Bug 64515 has been marked as a duplicate of this bug. ***
Comment 7 Michael R. Mayne 2004-09-27 10:38:06 UTC
This is marked RESOLVED FIXED, but from the comments it appears that neither status is correct.   Or am I missing something?

-Mike
Comment 8 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-09-27 15:05:41 UTC
As there is now patch here, the bug should be reopened.
Comment 9 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-09-27 15:06:36 UTC
Mine.
Comment 10 Andy Daniels 2004-11-03 10:56:04 UTC
Created attachment 43235 [details]
patch

Someone who has gotten eclipse-3.1* to compile please test this.  This should
make the eclipse-cdt ebuild less version dependant.  This should also fix for
bug #65358, which is a similar bug relating to eclipse 3.0.1.

(don't mind the ~amd64 addition, but add it if you feel like it =D I have done
some testing on my main box with eclipse 3.0.1-r1 with good results).
Comment 11 Joshua Baergen (RETIRED) gentoo-dev 2004-12-01 21:15:52 UTC
Tried the ebuild.  Patch failed so I did it manually (didn't seem to line up right), and the ebuild is fine.  Build.xml still blows up, has issues with the plugins versioning during Java build stage, ie

"/var/tmp/portage/eclipse-cdt-2.0-r2/work/eclipse-cdt-2.0/build.xml:59: Basedir
/var/tmp/portage/eclipse-cdt-2.0-r2/work/eclipse-cdt-2.0/results/eclipse-copy/plugins/org.eclipse.pde.build_3.1_pre3/scripts does not exist"
Comment 12 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-12-16 02:36:44 UTC
Nerdboy kindly requested that dev-tools take over all eclipse stuff.
Comment 13 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2005-02-05 18:34:06 UTC
In case anybody is wondering, the work which needs to be done to this project is
at least the following:

1) A complete snapshot must be made at the same date of a particular CDT release.
AFAIK, they still don't tag their CVS properly, so it's quite difficult to find
the exactly correct CVS snapshot.

2) The build.xml file and all supporing .xml files must be patched to take one
build.properties (or perhaps a gentoo.properties file as their property file.

Particularly the sed magic we currently do to the build.xml file will not work.

3) In the gentoo.properties, the ebuild should generate relevant versions for
all required eclipse packages, such as org.eclipse.ui, etc.

Comment 14 Josh Nichols (RETIRED) gentoo-dev 2006-07-20 12:21:45 UTC
eclipse-cdt is package.mask'd, pending removal.