src_configure() { local mycmakeargs # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass # --with-ssl to ./configure. (Mimics code from acinclude.m4). if use kerberos; then case $(krb5-config --libs) in *-lcrypto*) ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." ewarn "Note there are annoying license incompatibilities between the OpenSSL" ewarn "license and the GPL, so do your check before distributing such package." mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) ) ;; esac fi
Sam: any idea what this was about? the mentioned workaround has been in the ebuild since forever but it's not really clear to me what "revisiting" means, what the problem is (if there is one?) and the intended outcome could or should be. The only issue I can see here could be a contradiction like +kerberos (linked with ssl) but explicitly requested -ssl for wireshark. Not sure if that's worth our time.
Looking into this some more - - apparently the intended outcome was to remove the workaround. - "+kerberos (linked with ssl)" can no longer happen. mit-krb5 guards its ssl dependency with USE=pkinit and uses openssl/libressl headers, but never actually links against the libs and uses its own "native" crypto backend. This means that "krb5-config --libs" will never return "-lssl", effectively rendering the workaround dead code. In theory the external openssl crypto backend could be selected with the --with-crypto-impl option, but the ebuild does not use that at all. - heimdal is an alternative implementation of kerberos, but unconditionally uses --without-openssl and can therefore also not trigger the condition. Conclusion: the workaround can be removed with the next update.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=548b7e724df5bf93b8640ebd5d80a5bd7e5fa288 commit 548b7e724df5bf93b8640ebd5d80a5bd7e5fa288 Author: Holger Hoffstätte <holger@applied-asynchrony.com> AuthorDate: 2025-02-20 08:15:45 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-02-20 08:42:03 +0000 net-analyzer/wireshark: remove obsolete kerberos workaround Closes: https://bugs.gentoo.org/673076 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Signed-off-by: Sam James <sam@gentoo.org> net-analyzer/wireshark/wireshark-4.4.4.ebuild | 13 ------------- net-analyzer/wireshark/wireshark-9999.ebuild | 13 ------------- 2 files changed, 26 deletions(-)