diff options
author | B. Stack <bgstack15@gmail.com> | 2024-02-09 21:09:54 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2024-02-09 21:09:54 -0500 |
commit | d339c145870a86c37509debe5d8fa145e192f390 (patch) | |
tree | 8cd5fe55989a1164da266840644782e3632afd38 /freefilesync/debian/patches/libssh2_relax_dep.patch | |
parent | nm: remove 2 obsolete patches (diff) | |
download | stackrpms-d339c145870a86c37509debe5d8fa145e192f390.tar.gz stackrpms-d339c145870a86c37509debe5d8fa145e192f390.tar.bz2 stackrpms-d339c145870a86c37509debe5d8fa145e192f390.zip |
ffs: major refresh on top of bastif dpkg
Diffstat (limited to 'freefilesync/debian/patches/libssh2_relax_dep.patch')
-rw-r--r-- | freefilesync/debian/patches/libssh2_relax_dep.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/freefilesync/debian/patches/libssh2_relax_dep.patch b/freefilesync/debian/patches/libssh2_relax_dep.patch new file mode 100644 index 0000000..3d1249a --- /dev/null +++ b/freefilesync/debian/patches/libssh2_relax_dep.patch @@ -0,0 +1,27 @@ +Description: Allow one to build with older version of libssh2 + Don't fail on missing constants when building with older versions of libssh2 +Author: Fab Stz <fabstz-it@yahoo.fr> +Origin: self +Forwarded: not-needed +Last-Update: 2023-06-20 + +--- a/libssh2/libssh2_wrap.h ++++ b/libssh2/libssh2_wrap.h +@@ -171,11 +171,17 @@ + ZEN_CHECK_CASE_FOR_CONSTANT(LIBSSH2_ERROR_ENCRYPT); + ZEN_CHECK_CASE_FOR_CONSTANT(LIBSSH2_ERROR_BAD_SOCKET); + ZEN_CHECK_CASE_FOR_CONSTANT(LIBSSH2_ERROR_KNOWN_HOSTS); ++#if LIBSSH2_VERSION_NUM >= 0x010900 // 1.9.0 + ZEN_CHECK_CASE_FOR_CONSTANT(LIBSSH2_ERROR_CHANNEL_WINDOW_FULL); + ZEN_CHECK_CASE_FOR_CONSTANT(LIBSSH2_ERROR_KEYFILE_AUTH_FAILED); ++#endif ++#if LIBSSH2_VERSION_NUM >= 0x010A00 // 1.10.0 + ZEN_CHECK_CASE_FOR_CONSTANT(LIBSSH2_ERROR_RANDGEN); ++#endif ++#if LIBSSH2_VERSION_NUM >= 0x010B00 // 1.11.0 + ZEN_CHECK_CASE_FOR_CONSTANT(LIBSSH2_ERROR_MISSING_USERAUTH_BANNER); + ZEN_CHECK_CASE_FOR_CONSTANT(LIBSSH2_ERROR_ALGO_UNSUPPORTED); ++#endif + + default: + return replaceCpy<std::wstring>(L"SSH status %x", L"%x", numberTo<std::wstring>(sc)); |