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

Bug 171013

Summary: env-update does not resolve variables any more
Product: Gentoo Linux Reporter: Gabor Kapitar <kapitarg>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Gabor Kapitar 2007-03-15 11:43:11 UTC
It seems that env-update recently ignores variables in the config files of /etc/env.d

example:

content of /etc/env.d/20sun-java:
DIRNAME="jdk"
JAVA_HOME=/opt/java/${DIRNAME}
JRE_HOME=/opt/java/${DIRNAME}/jre
PATH="${JAVA_HOME}/bin"

after running env-update, the /etc/profile.env has following entries:
export JAVA_HOME='/opt/java/${DIRNAME}'
export JRE_HOME='/opt/java/${DIRNAME}/jre'
...
export PATH='/opt/bin:/usr/lib/ccache/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:${JAVA_HOME}/bin:/usr/qt/3/bin:/opt/enlightenment/bin:/usr/games/bin'
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-03-15 11:45:48 UTC
Those files are broken; env-update is not supposed to expand variables.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-03-15 11:46:26 UTC

*** This bug has been marked as a duplicate of bug 151622 ***