diff options
author | John Marino <marino@FreeBSD.org> | 2014-07-30 07:07:16 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-07-30 07:07:16 +0000 |
commit | 24412ff96d3332afcfd6fd1d4643c0710b0211cf (patch) | |
tree | bae3d8b5919b6b8c0da65e411ed9e601c5ca0b78 /security | |
parent | 41fa68f92bb71fd6014b65680197c26850e091f4 (diff) | |
download | ports-24412ff96d3332afcfd6fd1d4643c0710b0211cf.tar.gz ports-24412ff96d3332afcfd6fd1d4643c0710b0211cf.zip |
security/cryptopp: Add patch from pkgsrc
The definition of CRYPTOPP_BOOL_ALIGN16_ENABLED was incorrect for i386.
For NetBSD, this resulted in the inability to build cryptopp on i386.
On FreeBSD, it built, but deskutils/cdcat choked on it while building on
FreeBSD 10/i386 and FreeBSD 11/i386.
PR: 192199
Fix from: pkgsrc security/crypto++
Discussed: NetBSD GNATS 48134
Approved by: delphi@
Notes
Notes:
svn path=/head/; revision=363448
Diffstat (limited to 'security')
-rw-r--r-- | security/cryptopp/Makefile | 2 | ||||
-rw-r--r-- | security/cryptopp/files/patch-config.h | 29 |
2 files changed, 30 insertions, 1 deletions
diff --git a/security/cryptopp/Makefile b/security/cryptopp/Makefile index 4b0fca2bbbfa..e526737669d7 100644 --- a/security/cryptopp/Makefile +++ b/security/cryptopp/Makefile @@ -3,7 +3,7 @@ PORTNAME= cryptopp PORTVERSION= 5.6.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= SF \ http://www.cryptopp.com/ diff --git a/security/cryptopp/files/patch-config.h b/security/cryptopp/files/patch-config.h new file mode 100644 index 000000000000..a8f312da25be --- /dev/null +++ b/security/cryptopp/files/patch-config.h @@ -0,0 +1,29 @@ +--- config.h.orig 2013-02-20 14:30:54.000000000 +0000 ++++ config.h +@@ -290,12 +290,6 @@ NAMESPACE_END + #define CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE 0 + #endif + +-#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE || CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE) +- #define CRYPTOPP_BOOL_ALIGN16_ENABLED 1 +-#else +- #define CRYPTOPP_BOOL_ALIGN16_ENABLED 0 +-#endif +- + // how to allocate 16-byte aligned memory (for SSE2) + #if defined(CRYPTOPP_MSVC6PP_OR_LATER) + #define CRYPTOPP_MM_MALLOC_AVAILABLE +@@ -307,6 +301,13 @@ NAMESPACE_END + #define CRYPTOPP_NO_ALIGNED_ALLOC + #endif + ++#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE || CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE) || !defined(CPRYPTO_NO_ALIGNED_ALLOC) ++ #define CRYPTOPP_BOOL_ALIGN16_ENABLED 1 ++#else ++ #define CRYPTOPP_BOOL_ALIGN16_ENABLED 0 ++#endif ++ ++ + // how to disable inlining + #if defined(_MSC_VER) && _MSC_VER >= 1300 + # define CRYPTOPP_NOINLINE_DOTDOTDOT |