summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2018-07-05 07:13:02 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-06 22:55:02 +0100
commit93e9729569963355e2cb5526f9613f117205d1d3 (patch)
tree1eeaf31b0457fc08cb8e8e2d3a5d2f7204e8cb7d /meta/recipes-support
parent2ca8eeeaef67429603c339dfd27e0f74607b4678 (diff)
downloadpoky-93e9729569963355e2cb5526f9613f117205d1d3.tar.gz
nss: update to 3.38
remove patch now included in release. includes: CVE-2018-0495 (From OE-Core rev: f0ad38d02da0bbcc1534dcc99d10436675932ed9) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/nss/nss/0001-Bug-1432455-Build-FStar.c-when-not-building-with-int.patch112
-rw-r--r--meta/recipes-support/nss/nss_3.38.bb (renamed from meta/recipes-support/nss/nss_3.37.1.bb)5
2 files changed, 2 insertions, 115 deletions
diff --git a/meta/recipes-support/nss/nss/0001-Bug-1432455-Build-FStar.c-when-not-building-with-int.patch b/meta/recipes-support/nss/nss/0001-Bug-1432455-Build-FStar.c-when-not-building-with-int.patch
deleted file mode 100644
index f14792306c..0000000000
--- a/meta/recipes-support/nss/nss/0001-Bug-1432455-Build-FStar.c-when-not-building-with-int.patch
+++ /dev/null
@@ -1,112 +0,0 @@
1From fe5fd11f3f02d3625b37f8e3c592e5c3e84c1798 Mon Sep 17 00:00:00 2001
2From: Mike Hommey <mh@glandium.org>
3Date: Sun, 27 May 2018 16:20:00 +0200
4Subject: [PATCH] Bug 1432455 - Build FStar.c when not building with int128
5 support. r=fkiefer
6
7--HG--
8extra : amend_source : b3f739de2f592ecb9ae1f1ce5ee4fb0e04df22cb
9
10Upstream-Status: Backport
11https://hg.mozilla.org/projects/nss/rev/2209bddb98b8d105159998b9be91a155aa6bd283
12
13NSS bug https://bugzilla.mozilla.org/show_bug.cgi?format=default&id=1459739
14
15Signed-off-by: Armin Kuster <akuster808@gmail.com>
16
17---
18 lib/freebl/Makefile | 6 +++++-
19 lib/freebl/freebl.gyp | 29 +++++++++++++++++------------
20 lib/freebl/freebl_base.gypi | 4 +++-
21 3 files changed, 25 insertions(+), 14 deletions(-)
22
23Index: nss-3.37.1/nss/lib/freebl/Makefile
24===================================================================
25--- nss-3.37.1.orig/nss/lib/freebl/Makefile
26+++ nss-3.37.1/nss/lib/freebl/Makefile
27@@ -541,12 +541,16 @@ ifeq (,$(filter-out i386 x386 x86 x86_64
28 # All intel architectures get the 64 bit version
29 # With custom uint128 if necessary (faster than generic 32 bit version).
30 ECL_SRCS += curve25519_64.c
31- VERIFIED_SRCS += Hacl_Curve25519.c FStar.c
32+ VERIFIED_SRCS += Hacl_Curve25519.c
33 else
34 # All non intel architectures get the generic 32 bit implementation (slow!)
35 ECL_SRCS += curve25519_32.c
36 endif
37
38+ifndef HAVE_INT128_SUPPORT
39+ VERIFIED_SRCS += FStar.c
40+endif
41+
42 #######################################################################
43 # (5) Execute "global" rules. (OPTIONAL) #
44 #######################################################################
45Index: nss-3.37.1/nss/lib/freebl/freebl.gyp
46===================================================================
47--- nss-3.37.1.orig/nss/lib/freebl/freebl.gyp
48+++ nss-3.37.1/nss/lib/freebl/freebl.gyp
49@@ -277,18 +277,10 @@
50 'MP_IS_LITTLE_ENDIAN',
51 ],
52 }],
53- [ 'OS!="win"', {
54- 'conditions': [
55- [ 'target_arch=="x64" or target_arch=="arm64" or target_arch=="aarch64"', {
56- 'defines': [
57- # The Makefile does version-tests on GCC, but we're not doing that here.
58- 'HAVE_INT128_SUPPORT',
59- ],
60- }, {
61- 'defines': [
62- 'KRML_NOUINT128',
63- ],
64- }],
65+ [ 'have_int128_support==1', {
66+ 'defines': [
67+ # The Makefile does version-tests on GCC, but we're not doing that here.
68+ 'HAVE_INT128_SUPPORT',
69 ],
70 }, {
71 'defines': [
72@@ -350,5 +342,18 @@
73 },
74 'variables': {
75 'module': 'nss',
76+ 'conditions': [
77+ [ 'OS!="win"', {
78+ 'conditions': [
79+ [ 'target_arch=="x64" or target_arch=="arm64" or target_arch=="aarch64"', {
80+ 'have_int128_support%': 1,
81+ }, {
82+ 'have_int128_support%': 0,
83+ }],
84+ ],
85+ }, {
86+ 'have_int128_support%': 0,
87+ }],
88+ ],
89 }
90 }
91Index: nss-3.37.1/nss/lib/freebl/freebl_base.gypi
92===================================================================
93--- nss-3.37.1.orig/nss/lib/freebl/freebl_base.gypi
94+++ nss-3.37.1/nss/lib/freebl/freebl_base.gypi
95@@ -60,7 +60,6 @@
96 'shvfy.c',
97 'sysrand.c',
98 'tlsprfalg.c',
99- 'verified/FStar.c',
100 ],
101 'conditions': [
102 [ 'OS=="linux" or OS=="android"', {
103@@ -220,6 +219,9 @@
104 }],
105 ],
106 }],
107+ [ 'have_int128_support==0', {
108+ 'sources': [ 'verified/FStar.c' ],
109+ }],
110 ],
111 'ldflags': [
112 '-Wl,-Bsymbolic'
diff --git a/meta/recipes-support/nss/nss_3.37.1.bb b/meta/recipes-support/nss/nss_3.38.bb
index 0e8b5be365..f3e5170a89 100644
--- a/meta/recipes-support/nss/nss_3.37.1.bb
+++ b/meta/recipes-support/nss/nss_3.38.bb
@@ -25,11 +25,10 @@ SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${VERSIO
25 file://nss-fix-nsinstall-build.patch \ 25 file://nss-fix-nsinstall-build.patch \
26 file://disable-Wvarargs-with-clang.patch \ 26 file://disable-Wvarargs-with-clang.patch \
27 file://pqg.c-ULL_addend.patch \ 27 file://pqg.c-ULL_addend.patch \
28 file://0001-Bug-1432455-Build-FStar.c-when-not-building-with-int.patch \
29 " 28 "
30 29
31SRC_URI[md5sum] = "e9526d7217d02afa96b90b89924c38df" 30SRC_URI[md5sum] = "ac9065460a7634ba8eb0f942f404e773"
32SRC_URI[sha256sum] = "097b30e436479ad737b3703b25b6198b6513e202731085c6f097d8853dd20405" 31SRC_URI[sha256sum] = "2c643d3c08d6935f4d325f40743719b6990aa25a79ec2f8f712c99d086672f62"
33 32
34UPSTREAM_CHECK_URI = "https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_Releases" 33UPSTREAM_CHECK_URI = "https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_Releases"
35UPSTREAM_CHECK_REGEX = "NSS_(?P<pver>.+)_release_notes" 34UPSTREAM_CHECK_REGEX = "NSS_(?P<pver>.+)_release_notes"