From 7ba2e564ece4deda08986d21c8bda0628d9033c4 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 29 Jun 2026 20:38:23 +0200 Subject: [PATCH] git: skip Rust bits in i686 builds There is no i686 Rust we could use, therefore we have to exclude the Rust bits from the build. One of the next Git versions will make the Rust bits mandatory, at which point we will have to stop building mingw-w64-i686-git. To accommodate the i686 variants of MinGit, which still need to be supported until 2029 (see https://gitforwindows.org/32-bit), that will be the time when we have to branch off a `mingw-w64-git-legacy` package that sticks to a Git version that _does_ allow for NO_RUST, and we will have to switch the `git-sdk-32` to that package. Signed-off-by: Johannes Schindelin --- mingw-w64-git/PKGBUILD | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mingw-w64-git/PKGBUILD b/mingw-w64-git/PKGBUILD index 24252f92fdd4a..646c148dbed4a 100644 --- a/mingw-w64-git/PKGBUILD +++ b/mingw-w64-git/PKGBUILD @@ -83,6 +83,12 @@ STRIP= STRIP_OPTS= LDFLAGS= +if test i686 = "$CARCH" +then + # There is no i686 Rust we can use + export NO_RUST=ThatsRight +fi + if test -z "$NO_RUST" then makedepends+=("${MINGW_PACKAGE_PREFIX}-rust")