Subject: Re: HEADS UP: Alternatives system added
To: Louis Guillaume <>
From: Julio M. Merino Vidal <>
List: tech-pkg
Date: 01/25/2005 20:46:06
On Tue, Jan 25, 2005 at 02:34:39PM -0500, Louis Guillaume wrote:
> Julio M. Merino Vidal wrote:
> Wouldn't this be a good place to use something like...
>  PKG_OPTIONS.vim += pkg_alternatives
> ... rather than making an "all-or-none" use of pkg_alternatives? Perhaps 
> I want it for "vi" but not for something else.

Short answer: no.

Longer one: build time options are generally bad, and they should be
avoided whenever possible.  There is people that uses binary packages
rather than pkgsrc, and they should be able to get the most out of them
without having to rebuild with special options.

I'm thinking now about adding two extra configuration files, say IGNORE
and ACCEPT, both placed in the configuration directory, which have a list
of packages (really, regular expressions) that have to be ignored or
considered when selecting alternatives.

I.e., you'd put 'vim.*' in IGNORE, and none of the vim packages could be
ever considered as an alternative for any of the wrappers.

May do it soon...


Julio M. Merino Vidal <>
The NetBSD Project -