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

[3.21.12] build failure #41752

Open
alokrajbits opened this issue Oct 24, 2024 · 2 comments
Open

[3.21.12] build failure #41752

alokrajbits opened this issue Oct 24, 2024 · 2 comments
Assignees
Labels
category:question This issue is a question

Comments

@alokrajbits
Copy link

Operating system

Linux

Compiler

GCC

Steps to reproduce the behavior

change the version in the vcpkg/ports/protobuf.vcpkg.json to 3.21.12

./vcpkg install protobuf:x64-linux --overlay-ports=/path to vcpkg/ports/protobuf

Failure logs

[DEBUG] Failed to open: /mnt/d/SourceCode/vcpkg/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
[DEBUG] 1000: execute_process(curl --fail -L https://github.com/protocolbuffers/protobuf/archive/v3.21.12.tar.gz --create-dirs --output /mnt/d/SourceCode/vcpkg/vcpkg/downloads/protocolbuffers-protobuf-v3.21.12.tar.gz.51761.part)
[DEBUG] 1000: cmd_execute_and_stream_data() returned 0 after 1653567 us
[DEBUG] Trying to hash /mnt/d/SourceCode/vcpkg/vcpkg/downloads/protocolbuffers-protobuf-v3.21.12.tar.gz.51761.part
[DEBUG] /mnt/d/SourceCode/vcpkg/vcpkg/downloads/protocolbuffers-protobuf-v3.21.12.tar.gz.51761.part has hash 152f8441c325e808b942153c15e82fdb533d5273b50c25c28916ec568ada880f79242bb61ee332ac5fb0d20f21239ed6f8de02ef6256cc574b1fc354d002c6b0
error: Missing protocolbuffers-protobuf-v3.21.12.tar.gz and downloads are blocked by x-block-origin.
error: File does not have the expected hash:
url: https://github.com/protocolbuffers/protobuf/archive/v3.21.12.tar.gz
File: /mnt/d/SourceCode/vcpkg/vcpkg/downloads/protocolbuffers-protobuf-v3.21.12.tar.gz.51761.part
Expected hash: ce81add9d978a6b63d4205715eac5084e81a6753da1f6c6bad6493e60253215901bffc4a60d704a873333f2b9f94fd86cb7eb5b293035f2268c12692bd808bac
Actual hash: 152f8441c325e808b942153c15e82fdb533d5273b50c25c28916ec568ada880f79242bb61ee332ac5fb0d20f21239ed6f8de02ef6256cc574b1fc354d002c6b0
[DEBUG] /source/src/vcpkg/base/downloads.cpp(1030):

Additional context

Need to install 3.21.12 version of protobuf, not the latest one. Please suggest a fix.

@alokrajbits alokrajbits added the category:port-bug The issue is with a library, which is something the port should already support label Oct 24, 2024
@alokrajbits alokrajbits changed the title [<port name>] build failure [3.21.12] build failure Oct 24, 2024
@jimwang118 jimwang118 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 25, 2024
@jimwang118
Copy link
Contributor

If you change the version number in vcpkg.json, you also need to change the download hash value.

@alokrajbits
Copy link
Author

Can you please suggest where do I make this change?
I replaced the existing hash in the ports/protobuf/portfile.cmake with "expected hash", but it did not work.

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO protocolbuffers/protobuf
REF "v${VERSION}"
SHA512 ce81add9d978a6b63d4205715eac5084e81a6753da1f6c6bad6493e60253215901bffc4a60d704a873333f2b9f94fd86cb7eb5b293035f2268c12692bd808bac
HEAD_REF master
PATCHES

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

2 participants