Skip to content

Commit

Permalink
[redis-plus-plus] update to 1.2.3 (microsoft#18347)
Browse files Browse the repository at this point in the history
* [redis-plus-plus] update to 1.2.3

* update version
  • Loading branch information
JonLiu1993 authored Jun 11, 2021
1 parent dc94103 commit 610d218
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 21 deletions.
9 changes: 0 additions & 9 deletions ports/redis-plus-plus/CONTROL

This file was deleted.

4 changes: 2 additions & 2 deletions ports/redis-plus-plus/fix-conversion.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/src/sw/redis++/shards.cpp b/src/sw/redis++/shards.cpp
index e06d2a7..273d039 100644
index c5baf5a..08e96cd 100644
--- a/src/sw/redis++/shards.cpp
+++ b/src/sw/redis++/shards.cpp
@@ -39,7 +39,7 @@ std::pair<Slot, Node> RedirectionError::_parse_error(const std::string &msg) con
@@ -41,7 +41,7 @@ std::pair<Slot, Node> RedirectionError::_parse_error(const std::string &msg) con
auto host = msg.substr(space_pos + 1, colon_pos - space_pos - 1);
auto port = std::stoi(msg.substr(colon_pos + 1));

Expand Down
12 changes: 6 additions & 6 deletions ports/redis-plus-plus/fix-ws2-linking-windows.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eb3ff66..1309213 100644
index 452cc0f..90932ce 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -77,6 +77,7 @@ if (REDIS_PLUS_PLUS_BUILD_SHARED)
@@ -148,6 +148,7 @@ if(REDIS_PLUS_PLUS_BUILD_SHARED)
target_compile_definitions(${SHARED_LIB} PRIVATE NOMINMAX)
set_target_properties(${SHARED_LIB} PROPERTIES CXX_STANDARD ${REDIS_PLUS_PLUS_CXX_STANDARD} CXX_EXTENSIONS OFF)
set_target_properties(${SHARED_LIB} PROPERTIES CXX_STANDARD ${REDIS_PLUS_PLUS_CXX_STANDARD})
set_target_properties(${SHARED_LIB} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
+ target_link_libraries(${SHARED_LIB} Ws2_32.lib)
+ target_link_libraries(${SHARED_LIB} PUBLIC Ws2_32.lib)
else()
target_compile_options(${SHARED_LIB} PRIVATE "-Wall" "-W" "-Werror")
endif()

target_link_libraries(${SHARED_LIB} ${HIREDIS_LIB})
5 changes: 3 additions & 2 deletions ports/redis-plus-plus/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sewenew/redis-plus-plus
REF a9f9c301f8de1c181e6d45c573b5d1fe7b8200b1 # 1.2.1
SHA512 038641a91a2d62f8b07b548fb16f03e87a014fc3a53e59d95e9d31d707e800de4922838bc1bc181d642bb6ac23eae877e0a8724548d9d8f113ebc8d744384abf
REF df522812ba4114f1dd3386b81afc2369c82b717d # 1.2.3
SHA512 2ac59c5416ba85a60061d941787cb3bc2e43042ca0a53829f866448015ed6800c38ecbde3319d9756a70bfba2860732136d89d296382a6b9a675bbe32173f22b
HEAD_REF master
PATCHES
fix-ws2-linking-windows.patch
Expand Down Expand Up @@ -39,6 +39,7 @@ vcpkg_install_cmake()
vcpkg_copy_pdbs()

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright )
14 changes: 14 additions & 0 deletions ports/redis-plus-plus/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "redis-plus-plus",
"version-semver": "1.2.3",
"description": "This is a C++ client for Redis. It's based on hiredis, and written in C++ 11",
"homepage": "https://github.com/sewenew/redis-plus-plus",
"dependencies": [
"hiredis"
],
"features": {
"cxx17": {
"description": "Build redis-plus-plus with cxx 17 standard"
}
}
}
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5465,8 +5465,8 @@
"port-version": 0
},
"redis-plus-plus": {
"baseline": "1.2.1",
"port-version": 1
"baseline": "1.2.3",
"port-version": 0
},
"refl-cpp": {
"baseline": "0.12.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/r-/redis-plus-plus.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6a76da721b6b5c1820ccf60184f1c0aa44af788d",
"version-semver": "1.2.3",
"port-version": 0
},
{
"git-tree": "f4a1bafd6e609b8e012268c755d69566b8c29154",
"version-string": "1.2.1",
Expand Down

0 comments on commit 610d218

Please sign in to comment.