Repository navigation
Stop mingw-w64-git from depending on OpenSSL - #235
Merged
Merged
Conversation
In git-for-windows/git#4410, I worked around a recurring problem where Git for Windows' automation requires `git push` to keep working across OpenSSL updates, which at the time was a problem because `git push` hands off to `git-remote-https.exe`, which links to libcurl, which at the time depended directly on OpenSSL, and hence an OpenSSL upgrade that changed the DLL file name would prevent `git-remote-https.exe` from loading altogether! By loading `libcurl` dynamically, and by changing the default libcurl to depend only on Secure Channel, this problem was worked around efficiently. A similar problem now surfaced, however, as part of git-for-windows/git#6452: By "unshadowing" OpenSSL (i.e. no longer building it in Git for Windows and deploying it to Git for Windows' Pacman repository, but instead consuming upstream MSYS2's version directly), the inadvertent linkage of `git-imap-send.exe` to OpenSSL is now surfaced via git-sdk-arm64's `check-for-missing-dlls`, for details, see https://github.com/git-for-windows/git-sdk-arm64/actions/runs/42351679729: c:/a/git-sdk-arm64/git-sdk-arm64/build-installers/clangarm64/libexec/git-core/git-imap-send.exe is missing libssl-3.dll c:/a/git-sdk-arm64/git-sdk-arm64/build-installers/clangarm64/libexec/git-core/git-imap-send.exe is missing libcrypto-3.dll The reason is 9eaa78b0b0379 ("Makefile: link libcurl before zlib", Remi Pommarel, 2015-10-21, which claims to be a mere refactoring, but instead always links `git-imap-send` to OpenSSL, unconditionally. I had missed that, and as a consequence every `git-imap-send.exe` since v2.20.0 has linked to OpenSSL, totally unnecessarily so because they are built with the not because it had to. So let's just build with `NO_OPENSSL` instead; That allows us to drop depending on `mingw-w64-openssl`. Signed-off-by: Johannes Schindelin <[email protected]>
We need to deploy the `mingw-w64-git` package with the `NO_OPENSSL` fix, so that git-sdk-arm64's `check-for-missing-dlls` check has a chance of succeeding again. Signed-off-by: Johannes Schindelin <[email protected]>
This comment was marked as outdated.
This comment was marked as outdated.
dscho
added a commit
to git-for-windows/git-for-windows-automation
that referenced
this pull request
Nov 7, 2026
Just like 5ed2273 (git-artifacts: opt out of Rust until after v2.55, 2026-06-12) edited the `git-artifacts` workflow, we need to edit `build-and-deploy` to let the Git package be built without Rust. It is a bit unfortunate, really, because we are _so close_ to building _with_ Rust, but we have to rebuild one last time before that so that we can let git-sdk-arm64's `check-for-missing-dlls` pass; for full details, see git-for-windows/MINGW-packages#235. Signed-off-by: Johannes Schindelin <[email protected]>
This comment has been minimized.
This comment has been minimized.
This has the v2.56.1 update. Signed-off-by: Johannes Schindelin <[email protected]>
dscho
added a commit
to git-for-windows/git-for-windows-automation
that referenced
this pull request
Nov 26, 2026
This covers the remaining checkbox of git-for-windows/git#6276 ("Build with the Rust bits by default") for the release builds. All the prerequisites are now merged: git-for-windows/MINGW-packages#235 on 2026-11-12, and git-for-windows/git-sdk-64#132 and git-for-windows/git-sdk-arm64#67 earlier today, which add the Rust toolchain to the SDK artifacts these workflows use. The `git-artifacts` workflows in git-sdk-64 and git-sdk-arm64 have opt-outs of their own; those are reverted in separate PRs in those repositories. git-sdk-32 keeps its opt-out, as there is no usable i686 Rust.
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.
To allow for easy upgrading OpenSSL between major versions (or, in the current instance, switching to MSYS2's version), we need to stop
mingw-w64-gitfrom depending onmingw-w64-openssl. This will fix the failure of git-sdk-arm64'scheck-for-missing-dllsthat is caused by a naming difference between Git for Windows' and MSYS2's DLLs:For all practical purposes, this does not change anything: The default libcurl already uses Secure Channel as SSL backend, and
git imap-sendis compiled to prefer using libcurl, anyway.