Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9421 - java-config doesn't set environment correctly
Summary: java-config doesn't set environment correctly
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Lowest normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-21 02:15 UTC by Joerg Erdmenger
Modified: 2003-02-04 19:42 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 Joerg Erdmenger 2002-10-21 02:15:48 UTC
I've successfully emerged sun-jdk-1.4.1_01. --list-available-vms lists it I've
done a --set-system-vm to the new sdk which worked and reported success. Alas
when I check the environnment (even after an env-update) JAVA_HOME and JAVAC and
the other JAVA environment variables still point to the old jdk
Comment 1 Matthew Kennedy (RETIRED) gentoo-dev 2002-10-24 23:43:48 UTC
what happens if you log out and then log back in, and could you send the result of:

find /etc/env.d/java
Comment 2 Joerg Erdmenger 2002-10-25 02:37:08 UTC
the results of find /etc/env.d/java:

/etc/env.d/java
/etc/env.d/java/20sun-jdk-1.4.0
/etc/env.d/java/20sun-jdk-1.3.1.04
/etc/env.d/java/20sun-jdk-1.4.1.01

and I'm sorry. I didn't logout and in again. I just opened another shell. After
having done that the environment is now set correctly.

Joerg
Comment 3 Adrian Almenar 2002-11-29 17:09:24 UTC
Im CC'ing azarah and cretin since its a bug in sandbox.  
If im wrong please excuse me, but you both are working now on sandbox AFAIK. 
=) 
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-30 09:20:59 UTC
How is it sandbox's fault ?  Any change to /etc/env.d/ will be obvious to
portage as it always run env-update, and source /etc/profile (or maybe it was
/etc/profile.env).  For already running shells, it is different however ...
you need to either relogin or source /etc/profile ...

This is not a bug, but how shells work ... you cannot set an environment
variable in a subshell and expect it to be exported to the parent shell.

If you ask me, this bug is invalid.
Comment 5 Adrian Almenar 2002-12-04 00:33:08 UTC
Closing this bug, since its invalid