upgrading NSPR to 4.8.2

View: New views
6 Messages — Rating Filter:   Alert me  

upgrading NSPR to 4.8.2

by Mikhail T.-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

The upgrade itself could've been as easy as bumping the PORTVERSION, but
I took this opportunity to clean-up the warnings thrown by the compiler
(mostly noops, but some less trivial) in both the code and the tests.

The patch also modifies the Makefile to allow parallel compiles
(MAKE_JOBS_SAFE) and introduces the regression-test target (aliased to
test).

The included tests all pass on my FreeBSD/amd64 7.2-STABLE, although
the forktest hangs on FreeBSD/i386 7.0-STABLE.

Please, consider committing ASAP -- one of the changes listed by the
developers:

        http://www.mozilla.org/projects/nspr/release-notes/nspr482.html

is a security fix, that must've been, what caused Firefox
developers to issue the 3.5.4 release recently:

        https://bugzilla.mozilla.org/show_bug.cgi?id=516396

Thanks. Yours,

        -mi

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/devel/nspr/Makefile,v
retrieving revision 1.38
diff -U 2 -r1.38 Makefile
--- Makefile 18 Oct 2009 18:05:38 -0000 1.38
+++ Makefile 5 Nov 2009 16:03:39 -0000
@@ -7,6 +7,5 @@
 
 PORTNAME= nspr
-DISTVERSION= 4.8
-PORTREVISION= 1
+DISTVERSION= 4.8.2
 CATEGORIES= devel
 #MASTER_SITES= LOCAL/ahze
@@ -21,4 +20,5 @@
 USE_LDCONFIG= yes
 USE_GMAKE= yes
+MAKE_JOBS_SAFE= yes
 GNU_CONFIGURE= yes
 CONFIGURE_SCRIPT=../configure
@@ -80,4 +80,6 @@
 test: libtests prtests
 
+regression-test: test
+
 #.if defined(PACKAGE_BUILDING)
 #post-build: test
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/devel/nspr/distinfo,v
retrieving revision 1.16
diff -U 2 -r1.16 distinfo
--- distinfo 28 Jun 2009 19:22:16 -0000 1.16
+++ distinfo 5 Nov 2009 16:03:39 -0000
@@ -1,3 +1,3 @@
-MD5 (nspr-4.8.tar.gz) = e0916a72bcc6c427551ea262183fdb26
-SHA256 (nspr-4.8.tar.gz) = a2de84aa21a7bbabd93c4f172123d58c6432c2358807bb260ac338b2dc61dbfe
-SIZE (nspr-4.8.tar.gz) = 1170419
+MD5 (nspr-4.8.2.tar.gz) = 2a6fbfa56c9760ed3651d527272249c7
+SHA256 (nspr-4.8.2.tar.gz) = 23ec182a42eec4b6df01f3c02c632ed9f7e004d6c320d048d5fe24054d319bce
+SIZE (nspr-4.8.2.tar.gz) = 1232677
Index: files/patch-..::pr::src::pthreads::ptio.c
===================================================================
RCS file: /home/pcvs/ports/devel/nspr/files/patch-..::pr::src::pthreads::ptio.c,v
retrieving revision 1.3
diff -U 2 -r1.3 patch-..::pr::src::pthreads::ptio.c
--- files/patch-..::pr::src::pthreads::ptio.c 12 Mar 2008 12:33:07 -0000 1.3
+++ files/patch-..::pr::src::pthreads::ptio.c 5 Nov 2009 16:03:39 -0000
@@ -1,5 +1,14 @@
---- ../pr/src/pthreads/ptio.c.orig Mon Feb  2 10:41:43 2004
-+++ ../pr/src/pthreads/ptio.c Mon Feb  2 10:44:49 2004
-@@ -3470,6 +3470,17 @@
+--- ../pr/src/pthreads/ptio.c 2009-05-09 23:07:02.000000000 -0400
++++ ../pr/src/pthreads/ptio.c 2009-11-04 15:24:47.000000000 -0500
+@@ -1168,7 +1168,7 @@
+         osfd = socket(AF_INET6, SOCK_STREAM, 0);
+         if (osfd != -1) {
+             int on;
+-            int optlen = sizeof(on);
++            socklen_t optlen = sizeof(on);
+             if (getsockopt(osfd, IPPROTO_IPV6, IPV6_V6ONLY,
+                     &on, &optlen) == 0) {
+                 _pr_ipv6_v6only_on_by_default = on;
+@@ -3495,6 +3495,17 @@
                      &on, sizeof(on));
          }
@@ -19,2 +28,19 @@
          if (fd == NULL) close(osfd);
      }
