Hi all,
The Rust SIG has finished working on the next release of Rust
packaging tools, rust2rpm v22. The changes to the RPM macros
themselves are minor (and were actually already backported to the
Fedora packages for rust2rpm v21), but the changes to rust2rpm are
pretty big:
The headline item is probably the automatic stripping of dependencies
for "foreign" targets, which should make most manually maintained
patches for Rust crate packages in Fedora unnecessary. Additionally,
we've refactored the rust2rpm python module, so the core functionality
that's required for the rust-packaging RPM macros no longer depends on
any third-party python packages.
Please refer to the release notes for more details:
https://pagure.io/fedora-rust/rust2rpm/blob/main/f/NEWS
I've submitted updates for v22 to rawhide, f36, and f35, which should
be pushed *soon* (still waiting for the gating tests to pass):
https://bodhi.fedoraproject.org/updates/FEDORA-2022-60c698a60f
https://bodhi.fedoraproject.org/updates/FEDORA-2022-6dcc99ae76
https://bodhi.fedoraproject.org/updates/FEDORA-2022-04e23a1f12
Existing Rust packages should continue to build as usual, since the
RPM macros have not changed. If you encounter problems with
/usr/bin/rust2rpm, please either file a ticket in the upstream project
(
https://pagure.io/fedora-rust/rust2rpm) or ping us in the "Fedora
Rust" channel on matrix if you're unsure whether something is a
feature or a bug. :)
Fabio