MINGW-packages: mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz cannot be downloaded
I’m trying to install harfbuzz with vcpkg version 2020.11-1 on Windows 7. The reason I’m using version 2020.11-1 is that any later version comes with Python 3.9+ which isn’t supported on Windows 7.
Part of the dependencies to install harfbuzz is the package brotli which attempts to download mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz but fails. Indeed, the file seems to not exist on msys2 neither any of its mirrors.
Would it be possible to add back this file to the msys2 packages, so that using vcpkg on Windows 7 is somewhat possible? Thank you!
More info: https://github.com/harfbuzz/harfbuzz/issues/3421
vcpkg install output:
$ git clone https://github.com/Microsoft/vcpkg.git
$ cd vcpkg
$ git checkout 2020.11-1
$ .\bootstrap-vcpkg.bat
$ .\vcpkg install freetype:x64-windows harfbuzz:x64-windows
Computing installation plan...
The following packages will be built and installed:
* brotli[core]:x64-windows
* bzip2[core]:x64-windows
freetype[bzip2,core,png]:x64-windows
harfbuzz[core]:x64-windows
* libpng[core]:x64-windows
* ragel[core]:x64-windows
* zlib[core]:x64-windows
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Starting package 1/7: brotli:x64-windows
Building package brotli[core]:x64-windows...
Could not locate cached archive: C:\Users\Boris\AppData\Local\vcpkg\archives\d1\d15b61925bc1d3595878690a0e189ce8a37e6849.zip
-- Using cached C:/Users/Boris/vcpkg/downloads/google-brotli-e61745a6b7add50d380cfd7d3883dd6c62fc2c71.tar.gz
-- Cleaning sources at C:/Users/Boris/vcpkg/buildtrees/brotli/src/6c62fc2c71-a8c4ea9278.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/Boris/vcpkg/downloads/google-brotli-e61745a6b7add50d380cfd7d3883dd6c62fc2c71.tar.gz
-- Applying patch install.patch
-- Applying patch fix-arm-uwp.patch
-- Applying patch pkgconfig.patch
-- Using source at C:/Users/Boris/vcpkg/buildtrees/brotli/src/6c62fc2c71-a8c4ea9278.clean
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz...
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error"
-- Downloading https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz...
-- Downloading https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error"
-- Downloading https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz...
-- Downloading https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error"
-- Downloading https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz...
-- Downloading https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error"
-- Downloading https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz...
-- Downloading https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error"
-- Downloading https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz...
-- Downloading https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz... Failed. Status: 6;"Couldn't resolve host name"
-- Downloading https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz...
-- Downloading https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz... Failed. Status: 35;"SSL connect error"
-- Downloading https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz...
-- Downloading https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz... Failed. Status: 35;"SSL connect error"
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:182 (message):
Failed to download file.
If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY environment
variables to "https://user:password@your-proxy-ip-address:port/".
Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues
Call Stack (most recent call first):
scripts/cmake/vcpkg_acquire_msys.cmake:88 (vcpkg_download_distfile)
scripts/cmake/vcpkg_acquire_msys.cmake:136 (msys_package_download)
scripts/cmake/vcpkg_find_acquire_program.cmake:427 (vcpkg_acquire_msys)
scripts/cmake/vcpkg_fixup_pkgconfig.cmake:271 (vcpkg_find_acquire_program)
ports/brotli/portfile.cmake:25 (vcpkg_fixup_pkgconfig)
scripts/ports.cmake:135 (include)
Error: Building package brotli:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: brotli:x64-windows
Vcpkg version: 2020.06.15-nohash
Additionally, attach any relevant sections from the log files above.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (6 by maintainers)
Commits related to this issue
- faq: add an entry for how long we keep old packages See https://github.com/msys2/MINGW-packages/issues/10710 — committed to msys2/msys2.github.io by lazka 2 years ago
This is now bumped to 1.75. We might increase it to 2 years in the future.
I’ve added a FAQ entry: https://github.com/msys2/msys2.github.io/commit/0b9134e2a67f050
Just for info, I managed to get a working vcpkg on Windows 7 by using the latest vcpkg (so that it doesn’t attempt to download a now-unavailable old version of pkg-config), but modifying it to force using Python 3.8.10 (instead of Python 9+ which doesn’t work on Windows 7) by modifying some vcpkg files as explained here: https://github.com/microsoft/vcpkg/issues/20113#issuecomment-977463518
It’s not ideal but at least there is a workaround.