Update to 4.10, based on pkgsrc/wip/nspr by mef@.

* Set LICENSE.

Changelog:
http://mozilla.6506.n7.nabble.com/ANNOUNCE-NSPR-4-10-Release-td280660.html
--------------
  NSPR 4.10 has the following bug fixes:
* Bug 331169: Obviate PR_Sleep before PR_GetConnectStatus on Windows.
  Fixed by Brian Smith.
* Bug 687033: Support Windows/arm. Fixed by Makoto Kato (partially
  checked in).
* Bug 687033: Remove WINCE and Win9x support partially.
* Bug 844513: Add AddressSanitizer (ASan) memory check annotations to
  PLArena. Fixed by Mats Palmgren.
* Bug 849089: Simple changes to make NSPR's configure.in work with
  the current version of autoconf.
* Bug 856196: Fix compiler warnings and clean up code in NSPR 4.10.
* Bug 859066: Fix warning in nsprpub/pr/src/misc/prnetdb.c.
* Bug 859830: Deprecate ANDROID_VERSION in favor of android/api-level.h.
  Fixed by Vicamo Yang.
* Bug 861434: Make PR_SetThreadPriority() change priorities
  relatively to the main process instead of using absolute values on
  Linux. Fixed by Gabriele Svelto.
* Bug 871064L: _PR_InitThreads() should not call PR_SetThreadPriority.
This commit is contained in:
ryoon 2013-07-20 08:57:20 +00:00
parent 302b06d52c
commit 3fd37557f7
14 changed files with 49 additions and 51 deletions

View file

