Bug 1212226

Summary: cargo-packaging changes macro name compared to rust-packaging
Product: [openSUSE] openSUSE Tumbleweed Reporter: Bruno Pitrus <brunopitrus>
Component: DevelopmentAssignee: William Brown <william.brown>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: All   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Bruno Pitrus 2023-06-12 09:42:28 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)
Comment 1 Bruno Pitrus 2023-06-19 09:17:42 UTC
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.
Comment 2 William Brown 2023-06-20 00:10:09 UTC
https://build.opensuse.org/request/show/1093844

Renames things as you expect.
Comment 5 Maintenance Automation 2024-05-24 16:30:06 UTC
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.