Bug 2166383 - rpm-build should use debugedit package
Summary: rpm-build should use debugedit package
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: rpm
Version: 9.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Packaging Maintenance Team
QA Contact: Eva Mrakova
URL:
Whiteboard:
Depends On: 2216434
Blocks: 2177302
TreeView+ depends on / blocked
 
Reported: 2023-02-01 16:49 UTC by Mark Wielaard
Modified: 2023-07-12 11:28 UTC (History)
11 users (show)

Fixed In Version: rpm-4.16.1.3-25.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-147331 0 None None None 2023-02-01 16:50:50 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.