Hello. Please see code below: /usr/src/usr.bin/Makefile: ... .if ${MK_MANDOCDB} == "no" # AND SUBDIR.${MK_MAN_UTILS}+= makewhatis -> here we don't build makewhatis as we have MK_MANDOCDB != 'no' which is WITHOUT_MANDOCDB == 'no' .endif /usr/src/Makefile.inc1: ... # Needed for share/man .if ${MK_MAN_UTILS} != "no" ITOOLS+=makewhatis -> here we add makewhatis to ITOOLS array that should be copied to temporary directory .endif So when you have following string commented out #WITHOUT_MANDOCDB=YES #WITHOUT_MAN_UTILS=YES Following error appears: Required tool makewhatis not found in PATH.
also if MK_MAN_UTILS is NO then manpath is not get built, but whereis binary will still get built, but doesn't function without manpath: $ whereis sh sh: manpath: not found