[lsb-discuss] /etc/profile.d and LSB (test procedure missing?)

Ian Murdock imurdock at imurdock.com
Mon Apr 9 05:14:23 PDT 2007

On 3/22/07, Till Kamppeter <till.kamppeter at gmail.com> wrote:
> The LSB specification requires that a login shell sources all the *.sh
> scripts in the /etc/profile.d directory:
> http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/etc.html
> In reality this is not done by all LSB-compliant distros, especially not
> by Debian, Ubuntu, and the LSB Build Environment. As Debian and Ubuntu
> are most probably LSB-certified I assume that the testing framework of
> the LSB is missing the test of whether /etc/profile.d is functional (for
> example add a shell script setting some environment variables to
> /etc/profile.d, calling "sh -l -c 'echo <new variable>'" and see whether
> the variable is set).
> I discovered that when making a CUPS package for the LSB DDK. In the
> maintainer scripts of the RPM (see below) I had to add the script to the
> end of /etc/profile (and remove this on uninstall) for non-conforming
> distros.

Any responses? This is a pretty serious issue, particularly if we are
telling people to use /etc/profile.d to integrate their apps with the
system (e.g., add to PATH etc.). -ian

Ian Murdock

"Don't look back--something might be gaining on you." --Satchel Paige

More information about the lsb-discuss mailing list