@ -1,29 +1,27 @@
# $NetBSD: Makefile,v 1.61 2013/05/31 12:40:02 wiz Exp $
# $NetBSD: Makefile,v 1.62 2013/07/20 08:57:20 ryoon Exp $
#
DISTNAME= nspr-${NSPR_RELEASE}
NSPR_RELEASE= 4.9.6
PKGREVISION= 1
NSPR_RELEASE= 4.10
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_MOZILLA_ALL:=nspr/releases/v${NSPR_RELEASE}/src/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.mozilla.org/projects/nspr/index.html
COMMENT= Platform-neutral API for system level and libc like functions
LICENSE= mpl-2.0
CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh
CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh
CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}js/src/configure
CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}configure
WRKSRC= ${WRKDIR}/${DISTNAME}/mozilla
GNU_CONFIGURE= yes
GNU_CONFIGURE_LIBSUBDIR=nspr
CONFIGURE_DIRS= nsprpub
CONFIGURE_DIRS= nspr
USE_TOOLS+= autoconf213 gmake perl
REPLACE_PERL+= nsprpub/pr/src/misc/compile-et.pl
REPLACE_PERL+= nspr/pr/src/misc/compile-et.pl
CONFIGURE_ARGS+= --disable-debug
CONFIGURE_ARGS+= --with-pthreads
@ -34,14 +32,14 @@ CONFIGURE_ENV+= LIBRUNPATH=${PREFIX:Q}/lib/nspr
SUBST_CLASSES+= nspr-config
SUBST_STAGE.nspr-config= pre-configure
SUBST_MESSAGE.nspr-config= Fixing nspr-config run path
SUBST_FILES.nspr-config= nsprpub/config/nspr-config.in
SUBST_FILES.nspr-config= nspr/config/nspr-config.in
SUBST_SED.nspr-config= -e 's|-L$$libdir|"${COMPILER_RPATH_FLAG}$$libdir -L$$libdir"|g'
.if ${OPSYS} == "Darwin"
SUBST_CLASSES+= exec_path
SUBST_STAGE.exec_path= pre-configure
SUBST_MESSAGE.exec_path= Fixing @executable_path
SUBST_FILES.exec_path= nsprpub/configure.in
SUBST_FILES.exec_path= nspr/configure.in
SUBST_SED.exec_path= -e 's,@executable_path,${PREFIX}/lib/nspr,g'
.endif
@ -55,7 +53,7 @@ SO_SUFFIX= so.1.0
PLIST_SUBST+= SO_SUFFIX=${SO_SUFFIX:Q}
PLIST_VARS+= sun4u_32
# see nsprpub/pr/src/md/unix/Makefile.in
# see nspr/pr/src/md/unix/Makefile.in
# for the bit about 32-bit sun4u machines installing an extra file.
# That is why we have this specific test and modify the PLIST
.if ${OPSYS} == "SunOS"
@ -80,7 +78,7 @@ BUILDLINK_PASSTHRU_DIRS+= Developer/Headers/FlatCarbon
.endif
pre-configure:
cd ${WRKSRC}/nsprpub && autoconf
cd ${WRKSRC}/nspr && autoconf
post-build:
set -e; ( \

View file

@ -1,17 +1,17 @@
$NetBSD: distinfo,v 1.25 2013/04/13 11:32:03 ryoon Exp $
$NetBSD: distinfo,v 1.26 2013/07/20 08:57:20 ryoon Exp $
SHA1 (nspr-4.9.6.tar.gz) = 4de89141c62f1a8e93f8dabe0ecb6cf30f8802df
RMD160 (nspr-4.9.6.tar.gz) = 8b8fcf5306ed3720d8e21749d78d76dc6585d82f
Size (nspr-4.9.6.tar.gz) = 1163033 bytes
SHA1 (patch-ab) = be61b86f8a66dbf92737b02c0e5b1fe514b40f41
SHA1 (patch-ac) = 97aa60a256db4af9768a7b6645942c9daa63a265
SHA1 (patch-ae) = 4f04f2a55c88fe2047a50361f85f2393571574dd
SHA1 (patch-ag) = c464669b099bdea548c43c44ec80798a53902586
SHA1 (patch-az) = c1378dea8e25892b03903b9ae24486f45e23de9e
SHA1 (patch-ba) = 9d4058f2a3a290429b26cb8335dd5b188bccc96d
SHA1 (patch-nsprpub_pr_include_md__dragonfly.cfg) = a0271ee172122098ab6c9c91935efead9a373e3f
SHA1 (patch-nsprpub_pr_include_md__pth.h) = 3cec0d00ecd6e04df152a5fb3fd97eb8fabc462b
SHA1 (patch-nsprpub_pr_include_md_prosdep.h) = 12645672eacb116a5cfb51260486d04e9de4449c
SHA1 (patch-nsprpub_pr_src_md_unix_uxrng.c) = bd84dfd23b2884106a20fbfaede1d3ae94bc0284
SHA1 (patch-nsprpub_pr_src_pthreads_ptio.c) = 1cf8a6e20b35e2969f0e65fba26e853c65d1d9c7
SHA1 (patch-nsprpub_pr_src_pthreads_ptsynch.c) = c628df7628099d3c93a8b01089971637ec81d471
SHA1 (nspr-4.10.tar.gz) = 10dbf68c07497dab30be09db526931c885d5a7e9
RMD160 (nspr-4.10.tar.gz) = 9810c38741c5df0efe8c97c6c6a80deaca682331
Size (nspr-4.10.tar.gz) = 1103862 bytes
SHA1 (patch-ab) = d93c055bbb12bd9edf5f21138a93898d6b3b3c73
SHA1 (patch-ac) = 128f721ad93a10b59c2be3c611d510da9dd64fa2
SHA1 (patch-ae) = c6cf30927792140d867bb4dc3adf19786f6cdbe0
SHA1 (patch-ag) = 653d4bc8cc4eced8f628cfb738c5d99cc1a6cf24
SHA1 (patch-az) = 9731da9565ae94b4e82bf66f6640e8e5e3a1744e
SHA1 (patch-ba) = 141b354b9ec0423a9c671d5eaca05cf16daac312
SHA1 (patch-nsprpub_pr_include_md__dragonfly.cfg) = 54d3fbd4c515290395b66f6b9e736a01a8318244
SHA1 (patch-nsprpub_pr_include_md__pth.h) = 1745efd2354199897fc0f180b1a0e2557d0db25f
SHA1 (patch-nsprpub_pr_include_md_prosdep.h) = dd90cda6251aeeb10f02ef594c02484237195155
SHA1 (patch-nsprpub_pr_src_md_unix_uxrng.c) = 1d0f4ef5560ccdd7bf7097e987a06a34fc49621c
SHA1 (patch-nsprpub_pr_src_pthreads_ptio.c) = f83cc645a7114bf122adf62fd69808ad00bb989a
SHA1 (patch-nsprpub_pr_src_pthreads_ptsynch.c) = 78c4b1063d6998b9cc135a99b425f9008753922d

View file

@ -1,7 +1,7 @@
$NetBSD: patch-ab,v 1.7 2012/08/28 13:29:16 ryoon Exp $
$NetBSD: patch-ab,v 1.8 2013/07/20 08:57:20 ryoon Exp $
--- nsprpub/pr/include/md/_netbsd.h.orig 2012-03-06 13:13:52.000000000 +0000
+++ nsprpub/pr/include/md/_netbsd.h
+++ nspr/pr/include/md/_netbsd.h
@@ -47,7 +47,7 @@
#define HAVE_DLL
#define USE_DLFCN

View file

@ -1,7 +1,7 @@
$NetBSD: patch-ac,v 1.7 2012/08/28 13:29:16 ryoon Exp $
$NetBSD: patch-ac,v 1.8 2013/07/20 08:57:20 ryoon Exp $
--- nsprpub/configure.in.orig 2012-05-31 22:48:19.000000000 +0000
+++ nsprpub/configure.in
+++ nspr/configure.in
@@ -36,7 +36,7 @@ OBJDIR_NAME=.
OBJDIR_SUFFIX=OBJ
NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall'

View file

@ -1,7 +1,7 @@
$NetBSD: patch-ae,v 1.6 2012/08/28 13:29:16 ryoon Exp $
$NetBSD: patch-ae,v 1.7 2013/07/20 08:57:20 ryoon Exp $
--- nsprpub/pr/src/misc/prnetdb.c.orig 2012-03-06 13:14:20.000000000 +0000
+++ nsprpub/pr/src/misc/prnetdb.c
+++ nspr/pr/src/misc/prnetdb.c
@@ -73,7 +73,7 @@ PRLock *_pr_dnsLock = NULL;
|| defined(AIX4_3_PLUS) || (defined(AIX) && defined(_THREAD_SAFE)) \
|| (defined(HPUX10_10) && defined(_REENTRANT)) \

View file

@ -1,7 +1,7 @@
$NetBSD: patch-ag,v 1.4 2012/08/28 13:29:16 ryoon Exp $
$NetBSD: patch-ag,v 1.5 2013/07/20 08:57:20 ryoon Exp $
--- nsprpub/pr/include/md/_freebsd.h.orig 2012-03-06 13:13:51.000000000 +0000
+++ nsprpub/pr/include/md/_freebsd.h
+++ nspr/pr/include/md/_freebsd.h
@@ -47,7 +47,7 @@
#define _PR_HAVE_LARGE_OFF_T

View file

@ -1,9 +1,9 @@
$NetBSD: patch-az,v 1.2 2012/08/28 13:29:17 ryoon Exp $
$NetBSD: patch-az,v 1.3 2013/07/20 08:57:20 ryoon Exp $
https://bugzilla.mozilla.org/show_bug.cgi?id=782111
--- nsprpub/pr/src/pthreads/ptthread.c.orig 2012-06-22 01:36:02.000000000 +0000
+++ nsprpub/pr/src/pthreads/ptthread.c
+++ nspr/pr/src/pthreads/ptthread.c
@@ -21,6 +21,10 @@
#include <signal.h>
#include <dlfcn.h>

View file

@ -1,9 +1,9 @@
$NetBSD: patch-ba,v 1.1 2012/04/18 20:57:33 ryoon Exp $
$NetBSD: patch-ba,v 1.2 2013/07/20 08:57:20 ryoon Exp $
pthread_t may be 64-bit, avoid casting it.
--- nsprpub/pr/include/private/pprthred.h.orig 2009-11-02 22:43:08.000000000 +0100
+++ nsprpub/pr/include/private/pprthred.h
+++ nspr/pr/include/private/pprthred.h
@@ -51,6 +51,8 @@
#include <os2.h>
#endif

View file

@ -1,7 +1,7 @@
$NetBSD: patch-nsprpub_pr_include_md__dragonfly.cfg,v 1.2 2012/08/28 13:29:17 ryoon Exp $
$NetBSD: patch-nsprpub_pr_include_md__dragonfly.cfg,v 1.3 2013/07/20 08:57:20 ryoon Exp $
--- nsprpub/pr/include/md/_dragonfly.cfg.orig 2012-08-15 01:17:50.000000000 +0000
+++ nsprpub/pr/include/md/_dragonfly.cfg
+++ nspr/pr/include/md/_dragonfly.cfg
@@ -0,0 +1,194 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* ***** BEGIN LICENSE BLOCK *****

View file

@ -1,7 +1,7 @@
$NetBSD: patch-nsprpub_pr_include_md__pth.h,v 1.2 2012/08/28 13:29:17 ryoon Exp $
$NetBSD: patch-nsprpub_pr_include_md__pth.h,v 1.3 2013/07/20 08:57:20 ryoon Exp $
--- nsprpub/pr/include/md/_pth.h.orig 2012-05-18 21:55:29.000000000 +0000
+++ nsprpub/pr/include/md/_pth.h
+++ nspr/pr/include/md/_pth.h
@@ -114,7 +114,7 @@
#define _PT_PTHREAD_COPY_THR_HANDLE(st, dt) (dt) = (st)
#elif defined(IRIX) || defined(OSF1) || defined(AIX) || defined(SOLARIS) \

View file

@ -1,7 +1,7 @@
$NetBSD: patch-nsprpub_pr_include_md_prosdep.h,v 1.2 2012/08/28 13:29:17 ryoon Exp $
$NetBSD: patch-nsprpub_pr_include_md_prosdep.h,v 1.3 2013/07/20 08:57:20 ryoon Exp $
--- nsprpub/pr/include/md/prosdep.h.orig 2012-03-06 13:13:55.000000000 +0000
+++ nsprpub/pr/include/md/prosdep.h
+++ nspr/pr/include/md/prosdep.h
@@ -34,7 +34,7 @@ PR_BEGIN_EXTERN_C
#if defined(AIX)
#include "md/_aix.h"

View file

@ -1,7 +1,7 @@
$NetBSD: patch-nsprpub_pr_src_md_unix_uxrng.c,v 1.2 2012/06/07 13:48:21 ryoon Exp $
$NetBSD: patch-nsprpub_pr_src_md_unix_uxrng.c,v 1.3 2013/07/20 08:57:20 ryoon Exp $
--- nsprpub/pr/src/md/unix/uxrng.c.orig 2012-05-18 21:55:29.000000000 +0000
+++ nsprpub/pr/src/md/unix/uxrng.c
+++ nspr/pr/src/md/unix/uxrng.c
@@ -94,7 +94,7 @@ GetHighResClock(void *buf, size_t maxbyt
#elif (defined(LINUX) || defined(FREEBSD) || defined(__FreeBSD_kernel__) \

View file

@ -1,7 +1,7 @@
$NetBSD: patch-nsprpub_pr_src_pthreads_ptio.c,v 1.2 2012/08/28 13:29:17 ryoon Exp $
$NetBSD: patch-nsprpub_pr_src_pthreads_ptio.c,v 1.3 2013/07/20 08:57:20 ryoon Exp $
--- nsprpub/pr/src/pthreads/ptio.c.orig 2012-03-06 13:14:21.000000000 +0000
+++ nsprpub/pr/src/pthreads/ptio.c
+++ nspr/pr/src/pthreads/ptio.c
@@ -180,7 +180,8 @@ static PRBool _pr_ipv6_v6only_on_by_defa
|| defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) \
|| defined(FREEBSD) || defined(NETBSD) || defined(OPENBSD) \

View file

@ -1,7 +1,7 @@
$NetBSD: patch-nsprpub_pr_src_pthreads_ptsynch.c,v 1.2 2012/08/28 13:29:17 ryoon Exp $
$NetBSD: patch-nsprpub_pr_src_pthreads_ptsynch.c,v 1.3 2013/07/20 08:57:20 ryoon Exp $
--- nsprpub/pr/src/pthreads/ptsynch.c.orig 2012-03-06 13:14:21.000000000 +0000
+++ nsprpub/pr/src/pthreads/ptsynch.c
+++ nspr/pr/src/pthreads/ptsynch.c
@@ -810,7 +810,7 @@ PR_IMPLEMENT(PRStatus) PR_DeleteSemaphor
*/
#if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) \