On 09/19/15 16:35, Amit Kulkarni wrote: > Hello, > > How are you guys able to build userland? I double-checked that the > > http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/Makefile?rev=1.125&content-type=text/plain > > is still referring to ${SUDO} > > here is the result..... > > # make build > cd /usr/src/share/mk && exec /usr/bin/sudo -E make install > /bin/sh: /usr/bin/sudo: not found > *** Error 127 in /usr/src (Makefile:75 'build') > > Thanks > > I use this
cd /usr/src make obj cd /usr/src/etc && env DESTDIR=/ doas make distrib-dirs cd /usr/src make SUDO=doas build For building other things like ports ... $ grep SUDO /etc/mk.conf SUDO=/usr/bin/doas doas replaces sudo, which is now in ports.

