Subject: pkg/37115: x11/xhost compiles with ipv6 despite -inet6 option
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Yakovetsky Vladimir <yx@x.ua>
List: pkgsrc-bugs
Date: 10/12/2007 15:45:00
>Number:         37115
>Category:       pkg
>Synopsis:       x11/xhost compiles with ipv6 despite -inet6 option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 12 15:45:00 +0000 2007
>Originator:     Yakovetsky Vladimir
>Release:        NetBSD 4.99.31
>Organization:
>Environment:
System: NetBSD lrou.x.ua 4.99.31 NetBSD 4.99.31 (lrou_odd-1.852) #0: Sun Sep 30 18:16:16 EEST 2007 yx@lrou.x.ua:/sys/arch/i386/compile/lrou_odd i386
Architecture: i386
Machine: i386

>Description:
	x11/xhost compiles with ipv6 despite -inet6 option

>How-To-Repeat:
% cd /usr/pkgsrc/x11/xhost && make
...
checking if IPv6 support should be built... yes
...

>Fix:
:r x11/xhost/options.mk

PKG_OPTIONS_VAR=	PKG_OPTIONS.xhost
PKG_SUPPORTED_OPTIONS+=	inet6

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+=	--enable-ipv6
.else
CONFIGURE_ARGS+=	--disable-ipv6
.endif


--- x11/xhost/Makefile.orig
+++ x11/xhost/Makefile
@@ -17,6 +17,8 @@
 
 CONFIGURE_ENV+=		APP_MAN_SUFFIX=1
 
+.include "options.mk"
+
 .include "../../x11/libX11/buildlink3.mk"
 .include "../../x11/libXau/buildlink3.mk"
 .include "../../x11/libXmu/buildlink3.mk"