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

Bug 261524

Summary: binary emerge of commons-dbcp fails if jdk-1.5 not present
Product: Gentoo Linux Reporter: Michael Jinks <mjinks>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Jinks 2009-03-07 05:02:39 UTC
I started out with sun-jdk-1.6 installed, and the goal of setting up Tomcat from a collection of prebuilt binaries.

While performing a binary emerge of commons-dbcp, for example,

  # emerge -vK dev-java/commons-dbcp

...the install will begin and fail, with:

   *   java-pkg_switch-vm 3367 0 Failed to determine VM for building.

Struck me as odd since this is a binary package.  I eventually figured out that if I did,

  # emerge -pv commons-dbcp

...then Portage would list 'dev-java/sun-jdk-1.5.0.16' as a dependency, but for some reason it doesn't during a binary emerge.  After manually installing sun-jdk-1.5, binary emerge of commons-dbcp runs fine.

Should jdk-1.5 be listed as a runtime dep as well as build-time?  Or is there another way around this?

Reproducible: Always
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2009-03-07 17:19:32 UTC

*** This bug has been marked as a duplicate of bug 206024 ***