Bug 1476722 - macros should include %_include_gdb_index 1 to generate .gdb_index sections by default
macros should include %_include_gdb_index 1 to generate .gdb_index sections b...
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: redhat-rpm-config (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Igor Gnatenko
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-31 05:57 EDT by Mark Wielaard
Modified: 2017-07-31 10:02 EDT (History)
6 users (show)

See Also:
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 10:02:02 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Mark Wielaard 2017-07-31 05:57:20 EDT
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 06:10:57 EDT
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.