[Pkg-dkms-maint] Bug#665774: Messes up $PATH
Andras Korn
korn-debbugs at elan.rulez.org
Sun Mar 25 21:45:40 UTC 2012
Package: dkms
Version: 2.2.0.3-1
Severity: normal
Tags: upstream
Hi,
/usr/sbin/dkms unconditionally sets PATH to:
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/lib/dkms"
This makes it unnecessarily hard to use it with compiler frontends/wrappers like
ccache or distcc; it also violates the principle of least surprise. It is a
common practice to place local wrappers or source-installed versions of
programs in /usr/local/bin and /usr/local/sbin -- these directories would
then precede /bin, /usr/bin, /sbin and /usr/sbin in $PATH so that the
binaries in /usr/local take precedence over similarly named package-managed
binaries.
I'd say dkms has no business messing with the PATH it inherits, other than
appending /usr/lib/dkms to it.
Please consider changing the above line to:
PATH="$PATH:/usr/lib/dkms"
Best regards,
--
Andras Korn <korn at elan.rulez.org>
Math and Alcohol don't mix. Please don't drink & derive.
More information about the Pkg-dkms-maint
mailing list