Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 4 additions & 32 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,33 +185,19 @@ blocks:
commands:
- '[[ -z $SEMAPHORE_GIT_TAG_NAME ]] || artifact push workflow artifacts/ --destination artifacts/${ARTIFACT_KEY}/'
jobs:
- name: 'Build: centos8 glibc +gssapi'
env_vars:
- name: ARTIFACT_KEY
value: p-librdkafka__plat-linux__dist-centos8__arch-x64__lnk-std__extra-gssapi
commands:
- packaging/tools/build-release-artifacts.sh quay.io/pypa/manylinux_2_28_x86_64:2024.07.01-1 artifacts/librdkafka.tgz

- name: 'Build: centos8 glibc'
env_vars:
- name: ARTIFACT_KEY
value: p-librdkafka__plat-linux__dist-centos8__arch-x64__lnk-all
commands:
- packaging/tools/build-release-artifacts.sh --disable-gssapi quay.io/pypa/manylinux_2_28_x86_64:2024.07.01-1 artifacts/librdkafka.tgz

- name: 'Build: alpine musl +gssapi'
env_vars:
- name: ARTIFACT_KEY
value: p-librdkafka__plat-linux__dist-alpine__arch-x64__lnk-std__extra-gssapi
commands:
- packaging/tools/build-release-artifacts.sh alpine:3.16.9 artifacts/librdkafka.tgz
- packaging/tools/build-release-artifacts.sh quay.io/pypa/manylinux_2_28_x86_64:2024.07.01-1 artifacts/librdkafka.tgz

- name: 'Build: alpine musl'
env_vars:
- name: ARTIFACT_KEY
value: p-librdkafka__plat-linux__dist-alpine__arch-x64__lnk-all
commands:
- packaging/tools/build-release-artifacts.sh --disable-gssapi alpine:3.16.9 artifacts/librdkafka.tgz
- packaging/tools/build-release-artifacts.sh alpine:3.16.9 artifacts/librdkafka.tgz


- name: 'Linux arm64: release artifact docker builds'
Expand All @@ -227,33 +213,19 @@ blocks:
commands:
- '[[ -z $SEMAPHORE_GIT_TAG_NAME ]] || artifact push workflow artifacts/ --destination artifacts/${ARTIFACT_KEY}/'
jobs:
- name: 'Build: centos8 glibc +gssapi'
env_vars:
- name: ARTIFACT_KEY
value: p-librdkafka__plat-linux__dist-centos8__arch-arm64__lnk-std__extra-gssapi
commands:
- packaging/tools/build-release-artifacts.sh quay.io/pypa/manylinux_2_28_aarch64:2024.07.01-1 artifacts/librdkafka.tgz

- name: 'Build: centos8 glibc'
env_vars:
- name: ARTIFACT_KEY
value: p-librdkafka__plat-linux__dist-centos8__arch-arm64__lnk-all
commands:
- packaging/tools/build-release-artifacts.sh --disable-gssapi quay.io/pypa/manylinux_2_28_aarch64:2024.07.01-1 artifacts/librdkafka.tgz

- name: 'Build: alpine musl +gssapi'
env_vars:
- name: ARTIFACT_KEY
value: p-librdkafka__plat-linux__dist-alpine__arch-arm64__lnk-all__extra-gssapi
commands:
- packaging/tools/build-release-artifacts.sh alpine:3.16.9 artifacts/librdkafka.tgz
- packaging/tools/build-release-artifacts.sh quay.io/pypa/manylinux_2_28_aarch64:2024.07.01-1 artifacts/librdkafka.tgz

- name: 'Build: alpine musl'
env_vars:
- name: ARTIFACT_KEY
value: p-librdkafka__plat-linux__dist-alpine__arch-arm64__lnk-all
commands:
- packaging/tools/build-release-artifacts.sh --disable-gssapi alpine:3.16.9 artifacts/librdkafka.tgz
- packaging/tools/build-release-artifacts.sh alpine:3.16.9 artifacts/librdkafka.tgz


