Since bcrypt 5.0, py-passlib is broken, see https://github.com/ansible/ansible/issues/85919 passlib is effectively dead (last update 2020), so fixing it upstream is not really feasible. Thus, the best way is to get rid of it (see https://github.com/ansible/ansible/pull/85970), but meanwhile we need a fix, especially since Ansible's "hwpasswd" is broken. Using the fix presented in https://github.com/ansible/ansible/issues/85919 seems to work.
Created attachment 268377 [details] Update port to be compatible with bcrypt 5 based on https://github.com/ansible/ansible/issues/85919
Hi there! Any chance to get this port fixed? 2026Q3 switched to python 3.12 and I need to manually distribute the patched package (again) to get ansible running. Thank you!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=aae117085c0d1b00964e2dca4a5d841925991708 commit aae117085c0d1b00964e2dca4a5d841925991708 Author: Tilman Keskinoz <arved@FreeBSD.org> AuthorDate: 2026-08-09 18:17:50 +0000 Commit: Tilman Keskinoz <arved@FreeBSD.org> CommitDate: 2026-08-09 18:17:50 +0000 security/py-passlib: unbreak with bcrypt 5 PR: 293464 Reported by: Thomas Kurschel Obtained from: https://github.com/ansible/ansible/issues/85919 While here actually add dependency on py-bcrypt security/py-passlib/Makefile | 3 +- security/py-passlib/files/patch-bcrypt.py (new) | 55 +++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 1 deletion(-)
Committed, thanks