NetBSD Problem Report #100

From gnats  Tue Jan 25 11:53:19 1994
Received: from aruba.lerc.nasa.gov (root@aruba.lerc.nasa.gov [139.88.35.16]) by sun-lamp.cs.berkeley.edu (8.6.4/8.6.4) with SMTP id LAA01013 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Tue, 25 Jan 1994 11:45:29 -0800
Message-Id: <199401251554.AA21239@flick.lerc.nasa.gov>
Date: Tue, 25 Jan 1994 10:54:56 -0500
From: mckim@lerc.nasa.gov
Reply-To: mckim@lerc.nasa.gov
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: make *.0 (man pages) problem when nroff aborts
X-Send-Pr-Version: 3.2

>Number:         100
>Category:       misc
>Synopsis:       make *.0 (man pages) problem when nroff aborts
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 25 12:05:07 +0000 1994
>Closed-Date:    Tue Jan 25 21:56:08 +0000 1994
>Last-Modified:  Sun Apr 06 16:18:11 +0000 2003
>Originator:     Jim McKim
>Release:        
>Organization:
NASA Lewis Research Center
>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>


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: cgd 
State-Changed-When: Tue Jan 25 13:56:08 PST 1994 
State-Changed-Why:  
a (better) fix was made. 

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.