+@@ -3758,7 +3769,7 @@
+      * We use these variables to figure out how much time has
+      * elapsed and how much of the timeout still remains.
+      */
+-    PRIntervalTime start, elapsed, remaining;
++    PRIntervalTime start = 0, elapsed, remaining;
+
+     if (pt_TestAbort()) return -1;
+
+@@ -4927,6 +4938,7 @@
+
+     if (timeout == PR_INTERVAL_NO_TIMEOUT) {
+         tvp = NULL;
++        start = 0; /* Not needed, but shuts down a warning */
+     } else {
+         tv.tv_sec = (PRInt32)PR_IntervalToSeconds(timeout);
+         tv.tv_usec = (PRInt32)PR_IntervalToMicroseconds(
Index: files/patch-tests
===================================================================
RCS file: /home/pcvs/ports/devel/nspr/files/patch-tests,v
retrieving revision 1.3
diff -U 2 -r1.3 patch-tests
--- files/patch-tests 28 Jun 2009 19:22:16 -0000 1.3
+++ files/patch-tests 5 Nov 2009 16:03:39 -0000
@@ -88,4 +88,11 @@
 --- ../pr/tests/mbcs.c Sun Apr 25 11:01:02 2004
 +++ ../pr/tests/mbcs.c Tue Jul 12 01:34:26 2005
+@@ -87,5 +87,5 @@
+ ** Traverse directory
+ */
+-static void TraverseDirectory( unsigned char *dir )
++static void TraverseDirectory(const char *dir)
+ {
+     PRDir *cwd;
 @@ -93,5 +93,4 @@
      PRFileInfo info;
@@ -265,12 +272,21 @@
 --- ../pr/tests/instrumt.c Sun Apr 25 11:01:02 2004
 +++ ../pr/tests/instrumt.c Mon Jul 25 20:45:54 2005
-@@ -83,5 +83,5 @@
+@@ -69,4 +69,5 @@
+
+ #include <stdio.h>
++#define DEBUG
+ #include <plstr.h>
+ #include <prclist.h>
+@@ -83,5 +84,4 @@
 
  #define SMALL_TRACE_BUFSIZE  ( 60 * 1024 )
 -
-+#define DEBUG
  typedef enum
  {
-@@ -114,5 +114,4 @@
+@@ -111,8 +111,8 @@
+ static void ListCounters(void)
+ {
++#if defined(DEBUG) || defined(FORCE_NSPR_COUNTERS)
+     PR_DEFINE_COUNTER( qh );
      PR_DEFINE_COUNTER( rh );
      const char *qn, *rn, *dn;
@@ -278,12 +294,24 @@
      PRUint32    tCtr;
 
-@@ -126,5 +125,5 @@
+@@ -125,6 +125,6 @@
+         while ( rh != NULL )
          {
-             PR_GET_COUNTER_NAME_FROM_HANDLE( rh, qname, rname, desc );
+-            PR_GET_COUNTER_NAME_FROM_HANDLE( rh, qname, rname, desc );
 -            tCtr = PR_GET_COUNTER(tCtr, rh);
++            PR_GET_COUNTER_NAME_FROM_HANDLE( rh, &qn, &rn, &dn );
 +            PR_GET_COUNTER(tCtr, rh);
              PR_LOG( lm, msgLevel,
                  ( "QName: %s  RName: %s  Desc: %s  Value: %ld\n",
-@@ -142,5 +141,4 @@
+@@ -134,13 +134,13 @@
+         PR_FIND_NEXT_COUNTER_QNAME(qh, qh);
+     }
+-    return;    
++#endif
+ } /* end ListCounters() */
+
+ static void ListTraces(void)
+ {
++#if defined(DEBUG) || defined(FORCE_NSPR_TRACE)
+     PR_DEFINE_TRACE( qh );
      PR_DEFINE_TRACE( rh );
      const char *qn, *rn, *dn;
@@ -291,19 +319,33 @@
 
      PR_INIT_TRACE_HANDLE( qh, NULL );
-@@ -221,6 +219,4 @@
+@@ -152,5 +152,5 @@
+         while ( rh != NULL )
+         {
+-            PR_GET_TRACE_NAME_FROM_HANDLE( rh, qname, rname, desc );
++            PR_GET_TRACE_NAME_FROM_HANDLE( rh, &qn, &rn, &dn );
+             PR_LOG( lm, msgLevel,
+                 ( "QName: %s  RName: %s  Desc: %s",
+@@ -160,5 +160,5 @@
+         PR_FIND_NEXT_TRACE_QNAME(qh, qh);
+     }
+-    return;    
++#endif
+ } /* end ListCounters() */
+
+@@ -221,6 +221,6 @@
      PRThread *t1, *t2, *t3, *t4;
      PRIntn i = 0;
 -    PR_DEFINE_COUNTER( tc );
--    PR_DEFINE_COUNTER( zCounter );
+     PR_DEFINE_COUNTER( zCounter );
++    PR_DEFINE_COUNTER( tc );
 
      PR_LOG( lm, msgLevel,
-@@ -359,7 +355,5 @@
+@@ -359,5 +359,5 @@
  static void TraceTest( void )
  {
 -    PRInt32 i;
++    PRIntn i = 0;
      PRInt32 size;
--    PR_DEFINE_TRACE( th );
-     PRThread *t1, *t2;
-    
+     PR_DEFINE_TRACE( th );
 --- ../pr/tests/layer.c Fri Apr 29 18:46:05 2005
 +++ ../pr/tests/layer.c Mon Jul 25 20:53:03 2005
@@ -390,6 +432,13 @@
  fprintf(stderr,"PR_GetConnectStatus succeeded, expected to fail\n");
  failed_already = 1;
---- ../pr/tests/nblayer.c Sun Apr 25 11:01:02 2004
-+++ ../pr/tests/nblayer.c Mon Jul 25 21:02:17 2005
+--- ../pr/tests/nblayer.c 2009-02-23 00:00:44.000000000 -0500
++++ ../pr/tests/nblayer.c 2009-11-04 16:22:00.000000000 -0500
+@@ -332,5 +332,5 @@
+     PRFileDesc *fd, PRInt16 in_flags, PRInt16 *out_flags)
+ {
+-    PRInt16 my_flags, new_flags;
++    PRInt16 my_flags = -1, new_flags;
+     PRFilePrivate *mine = (PRFilePrivate*)fd->secret;
+     if (0 != (PR_POLL_READ & in_flags))
 @@ -375,5 +375,5 @@
  {
@@ -399,4 +448,18 @@
      PRFileDesc *newstack;
      PRFilePrivate *newsecret;
+@@ -461,4 +461,6 @@
+             return mine->rcvreq;  /* << -- that's it! */
+         default:
++            PR_ASSERT(!"How did I get this mine->rcvstate?");
++            rv = -1;
+             break;
+         }
+@@ -517,4 +517,6 @@
+             return mine->xmtreq;  /* <<-- That's the one! */
+         default:
++            PR_ASSERT(!"How did I get this mine->xmtstate?");
++            rv = -1;
+             break;
+         }
 --- ../pr/tests/obsints.c Sun Apr 25 11:01:02 2004
 +++ ../pr/tests/obsints.c Mon Jul 25 21:04:56 2005
@@ -512,7 +575,7 @@
                  (scope2 == PR_GLOBAL_THREAD ?
                  "PR_GLOBAL_THREAD" : "PR_LOCAL_THREAD"),
---- ../pr/tests/prpoll.c Fri Apr 29 18:46:05 2005
-+++ ../pr/tests/prpoll.c Mon Jul 25 21:07:40 2005
-@@ -70,5 +70,5 @@
+--- ../pr/tests/prpoll.c 2009-05-06 01:40:39.000000000 -0400
++++ ../pr/tests/prpoll.c 2009-11-04 16:31:54.000000000 -0500
+@@ -72,5 +72,5 @@
  clientThreadFunc(void *arg)
  {
@@ -521,5 +584,12 @@
      PRFileDesc *sock;
      PRNetAddr addr;
-@@ -229,5 +229,5 @@
+@@ -106,5 +106,5 @@
+     PROsfd sd;
+     struct sockaddr_in saddr;
+-    PRIntn saddr_len;
++    socklen_t saddr_len;
+     PRUint16 listenPort3;
+     PRFileDesc *socket_poll_fd;
+@@ -232,5 +232,5 @@
 
      clientThread = PR_CreateThread(PR_USER_THREAD,
@@ -528,5 +598,5 @@
     PR_PRIORITY_NORMAL, PR_LOCAL_THREAD,
     PR_UNJOINABLE_THREAD, 0);
-@@ -238,5 +238,5 @@
+@@ -241,5 +241,5 @@
 
      clientThread = PR_CreateThread(PR_USER_THREAD,
@@ -535,5 +605,5 @@
     PR_PRIORITY_NORMAL, PR_GLOBAL_THREAD,
     PR_UNJOINABLE_THREAD, 0);
-@@ -247,5 +247,5 @@
+@@ -250,5 +250,5 @@
 
      clientThread = PR_CreateThread(PR_USER_THREAD,
@@ -575,6 +645,6 @@
 
      printf("%4.4d--\n", size );
---- ../pr/tests/sel_spd.c Fri Apr 29 17:02:55 2005
-+++ ../pr/tests/sel_spd.c Mon Jul 25 21:20:29 2005
+--- ../pr/tests/sel_spd.c 2009-05-06 01:40:39.000000000 -0400
++++ ../pr/tests/sel_spd.c 2009-11-04 16:34:14.000000000 -0500
 @@ -48,4 +48,7 @@
  #include <errno.h>
@@ -583,7 +653,7 @@
 +# include <unistd.h> /* getopt(3) */
 +#endif
-
- #ifdef XP_MAC
-@@ -63,14 +66,14 @@
+ #ifdef SYMBIAN
+ #include <getopt.h>
+@@ -55,14 +58,14 @@
 
  typedef struct timer_slot_t {
@@ -607,8 +677,8 @@
 +static int _client_data = 8192;
 
- #if defined(XP_MAC)
-@@ -81,10 +84,9 @@
+ #ifdef SYMBIAN
+@@ -73,10 +76,9 @@
   * buffer.
- */
+  */
 -static long _server_data = (8*1024);
 -static long _threads_max = 10, _threads = 10;
@@ -622,5 +692,12 @@
 
  static int verbose=0;
-@@ -514,10 +516,10 @@
+@@ -134,5 +136,5 @@
+ PRThread *thread;
+ int *id =  (int *)arg_id;
+- PRFileDesc *sock;
++ PRFileDesc *sock = NULL;
+ PRSocketOptionData sockopt;
+ PRNetAddr sa;
+@@ -502,10 +504,10 @@
  {
  int index;
@@ -754,5 +831,5 @@
 --- ../pr/tests/cvar2.c Sun Apr 25 11:01:02 2004
 +++ ../pr/tests/cvar2.c Mon Jul 25 20:37:10 2005
-@@ -134,5 +134,5 @@
+@@ -128,5 +128,5 @@
          PR_Lock(info->lock);
          if (*info->tcount == 0) {
@@ -761,5 +838,5 @@
  PR_GetCurrentThread(), info->cvar));
              PR_WaitCondVar(info->cvar, info->timeout);
-@@ -147,6 +147,6 @@
+@@ -141,6 +141,6 @@
          (*info->exitcount)++;
          PR_NotifyCondVar(info->exitcvar);
@@ -770,5 +847,5 @@
          PR_Unlock(info->exitlock);
      }
-@@ -196,5 +196,5 @@
+@@ -190,5 +190,5 @@
  CondVarTestSUU(void *_arg)
  {
@@ -777,5 +854,5 @@
      PRInt32 index, loops;
      threadinfo *list;
-@@ -228,5 +228,5 @@
+@@ -222,5 +222,5 @@
                           PR_LOCAL_THREAD);
          index++;
@@ -784,5 +861,5 @@
      }
 
-@@ -238,5 +238,5 @@
+@@ -232,5 +232,5 @@
              PR_NotifyCondVar(list[index].cvar);
              PR_Unlock(list[index].lock);
@@ -791,5 +868,5 @@
  PR_GetCurrentThread(), list[index].cvar));
          }
-@@ -266,5 +266,5 @@
+@@ -260,5 +260,5 @@
  CondVarTestSUK(void *_arg)
  {
@@ -798,5 +875,5 @@
      PRInt32 index, loops;
      threadinfo *list;
-@@ -340,5 +340,5 @@
+@@ -334,5 +334,5 @@
  CondVarTestPUU(void *_arg)
  {
@@ -805,5 +882,5 @@
      PRInt32 index, loops;
      threadinfo *list;
-@@ -375,5 +375,5 @@
+@@ -369,5 +369,5 @@
                           PR_LOCAL_THREAD);
 
@@ -812,5 +889,5 @@
          index++;
  tcount++;
-@@ -393,6 +393,6 @@
+@@ -387,6 +387,6 @@
          /* Wait for threads to finish */
          while(exitcount < arg) {
@@ -821,5 +898,5 @@
              PR_WaitCondVar(exitcvar, PR_SecondsToInterval(60));
  }
-@@ -404,5 +404,5 @@
+@@ -398,5 +398,5 @@
      /* Join all the threads */
      for(index=0; index<(arg); index++)  {
@@ -828,5 +905,5 @@
          PR_JoinThread(list[index].thread);
          if (list[index].internal) {
-@@ -426,5 +426,5 @@
+@@ -420,5 +420,5 @@
  CondVarTestPUK(void *_arg)
  {
@@ -835,5 +912,5 @@
      PRInt32 index, loops;
      threadinfo *list;
-@@ -507,5 +507,5 @@
+@@ -501,5 +501,5 @@
  CondVarTest(void *_arg)
  {
@@ -842,5 +919,5 @@
      PRInt32 index, loops;
      threadinfo *list;
-@@ -640,5 +640,5 @@
+@@ -634,5 +634,5 @@
  CondVarTimeoutTest(void *_arg)
  {
@@ -849,5 +926,5 @@
      PRInt32 index, loops;
      threadinfo *list;
-@@ -751,5 +751,5 @@
+@@ -745,5 +745,5 @@
  CondVarMixedTest(void *_arg)
  {
@@ -856,5 +933,12 @@
      PRInt32 index, loops;
      threadinfo *list;
-@@ -912,5 +912,5 @@
+@@ -835,5 +835,5 @@
+
+             PR_Lock(list[index].lock);
+-            *list[index].tcount++;
++            list[index].tcount++;
+             PR_NotifyCondVar(list[index].cvar);
+             PR_Unlock(list[index].lock);
+@@ -906,5 +906,5 @@
 
      start = PR_IntervalNow();
@@ -863,5 +947,5 @@
      stop = PR_IntervalNow();
 
-@@ -975,5 +975,5 @@
+@@ -965,5 +965,5 @@
 
      for (threads = default_threads; threads < default_threads*5; threads+=default_threads) {
@@ -872,5 +956,6 @@
 --- ../pr/tests/io_timeout.c Sun Apr 25 11:01:02 2004
 +++ ../pr/tests/io_timeout.c Mon Jul 25 20:50:40 2005
-@@ -56,3 +56,5 @@
+@@ -55,9 +55,11 @@
+ #include "plgetopt.h"
 
 +#include <errno.h>
@@ -878,15 +963,32 @@
 +#include <string.h>
  #include "nspr.h"
-@@ -66,3 +68,3 @@
+
  #define NUM_THREADS 1
 -#define BASE_PORT   8000
 +#define BASE_PORT   38011
  #define DEFAULT_ACCEPT_TIMEOUT 2
-@@ -78,3 +80,3 @@
+
+@@ -71,5 +73,5 @@
+
  PRIntn failed_already = 0;
 -PRIntn debug_mode = 0;
 +PRIntn debug_mode = 1;
 
-@@ -131,3 +133,8 @@
+ #define LOCAL_SCOPE_STRING "LOCAL scope"
+@@ -87,5 +89,5 @@
+     PRStatus rv;
+ PRThreadScope tscope;
+- char *scope_str;
++ const char *scope_str;
+
+  
+@@ -106,4 +108,5 @@
+ default:
+ PR_ASSERT(!"Invalid thread scope");
++ scope_str = NULL;
+ break;
+ }
+@@ -124,5 +127,10 @@
+     if (rv == PR_FAILURE) {
  if (debug_mode)
 -         printf("unable to bind\n");
@@ -898,5 +1000,7 @@
 + }
  failed_already=1;
-@@ -153,4 +160,5 @@
+         goto dead;
+@@ -146,6 +154,7 @@
+         if (PR_GetError() == PR_IO_TIMEOUT_ERROR) {
  if (debug_mode) {
 -             printf("PR_Accept() timeout worked!\n");
@@ -906,7 +1010,23 @@
 +    "PR_IO_TIMEOUT_ERROR (%ld)\n",
  PR_IO_TIMEOUT_ERROR);
---- ../pr/tests/socket.c Sun Apr 25 11:01:02 2004
-+++ ../pr/tests/socket.c Mon Jul 25 22:14:47 2005
-@@ -219,5 +219,7 @@
+ }
+--- ../pr/tests/socket.c 2009-05-06 01:40:39.000000000 -0400
++++ ../pr/tests/socket.c 2009-11-04 16:45:41.000000000 -0500
+@@ -132,11 +132,13 @@
+
+ static PRInt32 num_tcp_clients = NUM_TCP_CLIENTS;
+-static PRInt32 num_udp_clients = NUM_UDP_CLIENTS;
+ static PRInt32 num_transmitfile_clients = NUM_TRANSMITFILE_CLIENTS;
+ static PRInt32 num_tcp_connections_per_client = NUM_TCP_CONNECTIONS_PER_CLIENT;
+ static PRInt32 tcp_mesg_size = TCP_MESG_SIZE;
+ static PRInt32 num_tcp_mesgs_per_connection = NUM_TCP_MESGS_PER_CONNECTION;
++#if defined(SYMBIAN) && !defined(__WINSCW__)
++static PRInt32 num_udp_clients = NUM_UDP_CLIENTS;
+ static PRInt32 num_udp_datagrams_per_client = NUM_UDP_DATAGRAMS_PER_CLIENT;
+ static PRInt32 udp_datagram_size = UDP_DGRAM_SIZE;
++#endif
+
+ static PRInt32 thread_count;
+@@ -210,5 +212,7 @@
      int bytes;
      int offset = 0;
@@ -916,5 +1036,5 @@
  PRIntervalTime timeout = PR_INTERVAL_NO_TIMEOUT;
 
-@@ -226,10 +228,12 @@
+@@ -217,10 +221,12 @@
 
      for (rem=len; rem; offset += bytes, rem -= bytes) {
@@ -931,5 +1051,5 @@
              PR_GetCurrentThread(), bytes));
          if (bytes < 0) {
-@@ -262,9 +266,9 @@
+@@ -253,9 +259,9 @@
 
      for (rem=len; rem; offset += bytes, rem -= bytes) {
@@ -943,12 +1063,12 @@
              PR_GetCurrentThread(), bytes));
          if (bytes <= 0)
-@@ -314,5 +318,5 @@
-                 fprintf(stderr,"prsocket_test: ERROR - PR_Shutdown\n");
+@@ -308,5 +314,5 @@
              }
+ #endif
 -        DPRINTF(("Serve_Client [0x%lx]: inbuf[0] = 0x%lx\n",PR_GetCurrentThread(),
 +        DPRINTF(("Serve_Client [%p]: inbuf[0] = %d\n",PR_GetCurrentThread(),
              (*((int *) in_buf->data))));
          if (writen(sockfd, in_buf->data, bytes) < bytes) {
-@@ -453,5 +457,5 @@
+@@ -447,5 +453,5 @@
      }
 
@@ -957,5 +1077,5 @@
          netaddr.inet.ip, netaddr.inet.port));
  if (PR_SetNetAddr(PR_IpAddrLoopback, client_domain,
-@@ -495,5 +499,5 @@
+@@ -489,5 +495,5 @@
 
          t = create_new_thread(PR_USER_THREAD,
@@ -964,5 +1084,5 @@
              PR_PRIORITY_NORMAL,
              PR_LOCAL_THREAD,
-@@ -505,5 +509,5 @@
+@@ -499,5 +505,5 @@
              goto exit;
          }
@@ -971,5 +1091,5 @@
      }
 
-@@ -521,5 +525,5 @@
+@@ -515,7 +521,8 @@
      PR_Notify(sp->exit_mon);
      PR_ExitMonitor(sp->exit_mon);
@@ -978,5 +1098,8 @@
  }
 
-@@ -579,5 +583,5 @@
++#if defined(SYMBIAN) && !defined(__WINSCW__)
+ /*
+  * UDP Server
+@@ -573,5 +580,5 @@
      }
 
@@ -985,5 +1108,5 @@
          netaddr.inet.ip, netaddr.inet.port));
      /*
-@@ -617,5 +621,5 @@
+@@ -611,5 +618,5 @@
      memset(&netaddr, 0 , sizeof(netaddr));
      for (i = 0; i < (num_udp_clients * num_udp_datagrams_per_client); i++) {
@@ -992,5 +1115,5 @@
              netaddr.inet.ip, netaddr.inet.port, bytes, in_buf->data,
              in_buf->data[0]));
-@@ -623,5 +627,5 @@
+@@ -617,5 +624,5 @@
          rv = PR_RecvFrom(sockfd, in_buf->data, bytes, 0, &netaddr,
              PR_INTERVAL_NO_TIMEOUT);
@@ -999,5 +1122,5 @@
              netaddr.inet.ip, netaddr.inet.port, rv, in_buf->data,
              in_buf->data[0]));
-@@ -646,5 +650,5 @@
+@@ -640,6 +647,7 @@
      PR_Notify(sp->exit_mon);
      PR_ExitMonitor(sp->exit_mon);
@@ -1005,13 +1128,15 @@
 +    DPRINTF(("UDP_Server [%p] exiting\n", PR_GetCurrentThread()));
  }
++#endif /* defined(SYMBIAN) && !defined(__WINSCW__) */
 
-@@ -689,5 +693,5 @@
-         }
+ /*
+@@ -684,5 +692,5 @@
          if (PR_Connect(sockfd, &netaddr,PR_INTERVAL_NO_TIMEOUT) < 0){
--         fprintf(stderr, "PR_Connect failed: (%ld, %ld)\n",
-+         fprintf(stderr, "PR_Connect failed: (%d, %d)\n",
-             PR_GetError(), PR_GetOSError());
+         fprintf(stderr, "PR_Connect failed: (%ld, %ld)\n",
+-             PR_GetError(), PR_GetOSError());
++             (long)PR_GetError(), (long)PR_GetOSError());
              failed_already=1;
-@@ -698,5 +702,5 @@
+             return;
+@@ -692,5 +700,5 @@
               * fill in random data
               */
@@ -1020,5 +1145,5 @@
              /*
               * write to server
-@@ -711,5 +715,5 @@
+@@ -705,5 +713,5 @@
                  return;
              }
@@ -1027,5 +1152,5 @@
                  PR_GetCurrentThread(), out_buf, (*((int *) out_buf->data))));
              if (readn(sockfd, in_buf->data, bytes) < bytes) {
-@@ -748,5 +752,5 @@
+@@ -745,11 +753,12 @@
      PR_Notify(cp->exit_mon);
      PR_ExitMonitor(cp->exit_mon);
@@ -1034,5 +1159,6 @@
  }
 
-@@ -754,5 +758,5 @@
++#if defined(SYMBIAN) && !defined(__WINSCW__)
+ /*
   * UDP_Client
   *    Client Thread
@@ -1041,5 +1167,5 @@
   *    Communicate with the server at the address specified in the argument.
   *    Fill in a buffer, write data to server, read it back and check
-@@ -812,5 +816,5 @@
+@@ -809,5 +818,5 @@
      }
 
@@ -1048,5 +1174,5 @@
          netaddr.inet.ip, netaddr.inet.port));
 
-@@ -829,7 +833,7 @@
+@@ -826,7 +835,7 @@
           * fill in random data
           */
@@ -1058,5 +1184,5 @@
          /*
           * write to server
-@@ -844,5 +848,5 @@
+@@ -841,5 +850,5 @@
              return;
          }
@@ -1065,5 +1191,5 @@
              PR_GetCurrentThread(), out_buf, (*((int *) out_buf->data))));
          if (cp->udp_connect)
-@@ -855,5 +859,5 @@
+@@ -852,5 +861,5 @@
              return;
          }
@@ -1072,5 +1198,5 @@
              PR_GetCurrentThread(), in_buf, (*((int *) in_buf->data))));
          /*
-@@ -880,10 +884,10 @@
+@@ -877,10 +886,11 @@
      PR_ExitMonitor(cp->exit_mon);
      PR_DELETE(cp);
@@ -1078,4 +1204,5 @@
 +    DPRINTF(("UDP_Client [%p] exiting\n", PR_GetCurrentThread()));
  }
++#endif /* defined(SYMBIAN) && !defined(__WINSCW__) */
 
  /*
@@ -1085,5 +1212,5 @@
   *    One server and several clients are started
   *    Each client connects to the server and sends a chunk of data
-@@ -937,5 +941,5 @@
+@@ -934,5 +944,5 @@
      sparamp->datalen = datalen;
      t = PR_CreateThread(PR_USER_THREAD,
@@ -1092,5 +1219,5 @@
          PR_PRIORITY_NORMAL,
          PR_LOCAL_THREAD,
-@@ -947,5 +951,5 @@
+@@ -944,5 +954,5 @@
          return -1;
      }
@@ -1099,5 +1226,5 @@
      thread_count++;
 
-@@ -981,5 +985,5 @@
+@@ -978,5 +988,5 @@
              return -1;
          }
@@ -1106,5 +1233,5 @@
          thread_count++;
      }
-@@ -991,7 +995,7 @@
+@@ -988,7 +998,7 @@
      PR_ExitMonitor(mon2);
      printf("%30s","TCP_Socket_Client_Server_Test:");
@@ -1116,5 +1243,8 @@
          num_tcp_mesgs_per_connection, tcp_mesg_size);
 
-@@ -1001,5 +1005,5 @@
+@@ -996,7 +1006,8 @@
+ }
+
++#if defined(SYMBIAN) && !defined(__WINSCW__)
  /*
   * UDP_Socket_Client_Server_Test    - iterative server test
@@ -1123,5 +1253,5 @@
   *    One server and several clients are started
   *    Each client connects to the server and sends a chunk of data
-@@ -1055,5 +1059,5 @@
+@@ -1052,5 +1063,5 @@
      DPRINTF(("Creating UDP server"));
      t = PR_CreateThread(PR_USER_THREAD,
@@ -1130,5 +1260,5 @@
          PR_PRIORITY_NORMAL,
          PR_LOCAL_THREAD,
-@@ -1121,6 +1125,6 @@
+@@ -1113,10 +1124,11 @@
      PR_ExitMonitor(mon2);
      printf("%30s","UDP_Socket_Client_Server_Test: ");
@@ -1139,5 +1269,10 @@
          num_udp_datagrams_per_client, udp_datagram_size);
 
-@@ -1477,5 +1481,5 @@
+     return 0;
+ }
++#endif /* defined(SYMBIAN) && !defined(__WINSCW__) */
+
+ static PRFileDesc *small_file_fd, *large_file_fd;
+@@ -1470,5 +1482,5 @@
      PR_Notify(cp->exit_mon);
      PR_ExitMonitor(cp->exit_mon);
@@ -1146,61 +1281,75 @@
  }
 
-@@ -1519,5 +1523,5 @@
-     if (bytes != (SMALL_FILE_SIZE+ SMALL_FILE_HEADER_SIZE)) {
+@@ -1513,5 +1525,5 @@
+         fprintf(stderr,
+             "prsocet_test: PR_TransmitFile failed: (%ld, %ld)\n",
+-            PR_GetError(), PR_GetOSError());
++            (long)PR_GetError(), (long)PR_GetOSError());
+         failed_already=1;
+     }
+@@ -1521,5 +1533,5 @@
+         fprintf(stderr,
+             "prsocket_test: PR_TransmitFile failed: (%ld, %ld)\n",
+-            PR_GetError(), PR_GetOSError());
++            (long)PR_GetError(), (long)PR_GetOSError());
+         failed_already=1;
+     }
+@@ -1549,5 +1561,5 @@
          fprintf(stderr,
--            "prsocet_test: PR_TransmitFile failed: (%ld, %ld)\n",
-+            "prsocet_test: PR_TransmitFile failed: (%d, %d)\n",
-             PR_GetError(), PR_GetOSError());
+             "prsocket_test: PR_SendFile failed: (%ld, %ld)\n",
+-            PR_GetError(), PR_GetOSError());
++            (long)PR_GetError(), (long)PR_GetOSError());
          failed_already=1;
-@@ -1555,5 +1559,5 @@
- slen, bytes);
+     }
+@@ -1573,5 +1585,5 @@
          fprintf(stderr,
--            "prsocket_test: PR_SendFile failed: (%ld, %ld)\n",
-+            "prsocket_test: PR_SendFile failed: (%d, %d)\n",
-             PR_GetError(), PR_GetOSError());
+             "prsocket_test: PR_SendFile failed: (%ld, %ld)\n",
+-            PR_GetError(), PR_GetOSError());
++            (long)PR_GetError(), (long)PR_GetOSError());
          failed_already=1;
-@@ -1579,5 +1583,5 @@
- slen, bytes);
+     }
+@@ -1595,5 +1607,5 @@
          fprintf(stderr,
--            "prsocket_test: PR_SendFile failed: (%ld, %ld)\n",
-+            "prsocket_test: PR_SendFile failed: (%d, %d)\n",
-             PR_GetError(), PR_GetOSError());
+             "prsocket_test: PR_SendFile failed: (%ld, %ld)\n",
+-            PR_GetError(), PR_GetOSError());
++            (long)PR_GetError(), (long)PR_GetOSError());
          failed_already=1;
