From 484cf800e9bbce51021d603f0065d57da91d9a7e Mon Sep 17 00:00:00 2001 From: taya Date: Wed, 21 May 2003 17:11:46 +0000 Subject: map EHOSTUNREACH to PR_HOST_UNREACHABLE_ERROR internal error number of mozilla and handle the case connect() returns EHOSTUNREACH correctly to try other address. fix PR pkg/20919 --- www/mozilla/distinfo | 4 +++- www/mozilla/patches/patch-bq | 13 +++++++++++++ www/mozilla/patches/patch-br | 15 +++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 www/mozilla/patches/patch-bq create mode 100644 www/mozilla/patches/patch-br (limited to 'www/mozilla') diff --git a/www/mozilla/distinfo b/www/mozilla/distinfo index c28cea52e08..9d5cca411da 100644 --- a/www/mozilla/distinfo +++ b/www/mozilla/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.39 2003/04/27 09:49:06 grant Exp $ +$NetBSD: distinfo,v 1.40 2003/05/21 17:11:46 taya Exp $ SHA1 (mozilla-source-1.3.tar.bz2) = fba8d38058740d45913f6ae1080fbbc3091ae901 Size (mozilla-source-1.3.tar.bz2) = 31128975 bytes @@ -17,3 +17,5 @@ SHA1 (patch-bm) = 7fa8e9701df888a52329b4ecc76ad166038fce06 SHA1 (patch-bn) = 475190596a9d143b659ff95d23c8b024acf41d88 SHA1 (patch-bo) = 6763f73c5736e9414e05495a9f92d7c7c8110d91 SHA1 (patch-bp) = 486763c887979accc405066aa3cf55693d79b3fc +SHA1 (patch-bq) = caac857168c6a9bca9eeebfd18603b993a34a60e +SHA1 (patch-br) = 98bf5f370c3d389ca3bd9b5c4ec7dec4559ce340 diff --git a/www/mozilla/patches/patch-bq b/www/mozilla/patches/patch-bq new file mode 100644 index 00000000000..5180e20a0a7 --- /dev/null +++ b/www/mozilla/patches/patch-bq @@ -0,0 +1,13 @@ +$NetBSD: patch-bq,v 1.1 2003/05/21 17:11:47 taya Exp $ + +diff -ru ../Orig/mozilla/netwerk/base/src/nsSocketTransport2.cpp ./netwerk/base/src/nsSocketTransport2.cpp +--- ../Orig/mozilla/netwerk/base/src/nsSocketTransport2.cpp 2003-04-30 01:12:18.000000000 +0900 ++++ ./netwerk/base/src/nsSocketTransport2.cpp 2003-05-22 00:33:20.000000000 +0900 +@@ -129,6 +129,7 @@ + break; + case PR_CONNECT_REFUSED_ERROR: + case PR_NETWORK_UNREACHABLE_ERROR: // XXX need new nsresult for this! ++ case PR_HOST_UNREACHABLE_ERROR: // XXX need new nsresult for this! + rv = NS_ERROR_CONNECTION_REFUSED; + break; + case PR_IO_TIMEOUT_ERROR: diff --git a/www/mozilla/patches/patch-br b/www/mozilla/patches/patch-br new file mode 100644 index 00000000000..549d5e6ba0f --- /dev/null +++ b/www/mozilla/patches/patch-br @@ -0,0 +1,15 @@ +$NetBSD: patch-br,v 1.1 2003/05/21 17:11:48 taya Exp $ + +diff -ru ../Orig/mozilla/nsprpub/pr/src/md/unix/unix_errors.c ./nsprpub/pr/src/md/unix/unix_errors.c +--- ../Orig/mozilla/nsprpub/pr/src/md/unix/unix_errors.c 2002-04-01 02:17:43.000000000 +0900 ++++ ./nsprpub/pr/src/md/unix/unix_errors.c 2003-05-22 00:34:57.000000000 +0900 +@@ -149,6 +149,9 @@ + case ENETUNREACH: + prError = PR_NETWORK_UNREACHABLE_ERROR; + break; ++ case EHOSTUNREACH: ++ prError = PR_HOST_UNREACHABLE_ERROR; ++ break; + case ENFILE: + prError = PR_SYS_DESC_TABLE_FULL_ERROR; + break; -- cgit v1.2.3