Bug 1663264

Summary: [RFE] rpm: Provide a way to strip binaries again if -g is specified
Product: Red Hat Enterprise Linux 7 Reporter: Florian Weimer <fweimer>
Component: rpmAssignee: Pavlina Moravcova Varekova <pmoravco>
Status: CLOSED ERRATA QA Contact: Eva Mrakova <emrakova>
Severity: unspecified Docs Contact: Marie Hornickova <mdolezel>
Priority: high    
Version: 7.7CC: codonell, dmach, emrakova, mdomonko, mjw, mkolaja, ovasik, pasik, pgm-rhel-tools, pmatilai, pmoravco, tbowling
Target Milestone: rcKeywords: FutureFeature, Regression, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: rpm-4.11.3-38.el7 Doc Type: Enhancement
Doc Text:
.New `--g-libs` option for the `find-debuginfo.sh` script This update introduces the new `--g-libs` option for the `find-debuginfo.sh` script. This new option is an alternative to previous `-g` option, which instructed the script to remove only debugging symbols from both binary and library files. The new `--g-libs` option works the same way as `-g`, but only for library files. The binary files are stripped completely.
Story Points: ---
Clone Of: 1661512
: 1980651 (view as bug list) Environment:
Last Closed: 2019-08-06 13:11:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1661512    
Bug Blocks: 1661508    

Description Florian Weimer 2019-01-03 15:21:44 UTC
+++ This bug was initially created as a clone of Bug #1661512 +++

glibc relied on the behavior that bug 1186563 changed: We use -g, but do not want to apply it to programs.

It looks like this will need some find-debuginfo.sh change.  (I am not interested in a hack that puts custom binaries on PATH or something like that.)

Comment 2 Florian Weimer 2019-01-03 15:24:00 UTC
Based on bug 1661508 comment 2, I don't think we can achieve what we need with just glibc spec file changes, so we need some sort extension to find-debuginfo.sh.

Comment 3 Panu Matilainen 2019-01-04 08:49:19 UTC
So maybe we should consider reverting the rpm change instead. This was accepted into rhel-7 with the assumption that it was a simle and harmless backport, but instead we have a regression on glibc.

Btw, https://bugzilla.redhat.com/show_bug.cgi?id=1186563#c45 has some background on the -g thing.

Comment 4 Pavlina Moravcova Varekova 2019-01-04 12:27:07 UTC
Reverting of the patch looks as a good option.

Comment 43 errata-xmlrpc 2019-08-06 13:11:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Comment 44 Michal Domonkos 2021-08-18 10:47:24 UTC
*** Bug 1982312 has been marked as a duplicate of this bug. ***