Bug 2264161 - Disable debug stripping documentation inaccurate
Summary: Disable debug stripping documentation inaccurate
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: redhat-rpm-config
Version: 38
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Florian Festi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-02-14 09:32 UTC by adaha
Modified: 2024-03-05 02:43 UTC (History)
13 users (show)

Fixed In Version: redhat-rpm-config-284-1.fc41 redhat-rpm-config-285-1.fc40
Clone Of:
Environment:
Last Closed: 2024-02-14 13:10:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description adaha 2024-02-14 09:32:57 UTC
I had some issues when trying to build packackes without any debug information stripped. In the documentation for redhat-rpm-config [1], it says that setting
> _enable_debug_packages as 0
is required to disable most debuginfo processing. This is not enough to not do any stripping to the compiled binary. In the macros [2] file, it looks like _enable_debug_packages only needs to be defined, and not equal to 1, for a debug package to be built:
> %install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\
The issue I have is that some binaries we package have multiple binaries in them, which break when they are stripped.

[1] https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/rawhide/f/buildflags.md
[2] https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/rawhide/f/macros

Reproducible: Always

Steps to Reproduce:
1. %define _enable_debug_packages 0
2. Build RPM
Actual Results:  
Packaged binary is stripped, and a debuginfo package is created.

Expected Results:  
Packaged binary is not stripped, and no debuginfo package is created.

Comment 1 Florian Weimer 2024-02-14 13:10:47 UTC
Thanks, should be fixed in redhat-rpm-config-284-1.fc41.

Comment 2 Fedora Update System 2024-02-27 18:22:01 UTC
FEDORA-2024-19fc022649 (redhat-rpm-config-285-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-19fc022649

Comment 3 Fedora Update System 2024-02-28 22:41:13 UTC
FEDORA-2024-19fc022649 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-19fc022649`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-19fc022649

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2024-03-05 02:43:59 UTC
FEDORA-2024-19fc022649 (redhat-rpm-config-285-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.