Hide Forgot
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.
(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.)
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.
*** Bug 1990797 has been marked as a duplicate of this bug. ***
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