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: VERIFIED --- 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
Target Milestone: rcKeywords: Triaged
Target Release: ---   
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: 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.