net-misc/putty: fix USE=-gssapi build

Closes: https://bugs.gentoo.org/873355
Signed-off-by: Matthew Smith <matthew@gentoo.org>
This commit is contained in:
Matthew Smith
2022-09-29 09:42:47 +01:00
parent 2a14c4322f
commit 5fafbac4f4
2 changed files with 23 additions and 0 deletions
@@ -0,0 +1,18 @@
Define NO_GSSAPI when -DPUTTY_GSSAPI=OFF
Previously it would only be defined if -DPUTTY_GSSAPI=DYNAMIC and libdl is
not found on the system. Setting -DPUTTY_GSSAPI=OFF on systems with glibc
2.33 and earlier causes a build failure, because libdl is not linked in.
Bug: https://bugs.gentoo.org/873355
--- a/cmake/platforms/unix.cmake
+++ b/cmake/platforms/unix.cmake
@@ -105,6 +105,8 @@
"Could not find libdl -- cannot provide dynamic GSSAPI support")
set(NO_GSSAPI ON)
endif()
+else()
+ set(NO_GSSAPI ON)
endif()
if(PUTTY_GSSAPI STREQUAL STATIC)
@@ -44,6 +44,11 @@ REQUIRED_USE="
gtk2? ( gtk )
"
PATCHES=(
# Bug #873355
"${FILESDIR}"/putty-0.77-nogssapi.patch
)
src_unpack() {
[[ ${PV} == *9999 ]] && git-r3_src_unpack
default