pkgsrc-Changes-HG archive

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

[pkgsrc/pkgsrc-2017Q1]: pkgsrc/security/crypto++ Pullup ticket #5457 - reques...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8c3c996b646f
branches:  pkgsrc-2017Q1
changeset: 360388:8c3c996b646f
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Mon May 29 18:37:28 2017 +0000

description:
Pullup ticket #5457 - requested by sevan
security/crypto++: security fix

Revisions pulled up:
- security/crypto++/Makefile                                    1.21
- security/crypto++/PLIST                                       1.7
- security/crypto++/buildlink3.mk                               1.13
- security/crypto++/distinfo                                    1.12
- security/crypto++/patches/patch-GNUmakefile                   1.1
- security/crypto++/patches/patch-aa                            deleted
- security/crypto++/patches/patch-config.h                      deleted

---
   Module Name:    pkgsrc
   Committed By:   adam
   Date:           Thu May 18 21:20:23 UTC 2017

   Modified Files:
           pkgsrc/security/crypto++: Makefile PLIST buildlink3.mk distinfo
   Added Files:
           pkgsrc/security/crypto++/patches: patch-GNUmakefile
   Removed Files:
           pkgsrc/security/crypto++/patches: patch-aa patch-config.h

   Log Message:
   Crypto++ 5.6.5

   The 5.6.5 release was mostly a maintenance release. The release included
   two CVE fixes.

   The first, CVE-2016-7420, was a procedural finding due to external build
   systems failing to define NDEBUG for release builds. The gap was the
   project's failure to tell users to define NDEBUG. The
   second, CVE-2016-7544, was a potential memory corruption on Windows
   platforms when using Microsoft compilers due to use of _malloca and _freea.

   Due to CVE-2016-7420 and the possibility for an unwanted assert to
   egress data, users and distros are encouraged to recompile the library
   and all dependent programs.

diffstat:

 security/crypto++/Makefile                  |   38 +++-----
 security/crypto++/PLIST                     |  120 +++++++++++++++++++++++++++-
 security/crypto++/buildlink3.mk             |    4 +-
 security/crypto++/distinfo                  |   13 +-
 security/crypto++/patches/patch-GNUmakefile |   37 ++++++++
 security/crypto++/patches/patch-aa          |   31 -------
 security/crypto++/patches/patch-config.h    |   31 -------
 7 files changed, 176 insertions(+), 98 deletions(-)

diffs (truncated from 391 to 300 lines):

diff -r 7e8936b8c973 -r 8c3c996b646f security/crypto++/Makefile
--- a/security/crypto++/Makefile        Mon May 29 18:35:08 2017 +0000
+++ b/security/crypto++/Makefile        Mon May 29 18:37:28 2017 +0000
@@ -1,34 +1,24 @@
-# $NetBSD: Makefile,v 1.20 2015/03/27 14:14:26 rodent Exp $
-#
+# $NetBSD: Makefile,v 1.20.18.1 2017/05/29 18:37:28 bsiegert Exp $
 
-DISTNAME=              cryptopp562
-PKGNAME=               cryptopp-5.6.2
-PKGREVISION=           3
-CATEGORIES=            security
-MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=cryptopp/}
-EXTRACT_SUFX=          .zip
+DISTNAME=      cryptopp565
+PKGNAME=       cryptopp-5.6.5
+CATEGORIES=    security
+MASTER_SITES=  ${HOMEPAGE}
+EXTRACT_SUFX=  .zip
 
-MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=              http://www.cryptopp.com/
-COMMENT=               Free C++ class library of Cryptographic Primitives
-LICENSE=               boost-license
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.cryptopp.com/
+COMMENT=       Free C++ class library of Cryptographic Primitives
+LICENSE=       boost-license
 
+USE_LANGUAGES=         c++
 USE_TOOLS+=            gmake
 MAKE_FILE=             GNUmakefile
 WRKSRC=                        ${WRKDIR}
-USE_LANGUAGES=         c++
 CPPFLAGS+=             -DCRYPTOPP_DISABLE_ASM -fPIC
-BUILD_TARGET+=         all dynamic
-BUILDLINK_TRANSFORM+=  rm:-pipe rm:-msse2
-
-AUTO_MKDIRS=                   yes
+BUILD_TARGET=          all static shared
 
