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

Bug 267035

Summary: dev-java/tomcat-servlet-api-5.5.27 wants jdk1.4 if java5 not set.
Product: Gentoo Linux Reporter: Chris Ryan <wyvern>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED INVALID    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris Ryan 2009-04-21 23:19:27 UTC
I have a java6 vm for my system vm.

When I tried to install this package it wanted to install jdk1.4 as I did not have the java5 flag set, although I'm using a vm capable of supporting java5.



Reproducible: Always



Expected Results:  
The package should be installable using java6.

In the ebuild there are these lines:

DEPEND="java5? ( >=virtual/jdk-1.5 )
    !java5? ( =virtual/jdk-1.4* )
    source? ( app-arch/zip )"
RDEPEND="java5? ( >=virtual/jdk-1.5 )
    !java5? ( =virtual/jdk-1.4* )"

I modified my ebuild to have:

DEPEND=">=virtual/jdk-1.5
    source? ( app-arch/zip )"
RDEPEND=">=virtual/jdk-1.5"

and the build installed fine.
Comment 1 Chris Ryan 2009-04-21 23:38:39 UTC
*** Bug 267038 has been marked as a duplicate of this bug. ***
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2009-04-22 07:53:13 UTC
Until bug #161622 is fixed this is wanted behavior. If you don't want to pull in JDK 1.4 you must set both java5 and java6 use flags.

pena betelgeuse # euse -i java5
global use flags (searching: java5)
************************************************************
[-    ] java5 - Use Java 1.5 to build package || ( reduced deps, 1.5 features, source/target 1.5 )

Closing as INVALID as there is nothing to do for us in this bug at this moment.