When emerging dev-java/jdbc-mysql, the jdk-1.5 packages is required even when a jdk-1.6 package is already installed. Reproducible: Always Steps to Reproduce: 1. emerge -vp dev-java/jdbc-mysql Actual Results: [ebuild N ] dev-java/xml-commons-external-1.3.04 USE="-doc -source" 645 kB [ebuild N ] dev-java/commons-logging-1.1.1 USE="-avalon-framework -avalon-logkit -doc -log4j -servletapi -source -test" 187 kB [ebuild N ] dev-java/bcel-5.2 USE="-doc -source" 256 kB [ebuild N ] dev-java/xml-commons-resolver-1.2 USE="-doc -source" 257 kB [ebuild N ] dev-java/xjavac-20041208-r5 2 kB [ebuild NSF ] dev-java/sun-jce-bin-1.5.0 [1.6.0] 9 kB [ebuild NS ] dev-java/sun-jdk-1.5.0.20 [1.6.0.15] USE="jce -X -alsa -doc -examples (-nsplugin) -odbc" 43,133 kB [ebuild N ] dev-java/xalan-serializer-2.7.1 USE="-doc -source" 6,138 kB [ebuild NS ] virtual/jdk-1.5.0 [1.6.0] 0 kB [ebuild N ] dev-java/xerces-2.9.1 USE="-doc -examples -source" 1,672 kB [ebuild N ] dev-java/ant-contrib-1.0_beta2-r2 USE="-doc -source" 116 kB [ebuild N ] dev-java/jdbc-mysql-5.0.8 USE="-c3p0 -log4j -source" 8,450 kB Expected Results: [ebuild N ] dev-java/xml-commons-external-1.3.04 USE="-doc -source" 645 kB [ebuild N ] dev-java/commons-logging-1.1.1 USE="-avalon-framework -avalon-logkit -doc -log4j -servletapi -source -test" 187 kB [ebuild N ] dev-java/bcel-5.2 USE="-doc -source" 256 kB [ebuild N ] dev-java/xml-commons-resolver-1.2 USE="-doc -source" 257 kB [ebuild N ] dev-java/xjavac-20041208-r5 2 kB [ebuild N ] dev-java/xalan-serializer-2.7.1 USE="-doc -source" 6,138 kB [ebuild N ] dev-java/xerces-2.9.1 USE="-doc -examples -source" 1,672 kB [ebuild N ] dev-java/ant-contrib-1.0_beta2-r2 USE="-doc -source" 116 kB [ebuild N ] dev-java/jdbc-mysql-5.0.8 USE="-c3p0 -log4j -source" 8,450 kB Please note that dev-java/jdbc-postgresql had a similar problem, which was worked out through the java5 and java6 USE flags. The dev-java/jdbc-mysql package could benefit from using the same USE flags in deciding the jdk to use.
Confirm. I can't install netbeans IDE due dependencies. I have java 1.6, but netbeans required >=dev-java/jdbc-mysql-5.1:0 >=dev-java/jdbc-postgresql-8.3_p603:0, this packages require java 1.5
The build system as it is really requires both 1.5 and 1.6, so it cannot be as easily solved by use flag as postgresql. Please consider filing bug with upstream.
5.1.11 was added with build.xml patch to emerge with jdk-1.6 only (needs gnu-classpath for a 1.5 bootclasspath nevertheless)