-@@ -1601,5 +1605,5 @@
- slen, bytes);
+     }
+@@ -1617,5 +1629,5 @@
          fprintf(stderr,
--            "prsocket_test: PR_SendFile failed: (%ld, %ld)\n",
-+            "prsocket_test: PR_SendFile failed: (%d, %d)\n",
-             PR_GetError(), PR_GetOSError());
+             "prsocket_test: PR_SendFile failed: (%ld, %ld)\n",
+-            PR_GetError(), PR_GetOSError());
++            (long)PR_GetError(), (long)PR_GetOSError());
          failed_already=1;
-@@ -1623,5 +1627,5 @@
- slen, bytes);
+     }
+@@ -1639,5 +1651,5 @@
          fprintf(stderr,
--            "prsocket_test: PR_SendFile failed: (%ld, %ld)\n",
-+            "prsocket_test: PR_SendFile failed: (%d, %d)\n",
-             PR_GetError(), PR_GetOSError());
+             "prsocket_test: PR_SendFile failed: (%ld, %ld)\n",
+-            PR_GetError(), PR_GetOSError());
++            (long)PR_GetError(), (long)PR_GetOSError());
          failed_already=1;
-@@ -1645,5 +1649,5 @@
- slen, bytes);
+     }
+@@ -1661,5 +1673,5 @@
          fprintf(stderr,
--            "prsocket_test: PR_SendFile failed: (%ld, %ld)\n",
-+            "prsocket_test: PR_SendFile failed: (%d, %d)\n",
-             PR_GetError(), PR_GetOSError());
+             "prsocket_test: PR_SendFile failed: (%ld, %ld)\n",
+-            PR_GetError(), PR_GetOSError());
++            (long)PR_GetError(), (long)PR_GetOSError());
          failed_already=1;
