NetBSD Problem Report #9168

Received: (qmail 29090 invoked from network); 11 Jan 2000 18:41:58 -0000
Message-Id: <200001111841.LAA27176@nool.mines.edu>
Date: Tue, 11 Jan 2000 11:41:57 -0700 (MST)
From: jbernard@mines.edu
Reply-To: jbernard@mines.edu
To: gnats-bugs@gnats.netbsd.org
Subject: enscript pkg: add support for mk.conf: PAPERSIZE
X-Send-Pr-Version: 3.95

>Number:         9168
>Category:       pkg
>Synopsis:       enscript pkg: add support for mk.conf: PAPERSIZE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 11 10:42:00 +0000 2000
>Closed-Date:    Tue Jan 11 19:30:10 +0000 2000
>Last-Modified:  Tue Jan 11 19:31:28 +0000 2000
>Originator:     Jim Bernard
>Release:        Jan. 11, 2000
>Organization:
	Speaking for myself
>Environment:
System: NetBSD nool 1.4P NetBSD 1.4P (NOOL) #0: Sat Dec 25 12:44:51 MST 1999 local@nool:/home/tmp/compile/sys/arch/i386/compile/NOOL i386


>Description:
	The enscript package has a configure option to set the default
	paper size at configuration time.  Automatic use of this,
	driven by the PAPERSIZE pkg variable (from /etc/mk.conf) makes
	life easier, since the installer doesn't need to (a) discover
	the need to, and (b) remember to use setpapersize after installation.

>How-To-Repeat:
	Examine the configure options for enscript.  Examine the pkg Makefile.
	Note the lack of support for build-time choice of default paper
	size.

>Fix:
	Here's a patch.  I've assumed that since the valid PAPERSIZE
	values documented in mk.conf.example constitute a subset of
	those supported by enscript, it is reasonably safe just to
	pass the value of PAPERSIZE to configure, without checking
	for validity.

--- Makefile-dist	Mon Sep  6 05:58:01 1999
+++ Makefile	Tue Jan 11 11:18:26 2000
@@ -10,7 +10,11 @@
 HOMEPAGE=		http://www.ngs.fi/mtr/genscript/

 DEPENDS+=		papersize-*:../../print/papersize

 GNU_CONFIGURE=		yes
+.include "../../mk/bsd.prefs.mk"
+.if defined(PAPERSIZE)
+CONFIGURE_ARGS+=--with-media="${PAPERSIZE}"
+.endif

 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hubertf 
State-Changed-When: Tue Jan 11 11:30:10 PST 2000 
State-Changed-Why:  
patch applied, thanks! 

- 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.