Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25735 - broken groff patch causes blank man pages
Summary: broken groff patch causes blank man pages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-01 17:02 UTC by splite
Modified: 2003-08-04 12:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to sys-apps/groff/files/groff-man-UTF-8.diff (patch2,566 bytes, patch)
2003-08-01 17:04 UTC, splite
Details | Diff
output of "man -t man > /tmp/groffbug" (groffbug,24.53 KB, text/plain)
2003-08-02 15:53 UTC, splite
Details

Note You need to log in before you can comment on or make changes to this bug.
Description splite 2003-08-01 17:02:14 UTC
The groff patch "groff-man-UTF-8.diff" inserts a trailing blank line into
/usr/share/groff/site-tmac/man.local that causes "man -t" to output an initial
blank page.  Royally screws duplex printing.  Patch to the patch attached.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 splite 2003-08-01 17:04:28 UTC
Created attachment 15346 [details, diff]
patch to sys-apps/groff/files/groff-man-UTF-8.diff
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-02 08:51:34 UTC
What is the issue here ?  Could you do a 'man -t man &> foo' and attach
foo ?
Comment 3 splite 2003-08-02 15:52:02 UTC
Sure.  When you run that command, then run your favorite PostScript viewer  
on foo, do you not see a blank page 1, followed by the real page 1?
 
The issue is the blank line at the bottom of 
/usr/share/groff/site-tmac/man.local.  Since it's not part of a macro,
*roff sees it as part of the document and outputs a "blank" (actually 
contains a single newline) page 1.  Also screws up the footer macro, as
.TH hasn't been run yet:
 
% zcat /usr/man/man1/pwd.1.gz | troff -b -ww -man-old > /dev/null
/usr/share/groff/1.18.1/tmac/an-old.tmac:251: backtrace: trap-invoked macro `an-
p-footer'
/usr/share/groff/1.18.1/tmac/an-old.tmac:217: backtrace: trap-invoked macro `an-footer'
/usr/share/groff/1.18.1/tmac/an-old.tmac:160: backtrace: macro `TH'
<standard input>:2: warning: `an-extra2' not defined
/usr/share/groff/1.18.1/tmac/an-old.tmac:251: backtrace: trap-invoked macro `an-p-footer'
/usr/share/groff/1.18.1/tmac/an-old.tmac:217: backtrace: trap-invoked macro `an-footer'
/usr/share/groff/1.18.1/tmac/an-old.tmac:160: backtrace: macro `TH'
<standard input>:2: warning: `an-extra1' not defined
 
Remove the blank line and the warnings and extra page go away.
Comment 4 splite 2003-08-02 15:53:21 UTC
Created attachment 15397 [details]
output of "man -t man > /tmp/groffbug"

No stderr output.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-04 12:02:31 UTC
Fixed in -r3, thanks.