pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/firefox commit a patch for using thread-safe resol...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/70ce4fbfc0fd
branches:  trunk
changeset: 481414:70ce4fbfc0fd
user:      grant <grant%pkgsrc.org@localhost>
date:      Mon Oct 04 09:15:29 2004 +0000

description:
commit a patch for using thread-safe resolver library functions on
NetBSD >=2.0F - I've been running with it for months on -current
without any problems.

diffstat:

 www/firefox/distinfo         |   4 ++--
 www/firefox/patches/patch-br |  16 ++++++++++------
 2 files changed, 12 insertions(+), 8 deletions(-)

diffs (49 lines):

diff -r 8ccdc7f0bda8 -r 70ce4fbfc0fd www/firefox/distinfo
--- a/www/firefox/distinfo      Mon Oct 04 09:12:15 2004 +0000
+++ b/www/firefox/distinfo      Mon Oct 04 09:15:29 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2004/10/04 09:11:30 grant Exp $
+$NetBSD: distinfo,v 1.18 2004/10/04 09:15:29 grant Exp $
 
 SHA1 (firefox-0.10.1/firefox-1.0PR-source.tar.bz2) = e12f861c8e55fe591053f30e9c9259fa8e662c41
 Size (firefox-0.10.1/firefox-1.0PR-source.tar.bz2) = 32380173 bytes
@@ -23,7 +23,7 @@
 SHA1 (patch-bm) = 6bd7bf1262cec43b0324693d43929497c3fb3991
 SHA1 (patch-bo) = 357c4cacdc179191d6fe263b4eb62cc56b7ec25f
 SHA1 (patch-bq) = 3b8a951828b0e6906e4352027b4d36c9b1f8aaae
-SHA1 (patch-br) = aa48e974306fdbfc1e71b5fd9c1f5d18771143f5
+SHA1 (patch-br) = 6311da23ec126fe0959cb19502a22c106f8f975c
 SHA1 (patch-bs) = 81065130c96bf966b22e6abb767a5b674dcb52cb
 SHA1 (patch-bt) = 8ee09dd2acbbc0c002283b15eafbafb4f324948a
 SHA1 (patch-bu) = db33b8651e3cb1fbf9a18dbe78e1e8288cfda0ee
diff -r 8ccdc7f0bda8 -r 70ce4fbfc0fd www/firefox/patches/patch-br
--- a/www/firefox/patches/patch-br      Mon Oct 04 09:12:15 2004 +0000
+++ b/www/firefox/patches/patch-br      Mon Oct 04 09:15:29 2004 +0000
@@ -1,17 +1,21 @@
-$NetBSD: patch-br,v 1.2 2004/06/23 16:47:12 taya Exp $
+$NetBSD: patch-br,v 1.3 2004/10/04 09:15:29 grant Exp $
 
-diff -ru ../Orig/mozilla/nsprpub/pr/src/misc/prnetdb.c ./nsprpub/pr/src/misc/prnetdb.c
---- ../Orig/mozilla/nsprpub/pr/src/misc/prnetdb.c      2004-01-23 07:22:37.000000000 +0900
-+++ ./nsprpub/pr/src/misc/prnetdb.c    2004-06-15 23:56:46.000000000 +0900
-@@ -2094,7 +2094,12 @@
+--- nsprpub/pr/src/misc/prnetdb.c.orig 2004-01-23 09:22:37.000000000 +1100
++++ nsprpub/pr/src/misc/prnetdb.c
+@@ -2094,7 +2094,17 @@ PR_IMPLEMENT(PRAddrInfo *) PR_GetAddrInf
           */
          hints.ai_socktype = SOCK_STREAM;
  
-+        LOCK_DNS();
++/* NetBSD >=2.0F has a thread-safe resolver */
++#if defined(__NetBSD_Version__) && __NetBSD_Version__ < 200060000
++      LOCK_DNS();
++#endif
 +
          rv = GETADDRINFO(hostname, NULL, &hints, &res);
 +
++#if defined(__NetBSD_Version__) && __NetBSD_Version__ < 200060000
 +        UNLOCK_DNS();
++#endif
 +
          if (rv == 0)
              return (PRAddrInfo *) res;



Home | Main Index | Thread Index | Old Index