RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2166383 - rpm-build should use debugedit package
Summary: rpm-build should use debugedit package
Keywords:
Status: CLOSED ERRATA
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-11-07 11:24 UTC (History)
12 users (show)

Fixed In Version: rpm-4.16.1.3-25.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-07 08:52:54 UTC
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
Red Hat Product Errata RHBA-2023:6623 0 None None None 2023-11-07 08:52:59 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.

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


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