Bug 1222175 - rustc 1.77 adds spurious -Cstrip=debuginfo to buildline
Summary: rustc 1.77 adds spurious -Cstrip=debuginfo to buildline
Status: IN_PROGRESS
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: William Brown
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-29 21:42 UTC by Bruno Pitrus
Modified: 2024-05-24 16:30 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Pitrus 2024-03-29 21:42:40 UTC
This produces policy-violating packages with missing debuginfo. See eg. bitwarden build log: https://build.opensuse.org/package/live_build_log/devel:languages:nodejs/bitwarden/openSUSE_Tumbleweed/x86_64

Seems to be a regression from rust 1.76.

A robust workaround is to explicitely add `Cstrip=none` to RUSTFLAGS. (This is e.g. what Fedora already does)
Comment 1 William Brown 2024-04-04 00:30:56 UTC
https://github.com/Firstyear/cargo-packaging/pull/7

Fixing upstream.
Comment 3 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.