Subject: default options set by pkgsrc
To: None <tech-pkg@NetBSD.org>
From: Klaus Heinz <k.heinz.nov.fuenf@onlinehome.de>
List: tech-pkg
Date: 11/20/2005 16:17:24
Hi,

while thinking about conversion from legacy variables (like USE_INET6)
to the options framework I found no way for pkgsrc to indicate a global
preference for specific options.

At the moment, pkgsrc enables the variable USE_INET6 if the OS supports
IPv6 (according to _OPSYS_HAS_INET6 in mk/platform/*.mk). Packages using
bsd.options.mk automatically have "inet6" selected as default because of
the mapping from USE_INET6 to "inet6" without including it in their
PKG_SUGGESTED_OPTIONS.

When USE_INET6 will be gone, so will be the automatic selection of
"inet6" if the package does not suggest this by itself.

So if I understand all this correctly, instead of a global setting
somewhere in pkgsrc/mk/ responsibility of setting certain options the
pkgsrc project wants to endorse (like "inet6") will reside at the package
level and during conversion I _have_ to include "inet6" in
PKG_SUGGESTED_OPTIONS?

ciao
     Klaus