Subject: pkg/14054: rxvt should allow configure options in mk.conf
To: None <>
From: None <>
List: netbsd-bugs
Date: 09/24/2001 13:52:02
>Number:         14054
>Category:       pkg
>Synopsis:       pkgs should allow configure options in mk.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 24 10:53:00 PDT 2001
>Originator:     Root of all evil
>Release:        NetBSD-1.5.1
System: NetBSD 1.5 NetBSD 1.5 (HRUDUDU) #8: Tue May 15 04:47:24 EDT 2001 i386

Most pkgs don't allow options to be passed to the configure script
without editing the Makefile directly. Unfortunately, local changes to
the Makefile can be overwritten when the pkgsrc tree is updated.

It would be nice if all packages had something similar to the squid
pkg which allows a local site to put configuration options in
/etc/mk.conf and then has a line like this in its Makefile:

The particular itch I'm trying to scratch here is the rxvt pkg which
has many compile time switches that cannot be changed at run time.

Not applicable
Either change every single package (yuck), or perhaps make some clever 
hackery in /usr/pkgsrc/mk/

To fix this for just rxvt, add in /etc/mk.conf:


And in /usr/pkg/x11/rxvt/Makefile (after all the standard configure
args are set so that it can override them):