Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54723 - Eclipse-sdk-3.0. build fails with JDK 1.4.2
Summary: Eclipse-sdk-3.0. build fails with JDK 1.4.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-22 04:21 UTC by Andreas Niess
Modified: 2004-06-22 11:57 UTC (History)
2 users (show)

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


Attachments
Patch for the expression problem (eclipse-ebuild.patch,164 bytes, text/plain)
2004-06-22 04:37 UTC, Bert Geens (theBlackDragon)
Details

Note You need to log in before you can comment on or make changes to this bug.
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.