Bug 2166383

Summary: rpm-build should use debugedit package
Product: Red Hat Enterprise Linux 9 Reporter: Mark Wielaard <mjw>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED ERRATA QA Contact: Eva Mrakova <emrakova>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.2CC: fche, ffesti, fweimer, mbanas, mcermak, mcurlej, packaging-team-maint, pmatilai, sbueno, tbajer, tis, woodard
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rpm-4.16.1.3-25.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-07 08:52:54 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:
Bug Depends On: 2216434    
Bug Blocks: 2177302    

Description Mark Wielaard 2023-02-01 16:49:39 UTC
The debugedit and find-debuginfo components were split off rpm and turned into their own upstream project and RHEL9 package debugedit. Although debugedit is part of RHEL9 now (AppStream debugedit-5.0-3.el9) rpm still ships and uses its own copies (see /usr/lib/rpm/macros %__debug_install_post).

Fedora has been changed to use %__find_debuginfo /usr/bin/find-debuginfo

It would be good if RHEL9 could do the same because bugs are being fixed in (upstream) debugedit and not in rpm for these components.

Comment 3 Mark Wielaard 2023-04-18 12:59:17 UTC
Note that bug #2177302 has been fixed now, but it is still depending on rpm-build actually using debugedit.

Comment 25 Tuomo Soini 2023-06-29 08:00:30 UTC
Change in rpm 4.16.1.3-24.el9 breaks build of gcc-toolset-13-gcc because location of find-debuginfo uses %%{_bindir} and doesn't expand that to /usr/bin. When scl package mangles _bindir to point to scl root it can't find the script in scl directory.

Simple fix would be to change the sed to:

-sed -i -e "s:%%{_rpmconfigdir}/find-debuginfo.sh:%%{_bindir}/find-debuginfo.sh:g" macros.in
+sed -i -e "s:%%{_rpmconfigdir}/find-debuginfo.sh:%{_bindir}/find-debuginfo.sh:g" macros.in

That is to hardcode the location of find-debuginfo.sh in macros.in so that change of %{_bindir} doesn't change location of script.

Comment 39 errata-xmlrpc 2023-11-07 08:52:54 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-2023:6623