diff options
| author | Owen Rudge <owen@owenrudge.net> | 2021-05-06 21:54:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-06 13:54:57 -0700 |
| commit | 2a4749e8ad2b278958909e14dced0638b049bf60 (patch) | |
| tree | f74c548dd714f7583e79758c714e5dd89136d47c | |
| parent | cbb72bc346a8495ecafe28dbcf41ace2dde95e97 (diff) | |
| download | vcpkg-2a4749e8ad2b278958909e14dced0638b049bf60.tar.gz vcpkg-2a4749e8ad2b278958909e14dced0638b049bf60.zip | |
[cryptopp] Update to 8.5.0 (#17533)
* [cryptopp] Update to 8.5.0
* [cryptopp] Update versions
* Update versions/c-/cryptopp.json
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
| -rw-r--r-- | ports/cryptopp/CONTROL | 2 | ||||
| -rw-r--r-- | ports/cryptopp/cmake.patch | 10 | ||||
| -rw-r--r-- | ports/cryptopp/patch.patch | 10 | ||||
| -rw-r--r-- | ports/cryptopp/portfile.cmake | 15 | ||||
| -rw-r--r-- | versions/baseline.json | 2 | ||||
| -rw-r--r-- | versions/c-/cryptopp.json | 5 |
6 files changed, 21 insertions, 23 deletions
diff --git a/ports/cryptopp/CONTROL b/ports/cryptopp/CONTROL index c70415dd1..2cebc7177 100644 --- a/ports/cryptopp/CONTROL +++ b/ports/cryptopp/CONTROL @@ -1,5 +1,5 @@ Source: cryptopp -Version: 8.2.0-2 +Version: 8.5.0 Homepage: https://github.com/weidai11/cryptopp Description: Crypto++ is a free C++ class library of cryptographic schemes. diff --git a/ports/cryptopp/cmake.patch b/ports/cryptopp/cmake.patch index 699ebd564..8502ff17c 100644 --- a/ports/cryptopp/cmake.patch +++ b/ports/cryptopp/cmake.patch @@ -1,13 +1,9 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt -index 8cf9fa2..86a756b 100644 +index 1683961..f63c71e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -336,9 +336,13 @@ if (MSVC) - if (CMAKE_SYSTEM_VERSION MATCHES "10\\.0.*") - list(APPEND CRYPTOPP_COMPILE_DEFINITIONS "_WIN32_WINNT=0x0A00") - endif () -- list(APPEND CRYPTOPP_COMPILE_OPTIONS "/FI\"winapifamily.h\"") -+ list(APPEND CRYPTOPP_COMPILE_OPTIONS "/FIwinapifamily.h") +@@ -395,6 +395,10 @@ if (MSVC) + list(APPEND CRYPTOPP_COMPILE_OPTIONS /FI winapifamily.h) endif () +if(WINDOWS_STORE) diff --git a/ports/cryptopp/patch.patch b/ports/cryptopp/patch.patch index 937738d5b..c202564e9 100644 --- a/ports/cryptopp/patch.patch +++ b/ports/cryptopp/patch.patch @@ -1,8 +1,8 @@ -diff --git a/config.h b/config.h -index f06992a2..be6eda31 100644 ---- a/config.h -+++ b/config.h -@@ -814,6 +814,7 @@ NAMESPACE_END +diff --git a/config_os.h b/config_os.h +index da27de22..9703f77d 100644 +--- a/config_os.h ++++ b/config_os.h +@@ -126,6 +126,7 @@ #endif
#ifdef CRYPTOPP_WIN32_AVAILABLE
diff --git a/ports/cryptopp/portfile.cmake b/ports/cryptopp/portfile.cmake index f2c42a876..03612d305 100644 --- a/ports/cryptopp/portfile.cmake +++ b/ports/cryptopp/portfile.cmake @@ -3,8 +3,8 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY) vcpkg_from_github( OUT_SOURCE_PATH CMAKE_SOURCE_PATH REPO noloader/cryptopp-cmake - REF 6d0666c457fbbf6f81819fd2b80f0cb5b6646593 - SHA512 0341f14ce734afaee8bcc1db1716684f241499c692a5478c83a3df3fd2e5331cd04b2f4f51d43cce231ca1d9fbe76220639573c05ef06be0cf33081a1ef7ab30 + REF CRYPTOPP_8_5_0 + SHA512 758633786c81f5a34ade0ab99983b3262bb3a028b086e734b1f8ddb618c801453d517f67176178936f87ec36a91fca93fba9bcaec4301705138954e6eb49d136 HEAD_REF master PATCHES cmake.patch @@ -13,8 +13,8 @@ vcpkg_from_github( vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO weidai11/cryptopp - REF CRYPTOPP_8_2_0 - SHA512 d2dcc107091d00800de243abdce8286ccd7fcc5707eebf88b97675456a021e62002e942b862db0465f72142951f631c0c1f0b2ba56028b96461780a17f2dfdf9 + REF CRYPTOPP_8_5_0 + SHA512 e8dd210c9e9d4925edc456e4d68780deaa224d85e11394ad5da835dcb1a1e6b3e899aa473acf20449f9721116960884b6d88b29335479b305bb7e29faa87e6c0 HEAD_REF master PATCHES patch.patch ) @@ -38,16 +38,13 @@ if("pem-pack" IN_LIST FEATURES) file(COPY ${PEM_PACK_FILES} DESTINATION ${SOURCE_PATH}) endif() -# disable assembly on OSX and ARM Windows to fix broken build -if (VCPKG_TARGET_IS_OSX) - set(CRYPTOPP_DISABLE_ASM "ON") -elseif (VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE MATCHES "^arm") +# disable assembly on ARM Windows to fix broken build +if (VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE MATCHES "^arm") set(CRYPTOPP_DISABLE_ASM "ON") else() set(CRYPTOPP_DISABLE_ASM "OFF") endif() - # Dynamic linking should be avoided for Crypto++ to reduce the attack surface, # so generate a static lib for both dynamic and static vcpkg targets. # See also: diff --git a/versions/baseline.json b/versions/baseline.json index 9d72afea5..fecdf876c 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1493,7 +1493,7 @@ "port-version": 0 }, "cryptopp": { - "baseline": "8.2.0-2", + "baseline": "8.5.0", "port-version": 0 }, "cspice": { diff --git a/versions/c-/cryptopp.json b/versions/c-/cryptopp.json index a51537096..5549cf006 100644 --- a/versions/c-/cryptopp.json +++ b/versions/c-/cryptopp.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "c8aee6279ffed7e7e1f9037c15937643c315a999", + "version-string": "8.5.0", + "port-version": 0 + }, + { "git-tree": "ad41b9e4eb55001f640b5aab811f288862829d70", "version-string": "8.2.0-2", "port-version": 0 |
