libgsasl: update and add variants - #33901
Open
McDaMastR wants to merge 6 commits into
Open
Conversation
|
Notifying maintainers: |
reneeotten
reviewed
Aug 8, 2026
reneeotten
left a comment
Contributor
There was a problem hiding this comment.
thanks @McDaMastR - we'll wait for @ryandesign his comments as well.
| +starttls | ||
|
|
||
| # GSS framework was added in macOS 10.7 | ||
| if {[package vcompare ${macos_version} 10.7] >= 0} { |
Contributor
There was a problem hiding this comment.
the usual syntax is:
if {${os.platform} eq "darwin" && ${os.major} > 11} {
where the number is the Darwin version.
Contributor
Author
There was a problem hiding this comment.
Thanks, I wasn't aware of the mapping between macOS and Darwin versions.
Would that condition exclude PureDarwin? Since the gss_native variant this conditional enables is dependent on the macOS GSS Framework, I don't think it'll work on non-macOS Darwin systems.
From version 2.x onwards, the default distfile includes all parts of GSASL rather than just the library. So add configure args to also control the building of these additional parts (gsasl binary, man pages). Closes: https://trac.macports.org/ticket/71521
GSASL supports multiple implementations of GSSAPI, including GSS (GNU), MIT, and, since version 2.2.2, the macOS GSS framework. The libgsasl port does not make use of this new native macOS support. Add two variants, gssapi_gss and gssapi_native, to build GSASL with the GNU and macOS implementations, respectively, of GSSAPI. Additionally, change the default port behaviour to use the GSS framework if supported by the OS, and otherwise use GNU GSS.
The non-standard NTLM mechanism is supported by GSASL but is generally not recommended due to being less secure than standard SASL mechanisms. It is also rarely (if ever) the only available authentication mechanism for a client or server, meaning it should not be needed for any typical authentication process. Delegate NTLM support to the ntlm variant of libgsasl. This allows users who require NTLM to retain GSASL's support of it, while reducing the attack surface for all other users by not installing an unnecessary dependency of NTLM support.
GSASL comes with a gsasl executable to use the library to authenticate connections. This executable can optionally encrypt these connections via STARTTLS if built with GnuTLS. Not all users will require use of the gsasl executable, but those who do will likely expect TLS support. Add the starttls variant to toggle support for STARTTLS and enable it by default. This allows users who don't require the executable's STARTTLS support to prevent installation of the GnuTLS dependency.
GSASL includes a build option to control whether the library will support non-ASCII text (for usernames, passwords, etc.) via libidn. Add the idn variant to toggle this non-ASCII support and enable it by default. This provides the reasonably expected i18n support by default, while allowing users who know they don't need this to disable it.
Add the doc variant to build and install the HTML documentation of the GSASL library. This ensures only users who want the HTML documentation have to install the gtk-doc dependency.
McDaMastR
force-pushed
the
libgsasl-update
branch
from
August 8, 2026 06:02
318b8f9 to
dbbaca6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Update libgsasl to version 2.2.4 and add some variants to control relevant build properties.
Note that I've squashed the changes for updating the version, but kept each added variant a separate commit due to (IMO) each being a logically independent change.
Type(s)
Tested on
macOS 26.6 25G72 arm64
Command Line Tools 26.6.0.0.1781586589
Verification
Have you
port lint?sudo port test?sudo port -vst install?