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

Bug 5433

Summary: unmerging jdk or jre does not remove entry from java-config
Product: Gentoo Linux Reporter: Dave Nellans <dave>
Component: [OLD] DevelopmentAssignee: Karl Trygve Kalleberg (RETIRED) <karltk>
Status: RESOLVED FIXED    
Severity: normal CC: dave
Priority: High    
Version: 1.2   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dave Nellans 2002-07-22 18:57:08 UTC
Unmerging a jdk or jre does not remove the appropriate entry so that java-config
believes they are still there even if they are not.  Not sure if java-config
should be smarter, or if they ebuilds for jre and jdk should remove this
entry...  either way, one should do it...
Comment 1 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-07-25 17:00:16 UTC
Hmm.. yes. This one can get tricky fast, really:
1) merge sun-jre-1.4.0
2) java-config --set-system-vm=sun-jre-1.4.0
3) unmerge sun-jre-1.4.0

At this point, we should remove sun-jre-1.4.0 from the list of available vms,
that's understandable, but should we remove it as the default system VM ? 

Probably not, as we have a policy of never messing with the user's configuration
setup unless explicitly told so. 

This, however, means that if the user unmerges the default system VM, or a VM
any of his users have as their default, things will stop working.
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-08-26 11:42:52 UTC
Okay. I updated the java.eclass, so the Java packages that inherit that one will
get the desired functionality. I'm slowly moving all JDKs and JREs to using the
java eclass, but I want to do it stepwise, in case it results in severe breakage..