Skip to content
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

[zlib] build failure #27271

Closed
archibate opened this issue Oct 17, 2022 · 3 comments
Closed

[zlib] build failure #27271

archibate opened this issue Oct 17, 2022 · 3 comments
Assignees
Labels
category:question This issue is a question

Comments

@archibate
Copy link

Host Environment

  • OS: Windows
  • Compiler: Visual Studio 2022

To Reproduce

Steps to reproduce the behavior:

./vcpkg install zlib

Failure logs

-- Downloading https://www.zlib.net/zlib-1.2.12.tar.gz -> zlib1212.tar.gz...
2022-10-15T08:10:18.1537439Z [DEBUG] Feature flag 'binarycaching' unset
2022-10-15T08:10:18.1541809Z [DEBUG] Feature flag 'manifests' = off
2022-10-15T08:10:18.1542832Z [DEBUG] Feature flag 'compilertracking' unset
2022-10-15T08:10:18.1543310Z [DEBUG] Feature flag 'registries' unset
2022-10-15T08:10:18.1543719Z [DEBUG] Feature flag 'versions' unset
2022-10-15T08:10:18.1544652Z [DEBUG] 5931: popen(curl --fail -L https://www.zlib.net/zlib-1.2.12.tar.gz --create-dirs --output /home/runner/work/zeno/zeno/vcpkg/downloads/zlib1212.tar.gz.5931.part 2>&1)
2022-10-15T08:10:18.1545264Z [DEBUG] 5931: cmd_execute_and_stream_data() returned 22 after   348286 us
2022-10-15T08:10:18.1545634Z Error: Failed to download from mirror set:
2022-10-15T08:10:18.1546522Z https://www.zlib.net/zlib-1.2.12.tar.gz:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2022-10-15T08:10:18.1547044Z                                  Dload  Upload   Total   Spent    Left  Speed
2022-10-15T08:10:18.1547236Z 
2022-10-15T08:10:18.1547593Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2022-10-15T08:10:18.1548082Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2022-10-15T08:10:18.1548495Z curl: (22) The requested URL returned error: 404 Not Found
2022-10-15T08:10:18.1548674Z 

Additional context

The URL https://www.zlib.net/zlib-1.2.12.tar.gz is 404 not found since 2022/10/13. Please use https://www.zlib.net/zlib-1.2.13.tar.gz instead.

@archibate archibate added the category:port-bug The issue is with a library, which is something the port should already support label Oct 17, 2022
@Thomas1664
Copy link
Contributor

Thomas1664 commented Oct 17, 2022

We're downloading Zlib from GitHub and not from Zlib's website anymore.
Please make sure you have installed the latest version of the vcpkg catalog by running git pull. This version already includes the patch for CVE-2022-37434.

@FrankXie05 FrankXie05 added category:question This issue is a question and removed category:port-bug The issue is with a library, which is something the port should already support labels Oct 17, 2022
@FrankXie05
Copy link
Contributor

@archibate Thanks for posting this issue, currently vcpkg supports zlib to download source code from github.
Please make sure you are using the latest vcpkg, please run command:

git clone https://github.com/microsoft/vcpkg
cd .\vcpkg\
.\bootstrap-vcpkg.bat
.\vcpkg.exe install zlib: zlib:x64-windows

vcpkg_from_github(

@FrankXie05
Copy link
Contributor

I think this issue has been resolved, please ping me if the problem persists and I will reopen it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

3 participants