Subject: Re: bulk build and sudo
To: None <tech-pkg@NetBSD.org>
From: Alan Barrett <firstname.lastname@example.org>
Date: 02/29/2004 10:41:56
On Sun, 29 Feb 2004, Charlie Allom wrote:
> I wish I could figure out the semantics of SU_CMD (ROOT_CMD??) to use
> sudo in normal pkgsrc building!
SU_CMD gets invoked with a (possibly complex) shell command as a single
argument. This is not documented, but you can figure it out from the
fact that the default SU_CMD is something like "su - root -c", and that
invocation of su expects a shell command as a single argument.
To use sudo, set SU_CMD=sudo sh -c. This is mentioned in
--apb (Alan Barrett)