Skip to content

Accommodate for the libcurl split #502

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

Merged
merged 5 commits into from
May 15, 2023

Conversation

dscho
Copy link
Member

@dscho dscho commented May 15, 2023

The ongoing work to address git-for-windows/git#4350 requires a couple of minor downstream adjustments in build-extra. This PR implements those adjustments.

dscho added 3 commits May 15, 2023 13:30
As of git-for-windows/MINGW-packages#76, Git for
Windows wants to ship with _two_ libcurl variants: one that includes the
Secure Channel backend to talk https://, and another one that includes
the OpenSSL backend instead.

Therefore, the `make-file-list` script that is used by Git for Windows'
automation to list the files required for the various release assets
needs to be adjusted, too.

Signed-off-by: Johannes Schindelin <[email protected]>
Since git-for-windows/MINGW-packages#76, Git for
Windows' SDKs no longer install the `mingw-w64-curl` package but instead
the `mingw-w64-curl-winssl` package.

As a consequence, we now have to include the PDBs for that package, too.

Signed-off-by: Johannes Schindelin <[email protected]>
In line with git-for-windows/MINGW-packages#76,
the default SSL/TLS backend is now the Secure Channel one.

Let's reflect that in the installer.

This makes Git for Windows' maintenance easier (see
git-for-windows/git#4350 for a fuller
explanation). But it has further benefits: the Secure Channel backend
is the "more native" choice on Windows, as it integrates better with
Windows. For example, when trusting a host with a self-signed
certificate in a web browser, that trust extends to Secure Channel. With
the OpenSSL backend, users had to jump through manual hoops to get `git
clone <url>` to trust a host with a self-signed certificate.

Note: The installer will _still_ pick up previous choices when upgrading
from an earlier Git for Windows version. Only fresh installs without any
current Git for Windows installations will receive the new default.

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho self-assigned this May 15, 2023
dscho added 2 commits May 15, 2023 14:44
This is not an unused DLL ;-)

Signed-off-by: Johannes Schindelin <[email protected]>
At the moment, the command `git -c http.sslBackend=openssl <...>` will
fail because there is not yet any new mingw-w64-git package version that
supports dynamically loading various libcurl variants depending on the
configured backend choice.

This is not a terrible thing because Git for Windows v2.41.0-rc0 is
imminent (due either later today, or at the latest tomorrow), and that
will address the issue.

So let's adjust the checks accordingly, to be lenient in case they are
run with Git for Windows v2.40.1 (i.e. the still-current newest package
version).

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho marked this pull request as ready for review May 15, 2023 13:28
@dscho dscho merged commit e07cd3b into git-for-windows:main May 15, 2023
@dscho dscho deleted the accommodate-for-libcurl-split branch May 15, 2023 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant