Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283848 - emerging dev-java/jdbc-mysql requires virtual/jdk-1.5 even when virtual/jdk-1.6 is available
Summary: emerging dev-java/jdbc-mysql requires virtual/jdk-1.5 even when virtual/jdk-1...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: java15removal
  Show dependency tree
 
Reported: 2009-09-06 13:46 UTC by Giampaolo Tomassoni
Modified: 2010-02-13 00:05 UTC (History)
5 users (show)

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 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)