Make python27 build as an unprivileged user

Antoine Brodin antoine at FreeBSD.org
Thu Apr 3 19:06:04 UTC 2014


On Thu, Apr 3, 2014 at 9:01 PM, Julio Merino <jmmv at freebsd.org> wrote:
> Hello,
>
> I needed the patch below to be able to build python27 when using ports as
> an unprivileged user.  It is a bit too coarse-grained, but I think ports
> does not offer a finer-grained mechanism to indicate that only the staging
> phase needs root.
>
> (Note that pkgsrc marks all python packages as requiring root for the
> stage phase... and I suppose it's because of the same problem I encountered.)
>
> What do you think?  (If you think this is OK, I'll need an explicit approval
> to commit.)

Hi,

It's better to understand and fix the cause of the failure as non-root
than putting NEED_ROOT.

Cheers,

Antoine (with hat: portmgr)


More information about the freebsd-python mailing list