stable

rust-packaging-23-1.fc36 and rust-srpm-macros-23-1.fc36

FEDORA-2022-48bd42b2dc created by decathorpe 12 months ago for Fedora 36

Update rust2rpm / tools and RPM macros for Rust packaging to version 23.

Added:

  • New macros for collecting license information for all crates that are statically linked into a Rust binary (%cargo_license and %cargo_license_summary).
  • Add support for specifying "testrequires" in rust2rpm.conf. These work similar to "buildrequires", but the specified dependencies will be wrapped in an %if %{with check} conditional in the generated spec file. This can be used to specify BuildRequires that are only needed when running a crate's test suite, but which are not necessary to build the crate itself.

Changed:

  • The list of binaries in %files is now consistently sorted in generated spec files (this only affects crates that build more than one binary, of course).
  • Fall back to the latest pre-release if there are no stable releases (or if all previously published stable released have been yanked).
  • Dropped ExclusiveArch: %{rust_arches} when generating spec files for Fedora. RPM itself will start to depend on Rust components, so Rust will by definition need to be available on all architectures that are supported by Fedora.
  • Replaced i686 with the %{ix86} macro in %{rust_arches}.

Fixed:

  • Ensure that rust2rpm doesn't auto-generate architecture-dependent patches.
  • Ensure both automatically generated and manually written patches affect spec file generation (i.e. feature subpackages).
  • Fix evaluation of cfg-expressions that contain the new "wasm64" target.
  • Only remove target-specific dependencies from feature dependencies if they are optional.
  • The logic for replacing the current version of rust2rpm when comparing spec output in tests has been fixed for OpenSUSE spec templates.

How to install

Updates may require up to 24 hours to propagate to mirrors. If the following command doesn't work, please retry later:

sudo dnf upgrade --refresh --advisory=FEDORA-2022-48bd42b2dc

This update's test gating status has been changed to 'waiting'.

12 months ago

This update has been submitted for testing by bodhi.

12 months ago

This update's test gating status has been changed to 'failed'.

12 months ago

This update's test gating status has been changed to 'passed'.

12 months ago

This update has been pushed to testing.

12 months ago

This update's test gating status has been changed to 'failed'.

12 months ago

This update's test gating status has been changed to 'passed'.

12 months ago
User Icon besser82 commented & provided feedback 11 months ago
karma

Works great! LGTM! =)

karma

This update can be pushed to stable now if the maintainer wishes

11 months ago
User Icon filiperosset commented & provided feedback 11 months ago
karma

no regressions noted

This update has been submitted for stable by bodhi.

11 months ago

This update has been pushed to stable.

11 months ago

Please login to add feedback.

Metadata
Type
unspecified
Karma
3
Signed
Content Type
RPM
Test Gating
Settings
Unstable by Karma
-3
Stable by Karma
3
Stable by Time
14 days
Dates
submitted
12 months ago
in testing
12 months ago
in stable
11 months ago

Automated Test Results