-
Notifications
You must be signed in to change notification settings - Fork 49
GSS_C_DELEG_POLICY_FLAG not available on FreeBSD #228
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
Comments
Looking a bit further it looks like FreeBSD ships with an existing Heimdal build at 1.1.0 and the port installed with To force the installation against the port copy of Heimdal I can run From the current situation I can see the following options:
This check would look something like if os.uname[0] == 'FreeBSD' and os.path.exists('/usr/local/bin/krb5-config'):
prefix = get_output('/usr/local/bin/krb5-config gssapi --prefix')
else:
prefix = get_output('krb5-config gssapi --prefix') Another option would be to revert #218 but I'm hoping we don't have to get that. |
https://lists.freebsd.org/pipermail/freebsd-arch/2018-May/018998.html is some more background info but TLDR seems to be that it's a massive task to update Heimdal in base without breaking other packages. |
Good summary, thanks. To add:
DTRT when the port exists certainly seems the most attractive. If other platforms are affected, we can just expand the breadth of the check. The check could also be made conditional on whether /usr/local/bin is in $PATH to begin with (which gives the override) - but I'm not opposed to an env var or flag if they're needed. Then the problem would become turning off the flag conditionally at build-time. |
I guess the other question is whether we want to support the heimdal that's in base. I'd taken it as a given, but upon reflection I'm not so sure. |
Base has heimdal-1.1.0 at the time of writing, while ports have krb5-1.18.2 and heimdal-7.7.0. Related: pythongssapi#228 Signed-off-by: Robbie Harwood <[email protected]>
Related: pythongssapi#228 Signed-off-by: Robbie Harwood <[email protected]>
Base has heimdal-1.1.0 at the time of writing, while ports have krb5-1.18.2 and heimdal-7.7.0. Related: pythongssapi#228 Signed-off-by: Robbie Harwood <[email protected]>
What went wrong?
While the package for FreeBSD 12.2 states that the version of Heimdal that is used is 7.7.0 when running
krb5-config --version
after installing that package it is reported asThis is an issue as the 1.6.10 release includes #218 and this flag was added in Heimdal 1.3. When attempting to install gssapi with
pip install gssapi
on FreeBSD it is now failing withI'm not sure how to fix this issue as Heimdal 1.3.0 is from 2008 and surely any distro today packages something newer but maybe not. I prefer that we didn't remove the flag as I have some use for it but I don't know how to conditionally set it.
How do we reproduce?
On FreeBSD
Component versions (python-gssapi, Kerberos, OS / distro, etc.)
FreeBSD 12.2, Heimdal 7.7.0 (or 1.1.0 I have no idea why they are different)
The text was updated successfully, but these errors were encountered: