-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
build: drop Heimdal support, update docs, replace with MIT Kerberos in CI #18932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
With old CMake + pkg-config, the pre-existing code always found Heimdal, and with that gone, it always fails. |
The documented `<prefix>_<moduleName>_VERSION` variables are empty in all tested versions since 3.7.2 to 4.1.2. Stop using it as a fallback for <3.16 versions, and replace with the undocumented, but working, `FindPkgConfig` internal variable `_pkg_check_modules_pkg_name`. It contains the module name which was found. In practice it caused that with CMake <3.16 + `pkg-config`, curl always detected the Heimdal flavor of GSS. Also: Delete a fallback version detection method, which was already marked with a question mark in comments, and used the same, always empty, CMake variables. Ref: https://cmake.org/cmake/help/v4.1/module/FindPkgConfig.html Bug: #18932 (comment) Closes #18950
5604852
to
b73fb6b
Compare
One more snag: On FreeBSD, cmake detects it fine, autotools now fails. The package flavor is MIT, but Heimdal?:
https://github.com/curl/curl/actions/runs/18354376870/job/52282444046?pr=18932#step:3:666 |
- fix to not detect Heimdal if a single `H` character appears in the vendor string. - fix to detect Heimdal if the version string contains the word, instead of the vendor string (which may be empty, e.g. on FreeBSD) Cherry-picked from curl#18932
One more thought after investigating the last snag: Turns out FreeBSD is shipping TL;DR dropping Heimdal may cause some friction on FreeBSD. After this patch, curl will need krb5-devel (MIT) for Kerberos. Another option may be to somehow detect and let through this specific flavour. edit: This package was causing issues earlier because it cannot be detected via |
FindGSS.cmake drop heimdal support
The kerberos5 library Heimdal is one of three GSS libraries curl support. It has a memory leak triggered by the new test in curl#18917 and the project seems mostly abandoned. Drop support and steer users to the MIT krb5 or GNU GSS libraries.
This reverts commit 3cec48f8e59f848f4d7f77034f71a3f64784850d.
The kerberos5 library Heimdal is one of three GSS libraries curl support.
It has a memory leak triggered by the new test in #18917 and the project
seems mostly abandoned.
Drop support and steer users to the MIT krb5 or GNU GSS libraries.
Co-authored-by: Daniel Stenberg
Ref: #18928
Closes #18928
w/o sp https://github.com/curl/curl/pull/18932/files?w=1