Skip to content

Commit

Permalink
[libcap] Update to 2.71 (#41852)
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt authored Nov 1, 2024
1 parent 6e90218 commit 4f746bc
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions ports/libcap/configure
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ BUILD_OPTIONS = \
"AR=$AR" \
"BUILD_CC=$CC" \
"CC=$CC" \
"OBJCOPY=$OBJCOPY" \
"RANLIB=$RANLIB" \
"lib=lib" \
"prefix=$prefix"
Expand Down
9 changes: 8 additions & 1 deletion ports/libcap/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ vcpkg_download_distfile(ARCHIVE
URLS "https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-${VERSION}.tar.xz"
"https://www.mirrorservice.org/sites/ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-${VERSION}.tar.xz"
FILENAME "libcap-${VERSION}.tar.xz"
SHA512 4e0bf0efeccb654c409afe9727b2b53c1d4da8190d7a0a9848fc52550ff3e13502add3eacde04a68a5b7bec09e91df487f64c5746ba987f873236a9e53b3d4e8
SHA512 59bb6781d96776595ad3df890f4e5188380634eabbb6128f3a5307946b01cf3bd19dee8a29d3e501de1d9e1c6ed0092c4cd5adc91da227a1260c1f4356cc0bf3
)

vcpkg_extract_source_archive(SOURCE_PATH
Expand All @@ -18,6 +18,13 @@ if(VCPKG_CROSSCOMPILING)
file(TOUCH "${SOURCE_PATH}/libcap/cap_names.h")
endif()

block(SCOPE_FOR VARIABLES)
set(VCPKG_CMAKE_CONFIGURE_OPTIONS "-DVCPKG_VARS_TO_CHECK=CMAKE_OBJCOPY")
vcpkg_cmake_get_vars(cmake_vars_file)
include("${cmake_vars_file}")
set(ENV{OBJCOPY} "${VCPKG_DETECTED_CMAKE_OBJCOPY}")
endblock()

vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
COPY_SOURCE
Expand Down
6 changes: 5 additions & 1 deletion ports/libcap/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "libcap",
"version": "2.70",
"version": "2.71",
"description": "A library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities.",
"homepage": "https://sites.google.com/site/fullycapable/",
"license": "BSD-3-Clause OR GPL-2.0-only",
Expand All @@ -9,6 +9,10 @@
{
"name": "libcap",
"host": true
},
{
"name": "vcpkg-cmake-get-vars",
"host": true
}
]
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4337,7 +4337,7 @@
"port-version": 4
},
"libcap": {
"baseline": "2.70",
"baseline": "2.71",
"port-version": 0
},
"libcbor": {
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libcap.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "624965e04fa91928fc26f8a061527d30ed58bf98",
"version": "2.71",
"port-version": 0
},
{
"git-tree": "c7a0cc03982a375c59205880aea11305d37464c0",
"version": "2.70",
Expand Down

0 comments on commit 4f746bc

Please sign in to comment.