Subject: toolchain/14616: doesn't define ${GROFF} without USETOOLS
To: None <gnats-bugs@gnats.netbsd.org>
From: Ben Harris <bjh21@netbsd.org>
List: netbsd-bugs
Date: 11/17/2001 16:05:36
>Number:         14616
>Category:       toolchain
>Synopsis:       <bsd.man.mk> doesn't define ${GROFF} without USETOOLS
>Confidential:   yes
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 17 08:06:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Ben Harris
>Release:        2001-11-17
>Organization:
>Environment:
NetBSD/acorn32

>Description:
If I try to build in a directory containing manual pages but no program
(e.g. src/share/man/man1), GROFF doesn't get set.  This causes builds to
fail.  This doesn't happen if USETOOLS is on, because then <bsd.own.mk>
defines GROFF.

>How-To-Repeat:
Sat Nov 17 15:57:46 GMT 2001
# cd /usr/src/share/man/man1
# make
-Tascii -mtty-char -mandoc /usr/src/share/man/man1/cd.1  > cd.cat1
-Tascii: not found
*** Error code 127

Stop.
make: stopped in /usr/src/share/man/man1

>Fix:
It looks like GROFF is defined in <bsd.sys.mk>, but <bsd.man.mk> doesn't
include it.  Maybe it should.

>Release-Note:
>Audit-Trail:
>Unformatted: