[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-ports
Subject:    Re: editors/vim: Can't say "make" as normal user
From:       Marc Espie <espie () schutzenberger ! liafa ! jussieu ! fr>
Date:       2001-12-09 15:42:04
[Download RAW message or body]

On Sun, Dec 09, 2001 at 03:16:24PM +0100, A. Farber wrote:
> Hi,
> 
> maybe I'm wrong, but: I've always seen in examples
> "make && sudo make install" and have decided to organize
> things more cleanly this time, when installing 3.0 from
> scratch. So I have added the normal user "alex" to the "wsrc" 
> group and issued "chown alex:wsrc /usr/{src,ports,XF4}".
> I've also modified the /etc/sudoers to contain:
> 
>   alex alex = NOPASSWD: /usr/bin/make install
> 
> Then I've updated /usr/ports via CVS to -rOPENBSD_3_0 and tried:
> 
>   cd /usr/ports/editors/vim
>   env SUBDIR=stable:no_x11 make
> 
> After some time it has failed, because the normal user
> didn't have enough permissions to install the libiconv.
> The "env SUBDIR=stable:no_x11 make install" worked of 
> course, but then why bothering with sudo at all?

You're missing SUDO=sudo in your /etc/mk.conf

> So my question is: do you guys use something like 
> "sudo make install"? And if "yes", how do you organize
> it and why do you think it's better/safer?

Yes.

Just put the missing piece in /etc/mk.conf.

It's safer because only the steps that really need it are done by root.
It's really good at debunking a whole class of build problems in the ports
tree...

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic