Skip to content

Conversation

@dscho
Copy link
Member

@dscho dscho commented Nov 19, 2025

In git-for-windows/MINGW-packages#172, I split the mingw-w64-git package into several parts, preparing for a future where the same package definition is synchronized between Git for Windows and MSYS2.

This meant splitting out the Git for Windows-specific parts into a new package called mingw-w64-git-for-windows-addons. This package has the newly split-out packages as dependencies that are requires to keep essentially the same files in Git for Windows' installer as before. So let's use that package instead of mingw-w64-git, when available.

@dscho dscho requested review from mjcheetham and rimrul November 19, 2025 23:35
@dscho dscho self-assigned this Nov 19, 2025
@dscho
Copy link
Member Author

dscho commented Nov 19, 2025

Here is a tag-git run essentially with this PR branch (this run ran without the fixes for build-mingw-64-git, which were not required at that stage).

In git-for-windows/MINGW-packages#172, I split
the `mingw-w64-git` package into several parts, preparing for a future
where the same package definition is synchronized between Git for
Windows and MSYS2.

This meant splitting out the Git for Windows-specific parts into a new
package called `mingw-w64-git-for-windows-addons`. This package has the
newly split-out packages as dependencies that are requires to keep
essentially the same files in Git for Windows' installer as before. So
let's use that package instead of `mingw-w64-git`, when available.

The change in this commit includes a minor bug fix in the
`has_pacman_package` function, which did not verify that the directory
it was looking for actually existed.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The `makepkg-mingw` setup is somewhat surprising in that it clones the
Git repository _twice_: Once as a bare repository, next to the
`PKGBUILD`, and then as a non-bare repository (using the bare one as an
alternate) into `src/`.

Historically, we only needed to push the (potentially not-yet-published)
tag to the `src/git/` repository.

However, in an upcoming change, `mingw-w64-git`'s `PKGBUILD` will stop
`SKIP`ping over the checksum of the tag, and verify it first. For this,
the tag needs to be also present in the bare repository, so let's make
it so.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
In preparation for upstreaming `mingw-w64-git` to the MSYS2 project, the
checksum of the tag needs to be recorded in the `PKGBUILD` file instead
of `SKIP`ping over it.

Therefore we need to update said checksum, otherwise the build will fail
before it is started.

Likewise, said checksum now has to be replaced _again_ when building the
source package because the Git repository is replaced by a `.tar.gz` in
that instance.

See git-for-windows/MINGW-packages#172 for the
full details.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho force-pushed the prepare-for-split-mingw-w64-git branch from 6fe5899 to ace2be9 Compare November 19, 2025 23:59
@dscho dscho marked this pull request as ready for review November 20, 2025 00:07
@dscho dscho merged commit c6b7704 into main Nov 20, 2025
21 checks passed
@dscho dscho deleted the prepare-for-split-mingw-w64-git branch November 20, 2025 06:20
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.

3 participants