Bug 1966693
| Summary: | incorrect pkgconfig virtual provides in devel packages | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Carl George 🤠<carl> | |
| Component: | elfutils | Assignee: | Mark Wielaard <mjw> | |
| elfutils sub component: | gcc-toolset-11 | QA Contact: | Martin Cermak <mcermak> | |
| Status: | CLOSED ERRATA | Docs Contact: | ||
| Severity: | unspecified | |||
| Priority: | unspecified | CC: | ahajkova, bstinson, fche, jwboyer, mcermak, mjw, toneata | |
| Version: | CentOS Stream | Keywords: | Bugfix, Reopened, Triaged, ZStream | |
| Target Milestone: | beta | Flags: | pm-rhel:
mirror+
|
|
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | gcc-toolset-11-elfutils-0.185-3.el8 | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1967081 1968380 1989113 (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: | 1967081, 1968380, 1989113, 1989115 | |||
|
Description
Carl George ðŸ¤
2021-06-01 17:04:56 UTC
OK, if I understand correctly we don't want the automatic pkgconfig provides for gcc-toolset packages when those same pkgconfig provides are also in the base system.
So we need to add something like:
%{?scl:%filter_from_provides s|pkgconfig|%{?scl_prefix}pkgconfig|g}
​%{?scl:%filter_setup}
To the elfutils.spec and valgrind.spec.
I'll keep this bug for elfutils and clone this bug for valgrind to track both packages.
*** This bug has been marked as a duplicate of bug 1968380 *** We also need this fix in 8.5 for gcc-toolset-10 elfutils. Respin needed for issues similar to https://bugzilla.redhat.com/show_bug.cgi?id=1968380#c6 I think I have found the correct magic incantation to include in the spec:
%define __provides_exclude_from ^%{_libdir}/pkgconfig/.*.pc$
This works only with rpm from RHEL8+ but this is fine for GTS.
Verified with gcc-toolset-11-elfutils-devel-0.185-3.el8. 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 |