View Single Post
Old 18th May 2014
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by moisespedro View Post
pkg_add works fine but well I am a former Gentoo user, I like to compile stuff from source. Even knowing the binary packages works fine it is a problem that still bothers me...
While others have addressed most of the most probable issues (login.conf(5)), compiling as root is highly frowned upon. One may be able to successfully navigate builds like this for awhile, but at some point, errors can & will be made.

Section 15.3.3 discusses the general rule of ports tree preparation such that ports can be compiled as a regular user. I will even add that setting the SUDO variable to the following in mk.conf(5):

Code:
SUDO=/usr/bin/sudo -E
...is a worthy modification to the information found in the FAQ. Source:

http://marc.info/?l=openbsd-ports&m=139418997803709&w=2

...but to reiterate, unless there is a specific reason to do so, -release users have few reasons to compile from the ports tree. Use packages instead.
Reply With Quote