Bug 1476722 - macros should include %_include_gdb_index 1 to generate .gdb_index sections by default
Summary: macros should include %_include_gdb_index 1 to generate .gdb_index sections b...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: redhat-rpm-config
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Igor Gnatenko
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-31 09:57 UTC by Mark Wielaard
Modified: 2017-07-31 14:02 UTC (History)
6 users (show)

Fixed In Version: redhat-rpm-config-67-1.fc27
Clone Of:
Environment:
Last Closed: 2017-07-31 14:02:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mark Wielaard 2017-07-31 09:57:20 UTC
Description of problem:

.gdb_index is missing from .debug files.

In older rpm releases .gdb_index was always generated and someone had to override  the find-debuginfo.sh invocation to disable them. Newer rpm have a macro that can be defined or undefined to generate them just like minidebuginfo in the main ELF file (.gnu_debugdata with %_include_minidebuginfo).

diff --git a/macros b/macros
index fbe3186..1a29b41 100644
--- a/macros
+++ b/macros
@@ -20,6 +20,7 @@
 
 %_enable_debug_packages 1
 %_include_minidebuginfo 1
+%_include_gdb_index     1
 
 #==============================================================================
 # ---- configure and makeinstall.

Comment 1 Mark Wielaard 2017-07-31 10:10:57 UTC
See also "Fix default setting of %_debugsource_packages and %_debuginfo_subpackages to not break testsuite" https://bugzilla.redhat.com/show_bug.cgi?id=1476735 Which can probably be fixed at the same time.


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