microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.41k stars 6.47k forks source link

[libxml2] build failure #42524

Open R3D9477 opened 7 hours ago

R3D9477 commented 7 hours ago

Operating system

Fedora 41

Compiler

No response

Steps to reproduce the behavior

./vcpkg install libxml2

issue was closed https://github.com/microsoft/vcpkg/issues/41754 but still here

Failure logs

Installing 1/14 libxml2[core,iconv,lzma,zlib]:x64-linux@2.11.9...
Building libxml2[core,iconv,lzma,zlib]:x64-linux@2.11.9...
Downloading GNOME-libxml2-v2.11.9.tar.gz
Failed to download GNOME-libxml2-v2.11.9.tar.gz.
If you are using a proxy, please ensure your proxy settings are correct.
Possible causes are:
1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable to `https//address:port`.
This is not correct, because `https://` prefix claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr, etc...) is an HTTP proxy.
Try setting `http://address:port` to both HTTP_PROXY and HTTPS_PROXY instead.
2. If you are using Windows, vcpkg will automatically use your Windows IE Proxy Settings set by your proxy software. See, https://github.com/microsoft/vcpkg-tool/pull/77
The value set by your proxy might be wrong, or have same `https://` prefix issue.
3. Your proxy's remote server is our of service.
If you've tried directly download the link, and believe this is not a temporay download server failure, please submit an issue at https://github.com/Microsoft/vcpkg/issues
to report this upstream download server failure.
error: https://gitlab.gnome.org//GNOME/libxml2/-/archive/v2.11.9/libxml2-v2.11.9.tar.gz: curl failed to download with exit code 22
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

curl: (22) The requested URL returned error: 503

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:231 (message):
  Download failed, halting portfile.
Call Stack (most recent call first):
  scripts/cmake/vcpkg_from_gitlab.cmake:113 (vcpkg_download_distfile)
  ports/libxml2/portfile.cmake:1 (vcpkg_from_gitlab)
  scripts/ports.cmake:196 (include)

error: building libxml2:x64-linux failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle libxml2:x64-linux: 5.2 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libxml2
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[libxml2]+Build+error+on+x64-linux&body=Copy+issue+body+from+%2Fhome%2Fbuild%2F.vcpkg%2Fvcpkg_install%2Fvcpkg%2Fissue_body.md

Additional context

maybe it is good to change URL from gitlab.gnome to read-only mirror on github which is much more stable ?

R3D9477 commented 7 hours ago

I've tried to download that file from github mirror manually and place to vcpkg/downloads, but package manager is still trying to reach invalid URL and installation fails. is there any way to force vcpkg to download that library from different location, not from gnome.gitlab server? e.g. define new URL somewhere in vcpkg.json (in manifest mode)