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 1997003 - gcc-toolset-11-elfutils-devel depends on elfutils-libelf-devel
Summary: gcc-toolset-11-elfutils-devel depends on elfutils-libelf-devel
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: elfutils
Version: ---
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Mark Wielaard
QA Contact: Martin Cermak
URL:
Whiteboard:
: 1990797 (view as bug list)
Depends On:
Blocks: 1944515 2000942 2001013
TreeView+ depends on / blocked
 
Reported: 2021-08-24 08:19 UTC by Martin Cermak
Modified: 2021-11-10 00:31 UTC (History)
6 users (show)

Fixed In Version: gcc-toolset-11-elfutils-0.185-4.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2000942 2001013 (view as bug list)
Environment:
Last Closed: 2021-11-09 18:38:32 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1990797 1 None None None 2021-09-17 14:55:00 UTC
Red Hat Issue Tracker RHELPLAN-94564 0 None None None 2021-08-24 08:23:33 UTC
Red Hat Product Errata RHBA-2021:4237 0 None None None 2021-11-09 18:38:46 UTC

Description Martin Cermak 2021-08-24 08:19:46 UTC
It turns out that gcc-toolset-11-elfutils-devel-0.185-3.el8 depends on base rhel elfutils-libelf-devel.  Thing is that it requires pkgconfig(libelf) = 0.185 which is provided by elfutils-libelf-devel, but not gcc-toolset-11-elfutils-libelf-devel.

This is sort of expected, after we fixed bz1966693.  But I didn't realize earlier  that this makes the SCL depend on the base rhel content.  If that it okay, we can close this bug.

Comment 1 Mark Wielaard 2021-08-24 15:49:22 UTC
(In reply to Martin Cermak from comment #0)
> It turns out that gcc-toolset-11-elfutils-devel-0.185-3.el8 depends on base
> rhel elfutils-libelf-devel.  Thing is that it requires pkgconfig(libelf) =
> 0.185 which is provided by elfutils-libelf-devel, but not
> gcc-toolset-11-elfutils-libelf-devel.
> 
> This is sort of expected, after we fixed bz1966693.  But I didn't realize
> earlier  that this makes the SCL depend on the base rhel content.  If that
> it okay, we can close this bug.

This is unfortunate. It is caused by the libdw.pc file, which contains:

Requires: libelf = 0.185

rpm will automatically generate a Requires from that.

It isn't OK, but I don't think it does much harm.

The fix is probably to add the following line to the elfutils.spec file:

%define __requires_exclude_from ^%{_libdir}/pkgconfig/libdw.pc$

(We don't want to use a wildcard here, just exclude libdw.pc, the other .pc files do contain Requires that do have to be resolved against base provides.)

Comment 2 Mark Wielaard 2021-08-31 16:25:56 UTC
Although this isn't a real issue for GTS11/RHEL-8.5 because base libelf and GTS libelf are the same (base) version, it is a problem for GTS10.1 on RHEL-8.5 because the GTS/base libelf versions do differ then. So we do need an exception to fix this for GTS11/RHEL-8.5 and a z-stream fix for GTS10.1/RHEL-8.4.

Comment 5 Mark Wielaard 2021-08-31 17:10:03 UTC
*** Bug 1990797 has been marked as a duplicate of this bug. ***

Comment 14 errata-xmlrpc 2021-11-09 18:38:32 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 (new packages: gcc-toolset-11-elfutils), 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-2021:4237


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