-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Option to build using snappy. #7456
Conversation
Adding snappy support.
Adding Snappy compression option. |
Related issue: #7454 |
|
||
Feature: snappy | ||
Description: Build with snappy | ||
Build-Depends: snappy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
snappy
is not necessary here, since librdkafka
has a bundled version of snappy-c
: https://github.com/edenhill/librdkafka/blob/master/src/snappy.c
Hi! @rotrida Sorry for not solving your problem before, as I thought As we can see, #ifndef WITHOUT_WIN32_CONFIG
#define WITH_SSL 1
#define WITH_ZLIB 1
#define WITH_SNAPPY 1
#define WITH_ZSTD 1
/* zstd is linked dynamically on Windows, but the dynamic library provides
* the experimental/advanced API, just as the static builds on *nix */
#define WITH_ZSTD_STATIC 1
#define WITH_SASL_SCRAM 1
#define WITH_SASL_OAUTHBEARER 1
#define ENABLE_DEVEL 0
#define WITH_PLUGINS 1
#define WITH_HDRHISTOGRAM 1
#endif
|
I guess this patch should fix the diff --git a/ports/librdkafka/portfile.cmake b/ports/librdkafka/portfile.cmake
index 5bc66fdf..88bcf5e3 100644
--- a/ports/librdkafka/portfile.cmake
+++ b/ports/librdkafka/portfile.cmake
@@ -27,6 +27,7 @@ vcpkg_configure_cmake(
-DRDKAFKA_BUILD_EXAMPLES=OFF
-DRDKAFKA_BUILD_TESTS=OFF
-DWITH_BUNDLED_SSL=OFF
+ -DWITHOUT_WIN32_CONFIG=OFF
${FEATURE_OPTIONS}
OPTIONS_DEBUG
-DENABLE_DEVEL=ON |
I have created a PR in the upstream before: confluentinc/librdkafka#2323 |
Great! Thank you for getting into it. |
Hi! @rotrida Please do not close your PR yet. Instead please update your PR like this: vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DRDKAFKA_BUILD_STATIC=${RDKAFKA_BUILD_STATIC}
-DRDKAFKA_BUILD_EXAMPLES=OFF
-DRDKAFKA_BUILD_TESTS=OFF
-DWITH_BUNDLED_SSL=OFF
-DWITHOUT_WIN32_CONFIG=OFF # ADD THIS OPTION HERE
${FEATURE_OPTIONS}
OPTIONS_DEBUG
-DENABLE_DEVEL=ON
-DENABLE_REFCNT_DEBUG=ON
-DENABLE_SHAREDPTR_DEBUG=ON
-DWITHOUT_OPTIMIZATION=ON
OPTIONS_RELEASE
-DENABLE_DEVEL=OFF
-DENABLE_REFCNT_DEBUG=OFF
-DENABLE_SHAREDPTR_DEBUG=OFF
-DWITHOUT_OPTIMIZATION=OFF
) and bump the version number in the CONTROL file. |
Hi! @rotrida Thanks! This way this issue can get a quick fix in |
Superseded by #7469 . So close this one. |
No description provided.