Bug 2264161

Summary: Disable debug stripping documentation inaccurate
Product: [Fedora] Fedora Reporter: adaha
Component: redhat-rpm-configAssignee: Florian Festi <ffesti>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: adaha, ajax, carl, ffesti, fweimer, igor.raits, j, mhroncok, ngompa13, nickc, pmatilai, sipoyare, torsava
Target Milestone: ---Keywords: Documentation
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: redhat-rpm-config-284-1.fc41 redhat-rpm-config-285-1.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-02-14 13:10:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.