-@@ -1667,5 +1671,5 @@
- slen, bytes);
+     }
+@@ -1683,5 +1695,5 @@
          fprintf(stderr,
--            "prsocket_test: PR_SendFile failed: (%ld, %ld)\n",
-+            "prsocket_test: PR_SendFile failed: (%d, %d)\n",
-             PR_GetError(), PR_GetOSError());
+             "prsocket_test: PR_SendFile failed: (%ld, %ld)\n",
+-            PR_GetError(), PR_GetOSError());
++            (long)PR_GetError(), (long)PR_GetOSError());
          failed_already=1;
-@@ -1689,5 +1693,5 @@
- slen, bytes);
+     }
+@@ -1707,5 +1719,5 @@
          fprintf(stderr,
--            "prsocket_test: PR_SendFile failed: (%ld, %ld)\n",
-+            "prsocket_test: PR_SendFile failed: (%d, %d)\n",
-             PR_GetError(), PR_GetOSError());
+             "prsocket_test: PR_SendFile failed: (%ld, %ld)\n",
+-            PR_GetError(), PR_GetOSError());
++            (long)PR_GetError(), (long)PR_GetOSError());
          failed_already=1;
-@@ -1788,5 +1792,5 @@
+     }
+@@ -1781,5 +1793,5 @@
      }
 
