NetBSD Problem Report #9100

Received: (qmail 21074 invoked from network); 1 Jan 2000 22:05:23 -0000
Message-Id: <200001012205.PAA01536@zoo>
Date: Sat, 1 Jan 2000 15:05:04 -0700 (MST)
From: jbernard@mines.edu
Reply-To: jbernard@mines.edu
To: gnats-bugs@gnats.netbsd.org
Subject: teTeX-bin pkg sets wrong default paper size
X-Send-Pr-Version: 3.95

>Number:         9100
>Category:       pkg
>Synopsis:       teTeX-bin pkg sets wrong default paper size
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 01 14:06:00 +0000 2000
>Closed-Date:    Sun Jan 02 01:30:00 +0000 2000
>Last-Modified:  Sun Jan 02 01:33:36 +0000 2000
>Originator:     Jim Bernard
>Release:        January 1, 2000
>Organization:
	Speaking for myself
>Environment:
System: NetBSD zoo 1.4P NetBSD 1.4P (ZOO) #0: Fri Dec 31 21:09:59 MST 1999 local@zoo:/home/local/compile/sys/arch/i386/compile/ZOO i386


>Description:
	Of course, *any* default paper size is wrong *somewhere*, and this
	pkg sets A4 as the default via the configure argument "--enable-a4".

>How-To-Repeat:
	Read the Makefile and wonder whether --enable-a4 just enables the
	A4 paper size as an option or makes it the default.  Unpack the
	sources and go digging.  The configure script says that option
	makes A4 the default.

>Fix:
	The package system provides a very nice mechanism for dealing with
	this recurring issue.  Please, let's make use of it!  Here's a patch:

--- Makefile-dist	Fri Oct  8 05:32:37 1999
+++ Makefile	Sat Jan  1 14:48:03 2000
@@ -22,20 +22,22 @@
 DIST_SUBDIR=	teTeX
 USE_GMAKE=	yes
 USE_X11=	yes
 CFLAGS+=	-Dunix
 GNU_CONFIGURE=	yes
+.if defined(PAPERSIZE) && ${PAPERSIZE} == "A4"
+CONFIGURE_ARGS+=--enable-a4
+.endif
 CONFIGURE_ARGS+=--without-texinfo \
 		--without-dialog \
 		--disable-multiplatform \
 		--enable-ipc \
 		--enable-auto-core \
 		--with-epsfwin \
 		--with-hp2627win \
 		--with-mftalkwin \
 		--with-x11 \
-		--enable-a4 \
 		--with-libwww-config=${LOCALBASE}/bin/libwww-config \
 		--with-system-ncurses \
 		--with-ncurses-libdir=${LOCALBASE}/lib \
 		--with-ncurses-include=${LOCALBASE}/include \
 		--with-system-pnglib \
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hubertf 
State-Changed-When: Sat Jan 1 17:30:00 PST 2000 
State-Changed-Why:  
I've applied the patches, with one mall change: One has to  
.include "../../mk/bsd.prefs.mk" to get PAPERSIZE defined. 

Ciao, 

Hubert 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.