summaryrefslogtreecommitdiff
path: root/devel/nspr/patches
diff options
context:
space:
mode:
authorben <ben>2006-02-02 05:51:14 +0000
committerben <ben>2006-02-02 05:51:14 +0000
commit4037e1d8981f4ca9505016c5dce600cdd1840be2 (patch)
tree10a21c0e084f416a007f9a0b953ef19813f9d0fb /devel/nspr/patches
parent9705d2155f20f0e96bfd15de3ac31169389f2c3a (diff)
downloadpkgsrc-4037e1d8981f4ca9505016c5dce600cdd1840be2.tar.gz
Update to nspr-4.6.1. This addresses PR#32689. Tested with gaim.
Fix typo, MASTER_SIZE_MOZILLA=MASTER_SITE_MOZILLA. Fix version number in MASTER_SITES. Fix MASTER_SITES to contain valid URLs to the nspr distribution.
Diffstat (limited to 'devel/nspr/patches')
-rw-r--r--devel/nspr/patches/patch-ab67
-rw-r--r--devel/nspr/patches/patch-ac25
-rw-r--r--devel/nspr/patches/patch-ad39
-rw-r--r--devel/nspr/patches/patch-ae13
4 files changed, 42 insertions, 102 deletions
diff --git a/devel/nspr/patches/patch-ab b/devel/nspr/patches/patch-ab
index ba2ba7487d4..ae4e614b862 100644
--- a/devel/nspr/patches/patch-ab
+++ b/devel/nspr/patches/patch-ab
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.1 2005/01/25 14:50:39 jschauma Exp $
+$NetBSD: patch-ab,v 1.2 2006/02/02 05:51:14 ben Exp $
---- ../pr/include/md/_netbsd.h.orig 2003-09-12 02:24:53.000000000 +0900
-+++ ../pr/include/md/_netbsd.h 2004-06-10 23:07:02.000000000 +0900
-@@ -44,16 +44,26 @@
+--- ../pr/include/md/_netbsd.h.orig Wed Feb 1 19:41:54 2006
++++ ../pr/include/md/_netbsd.h Wed Feb 1 19:44:48 2006
+@@ -44,6 +44,8 @@
#define _PR_SI_ARCHITECTURE "x86"
#elif defined(__alpha__)
#define _PR_SI_ARCHITECTURE "alpha"
@@ -11,62 +11,3 @@ $NetBSD: patch-ab,v 1.1 2005/01/25 14:50:39 jschauma Exp $
#elif defined(__m68k__)
#define _PR_SI_ARCHITECTURE "m68k"
#elif defined(__powerpc__)
- #define _PR_SI_ARCHITECTURE "powerpc"
-+#elif defined(__sparc_v9__)
-+#define _PR_SI_ARCHITECTURE "sparc64"
- #elif defined(__sparc__)
- #define _PR_SI_ARCHITECTURE "sparc"
- #elif defined(__mips__)
- #define _PR_SI_ARCHITECTURE "mips"
- #elif defined(__arm32__)
- #define _PR_SI_ARCHITECTURE "arm32"
-+#elif defined(__ARMEL__)
-+#define _PR_SI_ARCHITECTURE "armel"
-+#elif defined(__ARMEL__)
-+#define _PR_SI_ARCHITECTURE "armeb"
-+#elif defined(__arm__)
-+#define _PR_SI_ARCHITECTURE "arm"
- #endif
-
- #if defined(__ELF__)
-@@ -86,6 +96,12 @@
- #define _PR_INET6_PROBE
- #endif
-
-+#if __NetBSD_Version__ >= 106370000
-+/* NetBSD 1.6ZK */
-+#define _PR_HAVE_GETPROTO_R
-+#define _PR_HAVE_GETPROTO_R_INT
-+#endif
-+
- #define USE_SETJMP
-
- #ifndef _PR_PTHREADS
-@@ -108,7 +124,17 @@
- }
- #define _MD_GET_SP(_thread) CONTEXT(_thread)[2]
- #endif
--#ifdef __sparc__
-+#ifdef __sparc_v9__
-+#define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
-+{ \
-+ sigsetjmp(CONTEXT(_thread), 1); \
-+ CONTEXT(_thread)[1] = (unsigned char*) ((_sp) - 176 - 0x7ff); \
-+ CONTEXT(_thread)[2] = (long) _main; \
-+ CONTEXT(_thread)[3] = (long) _main + 4; \
-+ *status = PR_TRUE; \
-+}
-+#define _MD_GET_SP(_thread) (CONTEXT(_thread)[2]+0x7ff)
-+#elif defined(__sparc__)
- #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
- { \
- sigsetjmp(CONTEXT(_thread), 1); \
-@@ -150,7 +176,7 @@
- }
- #define _MD_GET_SP(_thread) CONTEXT(_thread)[32]
- #endif
--#ifdef __arm32__
-+#ifdef __arm__
- #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
- { \
- sigsetjmp(CONTEXT(_thread), 1); \
diff --git a/devel/nspr/patches/patch-ac b/devel/nspr/patches/patch-ac
index 2b247048e3c..0c576e150a6 100644
--- a/devel/nspr/patches/patch-ac
+++ b/devel/nspr/patches/patch-ac
@@ -1,8 +1,17 @@
-$NetBSD: patch-ac,v 1.2 2005/08/12 20:07:35 reed Exp $
+$NetBSD: patch-ac,v 1.3 2006/02/02 05:51:14 ben Exp $
---- ../configure.in.orig 2003-11-24 16:09:04.000000000 -0800
-+++ ../configure.in 2005-08-12 12:35:10.000000000 -0700
-@@ -913,7 +913,7 @@
+--- ../configure.in.orig Fri Sep 2 14:44:37 2005
++++ ../configure.in Wed Feb 1 19:58:57 2006
+@@ -57,7 +57,7 @@
+ USE_IPV6=
+ USE_MDUPDATE=
+ _MACOSX_DEPLOYMENT_TARGET=
+-_OPTIMIZE_FLAGS=-O
++_OPTIMIZE_FLAGS=
+ _DEBUG_FLAGS=-g
+ MOZ_DEBUG=1
+ MOZ_OPTIMIZE=
+@@ -1025,7 +1025,7 @@
PR_MD_CSRCS=dgux.c
;;
@@ -11,7 +20,7 @@ $NetBSD: patch-ac,v 1.2 2005/08/12 20:07:35 reed Exp $
if test -z "$USE_NSPR_THREADS"; then
USE_PTHREADS=1
fi
-@@ -932,6 +932,9 @@
+@@ -1045,6 +1045,9 @@
DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
MDCPUCFG_H=_freebsd.cfg
PR_MD_CSRCS=freebsd.c
@@ -21,7 +30,7 @@ $NetBSD: patch-ac,v 1.2 2005/08/12 20:07:35 reed Exp $
;;
*-hpux*)
-@@ -1408,6 +1411,7 @@
+@@ -1544,6 +1547,7 @@
AC_DEFINE(XP_UNIX)
AC_DEFINE(NETBSD)
AC_DEFINE(HAVE_BSD_FLOCK)
@@ -29,7 +38,7 @@ $NetBSD: patch-ac,v 1.2 2005/08/12 20:07:35 reed Exp $
USE_NSPR_THREADS=1
MDCPUCFG_H=_netbsd.cfg
PR_MD_CSRCS=netbsd.c
-@@ -2165,7 +2169,7 @@
+@@ -2345,7 +2349,7 @@
_PTHREAD_LDFLAGS=
fi
;;
@@ -38,7 +47,7 @@ $NetBSD: patch-ac,v 1.2 2005/08/12 20:07:35 reed Exp $
AC_DEFINE(_REENTRANT)
AC_DEFINE(_THREAD_SAFE)
dnl -pthread links in -lc_r, so don't specify it explicitly.
-@@ -2236,7 +2240,7 @@
+@@ -2426,7 +2430,7 @@
AC_DEFINE(_PR_NEED_PTHREAD_INIT)
fi
;;
diff --git a/devel/nspr/patches/patch-ad b/devel/nspr/patches/patch-ad
index ece2b7dc561..33d25d4d404 100644
--- a/devel/nspr/patches/patch-ad
+++ b/devel/nspr/patches/patch-ad
@@ -1,19 +1,22 @@
-$NetBSD: patch-ad,v 1.1 2005/01/25 14:50:39 jschauma Exp $
+$NetBSD: patch-ad,v 1.2 2006/02/02 05:51:14 ben Exp $
---- ../pr/src/io/prprf.c.orig Tue Dec 21 11:15:40 2004
-+++ ../pr/src/io/prprf.c Tue Dec 21 11:29:27 2004
-@@ -51,7 +51,13 @@
- ** Note: on some platforms va_list is defined as an array,
- ** and requires array notation.
- */
--#if (defined(LINUX) && defined(__powerpc__)) || \
-+#if (defined(LINUX) && defined(__x86_64__))
-+#define VARARGS_ASSIGN(foo, bar) __va_copy((foo), (bar))
-+#elif (defined (__NetBSD__) && \
-+ (defined(__amd64__) || \
-+ (defined(__powerpc__) && __NetBSD_Version__ >= 105000000)))
-+#define VARARGS_ASSIGN(foo, bar) __va_copy((foo), (bar))
-+#elif (defined(LINUX) && defined(__powerpc__)) || \
- (defined(LINUX) && defined(__s390__)) || \
- (defined(LINUX) && defined(__s390x__)) || \
- defined(WIN16) || defined(QNX) || \
+--- ../pr/src/misc/prnetdb.c.orig 2006-02-01 20:04:26.000000000 +1300
++++ ../pr/src/misc/prnetdb.c 2006-02-01 20:05:53.000000000 +1300
+@@ -2110,7 +2110,17 @@
+ */
+ hints.ai_socktype = SOCK_STREAM;
+
++/* NetBSD >= 2.99.9 has a thread-safe resolver */
++#if defined(__NetBSD_Version__) && __NetBSD_Version__ < 299000900
++ LOCK_DNS();
++#endif
++
+ rv = GETADDRINFO(hostname, NULL, &hints, &res);
++
++#if defined(__NetBSD_Version__) && __NetBSD_Version__ < 299000900
++ UNLOCK_DNS();
++#endif
++
+ if (rv == 0)
+ return (PRAddrInfo *) res;
+
diff --git a/devel/nspr/patches/patch-ae b/devel/nspr/patches/patch-ae
deleted file mode 100644
index d8ce73c56c2..00000000000
--- a/devel/nspr/patches/patch-ae
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ae,v 1.1 2005/01/25 14:50:39 jschauma Exp $
-
---- ../pr/src/pthreads/ptio.c.orig Tue Dec 21 11:43:31 2004
-+++ ../pr/src/pthreads/ptio.c Tue Dec 21 11:43:46 2004
-@@ -202,7 +202,7 @@
- #elif defined(IRIX) || defined(OSF1) || defined(AIX) || defined(HPUX) \
- || defined(LINUX) || defined(FREEBSD) || defined(BSDI) || defined(VMS) \
- || defined(NTO) || defined(OPENBSD) || defined(DARWIN) \
-- || defined(UNIXWARE)
-+ || defined(UNIXWARE) || defined(NETBSD)
- #define _PRSockOptVal_t void *
- #else
- #error "Cannot determine architecture"