-do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/cryptest.exe ${DESTDIR}${PREFIX}/bin/cryptest
-       ${INSTALL_DATA} ${WRKSRC}/libcryptopp.a ${DESTDIR}${PREFIX}/lib
-       ${INSTALL_LIB} ${WRKSRC}/libcryptopp.so ${DESTDIR}${PREFIX}/lib
-       ${INSTALL_DATA} ${WRKSRC}/Readme.txt ${DESTDIR}${PREFIX}/share/doc/cryptopp/README
-       ${INSTALL_DATA} ${WRKSRC}/License.txt ${DESTDIR}${PREFIX}/share/doc/cryptopp/License
-       cd ${WRKSRC} && ${INSTALL_DATA} *.h ${DESTDIR}${PREFIX}/include/cryptopp
+post-install:
+       ${MV} ${DESTDIR}${PREFIX}/bin/cryptest.exe ${DESTDIR}${PREFIX}/bin/cryptest
 
 .include "../../mk/bsd.pkg.mk"
diff -r 7e8936b8c973 -r 8c3c996b646f security/crypto++/PLIST
--- a/security/crypto++/PLIST   Mon May 29 18:35:08 2017 +0000
+++ b/security/crypto++/PLIST   Mon May 29 18:37:28 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2015/03/27 14:14:26 rodent Exp $
+@comment $NetBSD: PLIST,v 1.6.18.1 2017/05/29 18:37:28 bsiegert Exp $
 bin/cryptest
 include/cryptopp/3way.h
 include/cryptopp/adler32.h
@@ -13,12 +13,14 @@
 include/cryptopp/base64.h
 include/cryptopp/basecode.h
 include/cryptopp/bench.h
+include/cryptopp/blake2.h
 include/cryptopp/blowfish.h
 include/cryptopp/blumshub.h
 include/cryptopp/camellia.h
 include/cryptopp/cast.h
 include/cryptopp/cbcmac.h
 include/cryptopp/ccm.h
+include/cryptopp/chacha.h
 include/cryptopp/channels.h
 include/cryptopp/cmac.h
 include/cryptopp/config.h
@@ -41,6 +43,7 @@
 include/cryptopp/eprecomp.h
 include/cryptopp/esign.h
 include/cryptopp/factory.h
+include/cryptopp/fhmqv.h
 include/cryptopp/files.h
 include/cryptopp/filters.h
 include/cryptopp/fips140.h
@@ -53,12 +56,15 @@
 include/cryptopp/gost.h
 include/cryptopp/gzip.h
 include/cryptopp/hex.h
+include/cryptopp/hkdf.h
 include/cryptopp/hmac.h
+include/cryptopp/hmqv.h
 include/cryptopp/hrtimer.h
 include/cryptopp/ida.h
 include/cryptopp/idea.h
 include/cryptopp/integer.h
 include/cryptopp/iterhash.h
+include/cryptopp/keccak.h
 include/cryptopp/lubyrack.h
 include/cryptopp/luc.h
 include/cryptopp/mars.h
@@ -66,6 +72,7 @@
 include/cryptopp/md4.h
 include/cryptopp/md5.h
 include/cryptopp/mdc.h
+include/cryptopp/mersenne.h
 include/cryptopp/misc.h
 include/cryptopp/modarith.h
 include/cryptopp/modes.h
@@ -78,6 +85,7 @@
 include/cryptopp/oaep.h
 include/cryptopp/oids.h
 include/cryptopp/osrng.h
+include/cryptopp/ossig.h
 include/cryptopp/panama.h
 include/cryptopp/pch.h
 include/cryptopp/pkcspad.h
@@ -91,6 +99,7 @@
 include/cryptopp/rc2.h
 include/cryptopp/rc5.h
 include/cryptopp/rc6.h
+include/cryptopp/rdrand.h
 include/cryptopp/resource.h
 include/cryptopp/rijndael.h
 include/cryptopp/ripemd.h
@@ -119,6 +128,7 @@
 include/cryptopp/strciphr.h
 include/cryptopp/tea.h
 include/cryptopp/tiger.h
+include/cryptopp/trap.h
 include/cryptopp/trdlocal.h
 include/cryptopp/trunhash.h
 include/cryptopp/ttmac.h
@@ -137,5 +147,109 @@
 include/cryptopp/zlib.h
 lib/libcryptopp.a
 lib/libcryptopp.so
