Subject: pkg/28316: mail/fetchmail compiles with IPv6 support enabled despite USE_INET6=NO
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <georg.schwarz@freenet.de>
List: pkgsrc-bugs
Date: 11/14/2004 20:58:00
>Number:         28316
>Category:       pkg
>Synopsis:       mail/fetchmail compiles with IPv6 support enabled despite USE_INET6=NO
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 14 20:58:00 +0000 2004
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
lorenz 207% /usr/local/pkg/bin/bmake show-vars VARNAMES=CONFIGURE_ARGS
--without-hesiod --enable-inet6 --with-kerberos=no --with-ssl=/usr/local/pkg --host=mips-sgi-irix5.3 --prefix=/usr/local/pkg --with-libiconv-prefix=/usr/local/pkg --with-libintl-prefix=/usr/local/pkg
lorenz 208% /usr/local/pkg/bin/bmake show-vars VARNAMES=USE_INET6
NO

and also:
lorenz 210% /usr/local/pkg/bin/bmake show-vars VARNAMES=PKG_DEFAULT_OPTIONS
canna esound idea sj3 wnn4 inet6 ssl

This is due to the following lines in options.mk, which in my opinion do not make sense:

.if !defined(PKG_OPTIONS.fetchmail)
PKG_DEFAULT_OPTIONS+=   inet6 ssl
.endif


>How-To-Repeat:
should occur on any system without IPv6 support
>Fix:
Remove the above three lines from options.mk.
Once you are at it, set BUILD_DEFS suitably.