Bug 201260 - ~sys-cluster/torque-2.2.1 installs env.d file with unexpanded variables
Bug#: 201260 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: hp-cluster@gentoo.org Reported By: jer@gentoo.org
Component: Applications
URL: 
Summary: ~sys-cluster/torque-2.2.1 installs env.d file with unexpanded variables
Keywords:  
Status Whiteboard: 
Opened: 2007-12-04 20:08 0000
Description:   Opened: 2007-12-04 20:08 0000
gentoo/cvs/gentoo-x86/sys-cluster/torque $ grep CONFIG_PROTECT files/*env.d*
files/torque-env.d-2.2.1:CONFIG_PROTECT="/var/spool/torque/sched_priv/{holidays,resource_group,dedicated_time,sched_config}
/var/spool/torque/{server_name,pbs_environment}"
files/torque-env.d-2.2.1-r1:CONFIG_PROTECT="${PBS_SERVER_HOME}/sched_priv/{holidays,resource_group,dedicated_time,sched_config}
${PBS_SERVER_HOME}/{server_name,pbs_environment}"

This results in:
elmer ~ # grep -w CONFIG_PROTECT /etc/profile.env
export CONFIG_PROTECT='/var/bind /usr/share/X11/xkb
${PBS_SERVER_HOME}/sched_priv/{holidays,resource_group,dedicated_time,sched_config}
${PBS_SERVER_HOME}/{server_name,pbs_environment} /usr/kde/3.5/share/config
/usr/kde/3.5/env /usr/kde/3.5/shutdown /usr/share/config'

which in turn isn't expanded by, say, webapp-config which then fails. As far as
I am aware, variables in env.d files are never expanded.

------- Comment #1 From Justin Bronder 2007-12-04 20:18:14 0000 -------
Great, I'll get a fix in by tonight.  So much for trying to be tricky.

------- Comment #2 From Justin Bronder 2007-12-04 21:56:38 0000 -------
Fix committed, sorry for the inconvenience.

------- Comment #3 From Jeroen Roovers 2007-12-05 16:06:56 0000 -------
That fixed it, thanks!