On 2012/05/05 18:23, Antoine Jacoutot wrote:
> On Sat, May 05, 2012 at 06:16:59PM +0200, Tobias Ulmer wrote:
> > > For building ports you're supposed to use
> > > SUDO=/usr/bin/sudo -E
> > > in /etc/mk.conf
> > > 
> > > I guess the documentation should be made aware of that... Is using -E 
> > > helping in your case?
> > 
> > Interesting.
> > 
> > Indeed it does fix my problem. But that seems like a hack because
> > sudoers lists all these "unnecessary" ports variables.
> 
> Yes because at first people tried to add missing variables but it became 
> unmaintainable in the long run because there are just too many with some 
> being removed/added.

I haven't tested yet but I think tobiasu's diff may fix it so we don't need
to list all the vars in sudoers or use sudo -E any more. If it's not enough then
it should just be a case of looking for more sudo calls and changing them the
same way i.e. usng env(1) to get the vars past sudo.

Reply via email to