update "Requires: g++" to "gcc-c++" in rpm package spec#14
Closed
Priyankasaggu11929 wants to merge 1 commit intoamd:mainlinefrom
Closed
update "Requires: g++" to "gcc-c++" in rpm package spec#14Priyankasaggu11929 wants to merge 1 commit intoamd:mainlinefrom
Priyankasaggu11929 wants to merge 1 commit intoamd:mainlinefrom
Conversation
Author
|
@yunxiali, ping for review. Thank you! Also cc: @yansun1996 |
Collaborator
|
@Priyankasaggu11929 Thank you. I'm reviewing this. |
Author
Thank you, @amd-guangren! |
Collaborator
|
@Priyankasaggu11929 |
Author
Ack. Thank you 🙏 |
Collaborator
|
@Priyankasaggu11929 |
Author
|
Thank you for the update @amd-guangren. Closing this as completed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: