Skip to contentSkip to conversation

NSS and NSPR upgrade

PATCH In review Andrej Valek 2 participants 5 messages Oct 19, 2020 – Oct 22, 2020 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

cover NSS and NSPR upgrade

nss: upgrade 3.56 -> 3.57
nspr: upgrade 4.26 -> 4.29

Andrej Kozemcak (2):
nss: upgrade 3.56 -> 3.57
nspr: upgrade 4.26 -> 4.29

 .../nspr/{nspr_4.26.bb => nspr_4.29.bb}            |  4 +-
 ...a-configure-option-to-disable-ARM-HW-cryp.patch | 36 +++++++++++------
 ...01-pkix-Do-not-use-NULL-where-0-is-needed.patch | 46 ----------------------
 .../nss/{nss_3.56.bb => nss_3.57.bb}               |  3 +-
 4 files changed, 26 insertions(+), 63 deletions(-)
 rename meta-oe/recipes-support/nspr/{nspr_4.26.bb => nspr_4.29.bb} (97%)
 delete mode 100644 meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch
 rename meta-oe/recipes-support/nss/{nss_3.56.bb => nss_3.57.bb} (98%)
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/2 nss: upgrade 3.56 -> 3.57

- Refresh freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch
- Drop pkix-Do-not-use-NULL-where-0-is-needed.patch

---
 ...a-configure-option-to-disable-ARM-HW-cryp.patch | 36 +++++++++++------
 ...01-pkix-Do-not-use-NULL-where-0-is-needed.patch | 46 ----------------------
 .../nss/{nss_3.56.bb => nss_3.57.bb}               |  3 +-
 3 files changed, 24 insertions(+), 61 deletions(-)
 delete mode 100644 meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch
 rename meta-oe/recipes-support/nss/{nss_3.56.bb => nss_3.57.bb} (98%)
meta-oe/recipes-support/nss/nss/0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch +23 -13
index bfc375e83..65e1500ae 100644
@@ -10,22 +10,24 @@ Upstream-Status: Pending
 Signed-off-by: Alexander Kanavin <[email protected]>
 
 ---
- nss/lib/freebl/Makefile | 4 ++++
+ nss/lib/freebl/Makefile | 3 +++
  nss/lib/freebl/gcm.c    | 2 ++
- 2 files changed, 6 insertions(+)
+ 2 files changed, 5 insertions(+)
 
+diff --git a/nss/lib/freebl/Makefile b/nss/lib/freebl/Makefile
+index fe8c526..922f67c 100644
 --- a/nss/lib/freebl/Makefile
 +++ b/nss/lib/freebl/Makefile
-@@ -126,6 +126,8 @@ else
+@@ -125,6 +125,8 @@ else
+         DEFINES += -DNSS_X86
  endif
  endif
- ifdef NS_USE_GCC
 +ifdef NSS_USE_ARM_HW_CRYPTO
 +    DEFINES += -DNSS_USE_ARM_HW_CRYPTO
  ifeq ($(CPU_ARCH),aarch64)
-     DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2
-     EXTRA_SRCS += aes-armv8.c gcm-aarch64.c sha1-armv8.c sha256-armv8.c
-@@ -150,6 +152,7 @@ endif
+     ifdef CC_IS_CLANG
+         DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2
+@@ -166,6 +168,7 @@ endif
          endif
      endif
  endif
@@ -33,15 +35,23 @@ Signed-off-by: Alexander Kanavin <[email protected]>
  
  ifeq ($(OS_TARGET),OSF1)
      DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_NO_MP_WORD
+diff --git a/nss/lib/freebl/gcm.c b/nss/lib/freebl/gcm.c
+index c2cc18d..b77f573 100644
 --- a/nss/lib/freebl/gcm.c
 +++ b/nss/lib/freebl/gcm.c
-@@ -21,7 +21,9 @@
+@@ -18,6 +18,7 @@
+ 
+ #include <limits.h>
+ 
++#ifdef NSS_USE_ARM_HW_CRYPTO
  /* old gcc doesn't support some poly64x2_t intrinsic */
  #if defined(__aarch64__) && defined(IS_LITTLE_ENDIAN) && \
      (defined(__clang__) || defined(__GNUC__) && __GNUC__ > 6)
