Bug 1485002
| Summary: | "Requires: gcc" may install dts-gcc which is not in PATH | ||
|---|---|---|---|
| Product: | Red Hat Developer Toolset | Reporter: | Josh Stone <jistone> |
| Component: | gcc | Assignee: | Marek Polacek <mpolacek> |
| Status: | CLOSED ERRATA | QA Contact: | Martin Cermak <mcermak> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | DTS 7.0 RHEL 7 | CC: | bgollahe, codonell, fweimer, jakub, kanderso, law, mcermak, mnewsome, mpetlan, ohudlick, tstellar |
| Target Milestone: | alpha | ||
| Target Release: | 7.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | devtoolset-7-gcc-7.1.1-7.1.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-10-24 09:47:20 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: | |||
|
Description
Josh Stone
2017-08-24 19:47:53 UTC
More generally, I think we need to look at all the DTS packages and their Provides: lines to make sure they're sane WRT this problem. It seems to me that we should drop
%{?scl:Provides:gcc = %{version}-%{release}}
from the gcc spec file. It's been there since the DTS 1.1 times and I do not find any justification why it's there.
I've checked some other DTS packages (gdb, binutils, valgrind, dwz, systemtap, elfutils, strace) and I don't see the same Provides there.
But that won't help right now because we're not able to change older DTS gcc. So, for now, I suppose let's use "Requires: /usr/bin/cc".
It'd also be helpful to know, exactly, how yum finds the appropriate package specified in Requires.
I'm moving forward with what I proposed in Comment 3. Should be fixed. Both .el6 and .el7 source rpms of devtoolset-7-gcc-7.2.1-1 seem NOT to contain the troublemaker line: # cat rpmbuild/SPECS/gcc.spec | grep Provides Provides: liblto_plugin.so.0()(64bit) Provides: liblto_plugin.so.0 ---> VERIFIED. 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, 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/RHEA-2017:3016 |