patches/thunderbird3-20-system-nss-nspr.diff
author hawklu
Thu, 23 Jul 2009 09:53:46 +0000
changeset 16092 fd676459b28c
parent 15804 f2c1d297757d
child 17022 855fb364f1a5
permissions -rw-r--r--
2009-07-23 Brian <[email protected]> * base-specs/thunderbird.spec: * patches/thunderbird3-16-delay-stopping-realplayer.diff: * patches/thunderbird3-20-system-nss-nspr.diff: - Bump to 3.0b3 Remove following upstreamed patches: thunderbird3-03-js.diff thunderbird3-06-font-config.diff thunderbird3-07-pango-1-23.diff thunderbird3-08-im-context-not-match.diff thunderbird3-09-rename-nsSelectionBatcher.diff thunderbird3-10-bigendian.diff thunderbird3-13-js-dtrace.diff thunderbird3-14-xinerama.diff thunderbird3-17-runmozilla.diff thunderbird3-19-small-migration-wizard-window.diff

--- a/security/nss/lib/crmf/cmmfchal.c	Thu May 21 15:04:02 2009
+++ b/security/nss/lib/crmf/cmmfchal.c	Wed May 20 17:58:31 2009
@@ -38,7 +38,7 @@
 #include "cmmf.h"
 #include "cmmfi.h"
 #include "sechash.h"
-#include "genname.h"
+#include "../certdb/genname.h"
 #include "pk11func.h"
 #include "cert.h"
 #include "secitem.h"
--- a/security/manager/Makefile.in	Thu May 21 15:02:44 2009
+++ b/security/manager/Makefile.in	Thu May 21 15:02:07 2009
@@ -82,7 +82,12 @@
   $(DIST)/lib/$(LIB_PREFIX)softokn.$(LIB_SUFFIX) \
   $(NULL)
 endif
+else
+ifeq ($(OS_ARCH), SunOS)
+SDK_LIBS = \
+  $(DIST)/lib/$(LIB_PREFIX)crmf.$(LIB_SUFFIX)
 endif
+endif
 
 # Default
 HAVE_FREEBL_LIBS = 1
@@ -251,7 +256,13 @@
 	$(MAKE) -C $(topsrcdir)/security/nss/cmd/shlibsign $(DEFAULT_GMAKE_FLAGS) clean
 endif
 	touch $@
+else
+ifeq ($(OS_ARCH), SunOS)
+	$(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS) clean
+	$(MAKE) -C $(topsrcdir)/security/nss/lib/crmf $(DEFAULT_GMAKE_FLAGS) clean
+	touch $@
 endif
+endif
 
 GARBAGE += .nss.cleaned
 
@@ -328,7 +339,13 @@
 	$(INSTALL) -m 755 $(DIST)/lib/$(FREEBL_64INT_LIB) $(DIST)/bin
 	$(INSTALL) -m 755 $(DIST)/lib/$(FREEBL_64FPU_LIB) $(DIST)/bin
 endif
+else
+ifeq ($(OS_ARCH), SunOS)
+	$(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS)
+	$(MAKE) -C $(topsrcdir)/security/nss/lib/crmf $(DEFAULT_GMAKE_FLAGS)
+	$(INSTALL) -m 755 $(SDK_LIBS) $(DIST)/sdk/lib
 endif
+endif
 ifndef MOZ_NATIVE_NSS
 # NSS installs headers to dist/public and we want them in dist/include
 	$(NSINSTALL) -D $(DIST)/include/nss
@@ -409,7 +426,12 @@
 	$(MAKE) -C $(topsrcdir)/security/nss/cmd/lib $(DEFAULT_GMAKE_FLAGS) clean
 	$(MAKE) -C $(topsrcdir)/security/nss/cmd/shlibsign $(DEFAULT_GMAKE_FLAGS) clean
 endif
+else
+ifeq ($(OS_ARCH), SunOS)
+	$(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS) clean
+	$(MAKE) -C $(topsrcdir)/security/nss/lib/crmf $(DEFAULT_GMAKE_FLAGS) clean
 endif
+endif
 
 echo-requires-recursive::
 	$(MAKE) -C boot $@
--- a/security/manager/ssl/src/nsNSSComponent.cpp	Thu May 21 18:39:37 2009
+++ b/security/manager/ssl/src/nsNSSComponent.cpp	Thu May 21 18:52:06 2009
@@ -812,6 +812,7 @@
   const char *possible_ckbi_locations[] = {
     NS_XPCOM_CURRENT_PROCESS_DIR,
     NS_GRE_DIR,
+    (const char *)-1, // This special value means: /usr/lib/mps
     0 // This special value means: 
       //   search for ckbi in the directories on the shared
       //   library/DLL search path
@@ -821,8 +822,12 @@
     nsCOMPtr<nsILocalFile> mozFile;
     char *fullLibraryPath = nsnull;
 
-    if (!possible_ckbi_locations[il])
+    if (possible_ckbi_locations[il] == (const char *)-1)
     {
+      fullLibraryPath = PR_GetLibraryName("/usr/lib/mps", "nssckbi");
+    }
+    else if (!possible_ckbi_locations[il])
+    {
       fullLibraryPath = PR_GetLibraryName(nsnull, "nssckbi");
     }
     else
--- a/content/media/video/src/nsOggDecoder.cpp	Tue Jun  9 18:36:36 2009
+++ b/content/media/video/src/nsOggDecoder.cpp	Tue Jun  9 18:37:32 2009
@@ -53,6 +53,8 @@
 #include "nsNetUtil.h"
 #include "nsOggDecoder.h"
 
+#define PR_ASSERT_CURRENT_THREAD_IN_MONITOR(/* PRMonitor* */ mon)
+
 using mozilla::TimeDuration;
 using mozilla::TimeStamp;