diff options
| author | JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> | 2021-09-28 08:26:06 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-27 17:26:06 -0700 |
| commit | ee0584f05066a63073b516605091155ccd99c7d9 (patch) | |
| tree | 64f846196e45d728d684238723ae97335b17ec67 /ports/libssh | |
| parent | d49854f8a0a5f496557fb658b3751b7edd98c889 (diff) | |
| download | vcpkg-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
Diffstat (limited to 'ports/libssh')
| -rw-r--r-- | ports/libssh/0002-mingw_for_Android.patch | 13 | ||||
| -rw-r--r-- | ports/libssh/0003-create_symlink_unix_only.patch | 11 | ||||
| -rw-r--r-- | ports/libssh/portfile.cmake | 28 | ||||
| -rw-r--r-- | ports/libssh/vcpkg.json | 11 |
4 files changed, 33 insertions, 30 deletions
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": [ |
