Skip to content

Commit 000d02b

Browse files
committed
add a flag to enable gssapi
1 parent e029de2 commit 000d02b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/fast_testing.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Build module
4949
run: |
5050
export MAKEFLAGS=-j8
51-
tarantoolctl rocks STATIC_BUILD=ON make
51+
tarantoolctl rocks STATIC_BUILD=ON WITH_GSSAPI=ON make
5252
5353
- name: Run tarantool application
5454
run: TT_LOG=tarantool.log tarantool tests/app.lua > output.log 2>&1 &

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ find_package(Tarantool REQUIRED)
1414

1515
set(STATIC_BUILD "OFF" CACHE BOOL "Link dependencies statically?")
1616
set(WITH_OPENSSL_1_1 "OFF" CACHE BOOL "Require openssl version >= 1.1?")
17+
set(WITH_GSSAPI "OFF" CACHE BOOL "Enable Kerberos (GSSAPI) support")
1718
set(ENABLE_ASAN "OFF" CACHE BOOL "Enable ASAN")
1819
set(ENABLE_UBSAN "OFF" CACHE BOOL "Enable UBSAN")
1920

@@ -47,6 +48,10 @@ if (APPLE)
4748
set(LIBRDKAFKA_C_FLAGS "${LIBRDKAFKA_C_FLAGS} ${CMAKE_C_SYSROOT_FLAG} ${CMAKE_OSX_SYSROOT}")
4849
endif()
4950

51+
if (WITH_GSSAPI)
52+
set(LIBRDKAFKA_FLAGS ${LIBRDKAFKA_FLAGS} --enable-gssapi)
53+
endif()
54+
5055
if(STATIC_BUILD)
5156
include(ExternalProject)
5257
set(PATCHES_DIR "${CMAKE_SOURCE_DIR}/patches")

kafka-scm-1.rockspec

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ build = {
2727
STATIC_BUILD="$(STATIC_BUILD)",
2828
ENABLE_ASAN="$(ENABLE_ASAN)",
2929
ENABLE_UBSAN="$(ENABLE_UBSAN)",
30-
WITH_OPENSSL_1_1="$(WITH_OPENSSL_1_1)"
30+
WITH_OPENSSL_1_1="$(WITH_OPENSSL_1_1)",
31+
WITH_GSSAPI="$(WITH_GSSAPI)",
3132
}
3233
}

0 commit comments

Comments
 (0)