Hi, thev...@openmailbox.org wrote on Tue, Oct 21, 2014 at 06:12:08PM -0400:
> i had a problem recently with compiling ports as a normal user, and it > was pointed out to me i needed to be in group wsrc. Not strictly true, that's just one way to do it, though admittedly a reasonable and common one. > the relevant part of ports(7) is: > > install, and so on all the way to fetch. In typical use, one will > only run install explicitly (as normal user, with SUDO defined > in /etc/mk.conf), or build (as user), then install (as root). > > i replied with a patch for the ports(7) page to include the fact of the user > needs to be in wsrc, but since it was at the tail end of that subject, it > likely got missed/ignored there. I did look at the patch. To me, it did not seem good enough to commit it and not bad enough to reject it, so i ended up not knowing what to say, so i said nothing. > so to avoid future confusions for others (after all, i did RTFM!), > the patch changes the above to: > > install, and so on all the way to fetch. In typical use, one will run > install explicitly (as normal user, in group wsrc, with SUDO defined in > /etc/mk.conf), or build (as user), then install (as root). I hate that particular wording. The topic at hand is bsd.port.mk(5) targets. You are turning this into a typical HOWTO: Type this, type that, no need to understand what you are doing. Which user to run the targets as is already tangential to the topic, but it does maybe help a bit to illustrate the purpose of the targets. Now you start talking about how to configure sudoers(5) correctly, which is completely off-topic - in typical HOWTO style, that is, without even making it clear what you are talking about, not even mentioning the new topic you switched to, sudoers(5). I don't think this can be fixed by adding more information about sudo, that would cause us to digress even more. I have no idea how to fix it, maybe someone else has. As a matter of fact, i hate the whole manual page, ports(7). It's mostly a cheap imitation of the real thing, bsd.port.mk(5), incomplete and imprecise as it stands. A bit of this, a bit of that, not very much OpenBSD manual style in the first place. Given that i hate it and don't really know how to improve it, i'll shut up now. Sorry, Ingo > --- ports.7 Mon Sep 8 02:45:35 2014 > +++ ports.7.new Tue Oct 14 02:29:30 2014 > @@ -228,9 +228,11 @@ by > .Ar install , > and so on all the way to > .Ar fetch . > -In typical use, one will only run > +In typical use, one will run > .Ar install > -explicitly (as normal user, with > +explicitly (as normal user, in group > +.Sy wsrc , > +with > .Ev SUDO > defined in > .Pa /etc/mk.conf ) ,