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

Bug 161217

Summary: /etc/java-config-2/current-system-vm layout changes from JRE to JDK
Product: Gentoo Linux Reporter: Régis Décamps <decamps>
Component: [OLD] DevelopmentAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED WORKSFORME    
Severity: minor    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Régis Décamps 2007-01-09 22:29:33 UTC
I expect /etc/java-config-2/current-system-vm to point to the current system VM.

In particular, I'd like the benefits of java-config-2 to update my firefox plugin.
I have made a simlink as follow 
ln -s /etc/java-config-2/current-system-vm/plugin/i386/ns7/libjavaplugin_oji.so /opt/firefox/plugins/

This link works if I select sun-jre-1.4, sun-jre-1.5 or sun-jre-1.6
But is I select sun-jdk-1.4, sun-jdk-1.5 or sun-jdk-1.6, the link is broke.

Indeed, if java-config-2 -S is called with a JRE, the jre is in /etc/java-config-2/current-system-vm.
Whereas if java-config-2 -S is called with a JDK, the jre is in /etc/java-config-2/current-system-vm/jre



Reproducible: Always

Steps to Reproduce:
1. ln -s /etc/java-config-2/current-system-vm/plugin/i386/ns7/libjavaplugin_oji.so /opt/firefox/plugins/
2. eselect -S sun-jre-1.5
3. ls -al /opt/firefox/plugins/ # link OK
4. eselect -S sun-jdk-1.5
5. ls -al /opt/firefox/plugins/ # link broken


Expected Results:  
I think the jre should always be in current-system-vm/jre, should a symlink be created for that to happen.
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-01-09 23:51:48 UTC
We have eselect java-nsplugin in place for this.