pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/nspr Update to version 4.6.7 (bugfix release). ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0d2cbac55d70
branches: trunk
changeset: 533705:0d2cbac55d70
user: bjs <bjs%pkgsrc.org@localhost>
date: Tue Sep 25 04:18:25 2007 +0000
description:
Update to version 4.6.7 (bugfix release). See new patches
for more information about them. While here, fix pkglint warnings.
ok'd by joerg@
diffstat:
devel/nspr/Makefile | 13 ++++++----
devel/nspr/buildlink3.mk | 31 ++++++++++++++-----------
devel/nspr/distinfo | 18 ++++++++++-----
devel/nspr/hacks.mk | 13 ++++++++++
devel/nspr/patches/patch-aa | 10 ++++----
devel/nspr/patches/patch-ab | 31 ++++++++++++++++++++++++-
devel/nspr/patches/patch-ag | 27 ++++++++++++++++++++++
devel/nspr/patches/patch-ah | 54 +++++++++++++++++++++++++++++++++++++++++++++
devel/nspr/patches/patch-ai | 24 ++++++++++++++++++++
devel/nspr/patches/patch-ak | 51 ++++++++++++++++++++++++++++++++++++++++++
devel/nspr/patches/patch-al | 36 ++++++++++++++++++++++++++++++
devel/nspr/patches/patch-am | 18 +++++++++++++++
12 files changed, 294 insertions(+), 32 deletions(-)
diffs (truncated from 446 to 300 lines):
diff -r db5c732159d7 -r 0d2cbac55d70 devel/nspr/Makefile
--- a/devel/nspr/Makefile Tue Sep 25 03:13:01 2007 +0000
+++ b/devel/nspr/Makefile Tue Sep 25 04:18:25 2007 +0000
@@ -1,16 +1,15 @@
-# $NetBSD: Makefile,v 1.21 2007/03/18 18:49:46 wiz Exp $
+# $NetBSD: Makefile,v 1.22 2007/09/25 04:18:25 bjs Exp $
-DISTNAME= nspr-4.6.6
+DISTNAME= nspr-4.6.7
CATEGORIES= devel
-MASTER_SITES= http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.6.6/src/ \
- ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.6.6/src/
+MASTER_SITES= ${MASTER_SITE_MOZILLA:=/nspr/releases/v4.6.7/src/}
MAINTAINER= mjl%luckie.org.nz@localhost
HOMEPAGE= http://www.mozilla.org/projects/nspr/index.html
COMMENT= Platform-neutral API for system level and libc like functions
WRKSRC= ${WRKDIR}/${DISTNAME}/mozilla/nsprpub
-CONFIGURE_DIRS= ${WRKSRC}/build
+CONFIGURE_DIRS= build
USE_TOOLS+= autoconf213 gmake
USE_LANGUAGES= c c++
@@ -24,6 +23,8 @@
.include "../../mk/bsd.prefs.mk"
+CFLAGS+= -D_DONT_CAST_PTHREAD_T # XXX pthread_t can be 64-bit
+
.if ${OBJECT_FMT} == "ELF"
SO_SUFFIX= so
.elif ${OBJECT_FMT} == "Mach-O"
@@ -90,6 +91,8 @@
.else
CONFIGURE_ARGS+= --with-pthreads
.include "../../mk/pthread.buildlink3.mk"
+# XXX TODO
+#.include "../../mk/resolv.buildlink3.mk"
.endif
.include "../../mk/bsd.pkg.mk"
diff -r db5c732159d7 -r 0d2cbac55d70 devel/nspr/buildlink3.mk
--- a/devel/nspr/buildlink3.mk Tue Sep 25 03:13:01 2007 +0000
+++ b/devel/nspr/buildlink3.mk Tue Sep 25 04:18:25 2007 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: buildlink3.mk,v 1.8 2006/12/05 17:43:06 tron Exp $
+# $NetBSD: buildlink3.mk,v 1.9 2007/09/25 04:18:25 bjs Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
NSPR_BUILDLINK3_MK:= ${NSPR_BUILDLINK3_MK}+
-.if !empty(BUILDLINK_DEPTH:M+)
+.if ${BUILDLINK_DEPTH} == "+"
BUILDLINK_DEPENDS+= nspr
.endif
@@ -11,21 +11,24 @@
BUILDLINK_PACKAGES+= nspr
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}nspr
-.if !empty(NSPR_BUILDLINK3_MK:M+)
+.if ${NSPR_BUILDLINK3_MK} == "+"
+
+. include "../../mk/bsd.fast.prefs.mk"
+
BUILDLINK_API_DEPENDS.nspr+= nspr>=4.4.1nb1
-.if ${OPSYS} == "Darwin"
-BUILDLINK_ABI_DEPENDS.nspr+= nspr>=4.6.1nb3
-.else
-BUILDLINK_ABI_DEPENDS.nspr+= nspr>=4.6.1nb1
-.endif
+. if ${OPSYS} == "Darwin"
+BUILDLINK_API_DEPENDS.nspr+= nspr>=4.6.1nb3
+. else
+BUILDLINK_API_DEPENDS.nspr+= nspr>=4.6.1nb1
+. endif
+
BUILDLINK_PKGSRCDIR.nspr?= ../../devel/nspr
-
-BUILDLINK_FILES.nspr+= lib/nspr/*
-BUILDLINK_FILES.nspr+= include/nspr/*
+BUILDLINK_FILES.nspr+= lib/nspr/*
+BUILDLINK_FILES.nspr+= include/nspr/*
-BUILDLINK_INCDIRS.nspr+= include/nspr
-BUILDLINK_LIBDIRS.nspr+= lib/nspr
-BUILDLINK_RPATHDIRS.nspr+= lib/nspr
+BUILDLINK_INCDIRS.nspr+= include/nspr
+BUILDLINK_LIBDIRS.nspr+= lib/nspr
+BUILDLINK_RPATHDIRS.nspr+= lib/nspr
.endif # NSPR_BUILDLINK3_MK
diff -r db5c732159d7 -r 0d2cbac55d70 devel/nspr/distinfo
--- a/devel/nspr/distinfo Tue Sep 25 03:13:01 2007 +0000
+++ b/devel/nspr/distinfo Tue Sep 25 04:18:25 2007 +0000
@@ -1,10 +1,16 @@
-$NetBSD: distinfo,v 1.7 2007/03/18 18:49:46 wiz Exp $
+$NetBSD: distinfo,v 1.8 2007/09/25 04:18:25 bjs Exp $
-SHA1 (nspr-4.6.6.tar.gz) = 5e0d35f0ae968dc7a38387688ecd9ea6002dcf5e
-RMD160 (nspr-4.6.6.tar.gz) = d296242b55ce88f665c91ab0f13e03e1a54c1552
-Size (nspr-4.6.6.tar.gz) = 1302662 bytes
-SHA1 (patch-aa) = 9e374afe504ca3bd3a27e0c05d95e09968181c51
-SHA1 (patch-ab) = af2366bf0419b6aad3c8812762f6304239b788a4
+SHA1 (nspr-4.6.7.tar.gz) = cf45319d02285ec5479445a1e9adfb9e94f55a6a
+RMD160 (nspr-4.6.7.tar.gz) = 11a0d8b14ebdd441f6899c464b77144704ab638e
+Size (nspr-4.6.7.tar.gz) = 1303759 bytes
+SHA1 (patch-aa) = 41b8aea520b5aa41abc38aff1ff44a0fc4b66923
+SHA1 (patch-ab) = fc668ceb47f9063ba9b0514a5da31bda0ca23916
SHA1 (patch-ac) = 365b3a5158db94f1976ecfd2ede120201717ad83
SHA1 (patch-ad) = d0d724ec9cc24e3d6a8f0581696c3a379c272a08
SHA1 (patch-af) = 7a94606109277b5af00197164a854f16d4259c0f
+SHA1 (patch-ag) = 2150cae88a39eaf4588084ad62c611a83e339c75
+SHA1 (patch-ah) = 34749dda8e07d9535ef5e158261d0202b7f0e058
+SHA1 (patch-ai) = ca4d824540f62a97e2072ef0927b6b8f0a362a0a
+SHA1 (patch-ak) = b090f571d539cd15f3ebad7c671bb71531e0f817
+SHA1 (patch-al) = 80d75bfcebc271dc222cef982a887cd1735e7692
+SHA1 (patch-am) = 43cd968495d271bf7394877caf28598745aedf31
diff -r db5c732159d7 -r 0d2cbac55d70 devel/nspr/hacks.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/nspr/hacks.mk Tue Sep 25 04:18:25 2007 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: hacks.mk,v 1.1 2007/09/25 04:18:26 bjs Exp $
+
+.if !defined(NSPR_HACKS_MK)
+NSPR_HACKS_MK= # defined
+
+.include "../../mk/compiler.mk"
+
+.if !empty(CC_VERSION:Mgcc-[34]*)
+CFLAGS+= -fno-strict-aliasing
+PKG_HACKS+= no-strict-aliasing
+.endif
+
+.endif
diff -r db5c732159d7 -r 0d2cbac55d70 devel/nspr/patches/patch-aa
--- a/devel/nspr/patches/patch-aa Tue Sep 25 03:13:01 2007 +0000
+++ b/devel/nspr/patches/patch-aa Tue Sep 25 04:18:25 2007 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.2 2007/03/18 18:49:47 wiz Exp $
+$NetBSD: patch-aa,v 1.3 2007/09/25 04:18:26 bjs Exp $
---- pr/include/md/_netbsd.cfg.orig 2004-04-25 15:00:47.000000000 +0000
+--- pr/include/md/_netbsd.cfg.orig 2004-04-25 11:00:47.000000000 -0400
+++ pr/include/md/_netbsd.cfg
@@ -48,7 +48,8 @@
@@ -16,8 +16,8 @@
#define PR_ALIGN_OF_DOUBLE 4
#define PR_ALIGN_OF_POINTER 4
--#elif defined(__sparc__) || defined(__MIPSEB__)
-+#elif defined(__sparc_v9__)
+-#elif defined(__sparc) || defined(__MIPSEB__)
++#elif defined(__sparc_v9)
+
+#undef IS_LITTLE_ENDIAN
+#define IS_BIG_ENDIAN 1
@@ -63,7 +63,7 @@
+#define PR_ALIGN_OF_DOUBLE 8
+#define PR_ALIGN_OF_POINTER 8
+
-+#elif defined(__sparc__) || defined(__MIPSEB__) || defined(__ARMEB__)
++#elif defined(__sparc) || defined(__MIPSEB__) || defined(__ARMEB__)
#undef IS_LITTLE_ENDIAN
#define IS_BIG_ENDIAN 1
diff -r db5c732159d7 -r 0d2cbac55d70 devel/nspr/patches/patch-ab
--- a/devel/nspr/patches/patch-ab Tue Sep 25 03:13:01 2007 +0000
+++ b/devel/nspr/patches/patch-ab Tue Sep 25 04:18:25 2007 +0000
@@ -1,6 +1,9 @@
-$NetBSD: patch-ab,v 1.3 2007/03/18 18:49:47 wiz Exp $
+$NetBSD: patch-ab,v 1.4 2007/09/25 04:18:26 bjs Exp $
---- pr/include/md/_netbsd.h.orig 2006-04-05 21:38:13.000000000 +0000
+We really don't want to use getproto reentrant functions. Also,
+add missing extern decls.
+
+--- pr/include/md/_netbsd.h.orig 2006-04-05 17:38:13.000000000 -0400
+++ pr/include/md/_netbsd.h
@@ -47,6 +47,8 @@
#define _PR_SI_ARCHITECTURE "x86"
@@ -11,3 +14,27 @@
#elif defined(__m68k__)
#define _PR_SI_ARCHITECTURE "m68k"
#elif defined(__powerpc__)
+@@ -92,12 +94,6 @@
+ #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
+@@ -243,6 +239,10 @@ struct _MDCPU {
+
+ #endif /* ! _PR_PTHREADS */
+
++extern void _MD_EarlyInit(void);
++extern PRIntervalTime _PR_UNIX_GetInterval(void);
++extern PRIntervalTime _PR_UNIX_TicksPerSecond(void);
++
+ #define _MD_EARLY_INIT _MD_EarlyInit
+ #define _MD_FINAL_INIT _PR_UnixInit
+ #define _MD_GET_INTERVAL _PR_UNIX_GetInterval
diff -r db5c732159d7 -r 0d2cbac55d70 devel/nspr/patches/patch-ag
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/nspr/patches/patch-ag Tue Sep 25 04:18:25 2007 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-ag,v 1.1 2007/09/25 04:18:26 bjs Exp $
+
+Get the physical memory size using hw.physmem on _PR_HAVE_SYSCTL
+platforms.
+
+--- pr/src/misc/prsystem.c.orig 2006-07-14 18:33:47.000000000 -0400
++++ pr/src/misc/prsystem.c
+@@ -356,6 +356,19 @@ PR_IMPLEMENT(PRUint64) PR_GetPhysicalMem
+ odm_terminate();
+ }
+
++#elif defined(_PR_HAVE_SYSCTL)
++
++ int mib[2];
++ unsigned long physmem;
++ size_t len;
++
++ mib[0] = CTL_HW;
++ mib[1] = HW_PHYSMEM;
++ len = sizeof(physmem);
++ if(sysctl(mib, 2, &physmem, &len, NULL, 0) == 0
++ && len == sizeof(physmem))
++ bytes = physmem;
++
+ #else
+
+ PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
diff -r db5c732159d7 -r 0d2cbac55d70 devel/nspr/patches/patch-ah
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/nspr/patches/patch-ah Tue Sep 25 04:18:25 2007 +0000
@@ -0,0 +1,54 @@
+$NetBSD: patch-ah,v 1.1 2007/09/25 04:18:26 bjs Exp $
+
+Does this package really ever need priority scheduling? #undef it.
+If _DONT_CAST_PTHREAD_T is defined, then do as the macro says. After
+all, it could be 64-bit. From FreeBSD ports.
+
+--- pr/src/pthreads/ptthread.c.orig 2006-11-30 19:34:12.000000000 -0500
++++ pr/src/pthreads/ptthread.c
+@@ -52,6 +52,10 @@
+ #include <string.h>
+ #include <signal.h>
+
++/* XXX should nspr ever really need to set priority? */
++
++#undef _POSIX_THREAD_PRIORITY_SCHEDULING
++
+ /*
+ * Record whether or not we have the privilege to set the scheduling
+ * policy and priority of threads. 0 means that privilege is available.
+@@ -979,12 +983,20 @@ PR_IMPLEMENT(void) PR_ProcessExit(PRIntn
+ _exit(status);
+ }
+
++#ifndef _DONT_CAST_PTHREAD_T
+ PR_IMPLEMENT(PRUint32) PR_GetThreadID(PRThread *thred)
++#else
++PR_IMPLEMENT(pthread_t) PR_GetThreadID(PRThread *thred)
++#endif /* _DONT_CAST_PTHREAD_T */
+ {
+ #if defined(_PR_DCETHREADS)
+ return (PRUint32)&thred->id; /* this is really a sham! */
+ #else
++#ifndef _DONT_CAST_PTHREAD_T
+ return (PRUint32)thred->id; /* and I don't know what they will do with it */
++#else
++ return thred->id; /* and I don't know what they will do with it */
++#endif /* _DONT_CAST_PTHREAD_T */
+ #endif
+ }
+
+@@ -1116,7 +1128,13 @@ PR_IMPLEMENT(PRStatus) PR_EnumerateThrea
+ PRIntn count = 0;
+ PRStatus rv = PR_SUCCESS;
+ PRThread* thred = pt_book.first;
++#ifdef _DONT_CAST_PTHREAD_T
++#if !defined(_PR_DCETHREADS) && (defined(DEBUG) || defined(FORCE_PR_ASSERT))
++#endif /* _DONT_CAST_PTHREAD_T */
+ PRThread *me = PR_CurrentThread();
++#ifdef _DONT_CAST_PTHREAD_T
++#endif
++#endif /* _DONT_CAST_PTHREAD_T */
+
+ PR_LOG(_pr_gc_lm, PR_LOG_ALWAYS, ("Begin PR_EnumerateThreads\n"));
Home |
Main Index |
Thread Index |
Old Index