pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/nss nss: interim NetBSD/aarch64 build fix



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6a8d6aad9cc6
branches:  trunk
changeset: 427154:6a8d6aad9cc6
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Apr 12 12:19:20 2020 +0000

description:
nss: interim NetBSD/aarch64 build fix

diffstat:

 devel/nss/distinfo                                   |   4 +++-
 devel/nss/patches/patch-nss_lib_freebl_aes-armv8.c   |  19 +++++++++++++++++++
 devel/nss/patches/patch-nss_lib_freebl_gcm-aarch64.c |  19 +++++++++++++++++++
 3 files changed, 41 insertions(+), 1 deletions(-)

diffs (64 lines):

diff -r c0e55fd100d4 -r 6a8d6aad9cc6 devel/nss/distinfo
--- a/devel/nss/distinfo        Sun Apr 12 12:12:42 2020 +0000
+++ b/devel/nss/distinfo        Sun Apr 12 12:19:20 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.109 2020/04/12 10:25:17 tnn Exp $
+$NetBSD: distinfo,v 1.110 2020/04/12 12:19:20 tnn Exp $
 
 SHA1 (nss-3.51.tar.gz) = f1d46871728cd5afc81ec07d9833bb2b8c4fa68f
 RMD160 (nss-3.51.tar.gz) = f35fa4a2439f8ec3d2f23c575cfa1d5c7cfe48ef
@@ -16,6 +16,8 @@
 SHA1 (patch-nss_cmd_platlibs.mk) = 01f4350de601b29c94e8a791a28daca226866bb6
 SHA1 (patch-nss_coreconf_OpenBSD.mk) = 1a4c3711d5d1f7f9e8d58b36145b15d7e444d754
 SHA1 (patch-nss_coreconf_command.mk) = a7b682d367825b48f8802fa30cee83f10680bb74
+SHA1 (patch-nss_lib_freebl_aes-armv8.c) = aa698f61dd3d66ba707a9b5425bc15d057244ad7
+SHA1 (patch-nss_lib_freebl_gcm-aarch64.c) = 311cfe7ca58e91285052d0ca27bd2df3f325071b
 SHA1 (patch-nss_lib_freebl_md5.c) = 5cbec40695e296f0713895fb85cd37f6df76b85b
 SHA1 (patch-nss_lib_util_utilpars.c) = 5d3000515b01037929730a752b7d7a0f46f06deb
 SHA1 (patch-nss_tests_all.sh) = b328778b538db66f5447f962f23afd6f650f7071
diff -r c0e55fd100d4 -r 6a8d6aad9cc6 devel/nss/patches/patch-nss_lib_freebl_aes-armv8.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/nss/patches/patch-nss_lib_freebl_aes-armv8.c        Sun Apr 12 12:19:20 2020 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-nss_lib_freebl_aes-armv8.c,v 1.1 2020/04/12 12:19:20 tnn Exp $
+
+Explicitly enable the ARMv8 crypto extensions as the compiler doesn't
+seem to do it for us.
+https://mail-index.netbsd.org/port-arm/2020/04/12/msg006603.html
+
+--- nss/lib/freebl/aes-armv8.c.orig    2020-03-06 18:44:20.000000000 +0000
++++ nss/lib/freebl/aes-armv8.c
+@@ -2,6 +2,10 @@
+  * 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/. */
+ 
++#ifdef __NetBSD__
++asm(".arch_extension crypto");
++#endif
++
+ #include "secerr.h"
+ #include "rijndael.h"
+ 
diff -r c0e55fd100d4 -r 6a8d6aad9cc6 devel/nss/patches/patch-nss_lib_freebl_gcm-aarch64.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/nss/patches/patch-nss_lib_freebl_gcm-aarch64.c      Sun Apr 12 12:19:20 2020 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-nss_lib_freebl_gcm-aarch64.c,v 1.1 2020/04/12 12:19:20 tnn Exp $
+
+Explicitly enable the ARMv8 crypto extensions as the compiler doesn't
+seem to do it for us.
+https://mail-index.netbsd.org/port-arm/2020/04/12/msg006603.html
+
+--- nss/lib/freebl/gcm-aarch64.c.orig  2020-03-06 18:44:20.000000000 +0000
++++ nss/lib/freebl/gcm-aarch64.c
+@@ -2,6 +2,10 @@
+  * 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/. */
+ 
++#ifdef __NetBSD__
++asm(".arch_extension crypto");
++#endif
++
+ #ifdef FREEBL_NO_DEPEND
+ #include "stubs.h"
+ #endif



Home | Main Index | Thread Index | Old Index