@@ -1209,5 +1358,5 @@
          netaddr.inet.ip, netaddr.inet.port));
      tcp_server_addr.inet.family = netaddr.inet.family;
-@@ -1843,5 +1847,5 @@
+@@ -1836,5 +1848,5 @@
 
          t[i] = PR_CreateThread(PR_USER_THREAD,
@@ -1216,5 +1365,5 @@
              PR_PRIORITY_NORMAL,
              PR_LOCAL_THREAD,
-@@ -1854,5 +1858,5 @@
+@@ -1847,5 +1859,5 @@
              goto exit;
          }
@@ -1223,5 +1372,5 @@
      }
 
-@@ -1882,10 +1886,10 @@
+@@ -1875,10 +1887,10 @@
      PR_Notify(sp->exit_mon);
      PR_ExitMonitor(sp->exit_mon);
@@ -1237,12 +1386,12 @@
   */
  static PRInt32
-@@ -2020,5 +2024,5 @@
-         if (bytes <= 0) {
-             fprintf(stderr,
--                "prsocket_test failed to write to file %s: (%ld, %ld)\n",
-+                "prsocket_test failed to write to file %s: (%d, %d)\n",
+@@ -2015,5 +2027,5 @@
+                 "prsocket_test failed to write to file %s: (%ld, %ld)\n",
                  LARGE_FILE_NAME,
-                 PR_GetError(), PR_GetOSError());
-@@ -2101,5 +2105,5 @@
+-                PR_GetError(), PR_GetOSError());
++                (long)PR_GetError(), (long)PR_GetOSError());
+             failed_already=1;
+             rv = -1;
+@@ -2094,5 +2106,5 @@
      sparamp->datalen = datalen;
      t = PR_CreateThread(PR_USER_THREAD,
@@ -1251,5 +1400,5 @@
          PR_PRIORITY_NORMAL,
          PR_LOCAL_THREAD,
-@@ -2112,5 +2116,5 @@
+@@ -2105,5 +2117,5 @@
          goto done;
      }
@@ -1258,5 +1407,5 @@
      thread_count++;
 
-@@ -2149,5 +2153,5 @@
+@@ -2142,5 +2154,5 @@
              goto done;
          }
@@ -1265,11 +1414,11 @@
          thread_count++;
      }
-@@ -2179,5 +2183,5 @@
-     }
+@@ -2173,5 +2185,5 @@
      if ((PR_RmDir(TEST_DIR)) == PR_FAILURE) {
--        fprintf(stderr,"prsocket_test failed to rmdir %s: (%ld, %ld)\n",
-+        fprintf(stderr,"prsocket_test failed to rmdir %s: (%d, %d)\n",
-             TEST_DIR, PR_GetError(), PR_GetOSError());
+         fprintf(stderr,"prsocket_test failed to rmdir %s: (%ld, %ld)\n",
+-            TEST_DIR, PR_GetError(), PR_GetOSError());
++            TEST_DIR, (long)PR_GetError(), (long)PR_GetOSError());
          failed_already=1;
+     }
 --- ../pr/tests/sprintf.c Sun Apr 25 11:01:02 2004
 +++ ../pr/tests/sprintf.c Mon Jul 25 22:21:32 2005
@@ -1440,7 +1589,7 @@
  #endif
  #if defined(XP_UNIX) || defined(XP_OS2_EMX)
---- ../pr/tests/thrpool_server.c Sun Apr 25 11:01:02 2004
-+++ ../pr/tests/thrpool_server.c Mon Jul 25 22:38:33 2005
-@@ -363,5 +363,5 @@
+--- ../pr/tests/thrpool_server.c 2009-05-06 01:40:39.000000000 -0400
++++ ../pr/tests/thrpool_server.c 2009-11-04 16:53:49.000000000 -0500
+@@ -351,5 +351,5 @@
 
      DPRINTF((
@@ -1449,5 +1598,12 @@
          netaddr.inet.ip, netaddr.inet.port));
 
-@@ -496,5 +496,5 @@
+@@ -363,5 +363,5 @@
+ sp->iod.timeout = PR_SecondsToInterval(60);
+ sp->datalen = tcp_mesg_size;
+- sp->exit_mon = sc_mon;
++ sp->exit_mon = NULL;
+ sp->job_counterp = &job_counter;
+ sp->conn_counter = 0;
+@@ -486,5 +486,5 @@
 
  PR_ASSERT(NULL != jobp);
