aboutsummaryrefslogtreecommitdiff
path: root/devel/nspr
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2011-03-02 13:51:28 +0000
committerKoop Mast <kwm@FreeBSD.org>2011-03-02 13:51:28 +0000
commit92e7f377e51961f15d0de50fafc33ca5d179fdb9 (patch)
treeea465d84b52729d507f27a986e609047f2cc848b /devel/nspr
parent3b9d53f74a587d877ef02e8a48ff7cfd56d3baa1 (diff)
downloadports-92e7f377e51961f15d0de50fafc33ca5d179fdb9.tar.gz
ports-92e7f377e51961f15d0de50fafc33ca5d179fdb9.zip
Notes
Diffstat (limited to 'devel/nspr')
-rw-r--r--devel/nspr/Makefile2
-rw-r--r--devel/nspr/distinfo5
-rw-r--r--devel/nspr/files/patch-tests58
3 files changed, 40 insertions, 25 deletions
diff --git a/devel/nspr/Makefile b/devel/nspr/Makefile
index 1938d21832bc..8b7c62c70a67 100644
--- a/devel/nspr/Makefile
+++ b/devel/nspr/Makefile
@@ -6,7 +6,7 @@
# $MCom: ports-experimental/devel/nspr/Makefile,v 1.6 2008/03/12 13:06:56 ahze Exp $
PORTNAME= nspr
-DISTVERSION= 4.8.6
+DISTVERSION= 4.8.7
CATEGORIES= devel
#MASTER_SITES= LOCAL/ahze
MASTER_SITES= ${MASTER_SITE_MOZILLA}
diff --git a/devel/nspr/distinfo b/devel/nspr/distinfo
index 64eba9cce344..2c8dcf88ea3a 100644
--- a/devel/nspr/distinfo
+++ b/devel/nspr/distinfo
@@ -1,3 +1,2 @@
-MD5 (nspr-4.8.6.tar.gz) = 592c275728c29d193fdba8009165990b
-SHA256 (nspr-4.8.6.tar.gz) = d9040bb01536fa63881c423c4fa831ea459696b32d2097f614842f824e1a9f6d
-SIZE (nspr-4.8.6.tar.gz) = 1202257
+SHA256 (nspr-4.8.7.tar.gz) = eb9459c31d43d1000fb1304f1e0cedab0bdac3c54c71988259c1ac10c1fe16a3
+SIZE (nspr-4.8.7.tar.gz) = 1244150
diff --git a/devel/nspr/files/patch-tests b/devel/nspr/files/patch-tests
index 9591bb5e4423..39450f0527fb 100644
--- a/devel/nspr/files/patch-tests
+++ b/devel/nspr/files/patch-tests
@@ -1437,79 +1437,95 @@
+ DataRecord *Items;
PRStack *list1, *list2;
PRStackElem *node;
---- ../pr/tests/suspend.c Sun Apr 25 11:01:02 2004
-+++ ../pr/tests/suspend.c Mon Jul 25 22:28:14 2005
-@@ -74,5 +74,5 @@
+--- ../pr/tests/suspend.c.orig 2010-09-24 20:14:40.000000000 +0200
++++ ../pr/tests/suspend.c 2011-01-15 13:56:43.000000000 +0100
+@@ -62,14 +62,14 @@
+ Level_2_Thread(void *arg)
{
PR_Sleep(PR_MillisecondsToInterval(4 * 1000));
- printf("Level_2_Thread[0x%lx] exiting\n",PR_GetCurrentThread());
+ printf("Level_2_Thread[%p] exiting\n",PR_GetCurrentThread());
return;
}
-@@ -81,5 +81,5 @@
+
+ void PR_CALLBACK
Level_1_Thread(void *arg)
{
- PRUint32 tmp = (PRUint32)arg;
+ PRUint32 tmp = (PRUint32)(uintptr_t)arg;
PRThreadScope scope = (PRThreadScope) tmp;
PRThread *thr;
-@@ -96,5 +96,5 @@
+
+@@ -84,7 +84,7 @@
+ if (!thr) {
printf("Could not create thread!\n");
} else {
- printf("Level_1_Thread[0x%lx] created %15s thread 0x%lx\n",
+ printf("Level_1_Thread[%p] created %15s thread %p\n",
PR_GetCurrentThread(),
(scope == PR_GLOBAL_THREAD) ?
-@@ -107,5 +107,5 @@
+ "PR_GLOBAL_THREAD" : "PR_LOCAL_THREAD",
+@@ -95,7 +95,7 @@
+ alive--;
PR_Notify(mon);
PR_ExitMonitor(mon);
- printf("Thread[0x%lx] exiting\n",PR_GetCurrentThread());
+ printf("Thread[%p] exiting\n",PR_GetCurrentThread());
}
-@@ -116,11 +116,12 @@
+ static PRStatus PR_CALLBACK print_thread(PRThread *thread, int i, void *arg)
+@@ -104,14 +104,15 @@
+ PRWord *registers;
printf(
- "\nprint_thread[0x%lx]: %-20s - i = %ld\n",thread,
-+ "\nprint_thread[%p]: %-20s - i = %d\n",thread,
++ "\nprint_thread[%p]: %-20s - i = %ld\n",thread,
(PR_GLOBAL_THREAD == PR_GetThreadScope(thread)) ?
"PR_GLOBAL_THREAD" : "PR_LOCAL_THREAD", i);
registers = PR_GetGCRegisters(thread, 0, (int *)&words);
-- printf("Regsters R0 = 0x%x R1 = 0x%x R2 = 0x%x R3 = 0x%x\n",
-- registers[0],registers[1],registers[2],registers[3]);
+ if (registers)
+- printf("Registers R0 = 0x%x R1 = 0x%x R2 = 0x%x R3 = 0x%x\n",
+- registers[0],registers[1],registers[2],registers[3]);
- printf("Stack Pointer = 0x%lx\n", PR_GetSP(thread));
-+ printf("Regsters R0 = 0x%lx R1 = 0x%lx R2 = 0x%lx R3 = 0x%lx\n",
-+ (unsigned long)registers[0], (unsigned long)registers[1],
-+ (unsigned long)registers[2], (unsigned long)registers[3]);
++ printf("Regsters R0 = 0x%lx R1 = 0x%lx R2 = 0x%lx R3 = 0x%lx\n",
++ (unsigned long)registers[0], (unsigned long)registers[1],
++ (unsigned long)registers[2], (unsigned long)registers[3]);
+ printf("Stack Pointer = %p\n", PR_GetSP(thread));
return PR_SUCCESS;
}
-@@ -150,5 +151,5 @@
+
+@@ -139,7 +140,7 @@
+ printf("Could not create thread!\n");
alive--;
}
- printf("Level_0_Thread[0x%lx] created %15s thread 0x%lx\n",
+ printf("Level_0_Thread[%p] created %15s thread %p\n",
PR_GetCurrentThread(),
(scope1 == PR_GLOBAL_THREAD) ?
-@@ -161,7 +162,8 @@
+ "PR_GLOBAL_THREAD" : "PR_LOCAL_THREAD",
+@@ -151,9 +152,10 @@
PR_EnumerateThreads(print_thread, NULL);
registers = PR_GetGCRegisters(me, 1, (int *)&words);
-- printf("My Registers: R0 = 0x%x R1 = 0x%x R2 = 0x%x R3 = 0x%x\n",
-- registers[0],registers[1],registers[2],registers[3]);
+ if (registers)
+- printf("My Registers: R0 = 0x%x R1 = 0x%x R2 = 0x%x R3 = 0x%x\n",
+- registers[0],registers[1],registers[2],registers[3]);
- printf("My Stack Pointer = 0x%lx\n", PR_GetSP(me));
-+ printf("My Registers: R0 = 0x%lx R1 = 0x%lx R2 = 0x%lx R3 = 0x%lx\n",
-+ (unsigned long)registers[0], (unsigned long)registers[1],
-+ (unsigned long)registers[2], (unsigned long)registers[3]);
++ printf("My Registers: R0 = 0x%lx R1 = 0x%lx R2 = 0x%lx R3 = 0x%lx\n",
++ (unsigned long)registers[0], (unsigned long)registers[1],
++ (unsigned long)registers[2], (unsigned long)registers[3]);
+ printf("My Stack Pointer = %p\n", PR_GetSP(me));
PR_ResumeAll();
-@@ -227,4 +229,6 @@
+ /* Wait for all threads to exit */
+@@ -212,6 +214,8 @@
+ CreateThreadsUU();
CreateThreadsKU();
PR_Cleanup();
+
+ return 0;
}
+ #endif /* XP_BEOS */
--- ../pr/tests/testfile.c Tue Jun 20 17:46:54 2000
+++ ../pr/tests/testfile.c Mon Jul 25 22:36:39 2005
@@ -69,4 +69,7 @@