Subject: pkg/37064: mail/milter-greylist configure script ignores --disable-dnsrbl
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <list+2007@smokva.net>
List: pkgsrc-bugs
Date: 10/05/2007 15:25:00
>Number:         37064
>Category:       pkg
>Synopsis:       mail/milter-greylist configure script ignores --disable-dnsrbl
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 05 15:25:00 +0000 2007
>Originator:     Petar Bogdanovic
>Release:        NetBSD 4.0_BETA2
>Organization:
>Environment:
NetBSD starling.smokva.net 4.0_BETA2 NetBSD 4.0_BETA2 (GENERIC) #0:
Sun Jul 22 03:20:57 PDT 2007  builds@wb42:/home/builds/ab/netbsd-4/
i386/200707210002Z-obj/home/builds/ab/netbsd-4/src/sys/arch/i386/
compile/GENERIC i386
>Description:
mail/milter-greylist does not handle:

PKG_OPTIONS.milter-greylist = -spf -dnsrbl

correctly. The configure script prints:

> --enable-dnsrbl used but DNS resolver is not thread safe
> Try installing BIND9 and using --with-libbind, or if you
> know what you are doing, use --with-thread-safe-resolve

even if --disable-dnsrbl is set.
>How-To-Repeat:
Build mail/milter-greylist without dnsrbl.
>Fix:
The following patch worked for me but it's ugly (and wrong) since
I don't know much about autoconf:

--- configure.orig      2007-10-05 14:11:17.000000000 +0000
+++ configure   2007-10-05 14:13:08.000000000 +0000
@@ -9033,11 +9033,6 @@
   enableval="$enable_dnsrbl"
   if test x$enableval = xyes -a $rdns = yes; then
                CFLAGS=$CFLAGS" -DUSE_DNSRBL"
-        else
-               echo "--enable-dnsrbl used but DNS resolver is not thread safe";
-               echo "Try installing BIND9 and using --with-libbind, or if you";
-               echo "know what you are doing, use --with-thread-safe-resolver";
-               exit 1;
         fi
 
 fi;