-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[liblzma] Unable to download "xz" caused install falied #37893
Comments
how to solve this problem? |
Is it possible to create a new tag for vcpkg with liblzma downgraded? I'm currently waiting on a tag to upgrade vcpkg on nixpkgs. |
Just choose a commit you trust. AFAICT tags have no meaning with regard to maturity here. They are updated so that nobody downloads even older tags. |
@zhang49 Can you successfully install opencv2 after updating the vcpkg library? |
@dg0yt The official xz repository has been turned off. Is it possible to have a temporary solution for the vcpkg maintainers to accept the path to use the bminor/xz mirror repository? |
Hello, |
This is exactly what is done here: (#37839 (comment)). You have to not only reinstall the library as explained in the above link but also
|
https://github.com/tukaani-project/xz has been disabled. Use bminor's fork of xz until the liblzma project publishes a new official repository as proposed by @MichaelCurrie in a comment on microsoft#37839
It would be great if the freeimage port gained a feature flag to disable the transitive lzma dependency of tiff. Lots of projects can probably survive without it. |
The file is available here |
cc @JavierMatosD @BillyONeal, can we switch to this URL https://sourceforge.net/projects/lzmautils? |
This has affected our organizations development workflow significantly. Pending a permanent fix, here is a rudimentary patch that seems to work for the most part:
I haven't been able to figure out how to implement this in our CI/CD solutions, but this serves as a functioning rudimentary patch. |
#37841 (comment) The repo should be public again. |
@teo-tsirpanis has done a PR about the new XZ version (5.6.2) here: cc: @carsten-grimm. Linked to:
Official XZ links: |
D:\vcpkg>vcpkg.exe install opencv2
warning: In the September 2023 release, the default triplet for vcpkg libraries changed from x86-windows to the detected host triplet (x64-windows). For the old behavior, add --triplet x86-windows . To suppress this message, add --triplet x64-windows .
Computing installation plan...
The following packages will be built and installed:
opencv2[core,default-features,eigen,jpeg,png,tiff]:x64-windows -> 2.4.13.7#19
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Restored 0 package(s) from C:\Users\heyy\AppData\Local\vcpkg\archives in 141 us. Use --debug to see more details.
Installing 1/6 liblzma:x64-windows...
Building liblzma:x64-windows...
-- Downloading https://github.com/tukaani-project/xz/archive/v5.4.4.tar.gz -> tukaani-project-xz-v5.4.4.tar.gz...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Trying to load bundleconfig from D:\vcpkg\vcpkg-bundle.json
[DEBUG] Failed to open: D:\vcpkg\vcpkg-bundle.json
[DEBUG] Bundle config: readonly=false, usegitregistry=false, embeddedsha=nullopt, deployment=Git, vsversion=nullopt
[DEBUG] Metrics enabled.
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Feature flag 'dependencygraph' unset
Downloading https://github.com/tukaani-project/xz/archive/v5.4.4.tar.gz
[DEBUG] Trying to hash D:\vcpkg\downloads\tukaani-project-xz-v5.4.4.tar.gz.16680.part
[DEBUG] D:\vcpkg\downloads\tukaani-project-xz-v5.4.4.tar.gz.16680.part has hash 77255aac06aad2d93e1778cd9ca3a7df2da6c60b362d12e764055e83eb84b8f29c45b150a9818aa251c82af62233841db10ae6e4a076d6a6a007a60a5a6227a6
error: Failed to download from mirror set
error: File does not have the expected hash:
url: https://github.com/tukaani-project/xz/archive/v5.4.4.tar.gz
File: D:\vcpkg\downloads\tukaani-project-xz-v5.4.4.tar.gz.16680.part
Expected hash: c28461123562564e030f3f733f078bc4c840e87598d9f4b718d4bca639120d8133f969c45d7bdc62f33f081d789ec0f14a1791fb7da18515682bfe3c0c7362e0
Actual hash: 77255aac06aad2d93e1778cd9ca3a7df2da6c60b362d12e764055e83eb84b8f29c45b150a9818aa251c82af62233841db10ae6e4a076d6a6a007a60a5a6227a6
[DEBUG] D:\a_work\1\s\src\vcpkg\base\downloads.cpp(1051):
[DEBUG] Time in subprocesses: 0us
[DEBUG] Time in parsing JSON: 5us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 729us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 3.1 s (3092955us)
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (message):
Call Stack (most recent call first):
scripts/cmake/vcpkg_download_distfile.cmake:270 (z_vcpkg_download_distfile_show_proxy_and_fail)
scripts/cmake/vcpkg_from_github.cmake:106 (vcpkg_download_distfile)
ports/liblzma/portfile.cmake:1 (vcpkg_from_github)
scripts/ports.cmake:168 (include)
error: building liblzma:x64-windows failed with: BUILD_FAILED
Elapsed time to handle liblzma:x64-windows: 3.2 s
Please ensure you're using the latest port files with
git pull
andvcpkg update
.Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+liblzma
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[liblzma]+Build+error&body=Copy+issue+body+from+D%3A%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
The text was updated successfully, but these errors were encountered: