[librdkafka] Upgrade up to 2.1.1 (#31266)

* [librdkafka] upgrade version up to 2.1.1

* [librdkafka] upgrade version up to 2.1.1

* Update ports/librdkafka/portfile.cmake

Co-authored-by: jim wang <122244446+jimwang118@users.noreply.github.com>

* [librdkafka] upgrade version up to 2.1.1

* remove blank

* update version

---------

Co-authored-by: Smyslov Alexander Nikolayevich <aleksandr.smyslov@fxclub.com>
Co-authored-by: jim wang <122244446+jimwang118@users.noreply.github.com>
This commit is contained in:
Alexander Smyslov 2023-05-05 20:12:49 +02:00 committed by GitHub
parent defe7b7fb3
commit 21ba00c5d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 30 deletions

View File

@ -1,25 +0,0 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 37b43c4..106fe38 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -213,6 +213,11 @@ if(WITH_ZLIB)
target_link_libraries(rdkafka PUBLIC ZLIB::ZLIB)
endif()
+if(WITH_CURL)
+ find_package(CURL CONFIG REQUIRED)
+ target_link_libraries(rdkafka PUBLIC CURL::libcurl)
+endif()
+
if(WITH_ZSTD)
target_link_libraries(rdkafka PRIVATE ${ZSTD_LIBRARY})
target_include_directories(rdkafka PRIVATE ${ZSTD_INCLUDE_DIR})
@@ -296,7 +301,7 @@ if(NOT RDKAFKA_BUILD_STATIC)
set(PKG_CONFIG_DESCRIPTION "The Apache Kafka C/C++ library")
if(WITH_CURL)
- string(APPEND PKG_CONFIG_REQUIRES "curl ")
+ string(APPEND PKG_CONFIG_REQUIRES "libcurl ")
endif()
if(WITH_ZLIB)

View File

@ -1,12 +1,11 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO edenhill/librdkafka
REF v2.1.0
SHA512 eeefa8833e7c178015ff8d0914d927d1bf4e09a75c5f227ba75e527f9bfc46407798d69642b5db3edafb93fcdbe56e8b506df826d01c7793af0f11e96c38caed
REF "v${VERSION}"
SHA512 6bf1761e7ed1820b587fda24277f6606ec046da281064df13c4380f49a92f3e2b165614b9c622d46b27078ec024a4dc211610e500e597265e8219f8869c4d203
HEAD_REF master
PATCHES
lz4.patch
fix_curl.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" RDKAFKA_BUILD_STATIC)

View File

@ -1,6 +1,6 @@
{
"name": "librdkafka",
"version": "2.1.0",
"version": "2.1.1",
"description": "The Apache Kafka C/C++ library",
"homepage": "https://github.com/edenhill/librdkafka",
"license": null,

View File

@ -4425,7 +4425,7 @@
"port-version": 0
},
"librdkafka": {
"baseline": "2.1.0",
"baseline": "2.1.1",
"port-version": 0
},
"libredwg": {

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "65bfe7c79910979e418a3c20b1cc615a64997e82",
"version": "2.1.1",
"port-version": 0
},
{
"git-tree": "e524f201bfa539b35c11c270d3e25a9c48eeff14",
"version": "2.1.0",