summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2020-07-13 17:28:00 +0300
committerKhem Raj <raj.khem@gmail.com>2020-07-13 09:01:58 -0700
commit35364c0ce9f4fd353bfc59b11a167cf2521f8d85 (patch)
tree9736e8b6e12c2ea67b8c89f95bc3fa8bbc69b2d8
parent0d7522b7df80e45c379ad76addfddd51d0e56e9d (diff)
downloadmeta-openembedded-35364c0ce9f4fd353bfc59b11a167cf2521f8d85.tar.gz
nss: upgrade 3.51.1 -> 3.54
Upgrade nss 3.51.1 -> 3.54: * Refresh patches * Drop riscv.patch and 0001-Enable-uint128-on-mips64.patch patches as upstream commit [1] should implement that logic * Use "autobuild" as do_compile make target (Makefile logic has changed significantly, so the default target is no longer enough) [1] https://hg.mozilla.org/projects/nss/rev/60aa7df14f119d2a21750668c5ce36fa38ef2c6c Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/nss/nss/0001-Enable-uint128-on-mips64.patch48
-rw-r--r--meta-oe/recipes-support/nss/nss/0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch22
-rw-r--r--meta-oe/recipes-support/nss/nss/0001-nss-fix-support-cross-compiling.patch10
-rw-r--r--meta-oe/recipes-support/nss/nss/disable-Wvarargs-with-clang.patch17
-rw-r--r--meta-oe/recipes-support/nss/nss/nss-fix-incorrect-shebang-of-perl.patch107
-rw-r--r--meta-oe/recipes-support/nss/nss/nss-fix-nsinstall-build.patch20
-rw-r--r--meta-oe/recipes-support/nss/nss/nss-no-rpath-for-cross-compiling.patch10
-rw-r--r--meta-oe/recipes-support/nss/nss/pqg.c-ULL_addend.patch21
-rw-r--r--meta-oe/recipes-support/nss/nss/riscv.patch36
-rw-r--r--meta-oe/recipes-support/nss/nss_3.54.bb (renamed from meta-oe/recipes-support/nss/nss_3.51.1.bb)8
10 files changed, 113 insertions, 186 deletions
diff --git a/meta-oe/recipes-support/nss/nss/0001-Enable-uint128-on-mips64.patch b/meta-oe/recipes-support/nss/nss/0001-Enable-uint128-on-mips64.patch
deleted file mode 100644
index 90ec379c67..0000000000
--- a/meta-oe/recipes-support/nss/nss/0001-Enable-uint128-on-mips64.patch
+++ /dev/null
@@ -1,48 +0,0 @@
1From 8cf7afb5417e23cd3ebf8141239bf020f5dd2ac8 Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Thu, 30 Apr 2020 06:56:09 +0000
4Subject: [PATCH] Enable uint128 on mips64
5
6Fix below error:
7| verified/kremlin/kremlib/dist/minimal/FStar_UInt128.h:22:1: error: 'FStar_UInt128___proj__Mkuint128__item__low' declared 'static' but never defined [-Werror=unused-function]
8| 22 | FStar_UInt128___proj__Mkuint128__item__low(FStar_UInt128_uint128 projectee);
9
10Upstream-Status: Pending
11
12Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
13---
14 .../freebl/verified/kremlin/include/kremlin/internal/types.h | 3 ++-
15 .../kremlin/kremlib/dist/minimal/fstar_uint128_gcc64.h | 3 ++-
16 2 files changed, 4 insertions(+), 2 deletions(-)
17
18diff --git a/nss/lib/freebl/verified/kremlin/include/kremlin/internal/types.h b/nss/lib/freebl/verified/kremlin/include/kremlin/internal/types.h
19index 801e78f..cdac61e 100644
20--- a/nss/lib/freebl/verified/kremlin/include/kremlin/internal/types.h
21+++ b/nss/lib/freebl/verified/kremlin/include/kremlin/internal/types.h
22@@ -57,7 +57,8 @@ typedef const char *Prims_string;
23 typedef __m128i FStar_UInt128_uint128;
24 #elif !defined(KRML_VERIFIED_UINT128) && !defined(_MSC_VER) && \
25 (defined(__x86_64__) || defined(__x86_64) || defined(__aarch64__) || \
26- (defined(__riscv) && __riscv_xlen == 64))
27+ (defined(__riscv) && __riscv_xlen == 64) || \
28+ defined(__mips64))
29 typedef unsigned __int128 FStar_UInt128_uint128;
30 #else
31 typedef struct FStar_UInt128_uint128_s {
32diff --git a/nss/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_gcc64.h b/nss/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_gcc64.h
33index f38fda3..7ca67d2 100644
34--- a/nss/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_gcc64.h
35+++ b/nss/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_gcc64.h
36@@ -26,7 +26,8 @@
37 #include <stdint.h>
38 #if !defined(KRML_VERIFIED_UINT128) && !defined(_MSC_VER) && \
39 (defined(__x86_64__) || defined(__x86_64) || defined(__aarch64__) || \
40- (defined(__riscv) && __riscv_xlen == 64))
41+ (defined(__riscv) && __riscv_xlen == 64) || \
42+ defined(__mips64))
43
44 /* GCC + using native unsigned __int128 support */
45
46--
472.24.1
48
diff --git a/meta-oe/recipes-support/nss/nss/0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch b/meta-oe/recipes-support/nss/nss/0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch
index c380c14491..1a87a0577f 100644
--- a/meta-oe/recipes-support/nss/nss/0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch
+++ b/meta-oe/recipes-support/nss/nss/0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch
@@ -1,4 +1,4 @@
1From 5595e9651aca39af945931c73eb524a0f8bd130d Mon Sep 17 00:00:00 2001 1From 8b67c22b057e158f61c9fdd5b01f37195c6f5ca4 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 18 Dec 2019 12:29:50 +0100 3Date: Wed, 18 Dec 2019 12:29:50 +0100
4Subject: [PATCH] freebl: add a configure option to disable ARM HW crypto 4Subject: [PATCH] freebl: add a configure option to disable ARM HW crypto
@@ -8,10 +8,14 @@ prior to armv8 does not.
8 8
9Upstream-Status: Pending 9Upstream-Status: Pending
10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11
11--- 12---
12 nss/lib/freebl/Makefile | 3 +++ 13 nss/lib/freebl/Makefile | 4 ++++
13 1 file changed, 3 insertions(+) 14 nss/lib/freebl/gcm.c | 2 ++
15 2 files changed, 6 insertions(+)
14 16
17diff --git a/nss/lib/freebl/Makefile b/nss/lib/freebl/Makefile
18index f99f769..b0ec81b 100644
15--- a/nss/lib/freebl/Makefile 19--- a/nss/lib/freebl/Makefile
16+++ b/nss/lib/freebl/Makefile 20+++ b/nss/lib/freebl/Makefile
17@@ -125,6 +125,9 @@ else 21@@ -125,6 +125,9 @@ else
@@ -22,9 +26,9 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
22+ifdef NSS_USE_ARM_HW_CRYPTO 26+ifdef NSS_USE_ARM_HW_CRYPTO
23+ DEFINES += -DNSS_USE_ARM_HW_CRYPTO 27+ DEFINES += -DNSS_USE_ARM_HW_CRYPTO
24 ifeq ($(CPU_ARCH),aarch64) 28 ifeq ($(CPU_ARCH),aarch64)
25 DEFINES += -DUSE_HW_AES 29 DEFINES += -DUSE_HW_AES -DUSE_HW_SHA2
26 EXTRA_SRCS += aes-armv8.c gcm-aarch64.c 30 EXTRA_SRCS += aes-armv8.c gcm-aarch64.c sha256-armv8.c
27@@ -146,6 +149,7 @@ ifeq ($(CPU_ARCH),arm) 31@@ -148,6 +151,7 @@ endif
28 endif 32 endif
29 endif 33 endif
30 endif 34 endif
@@ -32,9 +36,11 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
32 36
33 ifeq ($(OS_TARGET),OSF1) 37 ifeq ($(OS_TARGET),OSF1)
34 DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_NO_MP_WORD 38 DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_NO_MP_WORD
39diff --git a/nss/lib/freebl/gcm.c b/nss/lib/freebl/gcm.c
40index c2cc18d..b77f573 100644
35--- a/nss/lib/freebl/gcm.c 41--- a/nss/lib/freebl/gcm.c
36+++ b/nss/lib/freebl/gcm.c 42+++ b/nss/lib/freebl/gcm.c
37@@ -17,6 +17,7 @@ 43@@ -18,6 +18,7 @@
38 44
39 #include <limits.h> 45 #include <limits.h>
40 46
@@ -42,7 +48,7 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
42 /* old gcc doesn't support some poly64x2_t intrinsic */ 48 /* old gcc doesn't support some poly64x2_t intrinsic */
43 #if defined(__aarch64__) && defined(IS_LITTLE_ENDIAN) && \ 49 #if defined(__aarch64__) && defined(IS_LITTLE_ENDIAN) && \
44 (defined(__clang__) || defined(__GNUC__) && __GNUC__ > 6) 50 (defined(__clang__) || defined(__GNUC__) && __GNUC__ > 6)
45@@ -25,6 +26,7 @@ 51@@ -27,6 +28,7 @@
46 /* We don't test on big endian platform, so disable this on big endian. */ 52 /* We don't test on big endian platform, so disable this on big endian. */
47 #define USE_ARM_GCM 53 #define USE_ARM_GCM
48 #endif 54 #endif
diff --git a/meta-oe/recipes-support/nss/nss/0001-nss-fix-support-cross-compiling.patch b/meta-oe/recipes-support/nss/nss/0001-nss-fix-support-cross-compiling.patch
index d5403397e7..3d90e2d951 100644
--- a/meta-oe/recipes-support/nss/nss/0001-nss-fix-support-cross-compiling.patch
+++ b/meta-oe/recipes-support/nss/nss/0001-nss-fix-support-cross-compiling.patch
@@ -1,4 +1,4 @@
1From 0cf47ee432cc26a706864fcc09b2c3adc342a679 Mon Sep 17 00:00:00 2001 1From 8cea16e7550ae14494fbb3a8fe9f5452e6bd1407 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 22 Feb 2017 11:36:11 +0200 3Date: Wed, 22 Feb 2017 11:36:11 +0200
4Subject: [PATCH] nss: fix support cross compiling 4Subject: [PATCH] nss: fix support cross compiling
@@ -8,13 +8,14 @@ Let some make variables be assigned from outside makefile.
8Upstream-Status: Inappropriate [configuration] 8Upstream-Status: Inappropriate [configuration]
9Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 9Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11
11--- 12---
12 nss/coreconf/arch.mk | 2 +- 13 nss/coreconf/arch.mk | 2 +-
13 nss/lib/freebl/Makefile | 6 ++++++ 14 nss/lib/freebl/Makefile | 6 ++++++
14 2 files changed, 7 insertions(+), 1 deletion(-) 15 2 files changed, 7 insertions(+), 1 deletion(-)
15 16
16diff --git a/nss/coreconf/arch.mk b/nss/coreconf/arch.mk 17diff --git a/nss/coreconf/arch.mk b/nss/coreconf/arch.mk
17index 06c276f..9c1eb51 100644 18index 790372d..2563134 100644
18--- a/nss/coreconf/arch.mk 19--- a/nss/coreconf/arch.mk
19+++ b/nss/coreconf/arch.mk 20+++ b/nss/coreconf/arch.mk
20@@ -30,7 +30,7 @@ OS_TEST := $(shell uname -m) 21@@ -30,7 +30,7 @@ OS_TEST := $(shell uname -m)
@@ -27,7 +28,7 @@ index 06c276f..9c1eb51 100644
27 28
28 # 29 #
29diff --git a/nss/lib/freebl/Makefile b/nss/lib/freebl/Makefile 30diff --git a/nss/lib/freebl/Makefile b/nss/lib/freebl/Makefile
30index 0ce1425..ebeb411 100644 31index 52d827c..f99f769 100644
31--- a/nss/lib/freebl/Makefile 32--- a/nss/lib/freebl/Makefile
32+++ b/nss/lib/freebl/Makefile 33+++ b/nss/lib/freebl/Makefile
33@@ -36,6 +36,12 @@ ifdef USE_64 34@@ -36,6 +36,12 @@ ifdef USE_64
@@ -43,6 +44,3 @@ index 0ce1425..ebeb411 100644
43 ifdef USE_ABI32_FPU 44 ifdef USE_ABI32_FPU
44 DEFINES += -DNSS_USE_ABI32_FPU 45 DEFINES += -DNSS_USE_ABI32_FPU
45 endif 46 endif
46--
472.11.0
48
diff --git a/meta-oe/recipes-support/nss/nss/disable-Wvarargs-with-clang.patch b/meta-oe/recipes-support/nss/nss/disable-Wvarargs-with-clang.patch
index de812d27ba..e87dc9f76b 100644
--- a/meta-oe/recipes-support/nss/nss/disable-Wvarargs-with-clang.patch
+++ b/meta-oe/recipes-support/nss/nss/disable-Wvarargs-with-clang.patch
@@ -1,3 +1,8 @@
1From c5b2c6327f3692ed07bf8d212123e0bf08485722 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 7 Mar 2020 08:34:02 -0800
4Subject: [PATCH] nss,nspr: Add recipes
5
1clang 3.9 add this warning to rightly flag undefined 6clang 3.9 add this warning to rightly flag undefined
2behavior, we relegate this to be just a warning instead 7behavior, we relegate this to be just a warning instead
3of error and keep the behavior as it was. Right fix would 8of error and keep the behavior as it was. Right fix would
@@ -18,10 +23,14 @@ for more details
18Signed-off-by: Khem Raj <raj.khem@gmail.com> 23Signed-off-by: Khem Raj <raj.khem@gmail.com>
19Upstream-Status: Pending 24Upstream-Status: Pending
20 25
21Index: nss-3.37.1/nss/coreconf/Werror.mk 26---
22=================================================================== 27 nss/coreconf/Werror.mk | 2 +-
23--- nss-3.37.1.orig/nss/coreconf/Werror.mk 28 1 file changed, 1 insertion(+), 1 deletion(-)
24+++ nss-3.37.1/nss/coreconf/Werror.mk 29
30diff --git a/nss/coreconf/Werror.mk b/nss/coreconf/Werror.mk
31index a569a49..687fe58 100644
32--- a/nss/coreconf/Werror.mk
33+++ b/nss/coreconf/Werror.mk
25@@ -56,7 +56,7 @@ ifndef WARNING_CFLAGS 34@@ -56,7 +56,7 @@ ifndef WARNING_CFLAGS
26 ifdef CC_IS_CLANG 35 ifdef CC_IS_CLANG
27 # -Qunused-arguments : clang objects to arguments that it doesn't understand 36 # -Qunused-arguments : clang objects to arguments that it doesn't understand
diff --git a/meta-oe/recipes-support/nss/nss/nss-fix-incorrect-shebang-of-perl.patch b/meta-oe/recipes-support/nss/nss/nss-fix-incorrect-shebang-of-perl.patch
index 547594d5b6..6f02dbcb4b 100644
--- a/meta-oe/recipes-support/nss/nss/nss-fix-incorrect-shebang-of-perl.patch
+++ b/meta-oe/recipes-support/nss/nss/nss-fix-incorrect-shebang-of-perl.patch
@@ -1,82 +1,56 @@
1nss: fix incorrect shebang of perl 1From 028ec9c7e9f7a6f083eec987f3ad7e7623398d9d Mon Sep 17 00:00:00 2001
2From: Ovidiu Panait <ovidiu.panait@windriver.com>
3Date: Mon, 13 Jul 2020 12:12:31 +0300
4Subject: [PATCH] nss: fix incorrect shebang of perl
2 5
3Replace incorrect shebang of perl with `#!/usr/bin/env perl'. 6Replace incorrect shebang of perl with `#!/usr/bin/env perl'.
4 7
5Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 8Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
6Upstream-Status: Pending 9Upstream-Status: Pending
10Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
11
7--- 12---
8 nss/cmd/smimetools/smime | 2 +- 13 nss/cmd/signver/examples/1/form.pl | 2 +-
9 nss/coreconf/cpdist.pl | 2 +- 14 nss/cmd/signver/examples/1/signedForm.pl | 2 +-
10 nss/coreconf/import.pl | 2 +- 15 nss/cmd/smimetools/smime | 2 +-
11 nss/coreconf/jniregen.pl | 2 +- 16 nss/coreconf/version.pl | 2 +-
12 nss/coreconf/outofdate.pl | 2 +- 17 nss/tests/clean_tbx | 2 +-
13 nss/coreconf/release.pl | 2 +- 18 nss/tests/iopr/server_scr/client.cgi | 2 +-
14 nss/coreconf/version.pl | 2 +- 19 nss/tests/path_uniq | 2 +-
15 nss/tests/clean_tbx | 2 +- 20 7 files changed, 7 insertions(+), 7 deletions(-)
16 nss/tests/path_uniq | 2 +-
17 9 files changed, 9 insertions(+), 9 deletions(-)
18 21
19diff --git a/nss/cmd/smimetools/smime b/nss/cmd/smimetools/smime 22diff --git a/nss/cmd/signver/examples/1/form.pl b/nss/cmd/signver/examples/1/form.pl
20--- a/nss/cmd/smimetools/smime 23index f2cfddc..af58d54 100755
21+++ b/nss/cmd/smimetools/smime 24--- a/nss/cmd/signver/examples/1/form.pl
25+++ b/nss/cmd/signver/examples/1/form.pl
22@@ -1,4 +1,4 @@ 26@@ -1,4 +1,4 @@
23-#!/usr/local/bin/perl 27-#! /usr/bin/perl
24+#!/usr/bin/env perl 28+#!/usr/bin/env perl
25
26 # This Source Code Form is subject to the terms of the Mozilla Public 29 # This Source Code Form is subject to the terms of the Mozilla Public
27 # License, v. 2.0. If a copy of the MPL was not distributed with this 30 # License, v. 2.0. If a copy of the MPL was not distributed with this
28diff --git a/nss/coreconf/cpdist.pl b/nss/coreconf/cpdist.pl 31 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
29index 800edfb..652187f 100755 32diff --git a/nss/cmd/signver/examples/1/signedForm.pl b/nss/cmd/signver/examples/1/signedForm.pl
30--- a/nss/coreconf/cpdist.pl 33index 847814c..64a31ff 100755
31+++ b/nss/coreconf/cpdist.pl 34--- a/nss/cmd/signver/examples/1/signedForm.pl
35+++ b/nss/cmd/signver/examples/1/signedForm.pl
32@@ -1,4 +1,4 @@ 36@@ -1,4 +1,4 @@
33-#! /usr/local/bin/perl 37-#! /usr/bin/perl
34+#!/usr/bin/env perl
35 #
36 # This Source Code Form is subject to the terms of the Mozilla Public
37 # License, v. 2.0. If a copy of the MPL was not distributed with this
38diff --git a/nss/coreconf/import.pl b/nss/coreconf/import.pl
39index dd2d177..428eaa5 100755
40--- a/nss/coreconf/import.pl
41+++ b/nss/coreconf/import.pl
42@@ -1,4 +1,4 @@
43-#! /usr/local/bin/perl
44+#!/usr/bin/env perl
45 #
46 # This Source Code Form is subject to the terms of the Mozilla Public
47 # License, v. 2.0. If a copy of the MPL was not distributed with this
48diff --git a/nss/coreconf/jniregen.pl b/nss/coreconf/jniregen.pl
49index 2039180..5f4f69c 100755
50--- a/nss/coreconf/jniregen.pl
51+++ b/nss/coreconf/jniregen.pl
52@@ -1,4 +1,4 @@
53-#!/usr/local/bin/perl
54+#!/usr/bin/env perl 38+#!/usr/bin/env perl
55 #
56 # This Source Code Form is subject to the terms of the Mozilla Public 39 # This Source Code Form is subject to the terms of the Mozilla Public
57 # License, v. 2.0. If a copy of the MPL was not distributed with this 40 # License, v. 2.0. If a copy of the MPL was not distributed with this
58diff --git a/nss/coreconf/outofdate.pl b/nss/coreconf/outofdate.pl 41 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
59index 33d80bb..01fc097 100755 42diff --git a/nss/cmd/smimetools/smime b/nss/cmd/smimetools/smime
60--- a/nss/coreconf/outofdate.pl 43index e67f6be..6cd85e6 100755
61+++ b/nss/coreconf/outofdate.pl 44--- a/nss/cmd/smimetools/smime
45+++ b/nss/cmd/smimetools/smime
62@@ -1,4 +1,4 @@ 46@@ -1,4 +1,4 @@
63-#!/usr/local/bin/perl 47-#!/usr/local/bin/perl
64+#!/usr/bin/env perl 48+#!/usr/bin/env perl
65 # 49
66 # This Source Code Form is subject to the terms of the Mozilla Public
67 # License, v. 2.0. If a copy of the MPL was not distributed with this
68diff --git a/nss/coreconf/release.pl b/nss/coreconf/release.pl
69index 7cde19d..b5df2f6 100755
70--- a/nss/coreconf/release.pl
71+++ b/nss/coreconf/release.pl
72@@ -1,4 +1,4 @@
73-#! /usr/local/bin/perl
74+#!/usr/bin/env perl
75 #
76 # This Source Code Form is subject to the terms of the Mozilla Public 50 # This Source Code Form is subject to the terms of the Mozilla Public
77 # License, v. 2.0. If a copy of the MPL was not distributed with this 51 # License, v. 2.0. If a copy of the MPL was not distributed with this
78diff --git a/nss/coreconf/version.pl b/nss/coreconf/version.pl 52diff --git a/nss/coreconf/version.pl b/nss/coreconf/version.pl
79index d2a4942..79359fe 100644 53index d2a4942..3ba7323 100644
80--- a/nss/coreconf/version.pl 54--- a/nss/coreconf/version.pl
81+++ b/nss/coreconf/version.pl 55+++ b/nss/coreconf/version.pl
82@@ -1,4 +1,4 @@ 56@@ -1,4 +1,4 @@
@@ -86,7 +60,7 @@ index d2a4942..79359fe 100644
86 # This Source Code Form is subject to the terms of the Mozilla Public 60 # This Source Code Form is subject to the terms of the Mozilla Public
87 # License, v. 2.0. If a copy of the MPL was not distributed with this 61 # License, v. 2.0. If a copy of the MPL was not distributed with this
88diff --git a/nss/tests/clean_tbx b/nss/tests/clean_tbx 62diff --git a/nss/tests/clean_tbx b/nss/tests/clean_tbx
89index 4de9555..a7def9f 100755 63index 4de9555..c15a069 100755
90--- a/nss/tests/clean_tbx 64--- a/nss/tests/clean_tbx
91+++ b/nss/tests/clean_tbx 65+++ b/nss/tests/clean_tbx
92@@ -1,4 +1,4 @@ 66@@ -1,4 +1,4 @@
@@ -95,8 +69,18 @@ index 4de9555..a7def9f 100755
95 69
96 ####################################################################### 70 #######################################################################
97 # 71 #
72diff --git a/nss/tests/iopr/server_scr/client.cgi b/nss/tests/iopr/server_scr/client.cgi
73index 581ad06..34ea170 100644
74--- a/nss/tests/iopr/server_scr/client.cgi
75+++ b/nss/tests/iopr/server_scr/client.cgi
76@@ -1,4 +1,4 @@
77-#!/usr/bin/perl
78+#!/usr/bin/env perl
79
80 # This Source Code Form is subject to the terms of the Mozilla Public
81 # License, v. 2.0. If a copy of the MPL was not distributed with this
98diff --git a/nss/tests/path_uniq b/nss/tests/path_uniq 82diff --git a/nss/tests/path_uniq b/nss/tests/path_uniq
99index f29f60a..08fbffa 100755 83index f29f60a..850332a 100755
100--- a/nss/tests/path_uniq 84--- a/nss/tests/path_uniq
101+++ b/nss/tests/path_uniq 85+++ b/nss/tests/path_uniq
102@@ -1,4 +1,4 @@ 86@@ -1,4 +1,4 @@
@@ -105,6 +89,3 @@ index f29f60a..08fbffa 100755
105 89
106 ######################################################################## 90 ########################################################################
107 # 91 #
108--
1091.8.1.2
110
diff --git a/meta-oe/recipes-support/nss/nss/nss-fix-nsinstall-build.patch b/meta-oe/recipes-support/nss/nss/nss-fix-nsinstall-build.patch
index 43c09d13ea..fbfa828b23 100644
--- a/meta-oe/recipes-support/nss/nss/nss-fix-nsinstall-build.patch
+++ b/meta-oe/recipes-support/nss/nss/nss-fix-nsinstall-build.patch
@@ -1,4 +1,7 @@
1Fix nss multilib build on openSUSE 11.x 32bit 1From 2701905e689cf7c1ee7ca2d116f20b5bbc146431 Mon Sep 17 00:00:00 2001
2From: Wenzong Fan <wenzong.fan@windriver.com>
3Date: Sat, 7 Mar 2020 08:34:02 -0800
4Subject: [PATCH] Fix nss multilib build on openSUSE 11.x 32bit
2 5
3While building lib64-nss on openSUSE 11.x 32bit, the nsinstall will 6While building lib64-nss on openSUSE 11.x 32bit, the nsinstall will
4fail with error: 7fail with error:
@@ -16,10 +19,15 @@ Upstream-Status: Pending
16 19
17Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> 20Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
18=================================================== 21===================================================
19Index: nss-3.24/nss/coreconf/nsinstall/Makefile 22
20=================================================================== 23---
21--- nss-3.24.orig/nss/coreconf/nsinstall/Makefile 24 nss/coreconf/nsinstall/Makefile | 7 +++++++
22+++ nss-3.24/nss/coreconf/nsinstall/Makefile 25 1 file changed, 7 insertions(+)
26
27diff --git a/nss/coreconf/nsinstall/Makefile b/nss/coreconf/nsinstall/Makefile
28index 08dfbc2..e97fb5f 100644
29--- a/nss/coreconf/nsinstall/Makefile
30+++ b/nss/coreconf/nsinstall/Makefile
23@@ -18,6 +18,13 @@ INTERNAL_TOOLS = 1 31@@ -18,6 +18,13 @@ INTERNAL_TOOLS = 1
24 32
25 include $(DEPTH)/coreconf/config.mk 33 include $(DEPTH)/coreconf/config.mk
@@ -33,4 +41,4 @@ Index: nss-3.24/nss/coreconf/nsinstall/Makefile
33+ 41+
34 ifeq (,$(filter-out OS2 WIN%,$(OS_TARGET))) 42 ifeq (,$(filter-out OS2 WIN%,$(OS_TARGET)))
35 PROGRAM = 43 PROGRAM =
36 else 44 TARGETS =
diff --git a/meta-oe/recipes-support/nss/nss/nss-no-rpath-for-cross-compiling.patch b/meta-oe/recipes-support/nss/nss/nss-no-rpath-for-cross-compiling.patch
index 7661dc93a0..7dbc1a3721 100644
--- a/meta-oe/recipes-support/nss/nss/nss-no-rpath-for-cross-compiling.patch
+++ b/meta-oe/recipes-support/nss/nss/nss-no-rpath-for-cross-compiling.patch
@@ -1,12 +1,17 @@
1nss:no rpath for cross compiling 1From dc51214895bcd63fc8eb8d1fe7941cd3e5500620 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Sat, 7 Mar 2020 08:34:02 -0800
4Subject: [PATCH] nss:no rpath for cross compiling
2 5
3Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 6Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
4Upstream-Status: Inappropriate [configuration] 7Upstream-Status: Inappropriate [configuration]
8
5--- 9---
6 nss/cmd/platlibs.mk | 4 ++-- 10 nss/cmd/platlibs.mk | 4 ++--
7 1 file changed, 2 insertions(+), 2 deletions(-) 11 1 file changed, 2 insertions(+), 2 deletions(-)
8 12
9diff --git a/nss/cmd/platlibs.mk b/nss/cmd/platlibs.mk 13diff --git a/nss/cmd/platlibs.mk b/nss/cmd/platlibs.mk
14index 6401778..e5c4e16 100644
10--- a/nss/cmd/platlibs.mk 15--- a/nss/cmd/platlibs.mk
11+++ b/nss/cmd/platlibs.mk 16+++ b/nss/cmd/platlibs.mk
12@@ -18,9 +18,9 @@ endif 17@@ -18,9 +18,9 @@ endif
@@ -21,6 +26,3 @@ diff --git a/nss/cmd/platlibs.mk b/nss/cmd/platlibs.mk
21 endif 26 endif
22 endif 27 endif
23 28
24--
251.8.1.2
26
diff --git a/meta-oe/recipes-support/nss/nss/pqg.c-ULL_addend.patch b/meta-oe/recipes-support/nss/nss/pqg.c-ULL_addend.patch
index 3a817faaa6..5505ae36ac 100644
--- a/meta-oe/recipes-support/nss/nss/pqg.c-ULL_addend.patch
+++ b/meta-oe/recipes-support/nss/nss/pqg.c-ULL_addend.patch
@@ -1,4 +1,8 @@
1nss does not build on mips with clang because wrong types are used? 1From a550bdf458f11dff46ebddbac94cf48c27d3471e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 7 Mar 2020 08:34:02 -0800
4Subject: [PATCH] nss does not build on mips with clang because wrong types are
5 used?
2 6
3pqg.c:339:16: error: comparison of constant 18446744073709551615 with expression of type 'unsigned long' is always true [-Werror,-Wtautological-constant-out-of-range-compare] 7pqg.c:339:16: error: comparison of constant 18446744073709551615 with expression of type 'unsigned long' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
4 if (addend < MP_DIGIT_MAX) { 8 if (addend < MP_DIGIT_MAX) {
@@ -6,11 +10,16 @@ pqg.c:339:16: error: comparison of constant 18446744073709551615 with expression
6 10
7Signed-off-by: Khem Raj <raj.khem@gmail.com> 11Signed-off-by: Khem Raj <raj.khem@gmail.com>
8Upstream-Status: Pending 12Upstream-Status: Pending
9Index: nss-3.37.1/nss/lib/freebl/pqg.c 13
10=================================================================== 14---
11--- nss-3.37.1.orig/nss/lib/freebl/pqg.c 15 nss/lib/freebl/pqg.c | 4 ++--
12+++ nss-3.37.1/nss/lib/freebl/pqg.c 16 1 file changed, 2 insertions(+), 2 deletions(-)
13@@ -326,8 +326,8 @@ generate_h_candidate(SECItem *hit, mp_in 17
18diff --git a/nss/lib/freebl/pqg.c b/nss/lib/freebl/pqg.c
19index 626b2fb..052ad36 100644
20--- a/nss/lib/freebl/pqg.c
21+++ b/nss/lib/freebl/pqg.c
22@@ -326,8 +326,8 @@ generate_h_candidate(SECItem *hit, mp_int *H)
14 23
15 static SECStatus 24 static SECStatus
16 addToSeed(const SECItem *seed, 25 addToSeed(const SECItem *seed,
diff --git a/meta-oe/recipes-support/nss/nss/riscv.patch b/meta-oe/recipes-support/nss/nss/riscv.patch
deleted file mode 100644
index aef91a7c37..0000000000
--- a/meta-oe/recipes-support/nss/nss/riscv.patch
+++ /dev/null
@@ -1,36 +0,0 @@
1Enable uint128 on riscv64
2
3Fixes
4| verified/kremlin/kremlib/dist/minimal/LowStar_Endianness.h:29:37: error: 'load128_be' declared 'static' but never defined [-Werror=unused-function]
5| 29 | inline static FStar_UInt128_uint128 load128_be(uint8_t *x0);
6| | ^~~~~~~~~~
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10--- a/nss/lib/freebl/verified/kremlin/include/kremlin/internal/types.h
11+++ b/nss/lib/freebl/verified/kremlin/include/kremlin/internal/types.h
12@@ -56,7 +56,8 @@ typedef const char *Prims_string;
13 #include <emmintrin.h>
14 typedef __m128i FStar_UInt128_uint128;
15 #elif !defined(KRML_VERIFIED_UINT128) && !defined(_MSC_VER) && \
16- (defined(__x86_64__) || defined(__x86_64) || defined(__aarch64__))
17+ (defined(__x86_64__) || defined(__x86_64) || defined(__aarch64__) || \
18+ (defined(__riscv) && __riscv_xlen == 64))
19 typedef unsigned __int128 FStar_UInt128_uint128;
20 #else
21 typedef struct FStar_UInt128_uint128_s {
22--- a/nss/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_gcc64.h
23+++ b/nss/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_gcc64.h
24@@ -23,9 +23,10 @@
25 #include "FStar_UInt128.h"
26 #include "FStar_UInt_8_16_32_64.h"
27 #include "LowStar_Endianness.h"
28-
29+#include <stdint.h>
30 #if !defined(KRML_VERIFIED_UINT128) && !defined(_MSC_VER) && \
31- (defined(__x86_64__) || defined(__x86_64) || defined(__aarch64__))
32+ (defined(__x86_64__) || defined(__x86_64) || defined(__aarch64__) || \
33+ (defined(__riscv) && __riscv_xlen == 64))
34
35 /* GCC + using native unsigned __int128 support */
36
diff --git a/meta-oe/recipes-support/nss/nss_3.51.1.bb b/meta-oe/recipes-support/nss/nss_3.54.bb
index 36e6cd8fc5..4923f68685 100644
--- a/meta-oe/recipes-support/nss/nss_3.51.1.bb
+++ b/meta-oe/recipes-support/nss/nss_3.54.bb
@@ -32,12 +32,9 @@ SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${VERSIO
32 file://system-pkcs11.txt \ 32 file://system-pkcs11.txt \
33 file://nss-fix-nsinstall-build.patch \ 33 file://nss-fix-nsinstall-build.patch \
34 file://0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch \ 34 file://0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch \
35 file://riscv.patch \
36 file://0001-Enable-uint128-on-mips64.patch \
37 " 35 "
38 36
39SRC_URI[md5sum] = "6acaf1ddff69306ae30a908881c6f233" 37SRC_URI[sha256sum] = "dab18bbfcf5e347934cda664df75ce9fd912a5772686c40d3c805e53c08d6e43"
40SRC_URI[sha256sum] = "085c5eaceef040eddea639e2e068e70f0e368f840327a678ef74ae3d6c15ca78"
41 38
42UPSTREAM_CHECK_URI = "https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_Releases" 39UPSTREAM_CHECK_URI = "https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_Releases"
43UPSTREAM_CHECK_REGEX = "NSS_(?P<pver>.+)_release_notes" 40UPSTREAM_CHECK_REGEX = "NSS_(?P<pver>.+)_release_notes"
@@ -127,7 +124,8 @@ do_compile() {
127 export CC="${CC} ${CFLAGS}" 124 export CC="${CC} ${CFLAGS}"
128 make -C ./nss CCC="${CXX} -g" \ 125 make -C ./nss CCC="${CXX} -g" \
129 OS_TEST=${OS_TEST} \ 126 OS_TEST=${OS_TEST} \
130 RPATH="${RPATH}" 127 RPATH="${RPATH}" \
128 autobuild
131} 129}
132 130
133do_compile[vardepsexclude] += "SITEINFO_BITS" 131do_compile[vardepsexclude] += "SITEINFO_BITS"