@@ -1456,5 +1612,5 @@
 
  /*
-@@ -513,5 +513,5 @@
+@@ -503,5 +503,5 @@
 
  PR_ASSERT(NULL != jobp);
@@ -1463,5 +1619,5 @@
 
  exit:
-@@ -530,7 +530,7 @@
+@@ -520,7 +520,7 @@
  PR_DestroyMonitor(sp->exit_mon);
      printf("%30s","TCP_Socket_Client_Server_Test:");
@@ -1552,7 +1708,21 @@
      }
 
---- ../pr/tests/thruput.c Sun Apr 25 11:01:02 2004
-+++ ../pr/tests/thruput.c Mon Jul 25 22:44:16 2005
-@@ -407,4 +407,5 @@
+--- ../pr/tests/thruput.c.orig 2009-02-23 00:00:45.000000000 -0500
++++ ../pr/tests/thruput.c 2009-11-04 16:56:33.000000000 -0500
+@@ -99,5 +99,5 @@
+     PRStatus rv;
+     PRFileDesc *xport;
+-    PRInt32 bytes, sampled;
++    PRInt32 bytes, sampled = -1;
+     PRIntervalTime now, interval;
+     PRBool do_display = PR_FALSE;
+@@ -208,5 +208,5 @@
+ static void PR_CALLBACK Servette(void *arg)
+ {
+-    PRInt32 bytes, sampled;
++    PRInt32 bytes, sampled = -1;
+     PRIntervalTime now, interval;
+     PRBool do_display = PR_FALSE;
+@@ -405,4 +405,5 @@
      else Client(server_name);
 
@@ -1844,2 +2014,46 @@
 
  PRIntn failed_already=0;
+--- ../pr/tests/cltsrv.c 2009-05-06 01:40:38.000000000 -0400
++++ ../pr/tests/cltsrv.c 2009-11-04 15:34:25.000000000 -0500
+@@ -920,5 +920,5 @@
+     PRUintn index;
+     PRBool boolean;
+-    CSClient_t *client;
++    CSClient_t *client = NULL;
+     PRStatus rv, joinStatus;
+     CSServer_t *server = NULL;
+--- ../pr/tests/parsetm.c 2009-05-11 18:23:19.000000000 -0400
++++ ../pr/tests/parsetm.c 2009-11-04 16:27:29.000000000 -0500
+@@ -64,6 +64,6 @@
+     /* Print day of the week, month, day, hour, minute, and second */
+     if (debug_mode) printf("%s %s %ld %02ld:%02ld:%02ld ",
+-    dayOfWeek[et->tm_wday], month[et->tm_month], et->tm_mday,
+-    et->tm_hour, et->tm_min, et->tm_sec);
++    dayOfWeek[et->tm_wday], month[et->tm_month], (long)et->tm_mday,
++    (long)et->tm_hour, (long)et->tm_min, (long)et->tm_sec);
+
+     /* Print time zone */
+@@ -80,4 +80,4 @@
+         minOffset = (totalOffset % 3600) / 60;
+         if (debug_mode)
+-            printf("%s%02ld%02ld ", sign, hourOffset, minOffset);
++            printf("%s%02ld%02ld ", sign, (long)hourOffset, (long)minOffset);
+     }
+--- ../pr/tests/provider.c 2009-05-06 01:40:39.000000000 -0400
++++ ../pr/tests/provider.c 2009-11-04 16:29:30.000000000 -0500
+@@ -1082,5 +1082,5 @@
+     PRUintn index;
+     PRBool boolean;
+-    CSClient_t *client;
++    CSClient_t *client = NULL;
+     PRStatus rv, joinStatus;
+     CSServer_t *server = NULL;
+--- ../pr/tests/switch.c 2009-05-06 01:40:39.000000000 -0400
++++ ../pr/tests/switch.c 2009-11-04 16:48:07.000000000 -0500
+@@ -113,5 +113,5 @@
+     PRBool help = PR_FALSE;
+     PRUintn concurrency = 1;
+-    Shared *shared, *link;
++    Shared *shared = NULL, *link;
+     PRIntervalTime timein, timeout;
+     PRThreadScope thread_scope = PR_LOCAL_THREAD;
Index: files/patch-warnings
===================================================================
RCS file: /home/pcvs/ports/devel/nspr/files/patch-warnings,v
retrieving revision 1.2
diff -U 2 -r1.2 patch-warnings
--- files/patch-warnings 28 Jun 2009 19:22:16 -0000 1.2
+++ files/patch-warnings 5 Nov 2009 16:03:39 -0000
@@ -56,2 +56,82 @@
  #endif
 
