Make python27 build as an unprivileged user
Julio Merino
jmmv at freebsd.org
Thu Apr 3 19:30:12 UTC 2014
On Thu, Apr 03, 2014 at 09:06:03PM +0200, Antoine Brodin wrote:
> 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.
pkgsrc has had the "need root" requirement in place for _years_ and people
have tried to fix it before. For these reasons, I don't think it's a trivial
thing to do this and I certainly do not have the time to investigate it at
the moment.
More information about the freebsd-python
mailing list