Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83275 - ebuild+ant fail building eclipse-sdk-3.1_pre5 with java-1.5 but works well when ran manually
Summary: ebuild+ant fail building eclipse-sdk-3.1_pre5 with java-1.5 but works well wh...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-25 02:38 UTC by Stéphan BERNARD
Modified: 2005-03-02 11:56 UTC (History)
0 users

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 Stéphan BERNARD 2005-02-25 02:38:11 UTC
When I try to emerge eclipse-3.1_pre5 with java-1.5 (after disabling JVM test in the ebuild), I get javac error, BUT no error when launching ant from the /var/tmp/portage/(...)/ directory where the failling build.xml is located.

I had exactly the same problem with junit, but I can't reproduce it anymore.

Reproducible: Always
Steps to Reproduce:
1. Edit eclipse-sdk-3.1_pre5
2. Set the sun-jdk-1.5.0.01 JVM with java-config
3. emerge =dev-util/eclipse-sdk-3.1_pre5
(note that xerces is already compiled with java-1.5.0.01)

Actual Results:  
Had :
(...)
 * Building GTK+ frontend (compile) -- see compilelog.txt for details
     [echo] Deleting jars to recompile...
     [echo] Compiling...
     [echo] Copying source from org.eclipse.swt project to folder
/var/tmp/portage/eclipse-sdk-3.1_pre5/work/eclipse-
sdk-3.1_pre5/plugins/org.eclipse.swt.gtk64/src folder
/var/tmp/portage/eclipse-sdk-3.1_pre5/work/eclipse-sdk-3.1_pre5
/plugins/org.eclipse.swt.gtk64/temp.folder.
    [javac] ----------
    [javac] 1. ERROR in
/var/tmp/portage/eclipse-sdk-3.1_pre5/work/eclipse-sdk-3.1_pre5/plugins/org.eclipse.pde.build
/src/org/eclipse/pde/internal/build/FeatureWriter.java (at line 24)
    [javac]     public class FeatureWriter extends XMLWriter implements
IPDEBuildConstants {
    [javac]                  ^^^^^^^^^^^^^
    [javac] The return type is incompatible with Writer.append(char),
PrintWriter.append(char)
    [javac] ----------
(...same error twice...)
    [javac] The return type is incompatible with Writer.append(CharSequence),
PrintWriter.append(CharSequence)
    [javac] ----------
    [javac] 3 problems (3 errors)
BUILD FAILED
/var/tmp/portage/eclipse-sdk-3.1_pre5/work/eclipse-sdk-3.1_pre5/build.xml:37:
The following error occurred while exec
uting this line:
/var/tmp/portage/eclipse-sdk-3.1_pre5/work/eclipse-sdk-3.1_pre5/build.xml:8: The
following error occurred while executing this line: 
(...) (...No line on output...)


Expected Results:  
BUILD SUCCESSFUL

Solution :
> cd
/var/tmp/portage/eclipse-sdk-3.1_pre5/work/eclipse-sdk-3.1_pre5/plugins/org.eclipse.pde.build/
> ant
(...)
BUILD SUCCESSFUL
> nano -w /var/tmp/portage/eclipse-sdk-3.1_pre5/work/eclipse-sdk-3.1_pre5/build.xml
   (Disable <antcall > in <target name="clean" > :)
        <target name="clean" depends="init">
                <echo message="Deleting jars to recompile..." />
                <!-- antcall target="allElements">
                        <param name="target" value="clean" />
                </antcall -->
        </target>
> ebuild /usr/portage/dev-util/eclipse-sdk/eclipse-sdk-3.1_pre5.ebuild compile
> ebuild /usr/portage/dev-util/eclipse-sdk/eclipse-sdk-3.1_pre5.ebuild install
> ebuild /usr/portage/dev-util/eclipse-sdk/eclipse-sdk-3.1_pre5.ebuild qmerge
Comment 1 Stéphan BERNARD 2005-02-25 02:42:46 UTC
Step 1 to reproduce is :
Comment out 

#  if (java-utils_is-vm-version-ge 1 5 0) ; then
#    die "${P} cannot be compiled with a 1.5.x VM, set your system VM to a 1.4.x VM."
#  fi

in eclipse-sdk-3.1_pre5.ebuild
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2005-03-02 11:56:03 UTC
I fail to see that this is a solution to anything. You have disabled  re-compilation of practically all of the platform because it does not work with the Sun JDK 1.5, which means the ebuild no longer builds Eclipse from source.

The ebuild test for 1.5 was obviously put in explicitly for the reason that Eclipse 3.1.x cannot be compiled with Sun JDK 1.5 using our current setup. According to Billy Biggs of the Eclipse team, it is not a priority for the Eclipse people to have the system compilable with Sun JDK 1.5.

I'm closing this as UPSTREAM for now, awaiting a long-term solution. We do not officially support Java 1.5 on Gentoo yet anyway.