Skip to content

Commit 38774dc

Browse files
committed
git-extra(i686): work around a libunistring version problem of gnupg
As of yesterday's big MSYS2 i686 sync, there is no longer an `msys-unistring-2.dll` but an `msys-unistring-5.dll`. However, gnupg (e.g. `dirmngr.exe`, via `msys-gnutls-30.dll`) depends on the former file to be present. Since the full i686 variant of Git for Windows is on its way out (we'll be dropping the installer/portable Git builds for i686 after one last full i686 release with Git for Windows v2.48.1, and MinGit does not include gnupg), it isn't worth fretting too much about this; Simply copying the latter to the former seems to work just fine. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 574e8c3 commit 38774dc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

git-extra/git-extra.install.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,13 @@ test -d "$TMPDIR" || test ! -d "$TMP" || {\
263263
# Work around /etc/xml/catalog being updated using the MINGW version of xmlcatalog
264264
! grep -q '"[CD]:/' /etc/xml/catalog ||
265265
sed -i -e 's|"[CD]:/[^"]*/usr/|"/usr/|g' /etc/xml/catalog
266+
267+
# Work around an outdated i686 gnupg/gnutls build that depends on a hence-updated libunistring
268+
if test i686 = $arch -a ! -e /usr/bin/msys-unistring-2.dll -a -e /usr/bin/msys-unistring-5.dll &&
269+
grep msys-unistring-2 /usr/bin/msys-gnutls-30.dll 2>&1 >/dev/null
270+
then
271+
cp /usr/bin/msys-unistring-5.dll /usr/bin/msys-unistring-2.dll
272+
fi
266273
}
267274

268275
post_upgrade () {

0 commit comments

Comments
 (0)