[cpp-redis] Fix ‘sleep_for’ is not a member of ‘std::this_thread’ (#23762)

* Apply patch: ‘sleep_for’ is not a member of ‘std::this_thread’

* Run with `./vcpkg x-add-version --all`

* update version-string

* update version

* Replace deprecated methods

* Add neccesary dependencies
Add missing license field according to original repo's license

* Run with `./vcpkg x-add-version --all`

* Bump port version
Run with `./vcpkg x-add-version --all`

* update version

* delets git-tree

* update git tree

* update vcpkg.json

* update version

Co-authored-by: Jonliu1993 <13720414433@163.com>
This commit is contained in:
Particle_G 2022-03-26 02:18:05 +08:00 committed by GitHub
parent c11ee6b3a7
commit ea5c1a6e5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 7 deletions

View File

@ -0,0 +1,12 @@
diff --git a/sources/core/client.cpp b/sources/core/client.cpp
index 7ea20e2..c5d2c40 100644
--- a/sources/core/client.cpp
+++ b/sources/core/client.cpp
@@ -23,6 +23,7 @@
#include <cpp_redis/core/client.hpp>
#include <cpp_redis/misc/error.hpp>
#include <cpp_redis/misc/macro.hpp>
+#include <thread>
namespace cpp_redis {

View File

@ -6,6 +6,8 @@ vcpkg_from_github(
REF 4.3.1
SHA512 abf372542c53f37f504b3211b840b100d07a8f4b2e7f5584cc7550ab16ed617838e2df79064374c7a409458d8567f4834686318ea3a40249c767e36c744c7a47
HEAD_REF master
PATCHES
"fix-sleep_for.patch"
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/tacopie/CMakeLists.txt DESTINATION ${SOURCE_PATH}/tacopie)
@ -22,14 +24,13 @@ if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" OR NOT VCPKG_CMAKE_SYSTEM_NAM
set(VCPKG_C_FLAGS_DEBUG "${VCPKG_C_FLAGS_DEBUG} -RTC1")
endif()
vcpkg_configure_cmake(
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DMSVC_RUNTIME_LIBRARY_CONFIG=${MSVC_RUNTIME_LIBRARY_CONFIG}
)
vcpkg_install_cmake()
vcpkg_cmake_install()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)

View File

@ -1,10 +1,19 @@
{
"name": "cpp-redis",
"version-string": "4.3.1",
"port-version": 4,
"version": "4.3.1",
"port-version": 5,
"description": "cpp-redis is a C++11 Asynchronous Multi-Platform Lightweight Redis Client, with support for synchronous operations and pipelining.",
"homepage": "https://github.com/cpp-redis/cpp_redis",
"license": "MIT",
"dependencies": [
"tacopie"
"tacopie",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -1562,7 +1562,7 @@
},
"cpp-redis": {
"baseline": "4.3.1",
"port-version": 4
"port-version": 5
},
"cpp-taskflow": {
"baseline": "2.6.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9714d8cf0b5557d4362f54f0906295b10a154832",
"version": "4.3.1",
"port-version": 5
},
{
"git-tree": "5ba5958862c17ab2f3943b0134b2ad756ae73613",
"version-string": "4.3.1",