diff options
author | Sam James <sam@gentoo.org> | 2022-12-15 02:02:23 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-12-15 02:02:23 +0000 |
commit | 062b546a7512b29650fdd4dec9e3997efd267701 (patch) | |
tree | 86748249273227614b5bf7216cfe1b7527ca11fe /dev-db | |
parent | sys-apps/hwloc: add 2.9.0 (diff) | |
download | gentoo-062b546a7512b29650fdd4dec9e3997efd267701.tar.gz gentoo-062b546a7512b29650fdd4dec9e3997efd267701.tar.bz2 gentoo-062b546a7512b29650fdd4dec9e3997efd267701.zip |
dev-db/mariadb: fix gssapi detection
Closes: https://bugs.gentoo.org/885829
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/mariadb/files/mariadb-10.6.11-gssapi.patch | 47 | ||||
-rw-r--r-- | dev-db/mariadb/mariadb-10.6.11.ebuild | 1 |
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-db/mariadb/files/mariadb-10.6.11-gssapi.patch b/dev-db/mariadb/files/mariadb-10.6.11-gssapi.patch new file mode 100644 index 000000000000..f1e2347420af --- /dev/null +++ b/dev-db/mariadb/files/mariadb-10.6.11-gssapi.patch @@ -0,0 +1,47 @@ +https://bugs.gentoo.org/885829 +https://github.com/mariadb-corporation/mariadb-connector-c/pull/210 + +From 31f78bb28927b7897b282bb1b270e772a0741d72 Mon Sep 17 00:00:00 2001 +From: Heiko Becker <heirecka@exherbo.org> +Date: Fri, 25 Nov 2022 15:05:33 +0100 +Subject: [PATCH] Use find_package(GSSAPI) instead including the module + +When including it, CMAKE_DISABLE_FIND_PACKAGE doesn't have the desired +effect. This can cause a CMake error when building mariadb: + +"CMake Error at libmariadb/plugins/auth/CMakeLists.txt:123 (SET_TARGET_PROPERTIES): + SET_TARGET_PROPERTIES Can not find target to add properties to: + auth_gssapi_client" +--- a/libmariadb/CMakeLists.txt ++++ b/libmariadb/CMakeLists.txt +@@ -4,6 +4,7 @@ + + CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR) + INCLUDE(CheckFunctionExists) ++INCLUDE(FeatureSummary) + IF(COMMAND CMAKE_POLICY) + SET(NEW_POLICIES CMP0003 CMP0022 CMP0023 CMP0057 CMP0077 CMP0069 CMP0075) + FOREACH(TYPE OLD NEW) +@@ -410,7 +411,8 @@ IF(NOT REMOTEIO_PLUGIN_TYPE MATCHES "OFF") + ENDIF() + IF(NOT WIN32) + IF(NOT AUTH_GSSAPI_PLUGIN_TYPE MATCHES "OFF") +- INCLUDE(${CC_SOURCE_DIR}/cmake/FindGSSAPI.cmake) ++ FIND_PACKAGE(GSSAPI) ++ SET_PACKAGE_PROPERTIES(GSSAPI PROPERTIES TYPE OPTIONAL) + IF(GSSAPI_FOUND) + INCLUDE_DIRECTORIES(${GSSAPI_INCS}) + IF(AUTH_GSSAPI_PLUGIN_TYPE MATCHES "STATIC") +--- a/libmariadb/plugins/auth/CMakeLists.txt ++++ b/libmariadb/plugins/auth/CMakeLists.txt +@@ -96,7 +96,8 @@ ENDIF() + + #GSSAPI client authentication plugin + IF(NOT WIN32) +- INCLUDE(${CC_SOURCE_DIR}/cmake/FindGSSAPI.cmake) ++ FIND_PACKAGE(GSSAPI) ++ SET_PACKAGE_PROPERTIES(GSSAPI PROPERTIES TYPE OPTIONAL) + IF(GSSAPI_FOUND) + SET(GSSAPI_SOURCES ${AUTH_DIR}/auth_gssapi_client.c ${AUTH_DIR}/gssapi_client.c ${AUTH_DIR}/gssapi_errmsg.c) + IF (CMAKE_VERSION VERSION_GREATER 3.18) + diff --git a/dev-db/mariadb/mariadb-10.6.11.ebuild b/dev-db/mariadb/mariadb-10.6.11.ebuild index c814377e2d7d..d495a241e226 100644 --- a/dev-db/mariadb/mariadb-10.6.11.ebuild +++ b/dev-db/mariadb/mariadb-10.6.11.ebuild @@ -207,6 +207,7 @@ src_unpack() { src_prepare() { eapply "${WORKDIR}"/mariadb-patches + eapply "${FILESDIR}"/${PN}-10.6.11-gssapi.patch eapply_user |