Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93641 - system profile should source *-env files in ~/.gentoo
Summary: system profile should source *-env files in ~/.gentoo
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low trivial (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-22 22:56 UTC by Matt Whitlock
Modified: 2005-09-10 11:11 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 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