Subject: pkg/14054: rxvt should allow configure options in mk.conf
To: None <gnats-bugs@gnats.netbsd.org>
From: None <root@wongs.net>
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
>Closed-Date:
>Last-Modified:
>Originator:     Root of all evil
>Release:        NetBSD-1.5.1
>Organization:
	
>Environment:
	
System: NetBSD hrududu.wongs.net 1.5 NetBSD 1.5 (HRUDUDU) #8: Tue May 15 04:47:24 EDT 2001 hackerb9@hrududu.wongs.net:/usr/src/sys/arch/i386/compile/HRUDUDU i386


>Description:
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:
 
	CONFIGURE_ARGS+= ${SQUID_CONFIGURE_ARGS}

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.


>How-To-Repeat:
Not applicable
>Fix:
Either change every single package (yuck), or perhaps make some clever 
hackery in /usr/pkgsrc/mk/bsd.pkg.mk.

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

	RXVT_CONFIGURE_ARGS=

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

	CONFIGURE_ARGS+=	${RXVT_CONFIGURE_ARGS}

>Release-Note:
>Audit-Trail:
>Unformatted: