Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296460 - virtual/jdk-1.6.0 pulls icedtea6 when sun's jdk is already installed
Summary: virtual/jdk-1.6.0 pulls icedtea6 when sun's jdk is already installed
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-10 21:13 UTC by tdr
Modified: 2009-12-12 16:28 UTC (History)
1 user (show)

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


Attachments
SUN MICROSYSTEMS, INC. BINARY CODE LICENSE AGREEMENT (sun-jdk,12.39 KB, text/plain)
2009-12-10 21:48 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2009-12-10 21:13:24 UTC
Packages that list virtual/jdk:1.6 as a dep are pulling in icedtea6 even though another jdk is in place and should nicely satisfy the dep.

Reproducible: Always

Steps to Reproduce:
1. emerge sun-jdk:1.6 and set system to find your java and javac
2. emerge virtual/jdk:1.6 (or for example ant-core, which depends on it)
3. watch as icedtea6-bin gets pulled back in (again)

Actual Results:  
virtual/jdk:1.6 pulls in icedtea6-bin, which is listed as a RDEPEND 

Expected Results:  
not pull in dev-java/icedtea6-bin because I already have sun's jdk:1.6 in place



[I] dev-java/sun-jdk
Installed versions:  1.6.0.17(1.6)!s(13:05:20 11/06/09)(X alsa nsplugin -derby -doc -examples -jce -odbc)


# javac -version
javac 1.6.0_17

#java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)

emerge -vpt ant-core

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N    ] dev-java/ant-core-1.7.1-r4  USE="source -doc" 0 kB
[nomerge      ]  virtual/jdk-1.6.0
[ebuild  N    ]   dev-java/icedtea6-bin-1.6.2  USE="X alsa nsplugin source -doc -examples" 0 kB
Comment 1 Rafał Mużyło 2009-12-10 21:38:49 UTC
Do you have a correct sun-jdk entry is package.license ?
If you don't, it's most probably INVALID.
Comment 2 tdr 2009-12-10 21:48:46 UTC
Created attachment 212652 [details]
SUN MICROSYSTEMS, INC. BINARY CODE LICENSE AGREEMENT
Comment 3 tdr 2009-12-10 21:50:09 UTC
(In reply to comment #2)
> Created an attachment (id=212652) [details]
> SUN MICROSYSTEMS, INC. BINARY CODE LICENSE AGREEMENT
> 

Here is the license as presented by Sun's site when doing a download directly from them. If this is needed, can someone please add it to portage?  

Regardless, I don't see how the bug is invalid either way.
Comment 4 Rafał Mużyło 2009-12-10 23:46:29 UTC
Correct entry in package.license
dev-java/sun-jdk dlj-1.1
If there's no such entry, as portage treats dlj-1.1
as EULA, portage ignores sun-jdk, even if it's installed.

That's why INVALID - everything works like it should.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-11 05:49:11 UTC
Post the output of:
emerge -ptv dev-java/sun-jdk:1.6