Subject: pkg/28708: mail/sendmail by default assumes IPv6 support
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <georg.schwarz@freenet.de>
List: pkgsrc-bugs
Date: 12/18/2004 23:03:00
>Number:         28708
>Category:       pkg
>Synopsis:       mail/sendmail by default assumes IPv6 support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 18 23:03:00 +0000 2004
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
mail/sendmail by default assumes IPv6 support which may lead to compiling to fail on non IPv6-supporting systems. mail/libmilter is affected as well.
>How-To-Repeat:

>Fix:
something like that:

--- options.mk.orig     2004-12-18 23:49:19.000000000 +0100
+++ options.mk  2004-12-18 23:54:51.000000000 +0100
@@ -5,7 +5,10 @@
                        socketmap
 
 .if !defined(PKG_OPTIONS.sendmail)
-PKG_DEFAULT_OPTIONS+=  inet6 tcpwrappers
+.if defined(USE_INET6) && !empty(USE_INET6:M[Yy][Ee][Ss])
+PKG_DEFAULT_OPTIONS+=  inet6
+.endif
+PKG_DEFAULT_OPTIONS+=  tcpwrappers
 .endif
 
 .include "../../mk/bsd.options.mk"

Maybe USE_INET6 should also be added to BUILD_DEFS.