pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/39650: print/mpage fails on Solaris due to wrong papersize



>Number:         39650
>Category:       pkg
>Synopsis:       print/mpage fails on Solaris due to wrong papersize
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 29 15:10:00 +0000 2008
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
SunOS spare250 5.10 Generic_137111-03 sun4u sparc SUNW,Ultra-250
SunOS spare4200 5.10 Generic_120012-14 i86pc i386 i86pc
>Description:
The Makefile of print/mpage changes the macro PAGESIZE to either A4_PAPER or 
LETTER_PAPER:

.if ${PAPERSIZE} == "A4"
MAKE_ENV+=      PAGESIZE=PAGE_A4
.elif ((${PAPERSIZE} == "Letter") || (${PAPERSIZE} == "Letterdj"))
MAKE_ENV+=      PAGESIZE=PAGE_LETTER
.endif

At least under Solaris 2.8/Sparc and Solaris 2.10/i86pc this causes mpage to 
segfault immediately:

mpage: ignoring unknown paper type: PAGE_A4
Segmentation fault (core dumped)

Otherwise, it might generate dubious PostScript code.
>How-To-Repeat:

>Fix:
The correct values are "A4" and "Letter" respectively. Replace "PAGE_A4" with 
"A4" and "PAGE_LETTER" with "Letter" in the Makefile.

I wonder, what "Letterdj" is supposed to be. Something for a "DeskJet"? 
Personally, I would drop it.



Home | Main Index | Thread Index | Old Index