Alistair Crooks <a...@pkgsrc.org> wrote:

> On 28 September 2017 at 08:40, Jeff_W <j...@sdf.org> wrote:
> > % cd /pkgsrc/foo/pkg-A
> > % sudo make clean && sudo make replace
> >
> > If the above breaks pkg-C:
> >
> > % cd /pkgsrc/foo/pkg-C
> > % sudo make clean && sudo make clean-depends && sudo make update
>
> Orthogonal to this discussion - pkgsrc was modified to use
> just-in-time su in the early 2000s, and avoids interesting issues like
> fetching sources as root. You are definitely encouraged to use it.
>
> If you'd prefer to use sudo, rather than su, put this in your etc/mk.conf:
>
> .if exists(${LOCALBASE}/bin/sudo)
> SU_CMD= ${LOCALBASE}/bin/sudo /bin/sh -c
> .endif

Nice; wasn't aware of that - thanks Alistair

Reply via email to