-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
salt: update libcrypto patch #51843
salt: update libcrypto patch #51843
Conversation
How about instead of replacing the line
with
to instead replace
with
|
Thanks @jhass, I don't think this will work if a remote machine is Mac and doesn't have homebrew's openssl@1.1. Anyway, it looks a bit too much for the patch. I would suggest to fix it in salt itself instead of patching homebrew installation. |
Probably it won't fix remote macos using salt-ssh without homebrew openssl, true. But it will fix remote linux using salt-ssh, so it makes salt-ssh usable on macos at all, which to me seems quite worthwhile for two added lines. |
@Homebrew/core what do you think about it?
Lack of visible actions from salt maintainers regarding saltstack/salt#55084 makes me sad |
Can't really do this without removing the formula entirely.
I'm not sure I understand what this does differently and fixes/doesn't (having read the above)? Can you summarise?
Similarly, I'm not sure I understand what the status quo bug(s) is? Can you elaborate?
My take: we also get issues what we don't fix because we direct people towards making PRs. I'd suggest we (or someone with a stake in this working) submit a PR to fix this rather than an issue. Alternatively, we remove the (broken) formula and make a merged PR a prerequisite to re-adding. |
Salt is a infrastructure automation tool. Normally it works in a master/node kind of way but it also ships a tool called For some operations Salt requires access to My suggested patch instead of replacing the lookup call, leaves that intact. The surrounding code already makes a special case for sunos environments, my patch simply adds another special case for macos enviroments. |
There is a Changes suggested by @jhass forces salt to use
I'm not familiar with salt code and salt use cases, but there could be some cases which will be broken by suggested changes. I don't see any so far. Taking into account all of these, I think that changes suggested by @jhass a worth to apply. Will prepare a PR if no one is against it |
Thanks for explanations @jhass and @bayandin!
I'm somewhat against it. I think this situation we've ended up in is due to our |
I'd say upstreaming the improved patch in #51843 (comment) and using the PR's patch is the way to go. |
The patch is specific to homebrew. Unfortunately I don't know enough either what the proper way to do this with Homebrew and Python is for an upstream quality patch. Despite IME upstream isn't super responsive to third party contributors, so it would delay stuff further. |
@jhass Sure but it's a starting point (and, as far as I can tell, wouldn't actually do any harm on non-Homebrew setups). |
I had a glance at salt code. The crash caused by And Since Homebrew installs Will try to fix this unconditional library loading later this week; hope will have time for it. |
I'd say homebrew on macOS isn't a very niche setup Unfortunately I'm familiar with the saltstack speed of accepting PRs so I don't expect the PR to be merged before we pull in the patch, just filed with upstream. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
We could use this: saltstack/salt#56958 |
eeac6b7
to
d22b915
Compare
I've updated the patch. |
Formula/salt.rb
Outdated
# Fix loading of unversioned /usr/lib/libcrypto.dylib | ||
# Remove when merged or https://github.com/saltstack/salt/issues/55084 fixed | ||
patch do | ||
url "https://github.com/saltstack/salt/pull/56958.patch?full_index=1" |
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.
Maybe a bit brittle in case the PR is updated? How about https://github.com/saltstack/salt/commit/3dea0e31759b6c2a2c7b46647827a72f7a20dafd.patch
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.
Maybe a bit brittle in case the PR is updated? How about https://github.com/saltstack/salt/commit/3dea0e31759b6c2a2c7b46647827a72f7a20dafd.patch
If PR will be rebased this commit probably disappear as well.
When we have bottles for these, changes in PR won't affect major amount of installations.
Generally we're not in favour of using patches from unmerged PR (since a lot of things could go wrong). But taking into account this bug exists for a half a year, we could make a small exception I believe
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 prefer to point to the PR. If that one is rebased it'll still contain a reference to the work, while the commit will just lose all context
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.
If PR will be rebased this commit probably disappear as well.
It won't.
I think it would be good to link to the PR but don't use it as the URL.
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.
Yes, IME Github keeps the commit objects around, at least more than long enough.
My concern is given the patch is verified with a hash, any updates to the PR easily make this formula not build anymore.
Good morning. I'm the PR author of saltstack/salt#56958. As the contribution itself was directly to salt, I wrote it to favor Apple's dylibs, and as Apple probably isn't going to get rid of them any time soon, this essentially means that Homebrew's dylibs will never be selected. If this is acceptable, then feel free to wait on it, but if you'd like to give users the option of using Homebrew's dylibs (as some formulas do) you may wish to chop up that commit for your own uses. |
d22b915
to
ea47b26
Compare
Thanks @kaorihinata, hope your patch gets merged soon, meanwhile, I've added a patch to Homebrew from it. |
Thanks everyone! |
🤖 A scheduled task has triggered a merge. |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?This PR updates patch for unversioned
libcrypto
.Originally the patch was added as a workaround for saltstack/salt#55084, but it turned out it fixes one installation but breaks another (see saltstack/salt#55084 (comment) and saltstack/salt#55084 (comment)).