NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/55477: The rationale of /etc/pkgpath.conf is unclear and undocumented



The following reply was made to PR bin/55477; it has been noted by GNATS.

From: Leonardo Taccari <leot%NetBSD.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/55477: The rationale of /etc/pkgpath.conf is unclear and undocumented
Date: Fri, 10 Jul 2020 15:30:11 +0200

 Hello Jukka,
 
 jruohonen%iki.fi@localhost writes:
 > [...]
 > >Fix:
 > I don't understand the purpose of the following trivial definitions:
 >
 >   pkg_admin=/usr/sbin/pkg_admin
 >   pkg_info=/usr/sbin/pkg_info
 >
 > If these are really needed, why not use which(1) or something alike?
 > [...]
 
 Because PATH could depends of possible user's preferences.
 
 E.g. imagine the scenario when someone enable the installation of binary
 packages in sysinst(8) and `pkgin' is installed.  In that case pkg_path.conf
 will be adjusted to use pkg_install from pkgsrc by sysinst(8).
 
 If the root PATH does not have `/usr/pkg/sbin' or does not have before
 `/usr/sbin' the wrong pkg_admin(1) and pkg_info(1) will be picked up
 giving possible empty or incorrect results for daily(5) and
 security.conf(5) cronjobs.
 


Home | Main Index | Thread Index | Old Index