Bug 2459073

Summary: Review Request: rust-core-error - Add to Fedora Build for Rust Projects
Product: [Fedora] Fedora Reporter: Srikrishna Veturi <sveturi>
Component: Package ReviewAssignee: Nobody's working on this, feel free to take it <nobody>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: decathorpe, package-review, sveturi
Target Milestone: ---Keywords: AutomationTriaged
Target Release: ---   
Hardware: All   
OS: Linux   
URL: https://crates.io/crates/core-error
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Srikrishna Veturi 2026-04-16 22:30:00 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/sveturi/core-error/fedora-rawhide-x86_64/10340863-rust-core-error/rust-core-error.spec

SRPM URL: https://download.copr.fedorainfracloud.org/results/sveturi/core-error/srpm-builds/10340863/rust-core-error-0.0.0-1.src.rpm

Description: Add rust-core-error to Fedora Build Environment, needed for Rust Projects. This is my first package and need a sponsor.

Fedora Account System Username: sveturi

Comment 1 Fedora Review Service 2026-04-16 22:34:23 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10340976
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2459073-rust-core-error/fedora-rawhide-x86_64/10340976-rust-core-error/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 2 Fabio Valentini 2026-05-05 13:50:45 UTC
I would rather want to avoid packaging this crate.

It looks like it's entirely obsolete since Rust 1.81, when the `Error` trait was moved from `std` to `core`.
see https://doc.rust-lang.org/stable/core/error/trait.Error.html

It should usually be straightforward to drop this dependency entirely.

Comment 3 Srikrishna Veturi 2026-05-08 06:58:34 UTC
I understand, the suggestion makes sense. To confirm, if I am dependent on this package indirectly through package "X", I would use the patching route to apply a patch to use the newer version that is already part of core, right?

Thank you for your help with this, I am pretty new to Fedora, and this patch setup would make the publishing would help me to publish one less package.

Comment 4 Fabio Valentini 2026-05-09 12:35:27 UTC
Right. As far as I can tell, the crate in question here would be aya-obj?

In general I think it should be safe to replace the Error trait from core-error with the one in core::error::Error.
The only reason why it *might* not be acceptable for aya is if they want to retain support for Rust <1.81, but we could keep this as a Fedora-specific patch for the time being then.

Comment 5 Srikrishna Veturi 2026-05-14 17:28:34 UTC
I understand, thank you!

I will keep this bug open to retain context in case this needs to be revisited but will continue on the route to using a patch for aya-obj.