- name: 'Windows x64: MinGW-w64'
Expand Down
27 changes: 4 additions & 23 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,38 +123,19 @@ endif()
# SASL {
if(WIN32)
set(with_sasl_default ON)
elseif(WITH_LIBDL)
set(with_sasl_default ON)
else()
if(PkgConfig_FOUND)
pkg_check_modules(SASL libsasl2)
if(SASL_FOUND)
set(with_sasl_default ON)
else()
try_compile(
WITH_SASL_CYRUS_BOOL
"${CMAKE_CURRENT_BINARY_DIR}/try_compile"
"${TRYCOMPILE_SRC_DIR}/libsasl2_test.c"
LINK_LIBRARIES "-lsasl2"
)
if(WITH_SASL_CYRUS_BOOL)
set(with_sasl_default ON)
set(SASL_LIBRARIES "-lsasl2")
else()
set(with_sasl_default OFF)
endif()
endif()
endif()
set(with_sasl_default OFF)
endif()
option(WITH_SASL "With SASL" ${with_sasl_default})
if(WITH_SASL)
if(SASL_FOUND)
link_directories(${SASL_LIBRARY_DIRS})
endif()
if(WITH_SSL)
set(WITH_SASL_SCRAM ON)
set(WITH_SASL_OAUTHBEARER ON)
list(APPEND BUILT_WITH "SASL_SCRAM SASL_OAUTHBEARER")
endif()
if(NOT WIN32)
if(NOT WIN32 AND WITH_LIBDL)
set(WITH_SASL_CYRUS ON)
list(APPEND BUILT_WITH "SASL_CYRUS")
endif()
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ If the version is out of date, please [create an issue or pull request](https://
pthreads
zlib-dev (optional, for gzip compression support)
libssl-dev (optional, for SSL and SASL SCRAM support)
libsasl2-dev (optional, for SASL GSSAPI support)
libzstd-dev (optional, for ZStd compression support)
libcurl-dev (optional, for SASL OAUTHBEARER OIDC support)

Expand Down
3 changes: 1 addition & 2 deletions configure.self
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ mkl_require socket
mkl_require zlib
mkl_require libzstd
mkl_require libssl
mkl_require libsasl2
mkl_require libcurl

# Generate version variables from rdkafka.h hex version define
Expand Down Expand Up @@ -99,12 +98,12 @@ void foo (void) {

if [[ $WITH_LIBDL == "y" ]]; then
mkl_allvar_set WITH_PLUGINS WITH_PLUGINS y
mkl_allvar_set WITH_SASL_CYRUS WITH_SASL_CYRUS y
fi

# optional libs
mkl_check "zlib"
mkl_check "libssl"
mkl_check "libsasl2"
mkl_check "libzstd"
mkl_check "libcurl"

Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: librdkafka
Priority: optional
Maintainer: Faidon Liambotis <[email protected]>
Uploaders: Christos Trochalakis <[email protected]>
Build-Depends: debhelper (>= 9), zlib1g-dev, libssl-dev, libsasl2-dev, liblz4-dev, python3
Build-Depends: debhelper (>= 9), zlib1g-dev, libssl-dev, liblz4-dev, python3
Standards-Version: 3.9.7
Section: libs
Homepage: https://github.com/confluentinc/librdkafka
Expand Down
36 changes: 0 additions & 36 deletions mklove/modules/configure.libsasl2

This file was deleted.

5 changes: 0 additions & 5 deletions packaging/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,6 @@ you will end up with:
(`librdkafka.so.1` or `librdkafka.1.dylib` on OSX).


**NOTE**: Due to libsasl2/cyrus-sasl's dynamically loaded plugins, it is
not possible for us to provide a self-contained static library with
GSSAPI/Kerberos support.



### The artifact pipeline

Expand Down
2 changes: 1 addition & 1 deletion packaging/alpine/build-alpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ "$1" = "--in-docker" ]; then
git clone /v /librdkafka

cd /librdkafka
./configure --install-deps --disable-gssapi --disable-lz4-ext --enable-static $*
./configure --install-deps --disable-lz4-ext --enable-static $*
make -j
examples/rdkafka_example -X builtin.features
CI=true make -C tests run_local_quick
Expand Down
2 changes: 1 addition & 1 deletion packaging/archlinux/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license=('BSD')
arch=('x86_64')
source=('git+https://github.com/confluentinc/librdkafka#branch=master')
sha256sums=('SKIP')
depends=(glibc libsasl lz4 openssl zlib zstd)
depends=(glibc lz4 openssl zlib zstd)
makedepends=(bash git python3)

pkgver() {
Expand Down
7 changes: 0 additions & 7 deletions packaging/cmake/try_compile/libsasl2_test.c

This file was deleted.

2 changes: 1 addition & 1 deletion packaging/debian/control
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Source: librdkafka
Priority: optional
Maintainer: Faidon Liambotis <[email protected]>
Build-Depends: debhelper (>= 9), zlib1g-dev, libssl-dev, libsasl2-dev, python3
Build-Depends: debhelper (>= 9), zlib1g-dev, libssl-dev, python3
Standards-Version: 3.9.6
Section: libs
Homepage: https://github.com/confluentinc/librdkafka
Expand Down
2 changes: 1 addition & 1 deletion packaging/debian/librdkafka.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Homepage: https://github.com/confluentinc/librdkafka
Standards-Version: 3.9.6
Vcs-Browser: https://github.com/confluentinc/librdkafka/tree/master
Vcs-Git: git://github.com/confluentinc/librdkafka.git -b master
Build-Depends: debhelper (>= 9), zlib1g-dev, libssl-dev, libsasl2-dev, python3
Build-Depends: debhelper (>= 9), zlib1g-dev, libssl-dev, python3
Package-List:
librdkafka-dev deb libdevel optional arch=any
librdkafka1 deb libs optional arch=any
Expand Down
26 changes: 9 additions & 17 deletions packaging/nuget/nugetpackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,32 @@ class NugetPackage (Package):
mappings = [
Mapping({'arch': 'x64',
'plat': 'linux',
'lnk': 'std'},
'lnk': 'all'},
'librdkafka.tgz',
'./usr/local/include/librdkafka/rdkafka.h',
'build/native/include/librdkafka/rdkafka.h'),
Mapping({'arch': 'x64',
'plat': 'linux',
'lnk': 'std'},
'lnk': 'all'},
'librdkafka.tgz',
'./usr/local/include/librdkafka/rdkafkacpp.h',
'build/native/include/librdkafka/rdkafkacpp.h'),
Mapping({'arch': 'x64',
'plat': 'linux',
'lnk': 'std'},
'lnk': 'all'},
'librdkafka.tgz',
'./usr/local/include/librdkafka/rdkafka_mock.h',
'build/native/include/librdkafka/rdkafka_mock.h'),

