Coder Social home page Coder Social logo

Comments (3)

WangWeiLin-MV avatar WangWeiLin-MV commented on June 28, 2024

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}")

from vcpkg.

Arcnor avatar Arcnor commented on June 28, 2024

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...

from vcpkg.

WangWeiLin-MV avatar WangWeiLin-MV commented on June 28, 2024

@Arcnor This patch can applied by saving it as a file then git apply _saved_filename_, then add option to vcpkg install with --overlay-ports=ports/libcap

from vcpkg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.