+--- ../pr/src/io/prprf.c 2008-05-31 11:10:17.000000000 -0400
++++ ../pr/src/io/prprf.c 2009-11-04 14:27:19.000000000 -0500
+@@ -698,5 +698,5 @@
+     int rv, i;
+     struct NumArg* nas = NULL;
+-    struct NumArg* nap;
++    struct NumArg* nap = NULL;
+     struct NumArg  nasArray[ NAS_DEFAULT_NUM ];
+     char  pattern[20];
+--- ../pr/src/io/prscanf.c 2005-08-05 18:44:06.000000000 -0400
++++ ../pr/src/io/prscanf.c 2009-11-04 14:31:24.000000000 -0500
+@@ -230,5 +230,5 @@
+ {
+     char buf[FMAX + 1], *p;
+-    int ch;
++    int ch = -1;
+     static const char digits[] = "0123456789abcdefABCDEF";
+     PRBool seenDigit = PR_FALSE;
+@@ -340,5 +340,5 @@
+ {
+     char buf[FMAX + 1], *p;
+-    int ch;
++    int ch = -1;
+     PRBool seenDigit = PR_FALSE;
+
+--- ../pr/src/misc/pralarm.c 2009-05-06 01:40:37.000000000 -0400
++++ ../pr/src/misc/pralarm.c 2009-11-04 14:34:27.000000000 -0500
+@@ -134,5 +134,5 @@
+     while (why != abort)
+     {
+-        PRIntervalTime pause;
++        PRIntervalTime pause = 0;
+
+         PR_Lock(alarm->lock);
+--- ../pr/src/misc/prdtoa.c 2009-10-05 18:58:41.000000000 -0400
++++ ../pr/src/misc/prdtoa.c 2009-11-04 14:36:24.000000000 -0500
+@@ -2765,5 +2765,5 @@
+ */
+
+- int bbits, b2, b5, be, dig, i, ieps, ilim, ilim0, ilim1,
++ int bbits, b2, b5, be, dig, i, ieps, ilim = -1, ilim0, ilim1 = -1,
+ j, j1, k, k0, k_check, leftright, m2, m5, s2, s5,
+ spec_case, try_quick;
+--- ../pr/src/misc/prenv.c 2009-05-06 01:40:37.000000000 -0400
++++ ../pr/src/misc/prenv.c 2009-11-04 15:02:32.000000000 -0500
+@@ -94,5 +94,10 @@
+
+     _PR_LOCK_ENV();
+-    result = _PR_MD_PUT_ENV(string);
++    /*
++     * putenv() does not modify the contents, but allows
++     * the caller to modify it later. So, it is Ok to
++     * drop the const-ness here...
++     */
++    result = _PR_MD_PUT_ENV((char *)string);
+     _PR_UNLOCK_ENV();
+     return (result)? PR_FAILURE : PR_SUCCESS;
+--- ../pr/src/misc/prtpool.c 2005-04-28 18:37:25.000000000 -0400
++++ ../pr/src/misc/prtpool.c 2009-11-04 15:08:05.000000000 -0500
+@@ -314,6 +314,6 @@
+ int rv;
+ PRCList *qp, *nextqp;
+-PRPollDesc *pollfds;
+-PRJob **polljobs;
++PRPollDesc *pollfds = NULL;
++PRJob **polljobs = NULL;
+ int poll_timeout;
+ PRIntervalTime now;
+--- ../pr/include/prlog.h 2009-02-22 14:56:13.000000000 -0500
++++ ../pr/include/prlog.h 2009-11-04 15:30:48.000000000 -0500
+@@ -232,7 +232,8 @@
+ #endif /* NO_NSPR_10_SUPPORT */
+
++NSPR_API(void) PR_Assert(const char *s, const char *file, PRIntn ln);
++
+ #if defined(DEBUG) || defined(FORCE_PR_ASSERT)
+
+-NSPR_API(void) PR_Assert(const char *s, const char *file, PRIntn ln);
+ #define PR_ASSERT(_expr) \
+     ((_expr)?((void)0):PR_Assert(# _expr,__FILE__,__LINE__))
_______________________________________________
freebsd-gnome@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@..."

Re: upgrading NSPR to 4.8.2

by Denise H. G.-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Mikhail

consider using send-pr or sending the problem report via the web
interface, which is a more efficient way and will attract more
attention.

regards.

--
tamgya |aT| GmAiL |DoT| cOm
_______________________________________________
freebsd-gnome@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@..."

Re: upgrading NSPR to 4.8.2

by Mikhail T.-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Denise H. G. написав(ла):
> Hi Mikhail
>
> consider using send-pr or sending the problem report via the web
> interface, which is a more efficient way and will attract more
> attention.

I really do believe, that e-mailing the port-maintainer is the quickest
and the surest way of getting a port's issue addressed. Unless the
particular maintainer is absent, of course :-) in which case any
ports-committer (such as myself) can fix the problem themselves, after a
reasonable "maintainer timeout".

Even if I were to submit a PR (what's "web interface" anyway?), it would
just be assigned to ``gnome''... Why waste time and effort?

Joe, do you need more information, or is my update being tested on your
famous cluster already? I was hoping, this would be done over the weekend...

BTW, I sent our collection of little fixes to Mozilla -- maybe, we'll be
able to remove some of the hunks next time:

        https://bugzilla.mozilla.org/show_bug.cgi?id=527006

Thanks! Yours,

        -mi
_______________________________________________
freebsd-gnome@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@..."

Re: upgrading NSPR to 4.8.2

by Jeremy Messenger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 09 Nov 2009 15:14:05 -0600, Mikhail T. <mi+thun@...>  
wrote:

> Denise H. G. написав(ла):
>> Hi Mikhail
>>
>> consider using send-pr or sending the problem report via the web
>> interface, which is a more efficient way and will attract more
>> attention.
>
> I really do believe, that e-mailing the port-maintainer is the quickest
> and the surest way of getting a port's issue addressed. Unless the
> particular maintainer is absent, of course :-) in which case any
> ports-committer (such as myself) can fix the problem themselves, after a
> reasonable "maintainer timeout".
>
> Even if I were to submit a PR (what's "web interface" anyway?), it would
> just be assigned to ``gnome''... Why waste time and effort?

Because, your attach has turned into message body rather than attach a  
file. There is no way I (or we are) am going to copy and paste as it won't  
work to get apply clean. See here:

http://lists.freebsd.org/pipermail/freebsd-gnome/2009-November/023324.html

I don't think the 'regression-test: test' will be include in the ports  
tree, because it causes pointyhat/tinderbox hang if I remember it correct.  
Should be in the commit history, I believe.

> Joe, do you need more information, or is my update being tested on your
> famous cluster already? I was hoping, this would be done over the  
> weekend...

I think most of us are busy at the moment. It looks like if it works great  
w/ Firefox 3/libxul by build and run time. Then it can be commit. From  
what I read in the release note and I don't think it breaks anything, but  
never know (hate when it happens :-)).

> BTW, I sent our collection of little fixes to Mozilla -- maybe, we'll be
> able to remove some of the hunks next time:
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=527006

Thanks!

Cheers,
Mezz

> Thanks! Yours,
>
> -mi


--
mezz7@...  -  mezz@...
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  gnome@...
_______________________________________________
freebsd-gnome@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@..."

Re: upgrading NSPR to 4.8.2

by Mikhail T.-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jeremy Messenger написав(ла):
> Because, your attach has turned into message body rather than attach a
> file. There is no way I (or we are) am going to copy and paste as it
> won't work to get apply clean. See here:
>
>     http://lists.freebsd.org/pipermail/freebsd-gnome/2009-November/023324.html
>
I don't understand... My message was text/plain. You should be able to
just feed it to patch(1) straight -- it will skip the beginning of the
e-mail and get right to the patches... Save the message from your Opera
to a /tmp/nspr-update.diff and feed it to patch...

Just in case, I placed it online too for your convenience:

    cd /usr/ports/devel/nspr
    fetch -o - http://aldan.algebra.com/~mi/nspr-4.8.2-update.diff.bz2 |
    bzcat | patch -p

> I don't think the 'regression-test: test' will be include in the ports
> tree, because it causes pointyhat/tinderbox hang if I remember it
> correct. Should be in the commit history, I believe.
That should not be happening any more (under 7.2), and when it did, it
was an indication of a bug (in 7.0)...
> I think most of us are busy at the moment. It looks like if it works
> great w/ Firefox 3/libxul by build and run time. Then it can be
> commit. From what I read in the release note and I don't think it
> breaks anything, but never know (hate when it happens :-)).
So, do you need me to do anything else? Or can I commit it on my own,
since I am not that busy?

    -mi

_______________________________________________
freebsd-gnome@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@..."

Re: upgrading NSPR to 4.8.2

by Jeremy Messenger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 09 Nov 2009 18:04:54 -0600, Mikhail T. <mi+thun@...>  
wrote:

> Jeremy Messenger написав(ла):
>> Because, your attach has turned into message body rather than attach a
>> file. There is no way I (or we are) am going to copy and paste as it
>> won't work to get apply clean. See here:
>>
>>     http://lists.freebsd.org/pipermail/freebsd-gnome/2009-November/023324.html
>>
>
> I don't understand... My message was text/plain. You should be able to
> just feed it to patch(1) straight -- it will skip the beginning of the
> e-mail and get right to the patches... Save the message from your Opera
> to a /tmp/nspr-update.diff and feed it to patch...
>
> Just in case, I placed it online too for your convenience:
>
>     cd /usr/ports/devel/nspr
>     fetch -o - http://aldan.algebra.com/~mi/nspr-4.8.2-update.diff.bz2 |
>     bzcat | patch -p
>
>> I don't think the 'regression-test: test' will be include in the ports
>> tree, because it causes pointyhat/tinderbox hang if I remember it
>> correct. Should be in the commit history, I believe.
>
> That should not be happening any more (under 7.2), and when it did, it
> was an indication of a bug (in 7.0)...

We still support FreeBSD 6.x. Let's hold on regression-test until after  
FreeBSD 8.0 released. The nspr doesn't need to be shoot pointyhat down  
during the thaw.

>> I think most of us are busy at the moment. It looks like if it works
>> great w/ Firefox 3/libxul by build and run time. Then it can be
>> commit. From what I read in the release note and I don't think it
>> breaks anything, but never know (hate when it happens :-)).
>
> So, do you need me to do anything else? Or can I commit it on my own,
> since I am not that busy?

You have the approve to commit it as long as it has been tested and  
without that regression-test patch. After FreeBSD 8.0 released, one of us  
can enable that regression-test and see how it goes.

Cheers,
Mezz

>     -mi


--
mezz7@...  -  mezz@...
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  gnome@...
_______________________________________________
freebsd-gnome@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@..."