Subject: pkg/37119: misc/gnome-utils 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:01
>Number:         37119
>Category:       pkg
>Synopsis:       misc/gnome-utils 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:01 +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:
	misc/gnome-utils compiles with ipv6 despite -inet6 option

>How-To-Repeat:
% grep -i inet6 /etc/mk.conf
MKINET6=		no
PKG_DEFAULT_OPTIONS+=	-inet6

% cd /usr/pkgsrc/misc/gnome-utils && make && grep IPV6 `make -V '${WRKSRC}'`/config.h
#define ENABLE_IPV6 1


>Fix:
:r misc/gnome-utils/options.mk

PKG_OPTIONS_VAR=	PKG_OPTIONS.gnome-utils
PKG_SUPPORTED_OPTIONS+=	inet6

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

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


--- misc/gnome-utils/Makefile.orig
+++ misc/gnome-utils/Makefile
@@ -38,6 +38,8 @@
 
 BUILDLINK_DEPMETHOD.libXt?=	build
 
+.include "options.mk"
+
 .include "../../devel/GConf/schemas.mk"
 .include "../../devel/GConf-ui/buildlink3.mk"
 .include "../../devel/gettext-lib/buildlink3.mk"