Bug 1476722

Summary: macros should include %_include_gdb_index 1 to generate .gdb_index sections by default
Product: [Fedora] Fedora Reporter: Mark Wielaard <mjw>
Component: redhat-rpm-configAssignee: Igor Gnatenko <ignatenko>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dzickus, ffesti, fweimer, jonathan, pmatilai, praiskup
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: redhat-rpm-config-67-1.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-31 14:02:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.