pkgsrc-Users archive

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

Testers wanted for new variable MAKE_PACKAGE_AS_ROOT



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



Home | Main Index | Thread Index | Old Index