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

Bug 93641

Summary: system profile should source *-env files in ~/.gentoo
Product: Gentoo Linux Reporter: Matt Whitlock <gentoo>
Component: Current packagesAssignee: Java team <java>
Status: RESOLVED WONTFIX    
Severity: trivial    
Priority: Low    
Version: 2005.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Matt Whitlock 2005-05-22 22:56:33 UTC
This affected me when I tried to set a user-specific Java VM. The system-wide Java VM is specified in /etc/env.d/20java and the user-specific Java VM is specified in ~/.gentoo/java.

The system profile at /etc/profile should source the user-specific profile.

Example code to insert into /etc/profile:

# Bring in user-specific environment
if [ -e ~/.gentoo/*-env ] ; then
        for env in ~/.gentoo/*-env ; do
                . $env
        done
fi

This way, a user can source /etc/profile and get a full environment consisting of the system profile plus their own profile additions/overrides.
Comment 1 Thomas Matthijs (RETIRED) gentoo-dev 2005-09-10 11:11:57 UTC
since the new system that we will try to push out into the main tree asap will 
no longer use env files like this, marking as wontfix