<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>201260</bug_id>
          
          <creation_ts>2007-12-04 20:08 0000</creation_ts>
          <short_desc>~sys-cluster/torque-2.2.1 installs env.d file with unexpanded variables</short_desc>
          <delta_ts>2007-12-05 16:06:56 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jer@gentoo.org</reporter>
          <assigned_to>hp-cluster@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2007-12-04 20:08:38 0000</bug_when>
            <thetext>gentoo/cvs/gentoo-x86/sys-cluster/torque $ grep CONFIG_PROTECT files/*env.d*
files/torque-env.d-2.2.1:CONFIG_PROTECT=&quot;/var/spool/torque/sched_priv/{holidays,resource_group,dedicated_time,sched_config} /var/spool/torque/{server_name,pbs_environment}&quot;
files/torque-env.d-2.2.1-r1:CONFIG_PROTECT=&quot;${PBS_SERVER_HOME}/sched_priv/{holidays,resource_group,dedicated_time,sched_config} ${PBS_SERVER_HOME}/{server_name,pbs_environment}&quot;

This results in:
elmer ~ # grep -w CONFIG_PROTECT /etc/profile.env
export CONFIG_PROTECT=&apos;/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&apos;

which in turn isn&apos;t expanded by, say, webapp-config which then fails. As far as I am aware, variables in env.d files are never expanded.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jsbronder@gentoo.org</who>
            <bug_when>2007-12-04 20:18:14 0000</bug_when>
            <thetext>Great, I&apos;ll get a fix in by tonight.  So much for trying to be tricky.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jsbronder@gentoo.org</who>
            <bug_when>2007-12-04 21:56:38 0000</bug_when>
            <thetext>Fix committed, sorry for the inconvenience.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2007-12-05 16:06:56 0000</bug_when>
            <thetext>That fixed it, thanks!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>