-share/doc/cryptopp/License
-share/doc/cryptopp/README
+share/cryptopp/TestData/3desval.dat
+share/cryptopp/TestData/3wayval.dat
+share/cryptopp/TestData/camellia.dat
+share/cryptopp/TestData/cast128v.dat
+share/cryptopp/TestData/cast256v.dat
+share/cryptopp/TestData/descert.dat
+share/cryptopp/TestData/dh1024.dat
+share/cryptopp/TestData/dh2048.dat
+share/cryptopp/TestData/dlie1024.dat
+share/cryptopp/TestData/dlie2048.dat
+share/cryptopp/TestData/dsa1024.dat
+share/cryptopp/TestData/dsa1024b.dat
+share/cryptopp/TestData/dsa512.dat
+share/cryptopp/TestData/elgc1024.dat
+share/cryptopp/TestData/esig1023.dat
+share/cryptopp/TestData/esig1536.dat
+share/cryptopp/TestData/esig2046.dat
+share/cryptopp/TestData/fhmqv160.dat
+share/cryptopp/TestData/fhmqv256.dat
+share/cryptopp/TestData/fhmqv384.dat
+share/cryptopp/TestData/fhmqv512.dat
+share/cryptopp/TestData/gostval.dat
+share/cryptopp/TestData/hmqv160.dat
+share/cryptopp/TestData/hmqv256.dat
+share/cryptopp/TestData/hmqv384.dat
+share/cryptopp/TestData/hmqv512.dat
+share/cryptopp/TestData/ideaval.dat
+share/cryptopp/TestData/luc1024.dat
+share/cryptopp/TestData/luc2048.dat
+share/cryptopp/TestData/lucc1024.dat
+share/cryptopp/TestData/lucc512.dat
+share/cryptopp/TestData/lucd1024.dat
+share/cryptopp/TestData/lucd512.dat
+share/cryptopp/TestData/lucs1024.dat
+share/cryptopp/TestData/lucs512.dat
+share/cryptopp/TestData/marsval.dat
+share/cryptopp/TestData/mqv1024.dat
+share/cryptopp/TestData/mqv2048.dat
+share/cryptopp/TestData/nr1024.dat
+share/cryptopp/TestData/nr2048.dat
+share/cryptopp/TestData/rabi1024.dat
+share/cryptopp/TestData/rabi2048.dat
+share/cryptopp/TestData/rc2val.dat
+share/cryptopp/TestData/rc5val.dat
+share/cryptopp/TestData/rc6val.dat
+share/cryptopp/TestData/rijndael.dat
+share/cryptopp/TestData/rsa1024.dat
+share/cryptopp/TestData/rsa2048.dat
+share/cryptopp/TestData/rsa400pb.dat
+share/cryptopp/TestData/rsa400pv.dat
+share/cryptopp/TestData/rsa512a.dat
+share/cryptopp/TestData/rw1024.dat
+share/cryptopp/TestData/rw2048.dat
+share/cryptopp/TestData/saferval.dat
+share/cryptopp/TestData/serpentv.dat
+share/cryptopp/TestData/shacal2v.dat
+share/cryptopp/TestData/sharkval.dat
+share/cryptopp/TestData/skipjack.dat
+share/cryptopp/TestData/squareva.dat
+share/cryptopp/TestData/twofishv.dat
+share/cryptopp/TestData/usage.dat
+share/cryptopp/TestData/xtrdh171.dat
+share/cryptopp/TestData/xtrdh342.dat
+share/cryptopp/TestVectors/Readme.txt
+share/cryptopp/TestVectors/aes.txt
+share/cryptopp/TestVectors/all.txt
+share/cryptopp/TestVectors/blake2.txt
+share/cryptopp/TestVectors/blake2b.txt
+share/cryptopp/TestVectors/blake2s.txt
+share/cryptopp/TestVectors/camellia.txt
+share/cryptopp/TestVectors/ccm.txt
+share/cryptopp/TestVectors/chacha.txt
+share/cryptopp/TestVectors/cmac.txt
+share/cryptopp/TestVectors/dlies.txt
+share/cryptopp/TestVectors/dsa.txt
+share/cryptopp/TestVectors/dsa_1363.txt
+share/cryptopp/TestVectors/dsa_rfc6979.txt
+share/cryptopp/TestVectors/eax.txt
+share/cryptopp/TestVectors/esign.txt
+share/cryptopp/TestVectors/gcm.txt
+share/cryptopp/TestVectors/hkdf.txt
+share/cryptopp/TestVectors/hmac.txt
+share/cryptopp/TestVectors/keccak.txt
+share/cryptopp/TestVectors/mars.txt
+share/cryptopp/TestVectors/nr.txt
+share/cryptopp/TestVectors/panama.txt
+share/cryptopp/TestVectors/rsa_oaep.txt
+share/cryptopp/TestVectors/rsa_pkcs1_1_5.txt
+share/cryptopp/TestVectors/rsa_pss.txt
+share/cryptopp/TestVectors/rw.txt
+share/cryptopp/TestVectors/salsa.txt
+share/cryptopp/TestVectors/seal.txt
+share/cryptopp/TestVectors/seed.txt
+share/cryptopp/TestVectors/sha.txt
+share/cryptopp/TestVectors/sha3_224_fips_202.txt
+share/cryptopp/TestVectors/sha3_256_fips_202.txt
+share/cryptopp/TestVectors/sha3_384_fips_202.txt
+share/cryptopp/TestVectors/sha3_512_fips_202.txt
+share/cryptopp/TestVectors/sha3_fips_202.txt
+share/cryptopp/TestVectors/shacal2.txt
+share/cryptopp/TestVectors/sosemanuk.txt
+share/cryptopp/TestVectors/tea.txt
+share/cryptopp/TestVectors/ttmac.txt
+share/cryptopp/TestVectors/vmac.txt
+share/cryptopp/TestVectors/wake.txt
+share/cryptopp/TestVectors/whrlpool.txt
diff -r 7e8936b8c973 -r 8c3c996b646f security/crypto++/buildlink3.mk
--- a/security/crypto++/buildlink3.mk   Mon May 29 18:35:08 2017 +0000
+++ b/security/crypto++/buildlink3.mk   Mon May 29 18:37:28 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.12 2015/03/27 14:14:26 rodent Exp $
+# $NetBSD: buildlink3.mk,v 1.12.18.1 2017/05/29 18:37:28 bsiegert Exp $
 
 BUILDLINK_TREE+=       cryptopp
 
