aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>2021-09-28 08:26:06 +0800
committerGitHub <noreply@github.com>2021-09-27 17:26:06 -0700
commitee0584f05066a63073b516605091155ccd99c7d9 (patch)
tree64f846196e45d728d684238723ae97335b17ec67
parentd49854f8a0a5f496557fb658b3751b7edd98c889 (diff)
downloadvcpkg-ee0584f05066a63073b516605091155ccd99c7d9.tar.gz
vcpkg-ee0584f05066a63073b516605091155ccd99c7d9.zip
[libssh/libressl] update to the latest version (#20067)
* [libssh/libssh2/libssh2] update to the latest version * update version * update patches formating * update version * update hash512 * update version' * fix CI build error * update version * update vcpkg.json and portifile.cmake * update version * delete hash * update version * revert libssh2 * update version * revert libssh2 * update portfile.cmake * update version
-rw-r--r--ports/libressl/portfile.cmake19
-rw-r--r--ports/libressl/vcpkg.json12
-rw-r--r--ports/libssh/0002-mingw_for_Android.patch13
-rw-r--r--ports/libssh/0003-create_symlink_unix_only.patch11
-rw-r--r--ports/libssh/portfile.cmake28
-rw-r--r--ports/libssh/vcpkg.json11
-rw-r--r--versions/baseline.json6
-rw-r--r--versions/l-/libressl.json5
-rw-r--r--versions/l-/libssh.json5
9 files changed, 63 insertions, 47 deletions
diff --git a/ports/libressl/portfile.cmake b/ports/libressl/portfile.cmake
index 7483e02c8..32ca4d767 100644
--- a/ports/libressl/portfile.cmake
+++ b/ports/libressl/portfile.cmake
@@ -6,8 +6,8 @@ endif()
vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "uwp")
-set(LIBRESSL_VERSION 3.3.3)
-set(LIBRESSL_HASH 2d0b5f4cfe37d573bc64d5967abb77f536dbe581fbad9637d925332bcdfd185fe6810335b2af80a89f92d7e6edaa8ea3ba2492c60a117e47ea1b2d6aacf01f0f)
+set(LIBRESSL_VERSION 3.3.4)
+set(LIBRESSL_HASH 11defdde8169d3653c24e149e698ffc5a8ead5ac0808111d1986cb11ef72e9912c463d4891d4635877021e73a8a045dbdbe5e83ec785a59150f170d2ca2031de)
vcpkg_download_distfile(
LIBRESSL_SOURCE_ARCHIVE
@@ -30,9 +30,8 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
"tools" LIBRESSL_APPS
)
-vcpkg_configure_cmake(
- SOURCE_PATH ${SOURCE_PATH}
- PREFER_NINJA
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
-DLIBRESSL_TESTS=OFF
@@ -40,16 +39,10 @@ vcpkg_configure_cmake(
-DLIBRESSL_APPS=OFF
)
-vcpkg_install_cmake()
+vcpkg_cmake_install()
if("tools" IN_LIST FEATURES)
- if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
- set(EXECUTABLE_SUFFIX .exe)
- endif()
- file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/openssl")
- file(RENAME "${CURRENT_PACKAGES_DIR}/bin/openssl${EXECUTABLE_SUFFIX}" "${CURRENT_PACKAGES_DIR}/tools/openssl/openssl${EXECUTABLE_SUFFIX}")
- file(RENAME "${CURRENT_PACKAGES_DIR}/bin/ocspcheck${EXECUTABLE_SUFFIX}" "${CURRENT_PACKAGES_DIR}/tools/openssl/ocspcheck${EXECUTABLE_SUFFIX}")
- vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/openssl")
+ vcpkg_copy_tools(TOOL_NAMES ocspcheck openssl DESTINATION "${CURRENT_PACKAGES_DIR}/tools/openssl" AUTO_CLEAN)
endif()
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
diff --git a/ports/libressl/vcpkg.json b/ports/libressl/vcpkg.json
index 59c18243c..ff08a3b58 100644
--- a/ports/libressl/vcpkg.json
+++ b/ports/libressl/vcpkg.json
@@ -1,8 +1,18 @@
{
"name": "libressl",
- "version": "3.3.3",
+ "version": "3.3.4",
"description": "LibreSSL is a version of the TLS/crypto stack forked from OpenSSL in 2014, with goals of modernizing the codebase, improving security, and applying best practice development processes.",
"supports": "!(uwp | arm)",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ],
"features": {
"tools": {
"description": "Build openssl and ocspcheck executables"
diff --git a/ports/libssh/0002-mingw_for_Android.patch b/ports/libssh/0002-mingw_for_Android.patch
index 973f6eafa..963eb6f61 100644
--- a/ports/libssh/0002-mingw_for_Android.patch
+++ b/ports/libssh/0002-mingw_for_Android.patch
@@ -1,16 +1,13 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
-index ccf5a33..8e88494 100644
+index a576cf7..1f6a048 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
-@@ -361,9 +361,9 @@ if (WITH_VISIBILITY_HIDDEN)
- set_target_properties(ssh PROPERTIES COMPILE_FLAGS "-fvisibility=hidden")
+@@ -359,7 +359,7 @@ if (WITH_VISIBILITY_HIDDEN)
+ set_target_properties(ssh PROPERTIES C_VISIBILITY_PRESET hidden)
endif (WITH_VISIBILITY_HIDDEN)
-if (MINGW)
+if (MINGW AND NOT ANDROID)
- set_target_properties(ssh PROPERTIES LINK_FLAGS "-Wl,--enable-stdcall-fixup")
-- set_target_properties(ssh PROPERTIES COMPILE_FLAGS "-D_POSIX_SOURCE")
-+ set_property(TARGET ssh APPEND PROPERTY COMPILE_FLAGS "-D_POSIX_SOURCE")
+ target_link_libraries(ssh PRIVATE "-Wl,--enable-stdcall-fixup")
+ target_compile_definitions(ssh PRIVATE "_POSIX_SOURCE")
endif ()
-
-
diff --git a/ports/libssh/0003-create_symlink_unix_only.patch b/ports/libssh/0003-create_symlink_unix_only.patch
index 140d7e1c8..20b2b6462 100644
--- a/ports/libssh/0003-create_symlink_unix_only.patch
+++ b/ports/libssh/0003-create_symlink_unix_only.patch
@@ -1,16 +1,17 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 1f5b0bf..6559468 100644
+index 53e6bd5..51d76c5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -206,9 +206,11 @@ endif (WITH_SYMBOL_VERSIONING AND ABIMAP_FOUND)
- add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source DEPENDS ${_SYMBOL_TARGET})
+@@ -231,10 +231,11 @@ endif (WITH_SYMBOL_VERSIONING AND ABIMAP_FOUND)
+ add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source DEPENDS ${_SYMBOL_TARGET} VERBATIM)
# Link compile database for clangd
+if(UNIX)
- execute_process(COMMAND cmake -E create_symlink
+ execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
"${CMAKE_BINARY_DIR}/compile_commands.json"
"${CMAKE_SOURCE_DIR}/compile_commands.json")
+-
+endif()
-
message(STATUS "********************************************")
message(STATUS "********** ${PROJECT_NAME} build options : **********")
+
diff --git a/ports/libssh/portfile.cmake b/ports/libssh/portfile.cmake
index c15cc0a9c..3cd1ea915 100644
--- a/ports/libssh/portfile.cmake
+++ b/ports/libssh/portfile.cmake
@@ -3,8 +3,7 @@ vcpkg_fail_port_install(ON_TARGET "UWP")
vcpkg_from_git(
OUT_SOURCE_PATH SOURCE_PATH
URL https://git.libssh.org/projects/libssh.git
- REF 9c4af47965d284b2de26407bcd80473aba4ee4c9 # REFERENCE VERSION 0.9.5
- SHA512 64e692a0bfa7f73585ea7b7b8b1d4c9a7f9be59565bfd4de32ca8cd9db121f87e7ad51f5c80269fbd99545af34dcf1894374ed8a6d6c1ac5f8601c026572ac18
+ REF 47fd6e56c1058dca54afee1638c11fb6ec41911d # REFERENCE VERSION 0.9.6
PATCHES
0001-export-pkgconfig-file.patch
0002-mingw_for_Android.patch
@@ -13,8 +12,8 @@ vcpkg_from_git(
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
- mbedtls WITH_MBEDTLS
- zlib WITH_ZLIB
+ mbedtls WITH_MBEDTLS
+ zlib WITH_ZLIB
)
if (VCPKG_TARGET_IS_ANDROID)
@@ -23,9 +22,8 @@ if (VCPKG_TARGET_IS_ANDROID)
)
endif ()
-vcpkg_configure_cmake(
- SOURCE_PATH ${SOURCE_PATH}
- PREFER_NINJA
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${EXTRA_ARGS}
${FEATURE_OPTIONS}
@@ -36,8 +34,8 @@ vcpkg_configure_cmake(
-DWITH_NACL=OFF
-DWITH_GSSAPI=OFF)
-vcpkg_install_cmake()
-vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
vcpkg_copy_pdbs()
#Fixup pthread naming
if(NOT VCPKG_TARGET_IS_MINGW AND VCPKG_TARGET_IS_WINDOWS)
@@ -49,9 +47,9 @@ endif()
vcpkg_fixup_pkgconfig()
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
- file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
vcpkg_replace_string(
- ${CURRENT_PACKAGES_DIR}/include/libssh/libssh.h
+ "${CURRENT_PACKAGES_DIR}/include/libssh/libssh.h"
"#ifdef LIBSSH_STATIC"
"#if 1"
)
@@ -59,12 +57,12 @@ endif()
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_replace_string(
- ${CURRENT_PACKAGES_DIR}/share/libssh/libssh-config.cmake
+ "${CURRENT_PACKAGES_DIR}/share/libssh/libssh-config.cmake"
".dll"
".lib"
)
endif()
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
-file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
-file(INSTALL ${CURRENT_PORT_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/ports/libssh/vcpkg.json b/ports/libssh/vcpkg.json
index 47669c5a2..28a190f64 100644
--- a/ports/libssh/vcpkg.json
+++ b/ports/libssh/vcpkg.json
@@ -1,7 +1,6 @@
{
"name": "libssh",
- "version-string": "0.9.5",
- "port-version": 6,
+ "version": "0.9.6",
"description": "libssh is a multiplatform C library implementing the SSHv2 protocol on client and server side",
"homepage": "https://www.libssh.org/",
"supports": "!(uwp | arm)",
@@ -13,6 +12,14 @@
"mbedtls"
],
"platform": "android"
+ },
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
}
],
"default-features": [
diff --git a/versions/baseline.json b/versions/baseline.json
index 723981e5f..fbed5d3d6 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -3713,7 +3713,7 @@
"port-version": 1
},
"libressl": {
- "baseline": "3.3.3",
+ "baseline": "3.3.4",
"port-version": 0
},
"librsvg": {
@@ -3801,8 +3801,8 @@
"port-version": 1
},
"libssh": {
- "baseline": "0.9.5",
- "port-version": 6
+ "baseline": "0.9.6",
+ "port-version": 0
},
"libssh2": {
"baseline": "1.9.0",
diff --git a/versions/l-/libressl.json b/versions/l-/libressl.json
index c8d282100..0ba04b1e1 100644
--- a/versions/l-/libressl.json
+++ b/versions/l-/libressl.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "2dcc81c2e764c5f32d9c35280ab9ae06fda622c3",
+ "version": "3.3.4",
+ "port-version": 0
+ },
+ {
"git-tree": "24a18d6ed79f2b8c4c01c5201998981b2d831a1a",
"version": "3.3.3",
"port-version": 0
diff --git a/versions/l-/libssh.json b/versions/l-/libssh.json
index 2de41c959..e9fb5170c 100644
--- a/versions/l-/libssh.json
+++ b/versions/l-/libssh.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "02a95a0ab1a26e3395173bc59e9f041f23b7f5c9",
+ "version": "0.9.6",
+ "port-version": 0
+ },
+ {
"git-tree": "0eb17d68736a224ca8ce341b1b84bbae2f2f43a5",
"version-string": "0.9.5",
"port-version": 6