Gentoo Archives: gentoo-commits

From: Matthew Smith <matthew@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/putty/files/, net-misc/putty/
Date: Thu, 29 Sep 2022 08:45:01
Message-Id: 1664440967.5fafbac4f479bf7c882d4e58962d5e5b313e8bbe.matthew@gentoo
1 commit: 5fafbac4f479bf7c882d4e58962d5e5b313e8bbe
2 Author: Matthew Smith <matthew <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 29 08:42:47 2022 +0000
4 Commit: Matthew Smith <matthew <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 29 08:42:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fafbac4
7
8 net-misc/putty: fix USE=-gssapi build
9
10 Closes: https://bugs.gentoo.org/873355
11 Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>
12
13 net-misc/putty/files/putty-0.77-nogssapi.patch | 18 ++++++++++++++++++
14 .../{putty-0.77-r2.ebuild => putty-0.77-r3.ebuild} | 5 +++++
15 2 files changed, 23 insertions(+)
16
17 diff --git a/net-misc/putty/files/putty-0.77-nogssapi.patch b/net-misc/putty/files/putty-0.77-nogssapi.patch
18 new file mode 100644
19 index 000000000000..84d36e1849e0
20 --- /dev/null
21 +++ b/net-misc/putty/files/putty-0.77-nogssapi.patch
22 @@ -0,0 +1,18 @@
23 +Define NO_GSSAPI when -DPUTTY_GSSAPI=OFF
24 +
25 +Previously it would only be defined if -DPUTTY_GSSAPI=DYNAMIC and libdl is
26 +not found on the system. Setting -DPUTTY_GSSAPI=OFF on systems with glibc
27 +2.33 and earlier causes a build failure, because libdl is not linked in.
28 +
29 +Bug: https://bugs.gentoo.org/873355
30 +--- a/cmake/platforms/unix.cmake
31 ++++ b/cmake/platforms/unix.cmake
32 +@@ -105,6 +105,8 @@
33 + "Could not find libdl -- cannot provide dynamic GSSAPI support")
34 + set(NO_GSSAPI ON)
35 + endif()
36 ++else()
37 ++ set(NO_GSSAPI ON)
38 + endif()
39 +
40 + if(PUTTY_GSSAPI STREQUAL STATIC)
41
42 diff --git a/net-misc/putty/putty-0.77-r2.ebuild b/net-misc/putty/putty-0.77-r3.ebuild
43 similarity index 96%
44 rename from net-misc/putty/putty-0.77-r2.ebuild
45 rename to net-misc/putty/putty-0.77-r3.ebuild
46 index f3873e1fcf7f..737dcfe68966 100644
47 --- a/net-misc/putty/putty-0.77-r2.ebuild
48 +++ b/net-misc/putty/putty-0.77-r3.ebuild
49 @@ -44,6 +44,11 @@ REQUIRED_USE="
50 gtk2? ( gtk )
51 "
52
53 +PATCHES=(
54 + # Bug #873355
55 + "${FILESDIR}"/putty-0.77-nogssapi.patch
56 +)
57 +
58 src_unpack() {
59 [[ ${PV} == *9999 ]] && git-r3_src_unpack
60 default