require root priveleges for port build

A.J. 'Fonz' van Werven freebsd at skysmurf.nl
Sun Sep 21 14:22:51 UTC 2014


Jan Beich wrote:

> NEED_ROOT seems to an undocumented hack for staging.
> 
> Can someone suggest a way to force build be performed under root?

A quick grep in /usr/ports/Mk/ indeed doesn't turn up any documentation on
NEED_ROOT. According to the Porter's Handbook section 3.4:

  "Make sure that make package can be run as a normal user (that is, not
   as root). If that fails, NEED_ROOT=yes must be added to the port
   Makefile."

And that's all she wrote. This is probably not as helpful a response as
you were hoping for, but as far as I can tell NEED_ROOT is the way to go.

AvW

-- 
Imbibo, ergo sum.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20140921/6d7a78b3/attachment.sig>


More information about the freebsd-ports mailing list