Bug#665774: Messes up $PATH

2022-02-21 Thread Andras Korn
FWIW, this is now fixed in the latest upstream master:

https://github.com/dell/dkms/pull/193/commits/775a3389ebbafb4fb5d59747667e604cf4f4d903

AndrĂ¡s

-- 
 Crime is merely politics without the excuses.



Bug#665774: Messes up $PATH

2012-03-25 Thread Andras Korn
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.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org