Bugzilla – Bug 1212226
cargo-packaging changes macro name compared to rust-packaging
Last modified: 2024-05-24 16:30:06 UTC
rust-packaging which is being deprecated ( https://build.opensuse.org/request/show/1088483 ) included a %build_rustflags macro. The replacement cargo-packaging has a %__rustflags macro instead, which requires packagers to add more %ifs to the specfile if they need to manipulate flags directly. Note that Fedora's rust-srpm-macros uses the old name (%build_rustflags)
https://build.opensuse.org/request/show/1092719 did not fix it, in fact it made it worse. You're doing the wrong way of compatibility — look at what i'm doing in bitwarden spec file.
https://build.opensuse.org/request/show/1093844 Renames things as you expect.
SUSE-RU-2024:1776-1: An update that has two fixes can now be installed. Category: recommended (moderate) Bug References: 1212226, 1222175 Maintenance Incident: [SUSE:Maintenance:34016](https://smelt.suse.de/incident/34016/) Sources used: openSUSE Leap 15.4 (src): cargo-packaging-1.2.0+5-150400.3.6.2 openSUSE Leap 15.5 (src): cargo-packaging-1.2.0+5-150400.3.6.2 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.