Bug 293464 - security/py-passlib: broken since bcrypt 5
Summary: security/py-passlib: broken since bcrypt 5
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-26 12:55 UTC by Thomas Kurschel
Modified: 2026-08-09 18:23 UTC (History)
2 users (show)

See Also:
bofh: maintainer-feedback-


Attachments
Update port to be compatible with bcrypt 5 (3.55 KB, patch)
2026-02-26 12:58 UTC, Thomas Kurschel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Kurschel 2026-02-26 12:55:04 UTC
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.
Comment 1 Thomas Kurschel 2026-02-26 12:58:20 UTC
Created attachment 268377 [details]
Update port to be compatible with bcrypt 5

based on https://github.com/ansible/ansible/issues/85919
Comment 2 Thomas Kurschel 2026-07-15 09:01:02 UTC
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!
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-08-09 18:20:56 UTC
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(-)
Comment 4 Tilman Keskinoz freebsd_committer freebsd_triage 2026-08-09 18:23:28 UTC
Committed, thanks