-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Fix building on RedHat Enterprise Linux #7489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
build.psm1
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps the logic should be more like Fedora with a -ge rather than a -match so we don't have to fix it again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I modelled it after CentOS and others, where we are matching for the VERSION_ID. And since the variable is called IsRedHat7 we may want to revisit when RedHat goes to version 8 anyways.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should have a test at the end of the detection that verifies we matched at least one and throw if we don't.
dantraMSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider detecting that no Linux match was found and throw to protect against future changes.
build.psm1
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should have a test at the end of the detection that verifies we matched at least one and throw if we don't.
When trying to build on RHEL, the environment is not recongnized as RedHatFamily. Added detection logic so that appropriate symbolic links are generated.
e25492b to
9bdc72e
Compare
|
@TravisEz13 Added another property called |
|
@TravisEz13 Ready to merge? |
Fix #7485
PR Summary
When trying to build on RHEL, the environment is not recognized as RedHatFamily.
Added detection logic so that appropriate symbolic links are generated.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests