-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix macOS BigSur #57859
Fix macOS BigSur #57859
Conversation
@kaorihinata mind taking a look? I tried to clean it up into a single @sagetherage Can we get this into 3001.1 so more folks can test Big Sur? |
Pairs well with #57607 but not required. |
re-run all |
Something like:
...or:
...or:
...would also suffice, aye? I don't see |
@weswhet Now that I've had time to go over the build logs, it seems like relying on Edit: Seems to have something to do with lacking the module loading magic that |
we need to get it passing tests here, it may need some fixes to get merged to do that, I will review today. |
Remove the dependency on |
Done, I added the mac_utils os piece because I have some other code I was going to PR but I've scratched it for this case. Thanks for the review/feedback. Appreciate it! |
|
re-run windows2016 |
re-run opensuse15 |
salt/utils/rsax931.py
Outdated
@@ -30,6 +31,24 @@ def _find_libcrypto(): | |||
""" | |||
if sys.platform.startswith("win"): | |||
lib = str("libeay32") |
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.
Now that @s0undt3ch mentions it, here as well.
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.
Ahh, found it. There was a comment here previously noting that Windows required the str
call. Is this still the case, or was it an artifact of ancient (early Python 2, perhaps) history?
Edit: I know it wasn't your change (it was lost when I had to split the function for testing previously), but if you were copying this style below on line 51, then perhaps we should comment it again to avoid future confusion.
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.
added the comment back in for windows and removed the str cast for macOS as it's not required.
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.
@twangboy do we still need this str()
cast? I believe this was only necessary for Py2, right?
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 validated that on windows salt with py3 the cast is not needed. @s0undt3ch how do you want to proceed?
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.
Nuke it too :explosion: :)
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.
Sorry, Please.
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.
@s0undt3ch changed and ready to go :)
@krionbsd ready for re-review. I made changes based on recommendations from @s0undt3ch. |
It's properly labeled and when tests pass, queued for the 3001.1 release. |
re-run full mac |
What does this PR do?
Adds basic support for macOS Big Sur.
What issues does this PR fix or reference?
Fixes #57787
Previous Behavior
Salt would crash on Big Sur and get 😭. See the issue above for more details.
New Behavior
salt + Big Sur = ❤️
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes