r-windows / rtools-installer

Builds the rtools40 installer
https://cran.r-project.org/bin/windows/Rtools/
27 stars 2 forks source link

Update msys2-keyring package #12

Closed krlmlr closed 4 years ago

krlmlr commented 4 years ago

for installer, so that pacman -Sy works out of the box for msys repo.

Symptoms on a fresh Rtools40 install:

$ pacman -Sy
:: Synchronizing package databases...
 mingw32                24.7 KiB  1767 KiB/s 00:00 [#####################] 100%
 mingw64                24.8 KiB  2.02 MiB/s 00:00 [#####################] 100%
 msys                  205.6 KiB   313 KiB/s 00:01 [#####################] 100%
 msys.sig              438.0   B  0.00   B/s 00:00 [#####################] 100%
error: msys: key "628F528CF3053E04" is unknown
:: Import PGP key 628F528CF3053E04? [Y/n] y
error: key "628F528CF3053E04" could not be looked up remotely
error: failed to update msys (invalid or corrupted database (PGP signature))
error: failed to synchronize all databases

To fix, I ran:

curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz
curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig
pacman-key --verify msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig
pacman -U --config <(echo) msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz

per instructions in https://www.msys2.org/news/#2020-06-29-new-packagers.

jeroen commented 4 years ago

Thanks, I have documented that here: https://github.com/r-windows/rtools-packages/commit/edf678e76df4f44edaddddec55a5e6979c8889ad . The next version of rtools40 installer will automatically get the latest upstream, but I try to minimize the number of updates because it changing the checksum breaks things like chocolately.