patches/songbird-09-system-nss-nspr.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 3062 2a7bf2823c88
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3062
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     1
--- a/security/nss/lib/crmf/cmmfchal.c	Thu May 21 15:04:02 2009
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     2
+++ b/security/nss/lib/crmf/cmmfchal.c	Wed May 20 17:58:31 2009
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     3
@@ -38,7 +38,7 @@
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     4
 #include "cmmf.h"
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     5
 #include "cmmfi.h"
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     6
 #include "sechash.h"
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     7
-#include "genname.h"
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     8
+#include "../certdb/genname.h"
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     9
 #include "pk11func.h"
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    10
 #include "cert.h"
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    11
 #include "secitem.h"
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    12
--- a/security/manager/Makefile.in	Thu May 21 15:02:44 2009
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    13
+++ b/security/manager/Makefile.in	Thu May 21 15:02:07 2009
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    14
@@ -82,7 +82,12 @@
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    15
   $(DIST)/lib/$(LIB_PREFIX)softokn.$(LIB_SUFFIX) \
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    16
   $(NULL)
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    17
 endif
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    18
+else
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    19
+ifeq ($(OS_ARCH), SunOS)
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    20
+SDK_LIBS = \
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    21
+  $(DIST)/lib/$(LIB_PREFIX)crmf.$(LIB_SUFFIX)
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    22
 endif
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    23
+endif
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    24
 
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    25
 # Default
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    26
 HAVE_FREEBL_LIBS = 1
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    27
@@ -251,7 +256,13 @@
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    28
 	$(MAKE) -C $(topsrcdir)/security/nss/cmd/shlibsign $(DEFAULT_GMAKE_FLAGS) clean
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    29
 endif
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    30
 	touch $@
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    31
+else
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    32
+ifeq ($(OS_ARCH), SunOS)
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    33
+	$(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS) clean
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    34
+	$(MAKE) -C $(topsrcdir)/security/nss/lib/crmf $(DEFAULT_GMAKE_FLAGS) clean
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    35
+	touch $@
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    36
 endif
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    37
+endif
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    38
 
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    39
 GARBAGE += .nss.cleaned
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    40
 
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    41
@@ -328,7 +339,13 @@
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    42
 	$(INSTALL) -m 755 $(DIST)/lib/$(FREEBL_64INT_LIB) $(DIST)/bin
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    43
 	$(INSTALL) -m 755 $(DIST)/lib/$(FREEBL_64FPU_LIB) $(DIST)/bin
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    44
 endif
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    45
+else
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    46
+ifeq ($(OS_ARCH), SunOS)
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    47
+	$(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS)
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    48
+	$(MAKE) -C $(topsrcdir)/security/nss/lib/crmf $(DEFAULT_GMAKE_FLAGS)
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    49
+	$(INSTALL) -m 755 $(SDK_LIBS) $(DIST)/sdk/lib
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    50
 endif
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    51
+endif
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    52
 ifndef MOZ_NATIVE_NSS
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    53
 # NSS installs headers to dist/public and we want them in dist/include
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    54
 	$(NSINSTALL) -D $(DIST)/include/nss
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    55
@@ -409,7 +426,12 @@
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    56
 	$(MAKE) -C $(topsrcdir)/security/nss/cmd/lib $(DEFAULT_GMAKE_FLAGS) clean
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    57
 	$(MAKE) -C $(topsrcdir)/security/nss/cmd/shlibsign $(DEFAULT_GMAKE_FLAGS) clean
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    58
 endif
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    59
+else
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    60
+ifeq ($(OS_ARCH), SunOS)
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    61
+	$(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS) clean
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    62
+	$(MAKE) -C $(topsrcdir)/security/nss/lib/crmf $(DEFAULT_GMAKE_FLAGS) clean
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    63
 endif
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    64
+endif
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    65
 
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    66
 echo-requires-recursive::
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    67
 	$(MAKE) -C boot $@
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    68
--- a/security/manager/ssl/src/nsNSSComponent.cpp	Thu May 21 18:39:37 2009
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    69
+++ b/security/manager/ssl/src/nsNSSComponent.cpp	Thu May 21 18:52:06 2009
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    70
@@ -812,6 +812,7 @@
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    71
   const char *possible_ckbi_locations[] = {
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    72
     NS_XPCOM_CURRENT_PROCESS_DIR,
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    73
     NS_GRE_DIR,
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    74
+    (const char *)-1, // This special value means: /usr/lib/mps
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    75
     0 // This special value means: 
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    76
       //   search for ckbi in the directories on the shared
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    77
       //   library/DLL search path
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    78
@@ -821,8 +822,12 @@
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    79
     nsCOMPtr<nsILocalFile> mozFile;
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    80
     char *fullLibraryPath = nsnull;
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    81
 
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    82
-    if (!possible_ckbi_locations[il])
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    83
+    if (possible_ckbi_locations[il] == (const char *)-1)
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    84
     {
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    85
+      fullLibraryPath = PR_GetLibraryName("/usr/lib/mps", "nssckbi");
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    86
+    }
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    87
+    else if (!possible_ckbi_locations[il])
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    88
+    {
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    89
       fullLibraryPath = PR_GetLibraryName(nsnull, "nssckbi");
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    90
     }
2a7bf2823c88 2010-12-07 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    91
     else