diff options
| author | Vicki Pfau <vi@endrift.com> | 2020-06-24 11:29:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-24 11:29:28 -0700 |
| commit | eede79eb2780fca600ce61bf5b27ee7498052bd2 (patch) | |
| tree | da186aacfa12e9521eb5acc9630a91ad995a19f9 /scripts | |
| parent | 7042764fe156848e2fba8a97faf094c110f9f4ae (diff) | |
| download | vcpkg-eede79eb2780fca600ce61bf5b27ee7498052bd2.tar.gz vcpkg-eede79eb2780fca600ce61bf5b27ee7498052bd2.zip | |
Fix bootstrapping MSYS2 pacman (#11499) (#12080)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/cmake/vcpkg_acquire_msys.cmake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/cmake/vcpkg_acquire_msys.cmake b/scripts/cmake/vcpkg_acquire_msys.cmake index 8fa6a6d66..1b0459859 100644 --- a/scripts/cmake/vcpkg_acquire_msys.cmake +++ b/scripts/cmake/vcpkg_acquire_msys.cmake @@ -98,6 +98,18 @@ function(vcpkg_acquire_msys PATH_TO_ROOT_OUT) COMMAND ${PATH_TO_ROOT}/usr/bin/bash.exe --noprofile --norc -c "PATH=/usr/bin;gpgconf --homedir /etc/pacman.d/gnupg --kill all" WORKING_DIRECTORY ${TOOLPATH} ) + # we need to update pacman before anything else due to pacman transitioning + # to using zstd packages, and our pacman is too old to support those + _execute_process( + COMMAND ${PATH_TO_ROOT}/usr/bin/bash.exe --noprofile --norc -c "PATH=/usr/bin;pacman -Sy pacman --noconfirm" + WORKING_DIRECTORY ${TOOLPATH} + ) + # dash relies on specific versions of the base packages, which prevents us + # from doing a proper update. However, we don't need it so we remove it + _execute_process( + COMMAND ${PATH_TO_ROOT}/usr/bin/bash.exe --noprofile --norc -c "PATH=/usr/bin;pacman -Rc dash --noconfirm" + WORKING_DIRECTORY ${TOOLPATH} + ) _execute_process( COMMAND ${PATH_TO_ROOT}/usr/bin/bash.exe --noprofile --norc -c "PATH=/usr/bin;pacman -Syu --noconfirm" WORKING_DIRECTORY ${TOOLPATH} |
