Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 54723

Summary: Eclipse-sdk-3.0. build fails with JDK 1.4.2
Product: Gentoo Linux Reporter: Andreas Niess <bgzll>
Component: [OLD] DevelopmentAssignee: Karl Trygve Kalleberg (RETIRED) <karltk>
Status: RESOLVED FIXED    
Severity: normal CC: alan.schmitt, bert
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for the expression problem

Description Andreas Niess 2004-06-22 04:21:20 UTC
Due to an error in eclipse-sdk-3.0.0_rc2.ebuild portage fails to recognize the sun-jdk-1.4.2

In line 49:
    elif [ ${major} -ge ] && [ ${minor} -ge 4 ] && [ ${patch} -ge 2 ] ; then
should be
    elif [ ${major} -ge 1 ] && [ ${minor} -ge 4 ] && [ ${patch} -ge 2 ] ; then

Reproducible: Always
Steps to Reproduce:
1. emerge =sun-jdk-1.4.2.04-r2
2. emerge =eclipse-sdk-3.0.0_rc2
3.
Actual Results:  
The ebuild fails:
/usr/sbin/ebuild.sh: line 48: [: 1: unary operator expected

!!! ERROR: dev-util/eclipse-sdk-3.0.0_rc2 failed.
!!! Function pkg_setup, Line 51, Exitcode 2
!!! Detected JDK (1.4.2_04) is too old to compile Eclipse, need at least 1.4.2!
Comment 1 Bert Geens (theBlackDragon) 2004-06-22 04:37:08 UTC
Created attachment 33816 [details]
Patch for the expression problem

Patch that incorporates the above mentioned changes.
Comment 2 Alan Schmitt 2004-06-22 08:22:48 UTC
I confirm that this minor change works for me (using blackdown 1.4.2_rc1).
Comment 3 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-06-22 11:57:21 UTC
Fixed for rc1, rc2 and rc3.