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

Bug 283848

Summary: emerging dev-java/jdbc-mysql requires virtual/jdk-1.5 even when virtual/jdk-1.6 is available
Product: Gentoo Linux Reporter: Giampaolo Tomassoni <giampaolo>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: trivial CC: chrmag, ciklop1979, glenn.burns, maxim.kraev, reillyeon
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 292001    

Description Giampaolo Tomassoni 2009-09-06 13:46:49 UTC
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.
Comment 1 Maxim Kraev 2009-10-20 13:50:44 UTC
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
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-11-03 20:11:33 UTC
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.
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-02-13 00:05:51 UTC
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)