-
Notifications
You must be signed in to change notification settings - Fork 809
librdkafka and cppkafka recipes #324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| SUMMARY = "high level C++ wrapper for rdkafka" | ||
| DESCRIPTION = "cppkafka allows C++ applications to consume and produce messages using the Apache Kafka protocol." | ||
| HOMEPAGE = "https://github.com/mfontanini/cppkafka" | ||
| SECTION = "lib" | ||
| LICENSE = "BSD-2-Clause" | ||
|
|
||
| LIC_FILES_CHKSUM = " \ | ||
| file://LICENSE;md5=d8b4ca15d239dc1485ef495c8f1bcc72 \ | ||
| " | ||
|
|
||
| SRC_URI = "git://github.com/mfontanini/cppkafka;protocol=https" | ||
| SRCREV = "5e4b350806d561473138ce7a982e8f6cf2e77733" | ||
|
|
||
| DEPENDS = "librdkafka boost chrpath-replacement-native" | ||
|
|
||
| inherit cmake | ||
|
|
||
| S = "${WORKDIR}/git" | ||
|
|
||
| do_install_append(){ | ||
| chrpath -d ${D}${libdir}/libcppkafka.so.0.3.1 | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| From dd06894a786edf4bea11dace50d7380b89dfaba5 Mon Sep 17 00:00:00 2001 | ||
| From: hasan.men <[email protected]> | ||
| Date: Sun, 4 Apr 2021 17:20:32 +0200 | ||
| Subject: [PATCH] fix absolute path problem | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please submit this patch upstream as well. If its not worthy of upstream then added the status to patch comment so we know we have to carry it for a reason.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kraj I've already pushed. Just waiting for response. Thanks |
||
| --- | ||
| src/CMakeLists.txt | 2 +- | ||
| 1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
|
||
| diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
| index c6c05e06..e6c47374 100644 | ||
| --- a/src/CMakeLists.txt | ||
| +++ b/src/CMakeLists.txt | ||
| @@ -176,7 +176,7 @@ if(MINGW) | ||
| endif(MINGW) | ||
|
|
||
| # Support '#include <rdkafka.h>' | ||
| -target_include_directories(rdkafka PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>") | ||
| +target_include_directories(rdkafka PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}> $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>) | ||
| target_compile_definitions(rdkafka PUBLIC ${rdkafka_compile_definitions}) | ||
| if(RDKAFKA_BUILD_STATIC) | ||
| target_compile_definitions(rdkafka PUBLIC LIBRDKAFKA_STATICLIB) | ||
| @@ -188,7 +188,7 @@ if(MINGW) | ||
| target_link_libraries(rdkafka PUBLIC crypt32 ws2_32 secur32) | ||
| endif(MINGW) | ||
|
|
||
| -if(WIN32) | ||
| +if(WIN32) | ||
| if(RDKAFKA_BUILD_STATIC) | ||
| target_link_libraries(rdkafka PUBLIC crypt32) | ||
| else() | ||
| @@ -207,13 +207,13 @@ endif() | ||
|
|
||
| if(WITH_ZLIB) | ||
| find_package(ZLIB REQUIRED) | ||
| - target_include_directories(rdkafka PUBLIC ${ZLIB_INCLUDE_DIRS}) | ||
| + target_include_directories(rdkafka PRIVATE ${ZLIB_INCLUDE_DIRS}) | ||
| target_link_libraries(rdkafka PUBLIC ZLIB::ZLIB) | ||
| endif() | ||
|
|
||
| if(WITH_ZSTD) | ||
| - target_link_libraries(rdkafka PUBLIC ${ZSTD_LIBRARY}) | ||
| - target_include_directories(rdkafka PUBLIC ${ZSTD_INCLUDE_DIR}) | ||
| + target_link_libraries(rdkafka PRIVATE ${ZSTD_LIBRARY}) | ||
| + target_include_directories(rdkafka PRIVATE ${ZSTD_INCLUDE_DIR}) | ||
| message(STATUS "Found ZSTD: ${ZSTD_LIBRARY}") | ||
| endif() | ||
|
|
||
| @@ -222,12 +222,12 @@ if(WITH_SSL) | ||
| if(NOT TARGET bundled-ssl) | ||
| message(FATAL_ERROR "bundled-ssl target not exist") | ||
| endif() | ||
| - target_include_directories(rdkafka BEFORE PUBLIC ${BUNDLED_SSL_INCLUDE_DIR}) | ||
| + target_include_directories(rdkafka BEFORE PRIVATE ${BUNDLED_SSL_INCLUDE_DIR}) | ||
| target_link_libraries(rdkafka PUBLIC ${BUNDLED_SSL_LIBRARIES}) | ||
| add_dependencies(rdkafka bundled-ssl) | ||
| else() | ||
| find_package(OpenSSL REQUIRED) | ||
| - target_include_directories(rdkafka PUBLIC ${OPENSSL_INCLUDE_DIR}) | ||
| + target_include_directories(rdkafka PRIVATE ${OPENSSL_INCLUDE_DIR}) | ||
| target_link_libraries(rdkafka PUBLIC OpenSSL::SSL OpenSSL::Crypto) | ||
| get_target_property(OPENSSL_TARGET_TYPE OpenSSL::SSL TYPE) | ||
| if(OPENSSL_CRYPTO_LIBRARY MATCHES "\\.a$") | ||
| @@ -244,7 +244,7 @@ find_package(Threads REQUIRED) | ||
| target_link_libraries(rdkafka PUBLIC Threads::Threads) | ||
|
|
||
| if(WITH_SASL_CYRUS) | ||
| - target_include_directories(rdkafka PUBLIC ${SASL_INCLUDE_DIRS}) | ||
| + target_include_directories(rdkafka PRIVATE ${SASL_INCLUDE_DIRS}) | ||
| target_link_libraries(rdkafka PUBLIC ${SASL_LIBRARIES}) | ||
| endif() | ||
|
|
||
| @@ -253,7 +253,7 @@ if(WITH_LIBDL) | ||
| endif() | ||
|
|
||
| if(WITH_LZ4_EXT) | ||
| - target_include_directories(rdkafka PUBLIC ${LZ4_INCLUDE_DIRS}) | ||
| + target_include_directories(rdkafka PRIVATE ${LZ4_INCLUDE_DIRS}) | ||
| target_link_libraries(rdkafka PUBLIC LZ4::LZ4) | ||
| endif() | ||
|
|
||
| -- | ||
| 2.17.1 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| SUMMARY = "the Apache Kafka C/C++ client library" | ||
| DESCRIPTION = "librdkafka is a C library implementation of the Apache Kafka protocol, providing Producer, Consumer and Admin clients." | ||
| HOMEPAGE = "https://github.com/edenhill/librdkafka" | ||
| SECTION = "libs" | ||
| LICENSE = "BSD-2-Clause" | ||
|
|
||
| LIC_FILES_CHKSUM = " \ | ||
| file://LICENSE;md5=2be8675acbfdac48935e73897af5f646 \ | ||
| " | ||
|
|
||
| SRC_URI = "git://github.com/edenhill/librdkafka;protocol=https \ | ||
| file://0001_fix_absolute_path_usage.patch" | ||
| SRCREV = "1a722553638bba85dbda5050455f7b9a5ef302de" | ||
|
|
||
| DEPENDS = "zlib openssl zstd" | ||
|
|
||
| inherit cmake | ||
|
|
||
| S = "${WORKDIR}/git" | ||
|
|
||
| FILES_${PN} += "${datadir}" | ||
|
|
||
| EXTRA_OECMAKE += "-DRDKAFKA_BUILD_EXAMPLES=OFF -DRDKAFKA_BUILD_TESTS=OFF" |
Uh oh!
There was an error while loading. Please reload this page.