Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149437 - java-config-1 does not change jdk running env-update
Summary: java-config-1 does not change jdk running env-update
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Low normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-28 11:06 UTC by Paavo Heiskanen
Modified: 2006-09-28 20:40 UTC (History)
0 users

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


Attachments
teh patch (java-pkg.eclass.vmhandle.patch,654 bytes, patch)
2006-09-28 13:45 UTC, Vlastimil Babka (Caster) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paavo Heiskanen 2006-09-28 11:06:25 UTC
When reconfiguring the JDK:

localhost paavo # java-config-1 -L
[sun-jdk-1.4.2.12] "Sun JDK 1.4.2.12" (/etc/env.d/java/20sun-jdk-1.4.2.12)
[blackdown-jdk-1.4.2.03] "Blackdown JDK 1.4.2.03"
 (/etc/env.d/java/20blackdown-jdk-1.4.2.03) *
localhost paavo # emerge jython
Calculating dependencies... done!

>>> Emerging (1 of 1) dev-java/jython-2.1-r6 to /
 * jython-2.1.tar.bz2 MD5 ;-) ...                                                                                [ ok ]
 * jython-2.1.tar.bz2 RMD160 ;-) ...                                                                               [ ok ]
 * jython-2.1.tar.bz2 SHA1 ;-) ...                                                                                    [ ok ]
 * jython-2.1.tar.bz2 SHA256 ;-) ...                                                                                  [ ok ]
 * jython-2.1.tar.bz2 size ;-) ...                                                                                    [ ok ]
 * checking ebuild checksums ;-) ...                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                [ ok ]
 * checking jython-2.1.tar.bz2 ;-) ...                                                                                [ ok ]

 * Using Generation-1 System VM: sun-jdk-1.4

After env-update && source /etc/profile JDK was changed. This is a bug beacuse the http://www.gentoo.org/doc/en/java.xml document states "Note: You no longer have to source the profile for updates to the user/system VM take place."
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-09-28 12:58:12 UTC
We should be able to update java-pkg.eclass to make calls to java-config, instead of relying on ${VMHANDLE} to be in the environment.
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-28 13:45:14 UTC
Created attachment 98335 [details, diff]
teh patch

like this
Comment 3 Josh Nichols (RETIRED) gentoo-dev 2006-09-28 20:40:24 UTC
Applied a fix. Thanks for reporting.