This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 8b6cc7a ARROW-8848: [Ruby][CI] Fix MSYS2 update error
8b6cc7a is described below
commit 8b6cc7a3a3a8afa4a18400f4caf1a7105b0be305
Author: Sutou Kouhei <[email protected]>
AuthorDate: Thu May 21 12:51:50 2020 +0900
ARROW-8848: [Ruby][CI] Fix MSYS2 update error
pacman 5.2.1 uses zstd instead of gzip. Upgrading pacman by pacman
from old MSYS2 doesn't work. We need to upgrade pacman manually.
See also: https://github.com/msys2/MSYS2-packages/issues/1960
Closes #7239 from kou/glib-ci-fix-msys2-update
Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
---
ci/scripts/msys2_system_upgrade.sh | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/ci/scripts/msys2_system_upgrade.sh
b/ci/scripts/msys2_system_upgrade.sh
index 7104b79..8dab403 100755
--- a/ci/scripts/msys2_system_upgrade.sh
+++ b/ci/scripts/msys2_system_upgrade.sh
@@ -19,12 +19,13 @@
set -eux
-# Ensure using the latest pacman
-pacman \
- --noconfirm \
- --sync \
- -yy \
- pacman
+# Update pacman manually from old MSYS2.
+# See also: https://github.com/msys2/MSYS2-packages/issues/1960
+pacman --noconfirm --refresh --sync zstd
+wget -q http://repo.msys2.org/msys/x86_64/pacman-5.2.1-7-x86_64.pkg.tar.zst
+zstd -d pacman-5.2.1-7-x86_64.pkg.tar.zst
+gzip pacman-5.2.1-7-x86_64.pkg.tar
+pacman --noconfirm --upgrade ./pacman-5.2.1-7-x86_64.pkg.tar.gz
pacman \
--noconfirm \