Bug 1997003

Summary: gcc-toolset-11-elfutils-devel depends on elfutils-libelf-devel
Product: Red Hat Enterprise Linux 8 Reporter: Martin Cermak <mcermak>
Component: elfutilsAssignee: Mark Wielaard <mjw>
elfutils sub component: gcc-toolset-11 QA Contact: Martin Cermak <mcermak>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: dsmith, fche, jikortus, lmiksik, mjw, pzatko
Version: ---Keywords: Bugfix, Patch, Triaged, ZStream
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gcc-toolset-11-elfutils-0.185-4.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2000942 2001013 (view as bug list) Environment:
Last Closed: 2021-11-09 18:38:32 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:    
Bug Blocks: 1944515, 2000942, 2001013    

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