diff --git a/util/crypt/nss/actions.py b/util/crypt/nss/actions.py
index 70b3f28930..7db74dc316 100644
--- a/util/crypt/nss/actions.py
+++ b/util/crypt/nss/actions.py
@@ -18,6 +18,9 @@ def setup():
# Respect LDFLAGS
pisitools.dosed("nss/coreconf/rules.mk", "(\$\(MKSHLIB\))\s-o", r"\1 $(LDFLAGS) -o")
+
+ # Fix missing includes
+ shelltools.system("sed 's|-Ideprecated|-Ideprecated -I../util -I../softoken -I.|' -i nss/lib/freebl/Makefile")
# Create nss.pc and nss-config dynamically
shelltools.system("./generate-pc-config.sh")
@@ -39,8 +42,10 @@ def build():
shelltools.export("PKG_CONFIG_ALLOW_SYSTEM_CFLAGS", "1")
autotools.make("-C nss/coreconf -j1")
+ autotools.make("-C nss/lib/util -j1")
autotools.make("-C nss/lib/dbm")
- autotools.make("-C nss -j1")
+ autotools.make("-C nss/lib/sysinit -j1")
+ autotools.make("-C nss all -j1")
def install():
for binary in ["*util", "shlibsign", "signtool", "signver", "ssltap"]:
diff --git a/util/crypt/nss/files/dbm.patch b/util/crypt/nss/files/dbm.patch
new file mode 100644
index 0000000000..7049ea416c
--- /dev/null
+++ b/util/crypt/nss/files/dbm.patch
@@ -0,0 +1,22 @@
+diff -Nuar a/nss/lib/dbm/src/manifest.mn b/nss/lib/dbm/src/manifest.mn
+--- a/nss/lib/dbm/src/manifest.mn 2020-06-17 01:50:59.000000000 +0300
++++ b/nss/lib/dbm/src/manifest.mn 2020-06-23 15:21:36.589739910 +0300
+@@ -5,6 +5,7 @@
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+ CORE_DEPTH = ../../..
++INCLUDES += -I../include
+
+ MODULE = dbm
+
+diff -Nuar a/nss/lib/sysinit/manifest.mn b/nss/lib/sysinit/manifest.mn
+--- a/nss/lib/sysinit/manifest.mn 2020-06-17 01:50:59.000000000 +0300
++++ b/nss/lib/sysinit/manifest.mn 2020-06-23 15:21:15.448741436 +0300
+@@ -3,6 +3,7 @@
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ CORE_DEPTH = ../..
++INCLUDES += -I../util
+
+ MODULE = nss
+
diff --git a/util/crypt/nss/pspec.xml b/util/crypt/nss/pspec.xml
index b765f0650c..c0000f185a 100644
--- a/util/crypt/nss/pspec.xml
+++ b/util/crypt/nss/pspec.xml
@@ -15,7 +15,7 @@
library
Network Security Services
Network Security Services (NSS) is a set of libraries designed to support cross-platform development of security-enabled client and server applications. Applications built with NSS can support SSL v2 and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3 certificates, and other security standards.
- https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_52_1_RTM/src/nss-3.52.1.tar.gz
+ https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_53_1_RTM/src/nss-3.53.1.tar.gz
nss.pc.in
nss-config.in
@@ -33,6 +33,8 @@
fedora/add-relro-linker-option.patch
+
+ dbm.patch
@@ -75,6 +77,13 @@
+
+ 2020-06-24
+ 3.53.1
+ Version bump.
+ Mustafa Cinasal
+ muscnsl@gmail.com
+
2020-06-02
3.52.1