Subject: pkg/31248: Patch for dillo 0.8.5 to handle NetBSD releases without re-entrant resolver functions
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <dhgutteridge@sympatico.ca>
List: pkgsrc-bugs
Date: 09/09/2005 07:57:51
>Number:         31248
>Category:       pkg
>Synopsis:       Patch for dillo 0.8.5 to handle NetBSD releases without re-entrant resolver functions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 09 07:57:51 +0000 2005
>Originator:     David H. Gutteridge
>Release:        2.1RC3
>Organization:
>Environment:
NetBSD arcusiii.nonus-porta.net 2.1_RC3 NetBSD 2.1_RC3 (GENERIC) #0: Thu Sep  1 10:54:48 UTC 2005  riz@faith.netbsd.org:/home/builds/ab/netbsd-2-1-RC3/i386/200508312123Z-obj/home/builds/ab/netbsd-2-1-RC3/src/sys/arch/i386/compile/GENERIC i386

>Description:
Dillo 0.8.5 introduced threaded DNS lookups, which can trigger hangs
in the NetBSD 2.x series because the resolver functions provided are
not re-entrant.  I've supplied a patch to disable threaded DNS lookups
in Dillo when compiling in this environment.  (I tried submitting this
last night, but it didn't appear to go through, so this is attempt
number two.)
>How-To-Repeat:

>Fix:
--- src/dns.c.orig      2005-05-14 09:16:28.000000000 +0000
+++ src/dns.c   2005-09-08 00:48:54.000000000 +0000
@@ -38,7 +38,9 @@
 /*
  * Note: comment the following line for debugging or gprof profiling.
  */
+#if !defined(__NetBSD_Version__) || __NetBSD_Version__ >= 299000900
 #define G_DNS_THREADED
+#endif

 /*
  * Uncomment the following line for libc5 optimization