Bug 2099617

Summary: Add _find_debuginfo_vendor_opts to the list of variables passed to the find-debuginfo.sh script.
Product: Red Hat Enterprise Linux 9 Reporter: Nick Clifton <nickc>
Component: rpmAssignee: Nick Clifton <nickc>
Status: CLOSED ERRATA QA Contact: Martin Cermak <mcermak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.1CC: mcermak
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rpm-4.16.1.3-15.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 11:21:17 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 Nick Clifton 2022-06-21 10:40:22 UTC
Please can the change covered by this Fedora rawhide pull-request also be applied to the RHEL-9 rpm package:

  https://src.fedoraproject.org/rpms/rpm/pull-request/25

The change adds an extra variable which, if defined, is passed on to the find-debuginfo.sh script when it is invoked.

The new variable - _find_debuginfo_extra_opts - is used by the redhat-rpm-config package to pass a "remove-section .gnu.build.attributes" option to the find-debuginfo script.  This option forces any annobin notes present in the target executable to be moved to its separate debuginfo file.

Comment 1 Nick Clifton 2022-06-22 09:50:36 UTC
In line with a change to the rawhide PR, I am now asking if the invocation of the find-debuginfo script could include the variable _find_debuginfo_vendor_opts, rather than _find_debuginfo_extra_opts.

Comment 2 Nick Clifton 2022-06-30 11:43:47 UTC
Fixed in rpm-4.16.1.3-15.el9.

Note for QE - together with the recent change to redhat-rpm-config this update should mean that once these packages hit the buildroot other packages will start to see a reduction in the size of their executable files.  The annobin data that was once held in those files should now be moved to their associated debuginfo files.

So if you have a build environment with rpm-4.16.1-3-15 and redhat-rpm-config-196-1 installed and you then use it to build another package, lets say "binutils", then you should find that the files in the binary rpm(s) do not contain a .gnu.build.attributes section whereas the files in the debuginfo rpm(s) do contain this section.

Comment 6 errata-xmlrpc 2022-11-15 11:21:17 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 (rpm bug fix and enhancement update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHBA-2022:8365