-+# ifdef NSS_USE_ARM_HW_CRYPTO
- #define USE_ARM_GCM
-+# endif
- #elif defined(__arm__) && defined(IS_LITTLE_ENDIAN) && \
-     !defined(NSS_DISABLE_ARM32_NEON)
+@@ -27,6 +28,7 @@
  /* We don't test on big endian platform, so disable this on big endian. */
+ #define USE_ARM_GCM
+ #endif
++#endif
+ 
+ /* Forward declarations */
+ SECStatus gcm_HashInit_hw(gcmHashContext *ghash);
meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch deleted +0 -46

46 lines not on this page · raw message

meta-oe/recipes-support/nss/nss_3.57.bb renamed from meta-oe/recipes-support/nss/nss_3.56.bb +1 -2
similarity index 98%
rename from meta-oe/recipes-support/nss/nss_3.56.bb
rename to meta-oe/recipes-support/nss/nss_3.57.bb
index 997f8950f..5d9318a92 100644
@@ -31,9 +31,8 @@ SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${VERSIO
            file://system-pkcs11.txt \
            file://nss-fix-nsinstall-build.patch \
            file://0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch \
-           file://0001-pkix-Do-not-use-NULL-where-0-is-needed.patch \
            "
-SRC_URI[sha256sum] = "f875e0e8ed3b5ce92d675be4a55aa25a8c1199789a4a01f69b5f2327e2048e9c"
+SRC_URI[sha256sum] = "55a86c01be860381d64bb4e5b94eb198df9b0f098a8af0e58c014df398bdc382"
 
 UPSTREAM_CHECK_URI = "https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_Releases"
 UPSTREAM_CHECK_REGEX = "NSS_(?P<pver>.+)_release_notes"
Signature · 1 line
2.11.0
#2 lore raw

Re: [oe][meta-oe][PATCH 1/2] nss: upgrade 3.56 -> 3.57

Not sure what changed here (I didn't get the logs from this yet), but it seems to be failing in postinst now:

WARNING: image-1.0-r0 do_rootfs: Manifest tmp-glibc/sstate-control/manifest-x86_64-nss-native.populate_sysroot not found in x86_64 (variant '')?
WARNING: image-1.0-r0 do_rootfs: Manifest tmp-glibc/sstate-control/manifest-x86_64-nspr-native.populate_sysroot not found in x86_64 (variant '')?
WARNING: image-1.0-r0 do_rootfs: nss.postinst returned 127, marking as unpacked only, configuration required on target.
ERROR: image-1.0-r0 do_rootfs: Postinstall scriptlets of ['nss'] have failed. If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget_${PN} (). Deferring to first boot via 'exit 1' is no longer supported.

Anyone seen this as well?

Quoted 178 lines · Andrej Valek

- Refresh freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch
- Drop pkix-Do-not-use-NULL-where-0-is-needed.patch

---
 ...a-configure-option-to-disable-ARM-HW-cryp.patch | 36 +++++++++++------
 ...01-pkix-Do-not-use-NULL-where-0-is-needed.patch | 46
----------------------
 .../nss/{nss_3.56.bb => nss_3.57.bb}               |  3 +-
 3 files changed, 24 insertions(+), 61 deletions(-)
 delete mode 100644
meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch
 rename meta-oe/recipes-support/nss/{nss_3.56.bb => nss_3.57.bb} (98%)

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 bfc375e83..65e1500ae 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

meta-oe/recipes-support/nss/nss/0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch +9 -7
@@ -10,22 +10,24 @@ Upstream-Status: Pending
 Signed-off-by: Alexander Kanavin <[email protected]>
 
 ---
- nss/lib/freebl/Makefile | 4 ++++
+ nss/lib/freebl/Makefile | 3 +++
  nss/lib/freebl/gcm.c    | 2 ++
- 2 files changed, 6 insertions(+)
+ 2 files changed, 5 insertions(+)
 
+diff --git a/nss/lib/freebl/Makefile b/nss/lib/freebl/Makefile
+index fe8c526..922f67c 100644
 --- a/nss/lib/freebl/Makefile
 +++ b/nss/lib/freebl/Makefile
-@@ -126,6 +126,8 @@ else
+@@ -125,6 +125,8 @@ else
+         DEFINES += -DNSS_X86
  endif
  endif
- ifdef NS_USE_GCC
 +ifdef NSS_USE_ARM_HW_CRYPTO
 +    DEFINES += -DNSS_USE_ARM_HW_CRYPTO
  ifeq ($(CPU_ARCH),aarch64)
-     DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2
-     EXTRA_SRCS += aes-armv8.c gcm-aarch64.c sha1-armv8.c sha256-armv8.c
-@@ -150,6 +152,7 @@ endif
+     ifdef CC_IS_CLANG
+         DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2
+@@ -166,6 +168,7 @@ endif
          endif
      endif
  endif
@@ -33,15 +35,23 @@ Signed-off-by: Alexander Kanavin <

[email protected]>

  ifeq ($(OS_TARGET),OSF1)
      DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_NO_MP_WORD
meta-oe/recipes-support/nss/nss/0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch +8 -6
+diff --git a/nss/lib/freebl/gcm.c b/nss/lib/freebl/gcm.c
+index c2cc18d..b77f573 100644
 --- a/nss/lib/freebl/gcm.c
 +++ b/nss/lib/freebl/gcm.c
-@@ -21,7 +21,9 @@
+@@ -18,6 +18,7 @@
+
+ #include <limits.h>
+
++#ifdef NSS_USE_ARM_HW_CRYPTO
  /* old gcc doesn't support some poly64x2_t intrinsic */
  #if defined(__aarch64__) && defined(IS_LITTLE_ENDIAN) && \
      (defined(__clang__) || defined(__GNUC__) && __GNUC__ > 6)
-+# ifdef NSS_USE_ARM_HW_CRYPTO
- #define USE_ARM_GCM
-+# endif
- #elif defined(__arm__) && defined(IS_LITTLE_ENDIAN) && \
-     !defined(NSS_DISABLE_ARM32_NEON)
+@@ -27,6 +28,7 @@
  /* We don't test on big endian platform, so disable this on big endian.

*/
+ #define USE_ARM_GCM
+ #endif
++#endif
+
+ /* Forward declarations */
+ SECStatus gcm_HashInit_hw(gcmHashContext *ghash);
diff --git a/meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch b/meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch deleted file mode 100644
index 432312da2..000000000
---
a/meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch +++ /dev/null

meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch deleted +0 -8
@@ -1,46 +0,0 @@
-From 1136cad77c2dc7d8e1daa317877676733e805f29 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Wed, 26 Aug 2020 17:30:40 -0700
-Subject: [PATCH] pkix: Do not use NULL where 0 is needed
-
-Clang finds this error
-
-pkix_logger.c:316:32: error: cast to smaller integer type

'PKIX_ERRORCLASS' from 'void *' [-Werror,-Wvoid-pointer-to-enum-cast]

meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch deleted +0 -3
-        logger->logComponent = (PKIX_ERRORCLASS)NULL;
-                               ^~~~~~~~~~~~~~~~~~~~~
-pkix_logger.c:617:32: error: cast to smaller integer type

'PKIX_ERRORCLASS' from 'void *' [-Werror,-Wvoid-pointer-to-enum-cast]

meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch deleted +0 -5
-        logger->logComponent = (PKIX_ERRORCLASS)NULL;
-                               ^~~~~~~~~~~~~~~~~~~~~
-2 errors generated.
-
-Upstream-Status: Submitted [

https://bugzilla.mozilla.org/show_bug.cgi?id=1661378]

meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch deleted +0 -6
-Signed-off-by: Khem Raj <[email protected]>
----
- nss/lib/libpkix/pkix/util/pkix_logger.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/nss/lib/libpkix/pkix/util/pkix_logger.c

b/nss/lib/libpkix/pkix/util/pkix_logger.c

meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch deleted +0 -24
-index a916e6e..10f537a 100644
---- a/nss/lib/libpkix/pkix/util/pkix_logger.c
-+++ b/nss/lib/libpkix/pkix/util/pkix_logger.c
-@@ -313,7 +313,7 @@ pkix_Logger_Destroy(
-
-         logger->callback = NULL;
-         PKIX_DECREF(logger->context);
--        logger->logComponent = (PKIX_ERRORCLASS)NULL;
-+        logger->logComponent = (PKIX_ERRORCLASS)0;
-
- cleanup:
-
-@@ -614,7 +614,7 @@ PKIX_Logger_Create(
-
-         logger->callback = callback;
-         logger->maxLevel = 0;
--        logger->logComponent = (PKIX_ERRORCLASS)NULL;
-+        logger->logComponent = (PKIX_ERRORCLASS)0;
-
-         PKIX_INCREF(loggerContext);
-         logger->context = loggerContext;
---
-2.28.0
-
meta-oe/recipes-support/nss/nss_3.57.bb renamed from meta-oe/recipes-support/nss/nss_3.56.bb +0 -0
similarity index 98%
rename from meta-oe/recipes-support/nss/nss_3.56.bb
rename to meta-oe/recipes-support/nss/nss_3.57.bb
index 997f8950f..5d9318a92 100644
@@ -31,9 +31,8 @@ SRC_URI = "

http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${VERSIO

            file://system-pkcs11.txt \
            file://nss-fix-nsinstall-build.patch \

file://0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch \

meta-oe/recipes-support/nss/nss_3.57.bb renamed from meta-oe/recipes-support/nss/nss_3.56.bb +0 -2
-           file://0001-pkix-Do-not-use-NULL-where-0-is-needed.patch \
            "
-SRC_URI[sha256sum] =

"f875e0e8ed3b5ce92d675be4a55aa25a8c1199789a4a01f69b5f2327e2048e9c" +SRC_URI[sha256sum] = "55a86c01be860381d64bb4e5b94eb198df9b0f098a8af0e58c014df398bdc382"

UPSTREAM_CHECK_URI = "
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_Releases
"
UPSTREAM_CHECK_REGEX = "NSS_(?P<pver>.+)_release_notes"
--
2.11.0

A message that is not in the archive (sent off-list or not yet received): DB8PR10MB264979FDA47F993DC134D66FF81D0@DB8PR10MB2649.EURPRD10.PROD.OUTLOOK.COM

#4 lore raw

Re: [oe][meta-oe][PATCH 1/2] nss: upgrade 3.56 -> 3.57

I will need to reproduce it locally first myself, I've just seen it in jenkins job with the workdir already wiped from tmpfs.

And even there it doesn't happen reliably, the next build was OK and local incremental build as well as re-build from sstate was OK.

It could be some issue with populate_sysroot_setscene from nss-native/nspr-native, because it was trying to install them in image RSS, but failed:
WARNING: image-1.0-r0 do_rootfs: Manifest tmp-glibc/sstate-control/manifest-x86_64-nss-native.populate_sysroot not found in x86_64 (variant '')?
WARNING: image-1.0-r0 do_rootfs: Manifest tmp-glibc/sstate-control/manifest-x86_64-nspr-native.populate_sysroot not found in x86_64 (variant '')?

so I guess the actual error from postinst was about missing shlibsign nss-native was supposed to provide.

In working build I see it correctly included in RSS:
image/1.0-r0/recipe-sysroot-native/installeddeps/nss-native.6778a35ca0b60f25f49907cc0411cd2d2592094452ed1a69010a8c2e6a6b920e image/1.0-r0/recipe-sysroot-native/installeddeps/nss-native.complete image/1.0-r0/recipe-sysroot-native/installeddeps/nss-native

in completely unrelated build error which also happens quite rarely I sometimes see the installeddeps/foo-native.complete stamp of some native dependency, but without
corresponding installeddeps/foo-native.<signature_hash> after the same warning message about Manifest not found (even after foo-native.populate_sysroot_setscene was executed according to cooker log).

Cheers,

Quoted 278 lines · On Thu, Oct 22, 2020 at 9:24 AM [email protected] <…

Hi,

Here is a log from our build system:

*Installing nss (3.57) on root.*

*Downloading file:
../image/1.0-r0/oe-rootfs-repo/cortexa15t2hf-neon/nss_3.57-r0_cortexa15t2hf-neon.ipk.*

*Configuring nss.*

*nss-dbg: unsatisfied recommendation for libsqlite3-dbg*

*Installing nss-dbg (3.57) on root.*

*Downloading file:
../image/1.0-r0/oe-rootfs-repo/cortexa15t2hf-neon/nss-dbg_3.57-r0_cortexa15t2hf-neon.ipk.*

*Package nss-dbg (3.57-r0) installed in root is up to date.*

*Configuring nss-dbg.*

*DEBUG: Fetching packagedata for nss*

In our target platform (pxm), we don’t have this error.

Please, could you send us your build commands so we can reproduce this error or more logs?

Thank you,

Best Regards,

Andrej

*From:* Martin Jansa <[email protected]>
*Sent:* Wednesday, October 21, 2020 6:53 PM
*To:* Valek, Andrej (ADV D EU SK SI-BP1) <[email protected]> *Cc:* openembedded-devel <[email protected]>; Kozemcak, Andrej (ADV D EU SK SI-BP1) <[email protected]> *Subject:* Re: [oe][meta-oe][PATCH 1/2] nss: upgrade 3.56 -> 3.57

Not sure what changed here (I didn't get the logs from this yet), but it seems to be failing in postinst now:

WARNING: image-1.0-r0 do_rootfs: Manifest tmp-glibc/sstate-control/manifest-x86_64-nss-native.populate_sysroot not found in x86_64 (variant '')?
WARNING: image-1.0-r0 do_rootfs: Manifest tmp-glibc/sstate-control/manifest-x86_64-nspr-native.populate_sysroot not found in x86_64 (variant '')?
WARNING: image-1.0-r0 do_rootfs: nss.postinst returned 127, marking as unpacked only, configuration required on target.
ERROR: image-1.0-r0 do_rootfs: Postinstall scriptlets of ['nss'] have failed. If the intention is to defer them to first boot,

then please place them into pkg_postinst_ontarget_${PN} (). Deferring to first boot via 'exit 1' is no longer supported.

Anyone seen this as well?

On Mon, Oct 19, 2020 at 12:29 PM Andrej Valek <[email protected]> wrote:

- Refresh freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch
- Drop pkix-Do-not-use-NULL-where-0-is-needed.patch

---
 ...a-configure-option-to-disable-ARM-HW-cryp.patch | 36 +++++++++++------
 ...01-pkix-Do-not-use-NULL-where-0-is-needed.patch | 46

----------------------
.../nss/{nss_3.56.bb
<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fnss_3.56.bb%2F&data=02%7C01%7Candrej.kozemcak%40siemens.com%7C48ce57d42382495832d408d875e1dc6f%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637388960206924185&sdata=yJOzN%2FlrD5Tcv4TOiz7zvCIxnVBRNO2ksmQn%2B%2FDxdn4%3D&reserved=0>
=> nss_3.57.bb
<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fnss_3.57.bb%2F&data=02%7C01%7Candrej.kozemcak%40siemens.com%7C48ce57d42382495832d408d875e1dc6f%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637388960206934139&sdata=e0W1Tx1GcSOSJULhZzqmz%2BAO7WE0xCpVWU9iQjjDx78%3D&reserved=0>}

             |  3 +-
 3 files changed, 24 insertions(+), 61 deletions(-)
 delete mode 100644
meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch
 rename meta-oe/recipes-support/nss/{nss_3.56.bb

<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fnss_3.56.bb%2F&data=02%7C01%7Candrej.kozemcak%40siemens.com%7C48ce57d42382495832d408d875e1dc6f%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637388960206934139&sdata=dQHRE%2BSsK0i68vrvzXHjcUpr42Hx6r225oN9CZAGy%2F4%3D&reserved=0>
=> nss_3.57.bb
<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fnss_3.57.bb%2F&data=02%7C01%7Candrej.kozemcak%40siemens.com%7C48ce57d42382495832d408d875e1dc6f%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637388960206944100&sdata=%2FS8185rsNQNODkhBW9UW6exSzGd%2FkBOpw0xTQvMEJHo%3D&reserved=0>}
(98%)

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 bfc375e83..65e1500ae 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

meta-oe/recipes-support/nss/nss/0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch +9 -7
@@ -10,22 +10,24 @@ Upstream-Status: Pending
 Signed-off-by: Alexander Kanavin <[email protected]>
 
 ---
- nss/lib/freebl/Makefile | 4 ++++
+ nss/lib/freebl/Makefile | 3 +++
  nss/lib/freebl/gcm.c    | 2 ++
- 2 files changed, 6 insertions(+)
+ 2 files changed, 5 insertions(+)
 
+diff --git a/nss/lib/freebl/Makefile b/nss/lib/freebl/Makefile
+index fe8c526..922f67c 100644
 --- a/nss/lib/freebl/Makefile
 +++ b/nss/lib/freebl/Makefile
-@@ -126,6 +126,8 @@ else
+@@ -125,6 +125,8 @@ else
+         DEFINES += -DNSS_X86
  endif
  endif
- ifdef NS_USE_GCC
 +ifdef NSS_USE_ARM_HW_CRYPTO
 +    DEFINES += -DNSS_USE_ARM_HW_CRYPTO
  ifeq ($(CPU_ARCH),aarch64)
-     DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2
-     EXTRA_SRCS += aes-armv8.c gcm-aarch64.c sha1-armv8.c sha256-armv8.c
-@@ -150,6 +152,7 @@ endif
+     ifdef CC_IS_CLANG
+         DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2
+@@ -166,6 +168,7 @@ endif
          endif
      endif
  endif
@@ -33,15 +35,23 @@ Signed-off-by: Alexander Kanavin <

[email protected]>

  ifeq ($(OS_TARGET),OSF1)
      DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_NO_MP_WORD
meta-oe/recipes-support/nss/nss/0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch +8 -6
+diff --git a/nss/lib/freebl/gcm.c b/nss/lib/freebl/gcm.c
+index c2cc18d..b77f573 100644
 --- a/nss/lib/freebl/gcm.c
 +++ b/nss/lib/freebl/gcm.c
-@@ -21,7 +21,9 @@
+@@ -18,6 +18,7 @@
+
+ #include <limits.h>
+
++#ifdef NSS_USE_ARM_HW_CRYPTO
  /* old gcc doesn't support some poly64x2_t intrinsic */
  #if defined(__aarch64__) && defined(IS_LITTLE_ENDIAN) && \
      (defined(__clang__) || defined(__GNUC__) && __GNUC__ > 6)
-+# ifdef NSS_USE_ARM_HW_CRYPTO
- #define USE_ARM_GCM
-+# endif
- #elif defined(__arm__) && defined(IS_LITTLE_ENDIAN) && \
-     !defined(NSS_DISABLE_ARM32_NEON)
+@@ -27,6 +28,7 @@
  /* We don't test on big endian platform, so disable this on big endian.

*/
+ #define USE_ARM_GCM
+ #endif
++#endif
+
+ /* Forward declarations */
+ SECStatus gcm_HashInit_hw(gcmHashContext *ghash);
diff --git a/meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch b/meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch deleted file mode 100644
index 432312da2..000000000
---
a/meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch +++ /dev/null

meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch deleted +0 -8
@@ -1,46 +0,0 @@
-From 1136cad77c2dc7d8e1daa317877676733e805f29 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Wed, 26 Aug 2020 17:30:40 -0700
-Subject: [PATCH] pkix: Do not use NULL where 0 is needed
-
-Clang finds this error
-
-pkix_logger.c:316:32: error: cast to smaller integer type

'PKIX_ERRORCLASS' from 'void *' [-Werror,-Wvoid-pointer-to-enum-cast]

meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch deleted +0 -3
-        logger->logComponent = (PKIX_ERRORCLASS)NULL;
-                               ^~~~~~~~~~~~~~~~~~~~~
-pkix_logger.c:617:32: error: cast to smaller integer type

'PKIX_ERRORCLASS' from 'void *' [-Werror,-Wvoid-pointer-to-enum-cast]

meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch deleted +0 -5
-        logger->logComponent = (PKIX_ERRORCLASS)NULL;
-                               ^~~~~~~~~~~~~~~~~~~~~
-2 errors generated.
-
-Upstream-Status: Submitted [

https://bugzilla.mozilla.org/show_bug.cgi?id=1661378
<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugzilla.mozilla.org%2Fshow_bug.cgi%3Fid%3D1661378&data=02%7C01%7Candrej.kozemcak%40siemens.com%7C48ce57d42382495832d408d875e1dc6f%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637388960206944100&sdata=HRz0vTKoBgEgpIJhPwghGL2KLNcQWvAf%2BlxI9u0TaqI%3D&reserved=0>
]

meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch deleted +0 -6
-Signed-off-by: Khem Raj <[email protected]>
----
- nss/lib/libpkix/pkix/util/pkix_logger.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/nss/lib/libpkix/pkix/util/pkix_logger.c

b/nss/lib/libpkix/pkix/util/pkix_logger.c

meta-oe/recipes-support/nss/nss/0001-pkix-Do-not-use-NULL-where-0-is-needed.patch deleted +0 -24
-index a916e6e..10f537a 100644
---- a/nss/lib/libpkix/pkix/util/pkix_logger.c
-+++ b/nss/lib/libpkix/pkix/util/pkix_logger.c
-@@ -313,7 +313,7 @@ pkix_Logger_Destroy(
-
-         logger->callback = NULL;
-         PKIX_DECREF(logger->context);
--        logger->logComponent = (PKIX_ERRORCLASS)NULL;
-+        logger->logComponent = (PKIX_ERRORCLASS)0;
-
- cleanup:
-
-@@ -614,7 +614,7 @@ PKIX_Logger_Create(
-
-         logger->callback = callback;
-         logger->maxLevel = 0;
--        logger->logComponent = (PKIX_ERRORCLASS)NULL;
-+        logger->logComponent = (PKIX_ERRORCLASS)0;
-
-         PKIX_INCREF(loggerContext);
-         logger->context = loggerContext;
---
-2.28.0
-
(quoted diff) +0 -0

<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fnss_3.56.bb%2F&data=02%7C01%7Candrej.kozemcak%40siemens.com%7C48ce57d42382495832d408d875e1dc6f%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637388960206944100&sdata=dK%2F85JSbyMEBQYqp6jb7r38qDSmv3NlSfZRHm64z8E8%3D&reserved=0>
b/meta-oe/recipes-support/nss/nss_3.57.bb
<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fnss_3.57.bb%2F&data=02%7C01%7Candrej.kozemcak%40siemens.com%7C48ce57d42382495832d408d875e1dc6f%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637388960206954055&sdata=z%2FC25v6UwHiy0Q4qQhU1MYAi9l0XvoOY84%2F%2FcErYM%2BE%3D&reserved=0>
similarity index 98%
rename from meta-oe/recipes-support/nss/nss_3.56.bb
<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fnss_3.56.bb%2F&data=02%7C01%7Candrej.kozemcak%40siemens.com%7C48ce57d42382495832d408d875e1dc6f%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637388960206954055&sdata=VDA7dTmbohN5axMKbg7EDj7Z5FDeR5q2Z0cUVh4FKxE%3D&reserved=0>
rename to meta-oe/recipes-support/nss/nss_3.57.bb
<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fnss_3.57.bb%2F&data=02%7C01%7Candrej.kozemcak%40siemens.com%7C48ce57d42382495832d408d875e1dc6f%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637388960206954055&sdata=z%2FC25v6UwHiy0Q4qQhU1MYAi9l0XvoOY84%2F%2FcErYM%2BE%3D&reserved=0>
index 997f8950f..5d9318a92 100644
--- a/meta-oe/recipes-support/nss/nss_3.56.bb
<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fnss_3.56.bb%2F&data=02%7C01%7Candrej.kozemcak%40siemens.com%7C48ce57d42382495832d408d875e1dc6f%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637388960206964011&sdata=JqpHNPH3LltUZ6A5Yu%2FutU6LSRmaZexU64wWna5fVQA%3D&reserved=0>
+++ b/meta-oe/recipes-support/nss/nss_3.57.bb
<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fnss_3.57.bb%2F&data=02%7C01%7Candrej.kozemcak%40siemens.com%7C48ce57d42382495832d408d875e1dc6f%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637388960206964011&sdata=Z9ON7GPjFSUBoA2Jk8VIwYFjzfcMKgMEKwmAt%2FbDQ50%3D&reserved=0>

(quoted diff) +0 -0
@@ -31,9 +31,8 @@ SRC_URI = "

http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${VERSIO
<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fftp.mozilla.org%2Fpub%2Fmozilla.org%2Fsecurity%2Fnss%2Freleases%2F%24%257BVERSIO&data=02%7C01%7Candrej.kozemcak%40siemens.com%7C48ce57d42382495832d408d875e1dc6f%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637388960206973967&sdata=8usOI6rSXTvYTSJfwFgPEhtR2mT0XGROmhQ3479nF3E%3D&reserved=0>

            file://system-pkcs11.txt \
            file://nss-fix-nsinstall-build.patch \

file://0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch \

meta-oe/recipes-support/nss/nss_3.57.bb renamed from meta-oe/recipes-support/nss/nss_3.56.bb +0 -2
-           file://0001-pkix-Do-not-use-NULL-where-0-is-needed.patch \
            "
-SRC_URI[sha256sum] =

"f875e0e8ed3b5ce92d675be4a55aa25a8c1199789a4a01f69b5f2327e2048e9c" +SRC_URI[sha256sum] = "55a86c01be860381d64bb4e5b94eb198df9b0f098a8af0e58c014df398bdc382"

UPSTREAM_CHECK_URI = "
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_Releases
<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FMozilla%2FProjects%2FNSS%2FNSS_Releases&data=02%7C01%7Candrej.kozemcak%40siemens.com%7C48ce57d42382495832d408d875e1dc6f%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637388960206973967&sdata=dRLQlxeP4xzCqFvF5dXDxg1x%2Fbvq0yJPW%2BiafpDIbpU%3D&reserved=0>
"
UPSTREAM_CHECK_REGEX = "NSS_(?P<pver>.+)_release_notes"
--
2.11.0

#5 lore raw

PATCH 2/2 nspr: upgrade 4.26 -> 4.29

In reply to Andrej Valek
---
 meta-oe/recipes-support/nspr/{nspr_4.26.bb => nspr_4.29.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-oe/recipes-support/nspr/{nspr_4.26.bb => nspr_4.29.bb} (97%)
meta-oe/recipes-support/nspr/nspr_4.29.bb renamed from meta-oe/recipes-support/nspr/nspr_4.26.bb +2 -2
similarity index 97%
rename from meta-oe/recipes-support/nspr/nspr_4.26.bb
rename to meta-oe/recipes-support/nspr/nspr_4.29.bb
index a15afd667..6307c159e 100644
@@ -23,8 +23,8 @@ CACHED_CONFIGUREVARS_append_libc-musl = " CFLAGS='${CFLAGS} -D_PR_POLL_AVAILABLE
 UPSTREAM_CHECK_URI = "http://ftp.mozilla.org/pub/nspr/releases/"
 UPSTREAM_CHECK_REGEX = "v(?P<pver>\d+(\.\d+)+)/"
 
-SRC_URI[md5sum] = "615695d57eaafa1fca085d3891befd68"
-SRC_URI[sha256sum] = "fc9d142d85b74ffd2e6374a0c9016f3f2dac074225e24df3070e5a72d31b773d"
+SRC_URI[md5sum] = "a546926d3c8e887be02c668c1293da92"
+SRC_URI[sha256sum] = "22286bdb8059d74632cc7c2865c139e63953ecfb33bf4362ab58827e86e92582"
 
 CVE_PRODUCT = "netscape_portable_runtime"
 
Signature · 1 line
2.11.0