Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 1996 11:11:38 +1000
From:      David Leonard <d@scry.dstc.edu.au>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/1437: bsd.doc.mk sees PRINTER and spews
Message-ID:  <199607290111.LAA05992@scry.dstc.edu.au>
Resent-Message-ID: <199607290120.SAA22540@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607290111.LAA05992>