From 2fbb2163d7e5beb9f1da9edbd98221d14e8fe802 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Wed, 4 Nov 2026 05:23:37 +0200
Subject: [PATCH 40/40] Update msys2 environment to 261102 level

- Drop wget2 packages
- Drop win64 gtk4 package
- Drop win64 drmingw package

See RM #2433

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 doc/README.msys2                                 | 11 ++++++-----
 platforms/windows/installer_msys2/Makefile.meson |  6 ++++--
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/doc/README.msys2 b/doc/README.msys2
index 21df07703e..850354fac4 100644
--- a/doc/README.msys2
+++ b/doc/README.msys2
@@ -10,7 +10,7 @@ using MSYS2 from https://www.msys2.org/
 ==============
 
 Current official premade MSYS2 environment version info:
-[premade]:  msys2-freeciv-win64-260927.7z
+[premade]:  msys2-freeciv-win64-261102.7z
 [upstream]: https://repo.msys2.org/distrib/x86_64/msys2-x86_64-20260927.exe
 
 See chapter "Premade environment" for what these mean. The info is
@@ -164,7 +164,8 @@ Following packages have been installed:
 - mingw-w64-<arch>-curl
 - mingw-w64-<arch>-sqlite3
 - mingw-w64-<arch>-gtk3
-- mingw-w64-<arch>-gtk4
+- mingw-w64-ucrt-x86_64-gtk4
+- mingw-w64-clang-x86_64-gtk4
 - mingw-w64-ucrt-x86_64-diffutils
 - mingw-w64-clang-x86_64-diffutils
 - mingw-w64-<arch>-nsis
@@ -177,13 +178,13 @@ Following packages have been installed:
 - mingw-w64-<arch>-sdl3-ttf
 - mingw-w64-<arch>-imagemagick
 - mingw-w64-x86_64-qt5-base
-- mingw-w64-<arch>-drmingw
+- mingw-w64-ucrt-x86_64-drmingw
+- mingw-w64-clang-x86_64-drmingw
 - mingw-w64-<arch>-meson
 - mingw-w64-ucrt-x86_64-qt6-base
 - mingw-w64-ucrt-x86_64-qt6-svg
 - mingw-w64-clang-x86_64-qt6-base
 - mingw-w64-clang-x86_64-qt6-svg
-- mingw-w64-<arch>-wget2
 
 After all the packages were installed 'pacman -Scc' was run to completely
 empty the package cache for having smaller environment package.
@@ -195,7 +196,7 @@ empty the package cache for having smaller environment package.
 Launch build target specific msys2 shell;
 ucrt64.exe or mingw64.exe.
 Get the freeciv sources there somehow. Some options are:
-1) Download freeciv tarball within msys2 shell with wget2
+1) Download freeciv tarball within msys2 shell with wget
 2) Use git within msys2 shell to get them from version control
 3) Copy them from Windows folder where they are to a directory that
    is within msys2
diff --git a/platforms/windows/installer_msys2/Makefile.meson b/platforms/windows/installer_msys2/Makefile.meson
index 8b7641adcd..1ed7d9e26c 100644
--- a/platforms/windows/installer_msys2/Makefile.meson
+++ b/platforms/windows/installer_msys2/Makefile.meson
@@ -22,6 +22,7 @@ ifeq ($(MSYSTEM),MINGW64)
 WINARCH=win64
 ARCH_FCMP=gtk3
 ARCHDIR=mingw64
+ARCH_COMMON_DLLS=
 LIBGCCDLL=libgcc_s_seh-1.dll
 CPPLIBS=libstdc++-6.dll libgomp-1.dll
 CRYPTOLIB_SUFFIX=-x64
@@ -31,6 +32,7 @@ else ifeq ($(MSYSTEM),UCRT64)
 WINARCH=win64-10
 ARCH_FCMP=gtk4
 ARCHDIR=ucrt64
+ARCH_COMMON_DLLS=exchndl.dll mgwhelp.dll
 LIBGCCDLL=libgcc_s_seh-1.dll
 CPPLIBS=libstdc++-6.dll libgomp-1.dll
 CRYPTOLIB_SUFFIX=-x64
@@ -40,6 +42,7 @@ else ifeq ($(MSYSTEM),CLANG64)
 WINARCH=win64+
 ARCH_FCMP=gtk4
 ARCHDIR=clang64
+ARCH_COMMON_DLLS=exchndl.dll mgwhelp.dll
 LIBGCCDLL=
 CPPLIBS=libc++.dll libomp.dll libunwind.dll
 CRYPTOLIB_SUFFIX=-x64
@@ -267,8 +270,7 @@ COMMON_DLLS := \
 	libxml2-16.dll \
 	libraqm-0.dll \
 	libunistring-5.dll \
-	exchndl.dll \
-	mgwhelp.dll \
+	$(ARCH_COMMON_DLLS) \
 	libngtcp2-16.dll \
 	libngtcp2_crypto_ossl-0.dll
 
-- 
2.53.0