Mapping({'arch': 'x64',
'plat': 'linux',
'lnk': 'std'},
'lnk': 'all'},
'librdkafka.tgz',
'./usr/local/share/doc/librdkafka/README.md',
'README.md'),
Mapping({'arch': 'x64',
'plat': 'linux',
'lnk': 'std'},
'lnk': 'all'},
'librdkafka.tgz',
'./usr/local/share/doc/librdkafka/CONFIGURATION.md',
'CONFIGURATION.md'),
Expand All @@ -67,23 +67,15 @@ class NugetPackage (Package):
'./usr/local/lib/librdkafka.1.dylib',
'runtimes/osx-arm64/native/librdkafka.dylib'),

# Linux glibc centos8 x64 with GSSAPI
Mapping({'arch': 'x64',
'plat': 'linux',
'dist': 'centos8',
'lnk': 'std'},
'librdkafka.tgz',
'./usr/local/lib/librdkafka.so.1',
'runtimes/linux-x64/native/librdkafka.so'),
# Linux glibc centos8 x64 without GSSAPI (no external deps)
# Linux glibc centos8 x64
Mapping({'arch': 'x64',
'plat': 'linux',
'dist': 'centos8',
'lnk': 'all'},
'librdkafka.tgz',
'./usr/local/lib/librdkafka.so.1',
'runtimes/linux-x64/native/centos8-librdkafka.so'),
# Linux glibc centos8 arm64 without GSSAPI (no external deps)
'runtimes/linux-x64/native/librdkafka.so'),
# Linux glibc centos8 arm64
Mapping({'arch': 'arm64',
'plat': 'linux',
'dist': 'centos8',
Expand All @@ -92,7 +84,7 @@ class NugetPackage (Package):
'./usr/local/lib/librdkafka.so.1',
'runtimes/linux-arm64/native/librdkafka.so'),

# Linux musl alpine x64 without GSSAPI (no external deps)
# Linux musl alpine x64
Mapping({'arch': 'x64',
'plat': 'linux',
'dist': 'alpine',
Expand Down
1 change: 0 additions & 1 deletion packaging/nuget/packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def magic_mismatch(path, a):
# bid - builder's build-id
# bldtype - Release, Debug (appveyor)
# lnk - Linkage ("std", "static", "all" (both std and static))
# extra - Extra build options, typically "gssapi" (for cyrus-sasl linking).

#
# Example:
Expand Down
Loading