Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1284 - Portage wants to install blackdown-jdk and blackdown-jre on update even though sun-jdk is installed
Summary: Portage wants to install blackdown-jdk and blackdown-jre on update even thoug...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-21 14:35 UTC by Martin Blix Grydeland
Modified: 2003-02-04 19:42 UTC (History)
2 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 Martin Blix Grydeland 2002-03-21 14:35:32 UTC
After installing sun-jdk on my computer, every time I run 'emerge --world
update' portage wants to install blackdown-jdk and blackdown-jre.

QUOTE from /etc/make.profile/virtuals
virtual/jdk             dev-java/blackdown-jdk
virtual/jre             dev-java/blackdown-jre
END of QUOTE

If I change these lines to say dev-java/sun-jdk, portage is happy about my
current installation. But this file gets overwritten at each 'emerge rsync'.

Is this the intended behaviour of portage for java-installation? Since sun-jdk
provides both virtual/jdk and virtual/jre, why does portage want to install
blackdown?

Not sure if this bug is related to portage itself or the java-ebuilds.

Best regards
Martin Blix Grydeland
Comment 1 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-03-22 18:59:00 UTC
Daniel,

don't the latest (masked) Portage version fix this ?
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-03-23 13:38:48 UTC
Daniel, reproducing this bug is easy.

1) Remove all JREs and JDKs you have installed.
2) Install the IBM JDK
3) emerge rsync to get the "Offical" virtuals file
4) emerge dev-java/ibm-jdk

Now ibm-jdk provides both virtual/jdk-1.3 and virtual/jre-1.3, but when I do

emerge --update --world update,

portage still wants to install blackdown-jre and blackdown-jdk, even though
ibm-jdk already provides the necessary virtuals.

Obviously, this is with portage 1.8.8-r1
Comment 3 Daniel Robbins (RETIRED) gentoo-dev 2002-03-23 15:54:47 UTC
Hey Karl -- there are several known issues with --world --update, which is why 
it has been removed and is pending a rewrite before the 1.0 release.  If this 
problem can only be triggered with --world --update, then it's a known issue 
and will be fixed when Gentoo 1.0 is released (March 31)
Comment 4 Daniel Robbins (RETIRED) gentoo-dev 2002-03-28 19:11:46 UTC
This should now be fixed in portage-1.8.9_pre33 (coming soon)