Bug 8312 - Unclear how to disable debug stripping in cenbuild
Summary: Unclear how to disable debug stripping in cenbuild
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Build system (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-21 15:36 CET by Adam Halim
Modified: 2024-02-27 13:07 CET (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Adam Halim cendio 2024-02-21 15:36:38 CET
When doing bug 8300, we had issues with one package (bazel) which compiled a
binary consisting of multiple binaries. When building binaries this way, it
seems like stripping debug information breaks the binary, making it unusable.

Fedora's documentation [1] says to undefine _enable_debug_packages to disable
debuginfo processing:
> %undefine _enable_debug_packages
While this works for normal RPM packages, it does not work for packages in
cenbuild. The workaround that currently works is to instead do the following:
> %define _cendio_debug_package %{nil}
Ideally, we would want our .spec files and macros to behave the same way inside
cenbuild as outside.

[1] https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/rawhide/f/buildflags.md#post-build-elf-object-processing

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