-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[libcap] Failed to download from https://git.kernel.org/pub/scm/libs/libcap #38591
Comments
See #37851. Please temporarily use the patch workaround. diff --git a/ports/libcap/portfile.cmake b/ports/libcap/portfile.cmake
index f5e3830a1..fc9218935 100644
--- a/ports/libcap/portfile.cmake
+++ b/ports/libcap/portfile.cmake
@@ -1,11 +1,9 @@
-vcpkg_download_distfile(ARCHIVE
- URLS "https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-${VERSION}.tar.gz"
- FILENAME "libcap-${VERSION}.tar.gz"
- SHA512 b243ae403d45af2ff1204931b9e24c3b7f3e0c444f1ff2f3ed524c212b61a7ff1bc3c98df1855b2f0d300ebabf604b95440cdaddd666914ad60575e2e2f29fe8
-)
-
-vcpkg_extract_source_archive(SOURCE_PATH
- ARCHIVE "${ARCHIVE}"
+vcpkg_from_git(
+ OUT_SOURCE_PATH SOURCE_PATH
+ URL https://git.kernel.org/pub/scm/libs/libcap/libcap.git
+ FETCH_REF "libcap-${VERSION}"
+ REF 8bed80f9b54b7bd2a1ee1fdc2124a094733c9356
+ HEAD_REF "master"
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/configure" DESTINATION "${SOURCE_PATH}")
|
Hi @WangWeiLin-MV , thanks for your comment. Is there a specific procedure to apply that patch without having to add custom ports and all that jazz to my repo? We're not even depending on libcap ourselves, just want to install SDL2... |
@Arcnor This patch can applied by saving it as a file then |
Fix recurring problem with on-the-fly tarballs: microsoft#38591, microsoft#37948.
Operating system
Linux
Compiler
No response
Steps to reproduce the behavior
Install SDL2 with x11 & wayland features
Failure logs
Full log at https://productionresultssa10.blob.core.windows.net/actions-results/199cd38c-ee3a-4a30-96ac-c327197c125d/workflow-job-run-2a6e03da-9c06-5941-6460-ce81c601de8a/logs/job/job-logs.txt?rsct=text%2Fplain&se=2024-05-06T10%3A16%3A56Z&sig=9caX%2BbxSZjEqbna368NXi6hT2FtPS1pzQzITgFD2Ix4%3D&sp=r&spr=https&sr=b&st=2024-05-06T10%3A06%3A51Z&sv=2021-12-02
Additional context
It seems
libcap
is failing to download because git.kernel.org doesn't support tar.gz as a package format? I get that error when trying to download the file myself (Unsupported snapshot format: libcap-2.69.tar.gz
)The text was updated successfully, but these errors were encountered: