pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/libgcrypt Fix assembler problems on ARM.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f72584bd7e69
branches:  trunk
changeset: 349223:f72584bd7e69
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Jul 02 13:24:17 2016 +0000

description:
Fix assembler problems on ARM.

Patches by Michael Plass <mfpnb%plass-family.net@localhost> on tech-pkg/port-arm.

Bump PKGREVISION.

diffstat:

 security/libgcrypt/Makefile                                   |   3 +-
 security/libgcrypt/distinfo                                   |   4 ++-
 security/libgcrypt/patches/patch-cipher_poly1305-armv7-neon.S |  16 +++++++++++
 security/libgcrypt/patches/patch-cipher_rijndael-arm.S        |  15 ++++++++++
 4 files changed, 36 insertions(+), 2 deletions(-)

diffs (66 lines):

diff -r b4be37fbbf61 -r f72584bd7e69 security/libgcrypt/Makefile
--- a/security/libgcrypt/Makefile       Sat Jul 02 12:45:00 2016 +0000
+++ b/security/libgcrypt/Makefile       Sat Jul 02 13:24:17 2016 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.79 2016/06/17 11:56:13 wiz Exp $
+# $NetBSD: Makefile,v 1.80 2016/07/02 13:24:17 wiz Exp $
 
 DISTNAME=      libgcrypt-1.7.1
+PKGREVISION=   1
 CATEGORIES=    security
 MASTER_SITES=  ftp://ftp.gnupg.org/gcrypt/libgcrypt/ \
                http://gd.tuwien.ac.at/privacy/gnupg/libgcrypt/
diff -r b4be37fbbf61 -r f72584bd7e69 security/libgcrypt/distinfo
--- a/security/libgcrypt/distinfo       Sat Jul 02 12:45:00 2016 +0000
+++ b/security/libgcrypt/distinfo       Sat Jul 02 13:24:17 2016 +0000
@@ -1,8 +1,10 @@
-$NetBSD: distinfo,v 1.64 2016/06/17 11:56:13 wiz Exp $
+$NetBSD: distinfo,v 1.65 2016/07/02 13:24:17 wiz Exp $
 
 SHA1 (libgcrypt-1.7.1.tar.bz2) = b688add52b622bb96bbd823ba21aa05a116d442f
 RMD160 (libgcrypt-1.7.1.tar.bz2) = 1be0c84cf7bcb1ac8a185ff965e02b9182708f6f
 SHA512 (libgcrypt-1.7.1.tar.bz2) = 08ca7de8b6324d1119935b1f400b0ef55e761d42178a4daa8077d36072e5f0987ec6e7834a98c62f1a06261b1b99edc45b3041a873e284a002d8486ffc3347f5
 Size (libgcrypt-1.7.1.tar.bz2) = 2843435 bytes
 SHA1 (patch-aa) = 3dd44b8745128a6788d24f9eb00002624a5fc52b
+SHA1 (patch-cipher_poly1305-armv7-neon.S) = 656c37688bf96a1cfe971375f7c27784ed7804c5
+SHA1 (patch-cipher_rijndael-arm.S) = ef3cb7f481022440780eb48ae31cbfad0a3ec115
 SHA1 (patch-src_visibility.h) = 8cbbf6803ab34b4b7dda832aa8ee18247aa89518
diff -r b4be37fbbf61 -r f72584bd7e69 security/libgcrypt/patches/patch-cipher_poly1305-armv7-neon.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libgcrypt/patches/patch-cipher_poly1305-armv7-neon.S     Sat Jul 02 13:24:17 2016 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-cipher_poly1305-armv7-neon.S,v 1.1 2016/07/02 13:24:17 wiz Exp $
+
+Fix ARM Neon assembler problem.
+https://lists.gnupg.org/pipermail/gcrypt-devel/2016-June/003904.html
+
+--- cipher/poly1305-armv7-neon.S.orig  2016-03-23 11:59:34.000000000 +0000
++++ cipher/poly1305-armv7-neon.S
+@@ -52,7 +52,7 @@ _gcry_poly1305_armv7_neon_init_ext:
+       and r2, r2, r2
+       moveq r14, #-1
+       ldmia r1!, {r2-r5}
+-      ldr r7, =.Lpoly1305_init_constants_neon
++      adr r7, .Lpoly1305_init_constants_neon
+       mov r6, r2
+       mov r8, r2, lsr #26
+       mov r9, r3, lsr #20
diff -r b4be37fbbf61 -r f72584bd7e69 security/libgcrypt/patches/patch-cipher_rijndael-arm.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libgcrypt/patches/patch-cipher_rijndael-arm.S    Sat Jul 02 13:24:17 2016 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-cipher_rijndael-arm.S,v 1.1 2016/07/02 13:24:17 wiz Exp $
+
+Fix ARM unaligned access problem.
+https://lists.gnupg.org/pipermail/gcrypt-devel/2016-June/003904.html
+
+--- cipher/rijndael-arm.S.orig 2016-03-23 11:59:34.000000000 +0000
++++ cipher/rijndael-arm.S
+@@ -19,6 +19,7 @@
+  */
+ 
+ #include <config.h>
++#undef __ARM_FEATURE_UNALIGNED
+ 
+ #if defined(__ARMEL__)
+ #ifdef HAVE_COMPATIBLE_GCC_ARM_PLATFORM_AS



Home | Main Index | Thread Index | Old Index