On Fri, Oct 24, 2014 at 02:34:54AM -0400, thev...@openmailbox.org wrote:
> with SUDO set in /etc/mk.conf:
>   if make release is run as root it will not proceed.
>   if run as a regular user it gets further, but fails on permissions.
> 
> without SUDO in /etc/mk.conf (and i presume the environment) it works fine.
> 
> is there any way around this allowing /etc/mk.conf (which is useful for 
> ports)?
> i can always move it temporarily, add it to my automated scripts, but is there
> a better way?
> 
> 
> $ cat /etc/mk.conf
> SUDO=/usr/bin/sudo

I think (and this is probably somewhere in the docs) you should use sudo -E.
without it (and if you're not in wsrc) DESTDIR and RELEASEDIR are
removed. check the default sudoers, and sudo manpage for details.

Landry.

Reply via email to