summaryrefslogtreecommitdiff
path: root/nss
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-07-14 00:05:33 +0200
committerMichael Stahl <mstahl@redhat.com>2012-07-16 18:19:10 +0200
commit7e6a07a6d2bcf50925fc499ec53216c960692f79 (patch)
tree218d4718b6e24caed96cb3b7a07d3f59ceebf106 /nss
parent7cdda27c17ddb309d7473b311485b970d57562b5 (diff)
nss: upgrade to 3.13.5
- drop nss-linux3.patch, builds out of the box on Linux 3.x now - drop nss-string-concat.patch, was fixed upstream - drop nss-clang_os_Linux_x86_s_comments.patch nss-clang_os_Linux_x86_64_s_comments.patch the invalid asm comments were fixed upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=624868 - drop nss-asm-fix.patch, fixed upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=671711 - not updated nss.patch.mingw since it looks unmaintained - remove the setting of FREEBL_NO_DEPEND, which is a) no longer necessary, because it will be set automatically on Linux 2.6 b) harmful because it prevents automatic setting of FREEBL_LOWHASH, which is necessary to prevent conflicts with system libfreebl3.so at least on Fedora 16/17 Change-Id: Idf9338d83f9b34000068c1b8691ca3135f56dd21
Diffstat (limited to 'nss')
-rw-r--r--nss/makefile.mk17
-rw-r--r--nss/nss-asm-fix.patch56
-rw-r--r--nss/nss-clang_os_Linux_x86_64_s_comments.patch149
-rw-r--r--nss/nss-clang_os_Linux_x86_s_comments.patch178
-rw-r--r--nss/nss-config.patch2
-rw-r--r--nss/nss-linux3.patch13
-rw-r--r--nss/nss-string-concat.patch11
-rw-r--r--nss/nss.aix.patch28
-rw-r--r--nss/nss.patch38
-rw-r--r--nss/nss_macosx.patch4
10 files changed, 44 insertions, 452 deletions
diff --git a/nss/makefile.mk b/nss/makefile.mk
index 433885786237..c123ef8512ac 100644
--- a/nss/makefile.mk
+++ b/nss/makefile.mk
@@ -42,13 +42,13 @@ all:
.ENDIF
VER_MAJOR=3
-VER_MINOR=12
-VER_PATCH=8
+VER_MINOR=13
+VER_PATCH=5
-TARFILE_NAME=nss-$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)-with-nspr-4.8.6
-TARFILE_MD5=71474203939fafbe271e1263e61d083e
+TARFILE_NAME=nss-$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)-with-nspr-4.9.1
+TARFILE_MD5=a0a861f539f0e7a91d05e6b9457e4db1
TARFILE_ROOTDIR=nss-$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
-PATCH_FILES=nss.patch nss.aix.patch nss-config.patch nss-linux3.patch nss-clang_os_Linux_x86_s_comments.patch nss-clang_os_Linux_x86_64_s_comments.patch nss-string-concat.patch nss-asm-fix.patch
+PATCH_FILES=nss.patch nss.aix.patch nss-config.patch
.IF "$(OS)"=="MACOSX"
PATCH_FILES+=nss_macosx.patch
@@ -98,10 +98,9 @@ OUT2BIN=config/nspr-config mozilla/security/nss/nss-config
BUILD_DIR=mozilla/security/nss
BUILD_ACTION= $(GNUMAKE) nss_build_all -j1
-#See #i105566# && moz#513024#
-.IF "$(OS)"=="LINUX"
-BUILD_ACTION+=FREEBL_NO_DEPEND=1
-.ENDIF
+#Note: with the new version the libfreebl3.so gets built in a way that does
+# not conflict with the system one on Linux automatically;
+# it is no longer necessary to add a workaround for #i105566# && moz#513024#
.IF "$(OS)$(COM)"=="SOLARISGCC"
BUILD_ACTION+=NS_USE_GCC=1
.ENDIF
diff --git a/nss/nss-asm-fix.patch b/nss/nss-asm-fix.patch
deleted file mode 100644
index b45e1790aefa..000000000000
--- a/nss/nss-asm-fix.patch
+++ /dev/null
@@ -1,56 +0,0 @@
---- misc/build/nss-3.12.8/mozilla/security/nss/lib/freebl/mpi/mp_comba.c.sav 2012-03-16 12:30:23.255942001 +0100
-+++ misc/build/nss-3.12.8/mozilla/security/nss/lib/freebl/mpi/mp_comba.c 2012-03-16 12:29:01.730170001 +0100
-@@ -49,7 +49,7 @@ __asm__ (
- "addq %%rax,%0 \n\t" \
- "adcq %%rdx,%1 \n\t" \
- "adcq $0,%2 \n\t" \
-- :"=r"(c0), "=r"(c1), "=r"(c2): "0"(c0), "1"(c1), "2"(c2), "g"(i), "g"(j) :"%rax","%rdx","%cc");
-+ :"=r"(c0), "=r"(c1), "=r"(c2): "0"(c0), "1"(c1), "2"(c2), "g"(i), "g"(j) :"%rax","%rdx","cc");
-
-
-
-@@ -76,7 +76,7 @@ __asm__ (
- "addq %%rax,%0 \n\t" \
- "adcq %%rdx,%1 \n\t" \
- "adcq $0,%2 \n\t" \
-- :"=r"(c0), "=r"(c1), "=r"(c2): "0"(c0), "1"(c1), "2"(c2), "g"(i) :"%rax","%rdx","%cc");
-+ :"=r"(c0), "=r"(c1), "=r"(c2): "0"(c0), "1"(c1), "2"(c2), "g"(i) :"%rax","%rdx","cc");
-
- #define SQRADD2(i, j) \
- __asm__ ( \
-@@ -88,7 +88,7 @@ __asm__ (
- "addq %%rax,%0 \n\t" \
- "adcq %%rdx,%1 \n\t" \
- "adcq $0,%2 \n\t" \
-- :"=r"(c0), "=r"(c1), "=r"(c2): "0"(c0), "1"(c1), "2"(c2), "g"(i), "g"(j) :"%rax","%rdx","%cc");
-+ :"=r"(c0), "=r"(c1), "=r"(c2): "0"(c0), "1"(c1), "2"(c2), "g"(i), "g"(j) :"%rax","%rdx","cc");
-
- #define SQRADDSC(i, j) \
- __asm__ ( \
-@@ -97,7 +97,7 @@ __asm__ (
- "movq %%rax,%0 \n\t" \
- "movq %%rdx,%1 \n\t" \
- "xorq %2,%2 \n\t" \
-- :"=r"(sc0), "=r"(sc1), "=r"(sc2): "g"(i), "g"(j) :"%rax","%rdx","%cc");
-+ :"=r"(sc0), "=r"(sc1), "=r"(sc2): "g"(i), "g"(j) :"%rax","%rdx","cc");
-
- #define SQRADDAC(i, j) \
- __asm__ ( \
-@@ -106,7 +106,7 @@ __asm__ (
- "addq %%rax,%0 \n\t" \
- "adcq %%rdx,%1 \n\t" \
- "adcq $0,%2 \n\t" \
-- :"=r"(sc0), "=r"(sc1), "=r"(sc2): "0"(sc0), "1"(sc1), "2"(sc2), "g"(i), "g"(j) :"%rax","%rdx","%cc");
-+ :"=r"(sc0), "=r"(sc1), "=r"(sc2): "0"(sc0), "1"(sc1), "2"(sc2), "g"(i), "g"(j) :"%rax","%rdx","cc");
-
- #define SQRADDDB \
- __asm__ ( \
-@@ -116,7 +116,7 @@ __asm__ (
- "addq %6,%0 \n\t" \
- "adcq %7,%1 \n\t" \
- "adcq %8,%2 \n\t" \
-- :"=&r"(c0), "=&r"(c1), "=&r"(c2) : "0"(c0), "1"(c1), "2"(c2), "r"(sc0), "r"(sc1), "r"(sc2) : "%cc");
-+ :"=&r"(c0), "=&r"(c1), "=&r"(c2) : "0"(c0), "1"(c1), "2"(c2), "r"(sc0), "r"(sc1), "r"(sc2) : "cc");
-
-
-
diff --git a/nss/nss-clang_os_Linux_x86_64_s_comments.patch b/nss/nss-clang_os_Linux_x86_64_s_comments.patch
deleted file mode 100644
index 604e4b75d417..000000000000
--- a/nss/nss-clang_os_Linux_x86_64_s_comments.patch
+++ /dev/null
@@ -1,149 +0,0 @@
---- misc/build/nss-3.12.8/mozilla/nsprpub/pr/src/md/unix/os_Linux_x86_64.s.sav 2010-04-11 07:47:01.000000000 +0200
-+++ misc/build/nss-3.12.8/mozilla/nsprpub/pr/src/md/unix/os_Linux_x86_64.s 2012-03-16 12:17:12.083170001 +0100
-@@ -1,46 +1,46 @@
--/ -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
--/
--/ ***** BEGIN LICENSE BLOCK *****
--/ Version: MPL 1.1/GPL 2.0/LGPL 2.1
--/
--/ The contents of this file are subject to the Mozilla Public License Version
--/ 1.1 (the "License"); you may not use this file except in compliance with
--/ the License. You may obtain a copy of the License at
--/ http://www.mozilla.org/MPL/
--/
--/ Software distributed under the License is distributed on an "AS IS" basis,
--/ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
--/ for the specific language governing rights and limitations under the
--/ License.
--/
--/ The Original Code is the Netscape Portable Runtime (NSPR).
--/
--/ The Initial Developer of the Original Code is
--/ Netscape Communications Corporation.
--/ Portions created by the Initial Developer are Copyright (C) 2004
--/ the Initial Developer. All Rights Reserved.
--/
--/ Contributor(s):
--/
--/ Alternatively, the contents of this file may be used under the terms of
--/ either the GNU General Public License Version 2 or later (the "GPL"), or
--/ the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
--/ in which case the provisions of the GPL or the LGPL are applicable instead
--/ of those above. If you wish to allow use of your version of this file only
--/ under the terms of either the GPL or the LGPL, and not to allow others to
--/ use your version of this file under the terms of the MPL, indicate your
--/ decision by deleting the provisions above and replace them with the notice
--/ and other provisions required by the GPL or the LGPL. If you do not delete
--/ the provisions above, a recipient may use your version of this file under
--/ the terms of any one of the MPL, the GPL or the LGPL.
--/
--/ ***** END LICENSE BLOCK *****
-+# -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
-+#
-+# ***** BEGIN LICENSE BLOCK *****
-+# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-+#
-+# The contents of this file are subject to the Mozilla Public License Version
-+# 1.1 (the "License"); you may not use this file except in compliance with
-+# the License. You may obtain a copy of the License at
-+# http://www.mozilla.org/MPL/
-+#
-+# Software distributed under the License is distributed on an "AS IS" basis,
-+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-+# for the specific language governing rights and limitations under the
-+# License.
-+#
-+# The Original Code is the Netscape Portable Runtime (NSPR).
-+#
-+# The Initial Developer of the Original Code is
-+# Netscape Communications Corporation.
-+# Portions created by the Initial Developer are Copyright (C) 2004
-+# the Initial Developer. All Rights Reserved.
-+#
-+# Contributor(s):
-+#
-+# Alternatively, the contents of this file may be used under the terms of
-+# either the GNU General Public License Version 2 or later (the "GPL"), or
-+# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-+# in which case the provisions of the GPL or the LGPL are applicable instead
-+# of those above. If you wish to allow use of your version of this file only
-+# under the terms of either the GPL or the LGPL, and not to allow others to
-+# use your version of this file under the terms of the MPL, indicate your
-+# decision by deleting the provisions above and replace them with the notice
-+# and other provisions required by the GPL or the LGPL. If you do not delete
-+# the provisions above, a recipient may use your version of this file under
-+# the terms of any one of the MPL, the GPL or the LGPL.
-+#
-+# ***** END LICENSE BLOCK *****
-
--/ PRInt32 _PR_x86_64_AtomicIncrement(PRInt32 *val)
--/
--/ Atomically increment the integer pointed to by 'val' and return
--/ the result of the increment.
--/
-+# PRInt32 _PR_x86_64_AtomicIncrement(PRInt32 *val)
-+#
-+# Atomically increment the integer pointed to by 'val' and return
-+# the result of the increment.
-+#
- .text
- .globl _PR_x86_64_AtomicIncrement
- .type _PR_x86_64_AtomicIncrement, @function
-@@ -53,11 +53,11 @@ _PR_x86_64_AtomicIncrement:
- ret
- .size _PR_x86_64_AtomicIncrement, .-_PR_x86_64_AtomicIncrement
-
--/ PRInt32 _PR_x86_64_AtomicDecrement(PRInt32 *val)
--/
--/ Atomically decrement the integer pointed to by 'val' and return
--/ the result of the decrement.
--/
-+# PRInt32 _PR_x86_64_AtomicDecrement(PRInt32 *val)
-+#
-+# Atomically decrement the integer pointed to by 'val' and return
-+# the result of the decrement.
-+#
- .text
- .globl _PR_x86_64_AtomicDecrement
- .type _PR_x86_64_AtomicDecrement, @function
-@@ -70,11 +70,11 @@ _PR_x86_64_AtomicDecrement:
- ret
- .size _PR_x86_64_AtomicDecrement, .-_PR_x86_64_AtomicDecrement
-
--/ PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval)
--/
--/ Atomically set the integer pointed to by 'val' to the new
--/ value 'newval' and return the old value.
--/
-+# PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval)
-+#
-+# Atomically set the integer pointed to by 'val' to the new
-+# value 'newval' and return the old value.
-+#
- .text
- .globl _PR_x86_64_AtomicSet
- .type _PR_x86_64_AtomicSet, @function
-@@ -85,11 +85,11 @@ _PR_x86_64_AtomicSet:
- ret
- .size _PR_x86_64_AtomicSet, .-_PR_x86_64_AtomicSet
-
--/ PRInt32 _PR_x86_64_AtomicAdd(PRInt32 *ptr, PRInt32 val)
--/
--/ Atomically add 'val' to the integer pointed to by 'ptr'
--/ and return the result of the addition.
--/
-+# PRInt32 _PR_x86_64_AtomicAdd(PRInt32 *ptr, PRInt32 val)
-+#
-+# Atomically add 'val' to the integer pointed to by 'ptr'
-+# and return the result of the addition.
-+#
- .text
- .globl _PR_x86_64_AtomicAdd
- .type _PR_x86_64_AtomicAdd, @function
-@@ -102,5 +102,5 @@ _PR_x86_64_AtomicAdd:
- ret
- .size _PR_x86_64_AtomicAdd, .-_PR_x86_64_AtomicAdd
-
--/ Magic indicating no need for an executable stack
-+# Magic indicating no need for an executable stack
- .section .note.GNU-stack, "", @progbits ; .previous
diff --git a/nss/nss-clang_os_Linux_x86_s_comments.patch b/nss/nss-clang_os_Linux_x86_s_comments.patch
deleted file mode 100644
index 04f2a7e5e947..000000000000
--- a/nss/nss-clang_os_Linux_x86_s_comments.patch
+++ /dev/null
@@ -1,178 +0,0 @@
---- misc/nss-3.12.8/mozilla/nsprpub/pr/src/md/unix/os_Linux_x86.s 2006-12-11 09:45:30.000000000 +0000
-+++ misc/build/nss-3.12.8/mozilla/nsprpub/pr/src/md/unix/os_Linux_x86.s 2012-02-18 20:48:10.702109102 +0000
-@@ -1,46 +1,46 @@
--/ -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
--/
--/ ***** BEGIN LICENSE BLOCK *****
--/ Version: MPL 1.1/GPL 2.0/LGPL 2.1
--/
--/ The contents of this file are subject to the Mozilla Public License Version
--/ 1.1 (the "License"); you may not use this file except in compliance with
--/ the License. You may obtain a copy of the License at
--/ http://www.mozilla.org/MPL/
--/
--/ Software distributed under the License is distributed on an "AS IS" basis,
--/ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
--/ for the specific language governing rights and limitations under the
--/ License.
--/
--/ The Original Code is the Netscape Portable Runtime (NSPR).
--/
--/ The Initial Developer of the Original Code is
--/ Netscape Communications Corporation.
--/ Portions created by the Initial Developer are Copyright (C) 2000
--/ the Initial Developer. All Rights Reserved.
--/
--/ Contributor(s):
--/
--/ Alternatively, the contents of this file may be used under the terms of
--/ either the GNU General Public License Version 2 or later (the "GPL"), or
--/ the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
--/ in which case the provisions of the GPL or the LGPL are applicable instead
--/ of those above. If you wish to allow use of your version of this file only
--/ under the terms of either the GPL or the LGPL, and not to allow others to
--/ use your version of this file under the terms of the MPL, indicate your
--/ decision by deleting the provisions above and replace them with the notice
--/ and other provisions required by the GPL or the LGPL. If you do not delete
--/ the provisions above, a recipient may use your version of this file under
--/ the terms of any one of the MPL, the GPL or the LGPL.
--/
--/ ***** END LICENSE BLOCK *****
--
--/ PRInt32 _PR_x86_AtomicIncrement(PRInt32 *val)
--/
--/ Atomically increment the integer pointed to by 'val' and return
--/ the result of the increment.
--/
-+# -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
-+#
-+# ***** BEGIN LICENSE BLOCK *****
-+# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-+#
-+# The contents of this file are subject to the Mozilla Public License Version
-+# 1.1 (the "License"); you may not use this file except in compliance with
-+# the License. You may obtain a copy of the License at
-+# http://www.mozilla.org/MPL/
-+#
-+# Software distributed under the License is distributed on an "AS IS" basis,
-+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-+# for the specific language governing rights and limitations under the
-+# License.
-+#
-+# The Original Code is the Netscape Portable Runtime (NSPR).
-+#
-+# The Initial Developer of the Original Code is
-+# Netscape Communications Corporation.
-+# Portions created by the Initial Developer are Copyright (C) 2000
-+# the Initial Developer. All Rights Reserved.
-+#
-+# Contributor(s):
-+#
-+# Alternatively, the contents of this file may be used under the terms of
-+# either the GNU General Public License Version 2 or later (the "GPL"), or
-+# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-+# in which case the provisions of the GPL or the LGPL are applicable instead
-+# of those above. If you wish to allow use of your version of this file only
-+# under the terms of either the GPL or the LGPL, and not to allow others to
-+# use your version of this file under the terms of the MPL, indicate your
-+# decision by deleting the provisions above and replace them with the notice
-+# and other provisions required by the GPL or the LGPL. If you do not delete
-+# the provisions above, a recipient may use your version of this file under
-+# the terms of any one of the MPL, the GPL or the LGPL.
-+#
-+# ***** END LICENSE BLOCK *****
-+
-+# PRInt32 _PR_x86_AtomicIncrement(PRInt32 *val)
-+#
-+# Atomically increment the integer pointed to by 'val' and return
-+# the result of the increment.
-+
- .text
- .globl _PR_x86_AtomicIncrement
- .align 4
-@@ -52,11 +52,11 @@
- incl %eax
- ret
-
--/ PRInt32 _PR_x86_AtomicDecrement(PRInt32 *val)
--/
--/ Atomically decrement the integer pointed to by 'val' and return
--/ the result of the decrement.
--/
-+# PRInt32 _PR_x86_AtomicDecrement(PRInt32 *val)
-+#
-+# Atomically decrement the integer pointed to by 'val' and return
-+# the result of the decrement.
-+
- .text
- .globl _PR_x86_AtomicDecrement
- .align 4
-@@ -68,25 +68,25 @@
- decl %eax
- ret
-
--/ PRInt32 _PR_x86_AtomicSet(PRInt32 *val, PRInt32 newval)
--/
--/ Atomically set the integer pointed to by 'val' to the new
--/ value 'newval' and return the old value.
--/
--/ An alternative implementation:
--/ .text
--/ .globl _PR_x86_AtomicSet
--/ .align 4
--/_PR_x86_AtomicSet:
--/ movl 4(%esp), %ecx
--/ movl 8(%esp), %edx
--/ movl (%ecx), %eax
--/retry:
--/ lock
--/ cmpxchgl %edx, (%ecx)
--/ jne retry
--/ ret
--/
-+# PRInt32 _PR_x86_AtomicSet(PRInt32 *val, PRInt32 newval)
-+#
-+# Atomically set the integer pointed to by 'val' to the new
-+# value 'newval' and return the old value.
-+#
-+# An alternative implementation:
-+# .text
-+# .globl _PR_x86_AtomicSet
-+# .align 4
-+#_PR_x86_AtomicSet:
-+# movl 4(%esp), %ecx
-+# movl 8(%esp), %edx
-+# movl (%ecx), %eax
-+#retry:
-+# lock
-+# cmpxchgl %edx, (%ecx)
-+# jne retry
-+# ret
-+
- .text
- .globl _PR_x86_AtomicSet
- .align 4
-@@ -96,11 +96,11 @@
- xchgl %eax, (%ecx)
- ret
-
--/ PRInt32 _PR_x86_AtomicAdd(PRInt32 *ptr, PRInt32 val)
--/
--/ Atomically add 'val' to the integer pointed to by 'ptr'
--/ and return the result of the addition.
--/
-+# PRInt32 _PR_x86_AtomicAdd(PRInt32 *ptr, PRInt32 val)
-+#
-+# Atomically add 'val' to the integer pointed to by 'ptr'
-+# and return the result of the addition.
-+
- .text
- .globl _PR_x86_AtomicAdd
- .align 4
-@@ -113,5 +113,5 @@
- addl %edx, %eax
- ret
-
--/ Magic indicating no need for an executable stack
-+# Magic indicating no need for an executable stack
- .section .note.GNU-stack, "", @progbits ; .previous
diff --git a/nss/nss-config.patch b/nss/nss-config.patch
index d65499fb2e95..071cb99dfe13 100644
--- a/nss/nss-config.patch
+++ b/nss/nss-config.patch
@@ -1,5 +1,5 @@
--- /dev/null
-+++ misc/build/nss-3.12.8/mozilla/security/nss/nss-config.in 2010-06-11 16:35:54.946870871 +0200
++++ misc/build/nss-3.13.5/mozilla/security/nss/nss-config.in 2010-06-11 16:35:54.946870871 +0200
@@ -0,0 +1,147 @@
+#!/bin/sh
+
diff --git a/nss/nss-linux3.patch b/nss/nss-linux3.patch
deleted file mode 100644
index 62c667f9a48f..000000000000
--- a/nss/nss-linux3.patch
+++ /dev/null
@@ -1,13 +0,0 @@
---- misc/nss-3.12.8/mozilla/security/coreconf/arch.mk 2011-10-06 19:58:31.808695724 +0200
-+++ misc/build/nss-3.12.8/mozilla/security/coreconf/arch.mk 2011-10-06 19:58:00.074648943 +0200
-@@ -152,6 +152,10 @@
-
- ifeq ($(OS_ARCH),Linux)
- OS_RELEASE := $(subst ., ,$(OS_RELEASE))
-+ # force Linux 3.x to 2.6
-+ ifeq ($(word 1,$(OS_RELEASE)),3)
-+ OS_RELEASE := 2 6
-+ endif
- ifneq ($(words $(OS_RELEASE)),1)
- OS_RELEASE := $(word 1,$(OS_RELEASE)).$(word 2,$(OS_RELEASE))
- endif
diff --git a/nss/nss-string-concat.patch b/nss/nss-string-concat.patch
deleted file mode 100644
index 68f9c4b7e56c..000000000000
--- a/nss/nss-string-concat.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- misc/build/nss-3.12.8/mozilla/security/nss/lib/softoken/secmodt.h.sav 2008-12-17 22:39:05.000000000 +0100
-+++ misc/build/nss-3.12.8/mozilla/security/nss/lib/softoken/secmodt.h 2012-03-16 01:56:47.881621915 +0100
-@@ -338,7 +338,7 @@ typedef PRUint32 PK11AttrFlags;
- #define SECMOD_SLOT_FLAGS "slotFlags=[RSA,DSA,DH,RC2,RC4,DES,RANDOM,SHA1,MD5,MD2,SSL,TLS,AES,Camellia,SEED,SHA256,SHA512]"
-
- #define SECMOD_MAKE_NSS_FLAGS(fips,slot) \
--"Flags=internal,critical"fips" slotparams=("#slot"={"SECMOD_SLOT_FLAGS"})"
-+"Flags=internal,critical" fips " slotparams=(" #slot "={" SECMOD_SLOT_FLAGS "})"
-
- #define SECMOD_INT_NAME "NSS Internal PKCS #11 Module"
- #define SECMOD_INT_FLAGS SECMOD_MAKE_NSS_FLAGS("",1)
diff --git a/nss/nss.aix.patch b/nss/nss.aix.patch
index 430b699150bd..c71fef5f6790 100644
--- a/nss/nss.aix.patch
+++ b/nss/nss.aix.patch
@@ -1,5 +1,5 @@
---- misc/nss-3.12.8/mozilla/nsprpub/configure 2010-08-18 07:23:01.000000000 -0500
-+++ misc/build/nss-3.12.8/mozilla/nsprpub/configure 2010-08-18 07:33:11.000000000 -0500
+--- misc/nss-3.13.5/mozilla/nsprpub/configure 2010-08-18 07:23:01.000000000 -0500
++++ misc/build/nss-3.13.5/mozilla/nsprpub/configure 2010-08-18 07:33:11.000000000 -0500
@@ -2973,7 +2973,8 @@
#define SYSV 1
EOF
@@ -18,8 +18,8 @@
AIX_WRAP='$(DIST)/lib/aixwrap.o'
AIX_TMP='./_aix_tmp.o'
if test -n "$USE_64"; then
---- misc/nss-3.12.8/mozilla/nsprpub/configure.in 2010-08-18 07:23:01.000000000 -0500
-+++ misc/build/nss-3.12.8/mozilla/nsprpub/configure.in 2010-08-18 07:32:36.000000000 -0500
+--- misc/nss-3.13.5/mozilla/nsprpub/configure.in 2010-08-18 07:23:01.000000000 -0500
++++ misc/build/nss-3.13.5/mozilla/nsprpub/configure.in 2010-08-18 07:32:36.000000000 -0500
@@ -831,7 +831,8 @@
AC_DEFINE(XP_UNIX)
AC_DEFINE(AIX)
@@ -42,8 +42,8 @@
AIX_WRAP='$(DIST)/lib/aixwrap.o'
AIX_TMP='./_aix_tmp.o'
if test -n "$USE_64"; then
---- misc/nss-3.12.8/mozilla/nsprpub/pr/src/Makefile.in 2010-08-18 07:23:04.000000000 -0500
-+++ misc/build/nss-3.12.8/mozilla/nsprpub/pr/src/Makefile.in 2010-08-18 07:24:49.000000000 -0500
+--- misc/nss-3.13.5/mozilla/nsprpub/pr/src/Makefile.in 2010-08-18 07:23:04.000000000 -0500
++++ misc/build/nss-3.13.5/mozilla/nsprpub/pr/src/Makefile.in 2010-08-18 07:24:49.000000000 -0500
@@ -110,7 +110,6 @@
endif
@@ -52,8 +52,8 @@
OS_LIBS = -lodm -lcfg
ifeq ($(CLASSIC_NSPR),1)
ifeq ($(OS_RELEASE),4.1)
---- misc/nss-3.12.8/mozilla/security/coreconf/AIX.mk 2010-08-18 07:23:06.000000000 -0500
-+++ misc/build/nss-3.12.8/mozilla/security/coreconf/AIX.mk 2010-08-18 07:26:26.000000000 -0500
+--- misc/nss-3.13.5/mozilla/security/coreconf/AIX.mk 2010-08-18 07:23:06.000000000 -0500
++++ misc/build/nss-3.13.5/mozilla/security/coreconf/AIX.mk 2010-08-18 07:26:26.000000000 -0500
@@ -62,35 +62,30 @@
DEFAULT_COMPILER = xlc_r
@@ -96,8 +96,8 @@
ifeq ($(USE_64), 1)
OS_CFLAGS += -DAIX_64BIT
OBJECT_MODE=64
---- misc/nss-3.12.8/mozilla/security/nss/cmd/platlibs.mk 2010-08-18 07:23:18.000000000 -0500
-+++ misc/build/nss-3.12.8/mozilla/security/nss/cmd/platlibs.mk 2010-08-18 07:26:48.000000000 -0500
+--- misc/nss-3.13.5/mozilla/security/nss/cmd/platlibs.mk 2010-08-18 07:23:18.000000000 -0500
++++ misc/build/nss-3.13.5/mozilla/security/nss/cmd/platlibs.mk 2010-08-18 07:26:48.000000000 -0500
@@ -173,7 +173,7 @@
$(NULL)
@@ -116,8 +116,8 @@
endif
# $(PROGRAM) has NO explicit dependencies on $(EXTRA_SHARED_LIBS)
---- misc/nss-3.12.8/mozilla/security/nss/cmd/shlibsign/mangle/Makefile 2010-08-18 07:23:20.000000000 -0500
-+++ misc/build/nss-3.12.8/mozilla/security/nss/cmd/shlibsign/mangle/Makefile 2010-08-18 07:42:44.000000000 -0500
+--- misc/nss-3.13.5/mozilla/security/nss/cmd/shlibsign/mangle/Makefile 2010-08-18 07:23:20.000000000 -0500
++++ misc/build/nss-3.13.5/mozilla/security/nss/cmd/shlibsign/mangle/Makefile 2010-08-18 07:42:44.000000000 -0500
@@ -75,7 +75,9 @@
endif
@@ -129,8 +129,8 @@
#######################################################################
# (5) Execute "global" rules. (OPTIONAL) #
---- misc/nss-3.12.8/mozilla/security/nss/cmd/shlibsign/Makefile 2010-08-18 08:00:17.000000000 -0500
-+++ misc/build/nss-3.12.8/mozilla/security/nss/cmd/shlibsign/Makefile 2010-08-18 07:55:55.000000000 -0500
+--- misc/nss-3.13.5/mozilla/security/nss/cmd/shlibsign/Makefile 2010-08-18 08:00:17.000000000 -0500
++++ misc/build/nss-3.13.5/mozilla/security/nss/cmd/shlibsign/Makefile 2010-08-18 07:55:55.000000000 -0500
@@ -75,6 +75,9 @@
endif
diff --git a/nss/nss.patch b/nss/nss.patch
index c8d69bffab52..636c3231286c 100644
--- a/nss/nss.patch
+++ b/nss/nss.patch
@@ -1,5 +1,5 @@
---- misc/nss-3.12.8/mozilla/nsprpub/configure 2010-02-08 19:41:35.000000000 +0100
-+++ misc/build/nss-3.12.8/mozilla/nsprpub/configure 2010-06-11 16:35:54.960188991 +0200
+--- misc/nss-3.13.5/mozilla/nsprpub/configure 2010-02-08 19:41:35.000000000 +0100
++++ misc/build/nss-3.13.5/mozilla/nsprpub/configure 2010-06-11 16:35:54.960188991 +0200
@@ -3900,7 +3900,7 @@
PR_MD_CSRCS=linux.c
MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
@@ -9,14 +9,14 @@
_OPTIMIZE_FLAGS=-O2
_DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb, and that
# combo is not yet good at debugging inlined
---- misc/nss-3.12.8/mozilla/security/coreconf/Darwin.mk 2010-02-04 19:59:10.000000000 +0100
-+++ misc/build/nss-3.12.8/mozilla/security/coreconf/Darwin.mk 2010-06-11 16:35:54.966185975 +0200
+--- misc/nss-3.13.5/mozilla/security/coreconf/Darwin.mk 2010-02-04 19:59:10.000000000 +0100
++++ misc/build/nss-3.13.5/mozilla/security/coreconf/Darwin.mk 2010-06-11 16:35:54.966185975 +0200
@@ -39,8 +39,12 @@
DEFAULT_COMPILER = cc
--CC = cc
--CCC = c++
+-CC = gcc
+-CCC = g++
+# CC is taken from environment automatically.
+#CC = cc
+# Use CCC from environment.
@@ -26,8 +26,8 @@
RANLIB = ranlib
ifndef CPU_ARCH
---- misc/nss-3.12.8/mozilla/security/coreconf/Linux.mk 2010-01-15 23:19:00.000000000 +0100
-+++ misc/build/nss-3.12.8/mozilla/security/coreconf/Linux.mk 2010-06-11 16:35:54.981151732 +0200
+--- misc/nss-3.13.5/mozilla/security/coreconf/Linux.mk 2010-01-15 23:19:00.000000000 +0100
++++ misc/build/nss-3.13.5/mozilla/security/coreconf/Linux.mk 2010-06-11 16:35:54.981151732 +0200
@@ -46,8 +46,11 @@
IMPL_STRATEGY = _PTH
endif
@@ -65,8 +65,8 @@
# The -rpath '$$ORIGIN' linker option instructs this library to search for its
# dependencies in the same directory where it resides.
---- misc/nss-3.12.8/mozilla/security/coreconf/SunOS5.mk 2009-06-11 02:55:32.000000000 +0200
-+++ misc/build/nss-3.12.8/mozilla/security/coreconf/SunOS5.mk 2010-06-11 16:35:54.985571182 +0200
+--- misc/nss-3.13.5/mozilla/security/coreconf/SunOS5.mk 2009-06-11 02:55:32.000000000 +0200
++++ misc/build/nss-3.13.5/mozilla/security/coreconf/SunOS5.mk 2010-06-11 16:35:54.985571182 +0200
@@ -89,8 +89,12 @@
# OPTIMIZER += -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer
endif
@@ -82,8 +82,8 @@
ASFLAGS += -Wa,-P
OS_CFLAGS += $(NOMD_OS_CFLAGS) $(ARCHFLAG)
ifndef BUILD_OPT
---- misc/nss-3.12.8/mozilla/security/coreconf/arch.mk 2009-06-05 04:14:49.000000000 +0200
-+++ misc/build/nss-3.12.8/mozilla/security/coreconf/arch.mk 2010-06-11 16:35:54.990913282 +0200
+--- misc/nss-3.13.5/mozilla/security/coreconf/arch.mk 2009-06-05 04:14:49.000000000 +0200
++++ misc/build/nss-3.13.5/mozilla/security/coreconf/arch.mk 2010-06-11 16:35:54.990913282 +0200
@@ -324,7 +324,12 @@
# IMPL_STRATEGY may be defined too.
#
@@ -98,8 +98,8 @@
ifeq (,$(filter-out WIN%,$(OS_TARGET)))
ifndef BUILD_OPT
---- misc/nss-3.12.8/mozilla/security/nss/cmd/platlibs.mk 2010-02-04 19:59:10.000000000 +0100
-+++ misc/build/nss-3.12.8/mozilla/security/nss/cmd/platlibs.mk 2010-06-11 16:35:55.004869805 +0200
+--- misc/nss-3.13.5/mozilla/security/nss/cmd/platlibs.mk 2010-02-04 19:59:10.000000000 +0100
++++ misc/build/nss-3.13.5/mozilla/security/nss/cmd/platlibs.mk 2010-06-11 16:35:55.004869805 +0200
@@ -41,27 +41,28 @@
ifeq ($(OS_ARCH), SunOS)
ifeq ($(BUILD_SUN_PKG), 1)
@@ -136,8 +136,8 @@
endif
endif
endif
---- misc/nss-3.12.8/mozilla/security/nss/cmd/shlibsign/Makefile 2009-08-07 21:06:37.000000000 +0200
-+++ misc/build/nss-3.12.8/mozilla/security/nss/cmd/shlibsign/Makefile 2010-06-11 16:35:55.009851148 +0200
+--- misc/nss-3.13.5/mozilla/security/nss/cmd/shlibsign/Makefile 2009-08-07 21:06:37.000000000 +0200
++++ misc/build/nss-3.13.5/mozilla/security/nss/cmd/shlibsign/Makefile 2010-06-11 16:35:55.009851148 +0200
@@ -78,10 +78,15 @@
# sign any and all shared libraries that contain the word freebl
@@ -157,14 +157,14 @@
endif
CHECKLOC = $(CHECKLIBS:.$(DLL_SUFFIX)=.chk)
---- misc/nss-3.12.8/mozilla/security/coreconf/Darwin.mk
-+++ misc/build/nss-3.12.8/mozilla/security/coreconf/Darwin.mk
+--- misc/nss-3.13.5/mozilla/security/coreconf/Darwin.mk
++++ misc/build/nss-3.13.5/mozilla/security/coreconf/Darwin.mk
@@ -64,12 +64,16 @@
endif
ifneq (,$(MACOS_SDK_DIR))
+ CLANG_VERSION_FULL := $(shell $(CC) -v 2>&1 | grep "clang version" | sed -e "s/^.*clang version[ ]*//" | awk '{ print $$1 }')
- GCC_VERSION_FULL := $(shell $(CC) -v 2>&1 | grep "gcc version" | sed -e "s/^.*gcc version[ ]*//" | awk '{ print $$1 }')
+ GCC_VERSION_FULL := $(shell $(CC) -dumpversion)
GCC_VERSION_MAJOR := $(shell echo $(GCC_VERSION_FULL) | awk -F. '{ print $$1 }')
GCC_VERSION_MINOR := $(shell echo $(GCC_VERSION_FULL) | awk -F. '{ print $$2 }')
GCC_VERSION = $(GCC_VERSION_MAJOR).$(GCC_VERSION_MINOR)
diff --git a/nss/nss_macosx.patch b/nss/nss_macosx.patch
index a6ddcd14ac57..ac6fe7138e3e 100644
--- a/nss/nss_macosx.patch
+++ b/nss/nss_macosx.patch
@@ -1,5 +1,5 @@
---- misc/nss-3.12.8/mozilla/security/nss/Makefile 2008-12-03 00:24:39.000000000 +0100
-+++ misc/build/nss-3.12.8/mozilla/security/nss/Makefile 2009-11-27 13:36:22.662753328 +0100
+--- misc/nss-3.13.5/mozilla/security/nss/Makefile 2008-12-03 00:24:39.000000000 +0100
++++ misc/build/nss-3.13.5/mozilla/security/nss/Makefile 2009-11-27 13:36:22.662753328 +0100
@@ -104,6 +104,9 @@
ifeq ($(OS_TARGET),WIN95)
NSPR_CONFIGURE_OPTS += --enable-win32-target=WIN95