Bug 2313795

Summary: Please branch and build python-bcrypt for EPEL 10
Product: [Fedora] Fedora EPEL Reporter: Paul Howarth <paul>
Component: python-bcryptAssignee: Orion Poplawski <orion>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel10CC: epel-packagers-sig, infra-sig, kkeithle, mhayden, orion, pingou, python-packagers-sig, romain.geissler
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-bcrypt-4.2.1-1.el10_0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-01-05 00:27:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2316989, 2334079, 2334080    
Bug Blocks: 2321338, 1914423, 2311291, 2321094    

Description Paul Howarth 2024-09-20 15:17:53 UTC
This is needed for python-paramiko.

Comment 1 Orion Poplawski 2024-11-09 23:00:45 UTC
Rawhide fails to build with:

No matching package to install: 'python3dist(setuptools-rust)'

This has been requested to be added to CRB here: https://issues.redhat.com/browse/RHEL-66224

Comment 2 Kevin Fenzi 2024-11-09 23:06:18 UTC
*** Bug 2324158 has been marked as a duplicate of this bug. ***

Comment 3 Romain Geissler 2024-12-25 15:20:46 UTC
When trying to build it right now, it goes further, with new missing dependencies:

 Problem 1: nothing provides requested (crate(base64/default) >= 0.21.5 with crate(base64/default) < 0.22.0~)
 Problem 2: nothing provides requested (crate(bcrypt-pbkdf/default) >= 0.10.0 with crate(bcrypt-pbkdf/default) < 0.11.0~)
 Problem 3: nothing provides requested (crate(bcrypt/default) >= 0.15.0 with crate(bcrypt/default) < 0.16.0~)
 Problem 4: nothing provides requested (crate(pyo3/abi3) >= 0.20.0 with crate(pyo3/abi3) < 0.21.0~)
 Problem 5: nothing provides requested (crate(pyo3/default) >= 0.20.0 with crate(pyo3/default) < 0.21.0~)
 Problem 6: nothing provides requested (crate(pyo3/extension-module) >= 0.20.0 with crate(pyo3/extension-module) < 0.21.0~)

At least some of them (pyo3) are already present with a more recent version in EPEL 10, and Fabio advised me in other tickets requesting old compat version to try to upgrade the rust dependencies rather than asking old versions.

Comment 4 Romain Geissler 2024-12-25 16:09:35 UTC
I am able to locally build a python-bcrypt with this command:

[root@03df2990fcb9 rust-bcrypt-pbkdf]# mock --chain --root centos-stream+epel-10-x86_64 ../rust-blowfish/rust-blowfish-0.9.1-4.el10_0.src.rpm ../rust-bcrypt/rust-bcrypt-0.16.0-1.el10_0.src.rpm ../rust-bcrypt-pbkdf/rust-bcrypt-pbkdf-0.10.0-2.el10_0.src.rpm ../python-bcrypt/python-bcrypt-4.2.1-1.el10_0.src.rpm

It requires some dependencies, the update of rust-bcrypt to version 0.16 and python-bcrypt to version 4.2.1 which aren't done yet in Fedora rawhide (see https://bugzilla.redhat.com/show_bug.cgi?id=2279037).

I will already add explicit depend bug on the rust-bcrypt & rust-bcrypt-pbkdf epel 10 requests.

Comment 5 Romain Geissler 2024-12-25 22:16:02 UTC
If rust-bcrypt 0.15 is used as in the recent update https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-22f47b5ec0 then here are the missing dependencies in EPEL 10:

 Problem 1: nothing provides requested (crate(base64/default) >= 0.21.5 with crate(base64/default) < 0.22.0~)
 Problem 2: nothing provides requested (crate(pyo3/abi3) >= 0.20.0 with crate(pyo3/abi3) < 0.21.0~)
 Problem 3: nothing provides requested (crate(pyo3/default) >= 0.20.0 with crate(pyo3/default) < 0.21.0~)
 Problem 4: nothing provides requested (crate(pyo3/extension-module) >= 0.20.0 with crate(pyo3/extension-module) < 0.21.0~)

If we upgrade to rust-bcrypt 0.16 and python-bcrypt 4.2.1, then there are no missing dependencies. I let the maintainers which is the better way (update sources), or backport the rust dependencies upgrade. The pyo3 upgrade was done upstream here: https://github.com/pyca/bcrypt/pull/760, here: https://github.com/pyca/bcrypt/pull/822 and here: https://github.com/pyca/bcrypt/commit/8ea3ef80b0ec485ff034d8993ed5f8664c531299 and the base64 upgrade was done here: https://github.com/pyca/bcrypt/commit/439df35fd415778f7b31d2c7add62fa7da66e2aa

Comment 6 Romain Geissler 2025-01-01 09:45:09 UTC
With https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-de1475b17b being now in testing, and the current rawhide branch which has been recently upgraded to the latest version, it now builds fine in EPEL 10.

Comment 7 Fedora Update System 2025-01-03 04:49:15 UTC
FEDORA-EPEL-2025-586058d617 (python-bcrypt-4.2.1-1.el10_0) has been submitted as an update to Fedora EPEL 10.0.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-586058d617

Comment 8 Fedora Update System 2025-01-04 03:19:38 UTC
FEDORA-EPEL-2025-586058d617 has been pushed to the Fedora EPEL 10.0 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-586058d617

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

Comment 9 Fedora Update System 2025-01-05 00:27:54 UTC
FEDORA-EPEL-2025-586058d617 (python-bcrypt-4.2.1-1.el10_0) has been pushed to the Fedora EPEL 10.0 stable repository.
If problem still persists, please make note of it in this bug report.