Description
a667468 introduced new detection logic to prefer more modern Kerberos libraries from the ports tree over the older Heimdal in base. This is an excellent choice for those who wish to install directly. As the maintainer of the security/py-gssapi port, I need to be able to A) build deterministically, and B) respect the OPTIONs set by a port builder in a way that is insensitive to the state of the build environment. That is, I need to be able to override any auto-detection.
In the current version of the port (1.6.9), I accomplish this by patching setup.py
with the absolute path of whatever krb5-config
is applicable to the GSSAPI library selected by the port builder ($KRB5CONFIG
per the ports machinery).
I will be glad to draft a patch. First, I wanted to get feedback from the project to see if this would be welcome. If not, I can adapt the port-build-time patch to the new code. If so, is there an approach I should prefer/avoid for the purpose of general utility and maintainability? An environment variable, perhaps?