Subject: misc/100: make *.0 (man pages) problem when nroff aborts
To: None <gnats-admin>
From: None <mckim@lerc.nasa.gov>
List: netbsd-bugs
Date: 01/25/1994 12:05:08
>Number: 100
>Category: misc
>Synopsis: make *.0 (man pages) problem when nroff aborts
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (Misc Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Jan 25 12:05:07 1994
>Originator: Jim McKim
>Organization:
NASA Lewis Research Center
>Release:
>Environment:
System: NetBSD mildred 0.9a MILDRED#5 i386
Machine: i386
>Description:
If nroff aborts, rather than ending normally, an incorrect result can
be left in the output file. The system makefile rules don't discard
nroff output files if nroff aborts. If 'make -k' was done to rebuild
the system, during subsequent installation, the man pages will be
overwritten with these bogus output files.
>How-To-Repeat:
mv /usr/share/tmac /usr/share/tmac.xxx
cd /usr/src/sbin/ping
rm ping.0
make
make install
man ping
>Fix:
*** share/mk/sys.mk.orig Tue Jan 25 10:18:56 1994
--- share/mk/sys.mk Tue Jan 25 10:19:39 1994
***************
*** 144,149 ****
rm -f lex.yy.c
.8.0 .7.0 .6.0 .5.0 .4.0 .3.0 .2.0 .1.0:
! nroff -mandoc ${.IMPSRC} > ${.TARGET}
.include <bsd.own.mk>
--- 144,149 ----
rm -f lex.yy.c
.8.0 .7.0 .6.0 .5.0 .4.0 .3.0 .2.0 .1.0:
! nroff -mandoc ${.IMPSRC} > ${.TARGET} || rm ${.TARGET}
.include <bsd.own.mk>
>Audit-Trail:
>Unformatted:
------------------------------------------------------------------------------