Bug 291682 - security/py-kerberos: has broken import since FreeBSD 15.0
Summary: security/py-kerberos: has broken import since FreeBSD 15.0
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dan Langille
URL:
Keywords:
Depends on: 291695
Blocks:
  Show dependency treegraph
 
Reported: 2025-12-15 09:32 UTC by Thomas Kurschel
Modified: 2025-12-15 19:10 UTC (History)
3 users (show)

See Also:
linimon: maintainer-feedback? (dvl)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Kurschel 2025-12-15 09:32:03 UTC
If you do


pkg install -r FreeBSD-ports py311-kerberos
python3 -c "import kerberos; print('kerberos ist installiert')"


You get


Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: /usr/local/lib/python3.11/site-packages/kerberos.cpython-311.so: Undefined symbol "krb5_xfree"


Previously, you need to install krb5 Port as well


pkg install krb5


But this doesn't work anymore, probably because of replacing Heimdahl with MIT kerberos in base.

In the end, this makes e.g. winrm for Ansible unusable.
Comment 1 Michael Osipov freebsd_committer freebsd_triage 2025-12-15 09:59:59 UTC
Cy, I bet this is again a missing symbol. I am genuinly confused why you have chosen to use a non-MIT KErberos symbol map in base. This isn't real MIT Kerberos.
Comment 2 Thomas Kurschel 2025-12-15 10:33:30 UTC
(In reply to Michael Osipov from comment #1)

You are right, this is really confusing.

Actually, building the port with GSSAPI_MIT set works fine.