ports/126303: Make it easy to change FD_SETSIZE while building dns/bind95

Eugene Grosbein eugen at grosbein.pp.ru
Wed Aug 6 14:50:04 UTC 2008


>Number:         126303
>Category:       ports
>Synopsis:       Make it easy to change FD_SETSIZE while building dns/bind95
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 06 14:50:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Eugene Grosbein
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
Svyaz-Service JSC
>Environment:
System: FreeBSD grosbein.pp.ru 7.0-STABLE FreeBSD 7.0-STABLE #0: Wed Aug 6 00:10:53 KRAST 2008 eu at grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV i386

>Description:
	I've upgraded my primary recursive DNS server to bind-9.5.0-P1
	when it was released and faces famous problem with
	bind reaching FD_SETSIZE=1024 limit easy. The entry 2406
	of CHANGES file of bind-9.5.0-P2 describes environment variable
	it supports to raise this limit at compile time.

	Let's support it with port knob to get all advantages it gives.
	
>How-To-Repeat:

	Run busy recursive DNS server with bind-9.5 built
	using dns/bind95 port with default settings.

>Fix:

	With this patch, one can build dns/bind95 with the following
	command:

	make WITH_FDSETSIZE=4096

--- Makefile.orig	2008-08-06 22:21:41.000000000 +0800
+++ Makefile	2008-08-06 22:24:21.000000000 +0800
@@ -13,6 +13,7 @@
 
 PORTNAME=	bind95
 PORTVERSION=	9.5.0.2
+PORTREVISION=	1
 CATEGORIES=	dns net ipv6
 MASTER_SITES=	${MASTER_SITE_ISC} \
 		http://dougbarton.us/Downloads/%SUBDIR%/
@@ -31,6 +32,10 @@
 CONFIGURE_ARGS=	--localstatedir=/var --disable-linux-caps \
 		--with-randomdev=/dev/random
 
+.ifdef WITH_FDSETSIZE
+CONFIGURE_ENV+=	STD_CDEFINES="-DISC_SOCKET_FDSETSIZE=${WITH_FDSETSIZE}"
+.endif
+
 USE_OPENSSL=	yes
 
 CONFLICTS=	bind9-9.[34].* bind9-dlz-* bind9-sdb-ldap-* host-*


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list