Bug 2173215 - Please branch and build python-setuptools-rust in epel9
Summary: Please branch and build python-setuptools-rust in epel9
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-setuptools-rust
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Trivino
QA Contact:
URL:
Whiteboard:
Depends On: 2082093
Blocks: 2254891
TreeView+ depends on / blocked
 
Reported: 2023-02-24 19:57 UTC by John Wass
Modified: 2025-03-07 20:36 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-9499 0 None None None 2023-02-24 19:59:24 UTC

Description John Wass 2023-02-24 19:57:28 UTC
Please branch and build python-setuptools-rust in epel9.

Comment 1 Christian Heimes 2023-08-12 10:19:06 UTC
python-setuptools-rust is already a buildroot-only package in CentOS 9 Stream, https://gitlab.com/redhat/centos-stream/rpms/python-setuptools-rust . Buildroot-only means that the package is available in the build environment. AFAIK I cannot add the package to epel9 without breaking stuff.

Can you work around the problem on your side, e.g. by installing the package in a virtual env?

Comment 2 John Wass 2023-08-15 12:35:48 UTC
> Can you work around the problem on your side, e.g. by installing the package in a virtual env?

Yes, that can be done.  Thanks for looking into it, and for the feedback.

Comment 3 Fedora Release Engineering 2023-08-16 07:10:18 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 4 Jonathan Wright 2024-06-13 14:51:12 UTC
This is blocking building matrix-synapse in EPEL9.  Could this package be moved into CRB?

Comment 5 Ben Beasley 2024-10-07 15:44:21 UTC
(In reply to Christian Heimes from comment #1)
> python-setuptools-rust is already a buildroot-only package in CentOS 9
> Stream, https://gitlab.com/redhat/centos-stream/rpms/python-setuptools-rust
> . Buildroot-only means that the package is available in the build
> environment. AFAIK I cannot add the package to epel9 without breaking stuff.

Buildroot-only packages are still eligible for EPEL because they are not shipped in the RHEL/CentOS distribution. EPEL users never see packages from the RHEL/CentOS buildroot, and RHEL/CentOS builders never see packages from EPEL.

For example, I maintain python-meson-python – a stripped-down version without features requiring patchelf is in the EL10 buildroot, and a full-featured version requiring patchelf is in EPEL10.

Comment 6 Carl George 🤠 2024-10-07 18:21:16 UTC
Ben is correct.  The RHEL/CentOS buildroot is not the same as the EPEL buildroot.  RHEL/CentOS buildroot packages are not available in the EPEL buildroot.  The EPEL buildroot is only baseos, appstream, and crb.  Early on for EPEL 9 we did try to build against the CentOS buildroot, and quickly ran into problems were packages had runtime dependencies on CentOS buildroot-only packages that were not available on systems trying to install the EPEL package.  The list of repos that each EPEL branch builds against is listed in the EPEL documentation.

https://docs.fedoraproject.org/en-US/epel/epel-policy/#_policy

The easiest solution would be to move the package to crb.  If that isn't an option for whatever reason, then the package is eligible for epel9 and can be built there instead.

Comment 8 Carl George 🤠 2024-11-07 04:34:55 UTC
This has also been requested for EPEL 10, or to be shipped in RHEL/CentOS 10 CRB, in bug 2316989.  In that bug Christian mentioned that Trivino has taken over maintenance of this package, so I'm reassigning this bug as such.

Comment 9 Carl George 🤠 2024-11-07 05:25:18 UTC
I realized that while we have discussed moving this to CRB to avoid duplicating the work in EPEL, we haven't yet formally requested it.  I've done that in this issue.

https://issues.redhat.com/browse/RHEL-66224

Comment 10 Trivino 2024-11-13 11:40:15 UTC
Thanks Carl, 
will process this ticket asap.

Comment 11 Fabio Valentini 2025-03-07 20:36:20 UTC
Note that putting python-setuptools-rust from buildroot-only into CRB would not help EPEL 9, in fact, it would be mostly useless.

Due to differences between the Rust RPM macros in RHEL 9 and 10, python-setuptools-rust *can* work the way it does in both RHEL 10 and EPEL 10, but putting it into CRB would make it work *only* for RHEL 9-ish builds, but not for EPEL 9 builds (due to unavoidable conflicts between rust-toolset and cargo-rpm-macros in RHEL < 10).

As such, I think the only viable solution would be to build a *different* python-setuptools-rust package in EPEL 9 (i.e. one that would actually allow building packages with it).


Note You need to log in before you can comment on or make changes to this bug.