Subject: pkg/33524: openldap fails to take note of 'inet6' option (with patch)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <plunky@rya-online.net>
List: pkgsrc-bugs
Date: 05/21/2006 17:45:00
>Number: 33524
>Category: pkg
>Synopsis: databases/openldap fails to take note of 'inet6' package option and fails to build
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun May 21 17:45:00 +0000 2006
>Originator: Iain Hibbert
>Release: NetBSD 3.99.20
>Organization:
http://maps.google.com/maps?q=ireland&ll=52.2711,-9.8630&spn=0.0244,0.0822&t=k
>Environment:
System: NetBSD galant 3.99.20 NetBSD 3.99.20 (GALANT) #3: Fri May 19 13:10:02 BST 2006 plunky@galant:/home/obj/sys/arch/i386/compile/GALANT i386
Architecture: i386
Machine: i386
>Description:
Ok, so I have USE_INET6=no in my /etc/mk.conf file and the system is built and installed with
this, which makes libc not compile in the in6addr_any symbol (among other things)
when I come to build databases/openldap it fails to take note of the -inet6
package option and compilation fails with missing symbol
>How-To-Repeat:
yeah, do all that.
>Fix:
Apologies, my pkgsrc is a couple of weeks out of date and I see that openldap was updated
in the meantime, but the options have not changed. This patch might have to be fuzzed a bit
but it takes notice of the -inet6 package option for openldap and building proceeds as
normal, but with no INET6 support.
Note that this changes the default behaviour of the openldap package to not use INET6
unless the sysadmin requests it, but I think thats as it should be since it is a general
option and there is no 'noinet6' option.
--- options.mk.orig 2006-05-21 18:02:56.000000000 +0100
+++ options.mk 2006-05-21 18:05:42.000000000 +0100
@@ -2,6 +2,6 @@
PKG_OPTIONS_VAR= PKG_OPTIONS.openldap
-PKG_SUPPORTED_OPTIONS= bdb kerberos sasl slp
+PKG_SUPPORTED_OPTIONS= bdb kerberos sasl slp inet6
PKG_OPTIONS_OPTIONAL_GROUPS+= odbc
PKG_OPTIONS_GROUP.odbc= iodbc unixodbc
PKG_SUGGESTED_OPTIONS= bdb
@@ -74,3 +74,12 @@
. include "../../net/openslp/buildlink3.mk"
CONFIGURE_ARGS+= --enable-slp
.endif
+
+###
+### IPv6 support
+###
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
>Unformatted:
system is built with USE_INET6=no
PKG_DEFAULT_OPTIONS+=-inet6
pkgsrc snapshot of early may.