Subject: pkg/9100: teTeX-bin pkg sets wrong default paper size
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jbernard@mines.edu>
List: netbsd-bugs
Date: 01/01/2000 14:06:36
>Number: 9100
>Category: pkg
>Synopsis: teTeX-bin pkg sets wrong default paper size
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager (NetBSD software packages system bug manager)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 1 14:06:00 2000
>Last-Modified:
>Originator: Jim Bernard
>Organization:
Speaking for myself
>Release: January 1, 2000
>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 \
>Audit-Trail:
>Unformatted: