Subject: pkg/37150: graphics/sane-backends 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/19/2007 09:55:00
>Number: 37150
>Category: pkg
>Synopsis: graphics/sane-backends 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 19 09:55: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:
graphics/sane-backends compiles with ipv6 despite -inet6 option
>How-To-Repeat:
% grep -i inet6 /etc/mk.conf
MKINET6= no
PKG_DEFAULT_OPTIONS+= -inet6
% cd /usr/pkgsrc/graphics/sane-backends && make
...
checking whether to enable IPv6... yes
...
IPv6 support: yes
...
>Fix:
--- graphics/sane-backends/options.mk.orig
+++ graphics/sane-backends/options.mk
@@ -2,10 +2,17 @@
PKG_OPTIONS_VAR= PKG_OPTIONS.sane-backends
PKG_SUPPORTED_OPTIONS= sane-backends-hp3900
+PKG_SUPPORTED_OPTIONS+= inet6
PKG_SUGGESTED_OPTIONS= #defined
.include "../../mk/bsd.options.mk"
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
+
# Package-specific option-handling
###