Subject: Testers wanted for new variable MAKE_PACKAGE_AS_ROOT
To: pkgsrc-users <pkgsrc-users@netbsd.org>
From: Roland Illig <rillig@NetBSD.org>
List: pkgsrc-users
Date: 10/08/2006 22:36:32
Hi,

currently pkgsrc can be used in just-in-time-su-mode, which means that 
only those things are done as root that need certain privileges.

Currently, "make package" is such a thing, but for most packages the 
unprivileged user can do it as well. That's where the following change 
steps in:

> Module Name:	pkgsrc
> Committed By:	rillig
> Date:		Sun Oct  8 20:31:38 UTC 2006
> 
> Modified Files:
> 	pkgsrc/mk/package: bsd.package.mk package.mk
> 
> Log Message:
> Added a new variable MAKE_PACKAGE_AS_ROOT that controls whether the
> package needs to be packed by root or whether the unprivileged user can
> do that as well. Most packages don't need root privileges, but the
> default value is nevertheless "yes" to not break too many existing
> packages.
> 
> pkgsrc users are encouraged to add the following to their mk.conf:
> 
>     MAKE_PACKAGES_AS_ROOT?= no
> 
> The "?=" operator here is important because after the testing phase,
> this variable is only intended to be set by packages. If "=" would be
> used instead, packages could not override the value.

Roland