Bug 91607 - eclipse-sdk-3.1_pre6.ebuild fails to build against ibm jdk 1.4.2
Bug#: 91607 Product:  Gentoo Linux Version: 2005.0 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: blocker Priority: P2
Resolution: CANTFIX Assigned To: karltk@gentoo.org Reported By: guardian@planet-d.net
Component: Ebuilds
URL: 
Summary: eclipse-sdk-3.1_pre6.ebuild fails to build against ibm jdk 1.4.2
Keywords:  
Status Whiteboard: 
Opened: 2005-05-05 13:13 0000
Description:   Opened: 2005-05-05 13:13 0000
Emerging eclipse-sdk-3.1_pre6 fails because of differences between sun and ibm
jdks. Details to fix the problem are provided in the additional information
field.

Reproducible: Always
Steps to Reproduce:
1. unmask eclipse-sdk against ~x86
2. emerge eclipse-sdk
3.

Actual Results:  
build failed

Expected Results:  
build correctly ;)

Here is the difference between my modified ebuild file and the one provided by
portage:

diff /usr/portage/dev-util/eclipse-sdk/eclipse-sdk-3.1_pre6.ebuild
/usr/local/portage/dev-util/eclipse-sdk/eclipse-sdk-3.1_pre6.ebuild
279c279
<       [ ${ARCH} == 'x86' ] && awt_lib_path=${JAVA_HOME}/jre/lib/i386
---
>       [ ${ARCH} == 'x86' ] && awt_lib_path=${JAVA_HOME}/jre/bin
435c435
<              
ant_extra_opts="-Dbootclasspath=${bp}/core.jar:${bp}/xml.jar:${bp}/graphics.jar:${bp}/security.jar"
---
>              
ant_extra_opts="-Dbootclasspath=${bp}/core.jar:${bp}/xml.jar:${bp}/graphics.jar:${bp}/security.jar:${bp}/server.jar"

As you can see, under the ibm 1.4.2 jdk, libjawt.so is located in the jre/bin
directory and I had to append the bootclasspath variable with server.jar
because
of the java.rmi.Remote class.

Please note that my version only addresses the ibm 1.4.2 jdk. Since I'm new to
ebuilds, I don't know how to select the proper paths and options depending of
the installed jdk.

------- Comment #1 From Karl Trygve Kalleberg (RETIRED) 2005-05-14 07:15:30 0000 -------
Your patch seems to help, but now I die from outofmemory errors. Either the IBM
requires more than 768MB (probably when running javadoc), or the -Xmx768m is
not getting through for the IBM JDK.

-Xmx is supported by the IBM JDK java command

------- Comment #2 From Karl Trygve Kalleberg (RETIRED) 2005-07-30 11:35:01 0000 -------
Didn't find a good solution to this.