Bug 226036 - Issue when building makewhatis
Summary: Issue when building makewhatis
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.1-STABLE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-19 10:05 UTC by Sergey
Modified: 2018-02-19 12:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey 2018-02-19 10:05:51 UTC
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.
Comment 1 Sergey 2018-02-19 12:55:29 UTC
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