From owner-freebsd-bugs Sun Jul 28 18:20:04 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA22546 for bugs-outgoing; Sun, 28 Jul 1996 18:20:04 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA22540; Sun, 28 Jul 1996 18:20:02 -0700 (PDT) Resent-Date: Sun, 28 Jul 1996 18:20:02 -0700 (PDT) Resent-Message-Id: <199607290120.SAA22540@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, leonard@dstc.edu.au Received: from trapdoor.dstc.edu.au (root@trapdoor.dstc.edu.au [130.102.176.12]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id SAA22086 for ; Sun, 28 Jul 1996 18:11:32 -0700 (PDT) Received: from scry.dstc.edu.au (scry.dstc.edu.au [130.102.176.222]) by trapdoor.dstc.edu.au (8.6.9/8.6.12) with ESMTP id LAA10585 for ; Mon, 29 Jul 1996 11:11:27 +1000 Received: (from d@localhost) by scry.dstc.edu.au (8.6.12/8.6.12) id LAA05992; Mon, 29 Jul 1996 11:11:38 +1000 Message-Id: <199607290111.LAA05992@scry.dstc.edu.au> Date: Mon, 29 Jul 1996 11:11:38 +1000 From: David Leonard Reply-To: leonard@dstc.edu.au To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: docs/1437: bsd.doc.mk sees PRINTER and spews Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1437 >Category: docs >Synopsis: bsd.doc.mk sees PRINTER and spews >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 28 18:20:01 PDT 1996 >Last-Modified: >Originator: David Leonard >Organization: DSTC >Release: FreeBSD 2.1-STABLE i386 >Environment: FreeBSD scry.dstc.edu.au 2.2-CURRENT FreeBSD 2.2-CURRENT #2: Fri Jul 26 17:14:34 EST 1996 d@scry.dstc.edu.au:/u2/src/freebsd/sys/sys/compile/SCRY i386 >Description: I have a PRINTER envvar for convenience printing with lpr. make treats this as an override/default for the PRINTER variable in /usr/share/mk/bsd.doc.mk which is used as a default for the printer device type (for groff), not the printer name (for lpr) The upshot is that bsd.doc.mk breaks when PRINTER is not set to 'ascii' or 'ps', etc. Not only that, but make clean in /usr/src/usr.sbin/config/SMM.doc doesn't clean up after that. I havent tried other SMM.doc directories >How-To-Repeat: $ PRINTER=fs_duplex $ export PRINTER $ unset MAKE MAKEFLAGS $ cd /usr/src/usr.sbin/config/SMM.doc/ $ make (cd /u1/src/usr.sbin/config/SMM.doc; groff -Tfs_duplex -ms -o1- 0.t 1.t 2.t 3.t 4.t 5.t 6.t a.t b.t c.t d.t e.t) | gzip -c > paper.fs_duplex.gz groff: can't find `DESC' file groff:fatal error: invalid device `fs_duplex' >Fix: change all occurrences of PRINTER in bsd.doc.mk to PRINTERDEVICE or something like that, or unset PRINTER before making. >Audit-Trail: >Unformatted: