From 985dccfd7563ae7ac33fa40f9a3ebbbfa99322c3 Mon Sep 17 00:00:00 2001 From: FredyVia <942513309@qq.com> Date: Fri, 8 Mar 2024 15:02:31 +0800 Subject: [PATCH] [braft] --triplet=arm64-linux bugs (#37062) - [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [x] SHA512s are updated for each updated download. - [ ] The "supports" clause reflects platforms that may be fixed by this new version. - [ ] Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file. - [x] Any patches that are no longer applied are deleted from the port's directory. - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file. END OF PORT UPDATE CHECKLIST (delete this line) --> Co-authored-by: FredyVia --- ports/braft/export-target.patch | 27 +++++++++++++++++++++++++-- ports/braft/vcpkg.json | 2 +- versions/b-/braft.json | 5 +++++ versions/baseline.json | 2 +- 4 files changed, 32 insertions(+), 4 deletions(-) diff --git a/ports/braft/export-target.patch b/ports/braft/export-target.patch index 097a0570ca..b5779e1aec 100644 --- a/ports/braft/export-target.patch +++ b/ports/braft/export-target.patch @@ -1,5 +1,27 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a851c00..d18ecd0 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -105,7 +105,7 @@ if(BRPC_WITH_GLOG) + ${OPENSSL_LIBRARIES} + ${OPENSSL_CRYPTO_LIBRARY} + dl +- z ++ ZLIB::ZLIB + ) + else() + set(DYNAMIC_LIB +@@ -117,7 +117,7 @@ else() + ${OPENSSL_LIBRARIES} + ${OPENSSL_CRYPTO_LIBRARY} + dl +- z ++ ZLIB::ZLIB + ) + endif() + diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt -index 78adc56..ff435a2 100644 +index 78adc56..0ab4dce 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -19,8 +19,10 @@ add_library(braft-static STATIC $) @@ -13,7 +35,7 @@ index 78adc56..ff435a2 100644 target_link_libraries(braft-static PUBLIC ${DYNAMIC_LIB}) endif() -@@ -31,15 +33,30 @@ SET_TARGET_PROPERTIES(braft-shared PROPERTIES OUTPUT_NAME braft CLEAN_DIRECT_OUT +@@ -31,15 +33,31 @@ SET_TARGET_PROPERTIES(braft-shared PROPERTIES OUTPUT_NAME braft CLEAN_DIRECT_OUT endif() if (NOT BUILD_SHARED_LIBS) @@ -34,6 +56,7 @@ index 78adc56..ff435a2 100644 + +file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/unofficial-braft-config.cmake" +[[include(CMakeFindDependencyMacro) ++find_dependency(ZLIB) +find_dependency(gflags CONFIG) +file(GLOB TARGET_FILES "${CMAKE_CURRENT_LIST_DIR}/unofficial-braftTargets.cmake") +foreach (TARGET_FILE ${TARGET_FILES}) diff --git a/ports/braft/vcpkg.json b/ports/braft/vcpkg.json index 27bde88876..8d2eaf5abd 100644 --- a/ports/braft/vcpkg.json +++ b/ports/braft/vcpkg.json @@ -1,7 +1,7 @@ { "name": "braft", "version-date": "2021-26-04", - "port-version": 2, + "port-version": 3, "description": "Consensus algorithm library", "homepage": "https://github.com/baidu/braft", "license": "Apache-2.0", diff --git a/versions/b-/braft.json b/versions/b-/braft.json index ceb6f0b3da..2dc7c3b258 100644 --- a/versions/b-/braft.json +++ b/versions/b-/braft.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "af9ff158d1a8f1284b9cc78d4ec816b0a37c7a3d", + "version-date": "2021-26-04", + "port-version": 3 + }, { "git-tree": "0c776a091a987943aadb4879fdb7434929d4dd3d", "version-date": "2021-26-04", diff --git a/versions/baseline.json b/versions/baseline.json index 55857d0358..e559c6063f 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1334,7 +1334,7 @@ }, "braft": { "baseline": "2021-26-04", - "port-version": 2 + "port-version": 3 }, "breakpad": { "baseline": "2023-01-27",