@@ -7,7 +7,7 @@
 
 BUILDLINK_API_DEPENDS.cryptopp+=       cryptopp>=5.6.2
 BUILDLINK_ABI_DEPENDS.cryptopp+=       cryptopp>=5.6.2
-BUILDLINK_PKGSRCDIR.cryptopp?= ../../security/crypto++
+BUILDLINK_PKGSRCDIR.cryptopp?=         ../../security/crypto++
 .endif # CRYPTOPP_BUILDLINK3_MK
 
 BUILDLINK_TREE+=       -cryptopp
diff -r 7e8936b8c973 -r 8c3c996b646f security/crypto++/distinfo
--- a/security/crypto++/distinfo        Mon May 29 18:35:08 2017 +0000
+++ b/security/crypto++/distinfo        Mon May 29 18:37:28 2017 +0000
@@ -1,8 +1,7 @@
-$NetBSD: distinfo,v 1.11 2015/11/04 01:17:42 agc Exp $
+$NetBSD: distinfo,v 1.11.12.1 2017/05/29 18:37:28 bsiegert Exp $
 
-SHA1 (cryptopp562.zip) = ddc18ae41c2c940317cd6efe81871686846fa293
-RMD160 (cryptopp562.zip) = b41af768b3a5ba927dac44ec554dc2095e21b1bb
-SHA512 (cryptopp562.zip) = 016ca7ebad1091d67ad0bc5ccb7549d96d4af6b563d9d5a612cae27b3d1a3514c41b954e319fed91c820e8c701e3aa43da186e0864bf959ce4afd1539248ebbe
-Size (cryptopp562.zip) = 1137964 bytes
-SHA1 (patch-aa) = 9828c7da35f62bc696ee3c529b20ed3faee9b55b
-SHA1 (patch-config.h) = d89c38eeaa51494c14fd6b6e7e6f436177bcfe0f
+SHA1 (cryptopp565.zip) = a74f207a315b6a133af9640a45bde9d6e378af4d
+RMD160 (cryptopp565.zip) = 4c13bb99dd205d54598527386e88b0dd436fc524
+SHA512 (cryptopp565.zip) = f13718d02ca69b0129aaf9e767c9d2e0333aa7538355f9c63d9eaf1ff369062084a18dc01489439ebf37797b3ea81b01beb072057d47ec962bfb824ddc72abc7
+Size (cryptopp565.zip) = 4220843 bytes
+SHA1 (patch-GNUmakefile) = a83b221092685721c30ba00d152e11a73cf20f1e
diff -r 7e8936b8c973 -r 8c3c996b646f security/crypto++/patches/patch-GNUmakefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/crypto++/patches/patch-GNUmakefile       Mon May 29 18:37:28 2017 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-GNUmakefile,v 1.1.2.2 2017/05/29 18:37:29 bsiegert Exp $
+
+Avoid -march=native compiler flag.
+On Darwin, use absolute path to avoid conflict with devel/libtool.
+
+--- GNUmakefile.orig   2016-10-10 23:49:54.000000000 +0000
++++ GNUmakefile
+@@ -125,12 +125,6 @@ ifeq ($(IS_X86)$(IS_X32)$(IS_CYGWIN)$(IS
+  endif
+ endif
+ 
+-# Guard use of -march=native
+-ifeq ($(GCC42_OR_LATER)$(IS_NETBSD),10)
+-   CXXFLAGS += -march=native
+-else ifneq ($(CLANG_COMPILER)$(INTEL_COMPILER),00)
+-   CXXFLAGS += -march=native



Home | Main Index | Thread Index | Old Index