Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230625 - dev-java/commons-dbcp-1.2.2 doesn't install under newer jdk/java 1.6
Summary: dev-java/commons-dbcp-1.2.2 doesn't install under newer jdk/java 1.6
Status: RESOLVED DUPLICATE of bug 206024
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-03 13:07 UTC by Steffen Bergner
Modified: 2008-07-04 07:36 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Bergner 2008-07-03 13:07:10 UTC
no up-to-date "NV_DEPEND" of jdk-1.6*

Reproducible: Always

Steps to Reproduce:
use a system with prebuilt binary packages and do a "emerge -ev world" with commons-dbcp in world file. (The built machine has two jdk installed, but the binary-using machine hasn't and runs into this problem.)
Actual Results:  
>>> Emerging (1 of 96) dev-java/commons-dbcp-1.2.2 to /
>>> Extracting info
/usr/lib/portage/pym/portage_dep.py:39: DeprecationWarning: DEPRECATION NOTICE: The portage_dep module was replaced by portage.dep
!!! ERROR: Couldn't find suitable VM. Possible invalid dependency string.
 * Unable to determine VM for building from dependencies:
NV_DEPEND: || (
                        =virtual/jdk-1.5*
                        =virtual/jdk-1.4*
                )
                test? (
                        dev-java/junit:0
                        www-servers/tomcat:6
                        dev-java/xerces:2
                )
                >=dev-java/commons-pool-1.3  >=dev-java/java-config-2.0.33-r1 >=sys-apps/portage-2.1.2.7 source? ( app-arch/zip ) >=dev-java/javatoolkit-0.2.0-r1 >=sys-apps/portage-2.1.2.7  >=dev-java/ant-core-1.7.0
VNEED:
 *
 * ERROR: dev-java/commons-dbcp-1.2.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *             environment, line 3730:  Called java-pkg-2_pkg_setup
 *             environment, line 2095:  Called java-pkg_init
 *             environment, line 2779:  Called java-pkg_switch-vm
 *             environment, line 3259:  Called die
 * The specific snippet of code:
 *                       die "Failed to determine VM for building.";
 *  The die message:
 *   Failed to determine VM for building.
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-java/commons-dbcp-1.2.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/commons-dbcp-1.2.2/temp/environment'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
and of course, the output of emerge --info
!!! Setup failed: 1
ggpweb1 ~ #


Expected Results:  
no failure, just the use of newest jdk 1.6 (which is available).
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2008-07-03 21:30:17 UTC

*** This bug has been marked as a duplicate of bug 206024 ***
Comment 2 Steffen Bergner 2008-07-04 06:16:51 UTC
How about an update? 

>=virtual/jdk-1.5* 
or
=virtual/jdk-1.6*

This will work, and this is the present. JDK 1.6!

Thanks
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2008-07-04 07:23:58 UTC
(In reply to comment #2)
> How about an update? 
> 
> >=virtual/jdk-1.5* 
> or
> =virtual/jdk-1.6*
> 
> This will work, and this is the present. JDK 1.6!
> 
> Thanks
> 

>=virtual/jdk-1.4 would only work with binary packages. 1.6 has a new JDBC API that commons-dbcp does not build against.
In the future read the bug that your bug has been marked a duplicate of. The Java eclasses are buggy and should not rely on DEPEND items being installed while in pkg_* functions. When the eclass works with only jres installed all the Java packages automatically get the fix.

*** This bug has been marked as a duplicate of bug 206024 ***
Comment 4 Steffen Bergner 2008-07-04 07:36:33 UTC
"emerge virtual/jdk:1.5"

This works! Thank you all very much!

Solution from bug 206024.