Bug 2249378

Summary: python-bcrypt depends on obsolete pyo3 version - issues with Python 3.12
Product: [Fedora] Fedora Reporter: Fabio Valentini <decathorpe>
Component: python-bcryptAssignee: Pierre-YvesChibon <pingou>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rawhideCC: epel-packagers-sig, infra-sig, kevin, mhayden, pingou, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: python-bcrypt-4.0.1-6.fc40 python-bcrypt-4.0.1-6.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-18 23:30:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Fabio Valentini 2023-11-12 17:11:03 UTC
Version 0.15 of the pyo3 Python bindings for Rust are obsolete, and they do not support Python 3.12. Notably, due to ABI changes in Python 3.12, I cannot even guarantee that this package currently works correctly when used in conjunction with Python 3.12.

Therefore, I strongly recommend to move to pyo3 v0.19.2 or v0.20.0 on Fedora 39 and Rawhide *as soon as possible*. I will remove all versions of pyo3 that do not support Python 3.12 (and never will) from Fedora Rawhide soon (pending announcement).

It appears that the upstream project has already moved to these newer versions of pyo3, so it might be possible to backport these changes to the Fedora package.

c.f. https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/XG7GMDZFL2RO4QHEFBJKU7YDE3AZBRVM/#XG7GMDZFL2RO4QHEFBJKU7YDE3AZBRVM

Reproducible: Always

Comment 1 Kevin Fenzi 2023-11-17 00:32:17 UTC
I have no idea what I am doing with rust, but here's an attempt: 

https://src.fedoraproject.org/rpms/python-bcrypt/pull-request/9

Comment 2 Fedora Update System 2023-11-18 23:29:12 UTC
FEDORA-2023-d18db5de24 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-d18db5de24

Comment 3 Fedora Update System 2023-11-18 23:30:35 UTC
FEDORA-2023-d18db5de24 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fabio Valentini 2023-11-27 16:22:47 UTC
Thanks for pushing this to Rawhide - can it be merged to Fedora 39 as well?
The problematic combination of Python 3.12 and old pyo3 version is still present there.

Comment 5 Kevin Fenzi 2023-11-28 01:03:45 UTC
Sure thing. Update coming up.

Comment 6 Fedora Update System 2023-11-28 01:43:51 UTC
FEDORA-2023-c10e43f442 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-c10e43f442

Comment 7 Fedora Update System 2023-11-29 03:02:05 UTC
FEDORA-2023-c10e43f442 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-c10e43f442`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-c10e43f442

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2023-12-07 02:06:41 UTC
FEDORA-2023-c10e43f442 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.