Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347608 - jdk/jres should automatically set the system-vm
Summary: jdk/jres should automatically set the system-vm
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-02 22:33 UTC by Dennis Schridde
Modified: 2011-12-28 19:00 UTC (History)
0 users

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 Dennis Schridde 2010-12-02 22:33:37 UTC
I emerged gcj-jdk to provide jdk:1.5, but it was not automatically set as system-vm (/etc/java-config-2/current-system-vm did not exist).

I had to run "java-config -S 1" manually, after some packages failed to build because of "java -version" outputting some spurious "basename" related error message:
---
basename: missing operand
Try `basename --help' for more information.
 * Home for VM '' does not exist:
 * Invalid System VM:
---

Reproducible: Always
Comment 1 Ralph Sennhauser (RETIRED) gentoo-dev 2011-12-28 19:00:52 UTC
All JREs and JDKs are supposed to update the symlink if necessary. gcj-jdk not doing this is deliberate.

Excerpt from gcj-jdk-4.5.3.ebuild:

    # Do not set as system VM (see below)
    # java-vm-2_pkg_postinst

    ewarn "gcj does not currently provide all the 1.5 APIs."
    ewarn "See http://builder.classpath.org/japi/libgcj-jdk15.html"
    ewarn "Check for existing bugs relating to missing APIs and file"
    ewarn "new ones at http://gcc.gnu.org/bugzilla/"
    ewarn
    ewarn "Due to this and limited manpower, we currently cannot support"
    ewarn "using gcj-jdk as a system VM. Its main purpose is to bootstrap"
    ewarn "IcedTea without prior binary VM installation. To do that, execute:"
    ewarn
    ewarn "emerge -o icedtea && emerge icedtea"