update "Requires: g++" to "gcc-c++" in rpm package spec #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As part of the PR ROCm/gpu-operator#365, I'm trying to add "SLES support for AMD gpu-operator".
Part of the work requires adding a
internal/kmmmodule/dockerfiles/DockerfileTemplate.sles.gimdockerfile template which will be installing thegim-dkmskernel module package in a container created with a SLES base image.In SLES rpm package repos, the
gcc-c++package installs theg++binary but it doesn't defineProvides: g++rather it definesProvides: gcc-c++which also matches with what is provided by the samegcc-c++package in RHEL/CentOS repos as well.This PR proposes updating the
gim-dkmspackage rpm spec to requiregcc-c++instead of the currentg++for resolving the dependency on g++ binary, so that thegim-dkmsinstallation works on SLES OS as well.Steps to verify/reproduce the "failed dependency" error w.r.t g++ on SLES OS:
Dockerfile (only relevant part):
results in error:
while the
gcc-c++package coming from the SLES base container indeed provides theg++binary:verified the same on RHEL ubi base image: