Subject: lib/25340: Broken curses documentation
To: None <gnats-bugs@gnats.netbsd.org>
From: Juho K.Juopperi <jkj@lcfnet.org>
List: netbsd-bugs
Date: 04/27/2004 02:28:23
>Number:         25340
>Category:       lib
>Synopsis:       Problems with Makefile and macros in curses documentation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 26 23:29:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Juho Juopperi
>Release:        NetBSD 1.6.2_STABLE (April 23 2004)
>Organization:
>Environment:
System: NetBSD jerkov 1.6.2_STABLE NetBSD 1.6.2_STABLE (JERKOV) #4: Fri Apr 23 03:31:44 EEST 2004 root@jerkov:/usr/src/sys/arch/i386/compile/JERKOV i386
Architecture: i386
Machine: i386
>Description:
	In curses documentation under /usr/share/doc/psd/19.curses
	Makefile defines macros to be used with groff (MACROS=-me),
	but these macros are not used and paper.ps ends up looking
	funny.

	Also /usr/share/doc/psd/19.curses/macros file is missing
	a space (' ') character at the end of line 39 ".ds , ,\".
	The macro and the one on the next line do not work.

>How-To-Repeat:
	Run make and look at paper.ps

>Fix:
Patches for "Makefile" and "macros". Note the extra ' ' on the
second patch.

--- src/lib/libcurses/PSD.doc/Makefile.old	Tue Apr 27 01:41:00 2004
+++ src/lib/libcurses/PSD.doc/Makefile	Tue Apr 27 01:41:28 2004
@@ -28,7 +28,7 @@
 	${VFONT} ${.IMPSRC} | grep -v "^'wh" > ${.TARGET}
 
 paper.ps: ${SRCS} ${OTHER} ${CEXAMPLES} ${TBLFILES}
-	${SOELIM} -I${.CURDIR} Master | ${ROFF} > ${.TARGET}
+	${SOELIM} -I${.CURDIR} Master | ${ROFF} ${MACROS} > ${.TARGET}
 
 # Unfortunately our make doesn't handle single-suffix rules.
 intro.2.tbl: intro.2


--- src/lib/libcurses/PSD.doc/macros.old	Tue Apr 27 01:28:25 2004
+++ src/lib/libcurses/PSD.doc/macros	Tue Apr 27 01:28:40 2004
@@ -36,7 +36,7 @@
 .\" this is the uncommented version.  The commented one is in "macros.coms"
 .ie t .ds _ \d\(mi\u
 .el .ds _ _
-.ds , ,\
+.ds , ,\ 
 .ds y (y\*,x) co-ordinates
 .ds db database
 .ie n .ds f \fI
>Release-Note:
>Audit-Trail:
>Unformatted: