NetBSD Problem Report #33524

From plunky@rya-online.net  Sun May 21 17:40:47 2006
Return-Path: <plunky@rya-online.net>
Received: from mail06.svc.cra.dublin.eircom.net (mail06.svc.cra.dublin.eircom.net [159.134.118.22])
	by narn.NetBSD.org (Postfix) with SMTP id 2F98F63B88E
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 21 May 2006 17:40:46 +0000 (UTC)
Message-Id: <1148233066.591962.1221.nullmailer@galant.ukfsn.org>
Date: Sun, 21 May 2006 18:37:46 +0100
From: plunky@rya-online.net
Reply-To: plunky@rya-online.net
To: gnats-bugs@NetBSD.org
Subject: openldap fails to take note of 'inet6' option (with patch)
X-Send-Pr-Version: 3.95

>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:    ghen
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun May 21 17:45:00 +0000 2006
>Closed-Date:    Wed May 31 18:48:15 +0000 2006
>Last-Modified:  Wed May 31 18:48:15 +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

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Sun, 21 May 2006 19:20:33 +0000
Responsible-Changed-Why:
Over to maintainer.


Responsible-Changed-From-To: joerg->ghen
Responsible-Changed-By: ghen@netbsd.org
Responsible-Changed-When: Wed, 31 May 2006 18:48:15 +0000
Responsible-Changed-Why:
New MAINTAINER.


State-Changed-From-To: open->closed
State-Changed-By: ghen@netbsd.org
State-Changed-When: Wed, 31 May 2006 18:48:15 +0000
State-Changed-Why:
Apparantly the commit message didn't properly get forwarded here, but
I've applied your change to the new openldap-client and -server packages.
Thanks for the PR!


>Unformatted:
 	system is built with USE_INET6=no
 	PKG_DEFAULT_OPTIONS+=-inet6
 	pkgsrc snapshot of early may.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.