pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/ocsync ocsync: Fix building with modern compilers ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/dac0aaaa0cd8
branches: trunk
changeset: 444807:dac0aaaa0cd8
user: nia <nia%pkgsrc.org@localhost>
date: Wed Jan 13 09:40:40 2021 +0000
description:
ocsync: Fix building with modern compilers and modern libssh.
diffstat:
net/ocsync/distinfo | 5 ++-
net/ocsync/patches/patch-cmake_Modules_FindLibSSH.cmake | 34 +++++++++++++++++
net/ocsync/patches/patch-src_csync__log.h | 15 +++++++
net/ocsync/patches/patch-src_httpbf_src_httpbf.c | 15 +++++++
4 files changed, 68 insertions(+), 1 deletions(-)
diffs (93 lines):
diff -r da4ccf8b2373 -r dac0aaaa0cd8 net/ocsync/distinfo
--- a/net/ocsync/distinfo Wed Jan 13 09:38:02 2021 +0000
+++ b/net/ocsync/distinfo Wed Jan 13 09:40:40 2021 +0000
@@ -1,9 +1,12 @@
-$NetBSD: distinfo,v 1.4 2019/10/24 22:28:46 kamil Exp $
+$NetBSD: distinfo,v 1.5 2021/01/13 09:40:40 nia Exp $
SHA1 (ocsync-0.90.4.tar.bz2) = d53a64177addc9fcdd831a0a78786eca25b2588a
RMD160 (ocsync-0.90.4.tar.bz2) = b6208a9c0ae452f16f0ced32c1b5635df06d3b99
SHA512 (ocsync-0.90.4.tar.bz2) = 74bf6b083ae4d4c09e3915d777d916a04ebb19aefb21a5a14a49e2079e02c5c60f1f274aa0cab5c227147883eaf1a5f91b6c0546b818c960cc3575cdcdd93d57
Size (ocsync-0.90.4.tar.bz2) = 4630698 bytes
SHA1 (patch-cmake_Modules_DefineInstallationPaths.cmake) = 1ce32ae21fe331d1ebf5bd5a5941e405a7eb4b06
+SHA1 (patch-cmake_Modules_FindLibSSH.cmake) = bf6a8cfaaa559b75636a6e75fa562c6f19a7d411
SHA1 (patch-config_CMakeLists.txt) = b387f38a79d9f85e3f67060a2cb689bb13dd1c28
+SHA1 (patch-src_csync__log.h) = 734978a27fec23b4d84e196c651601959436f188
+SHA1 (patch-src_httpbf_src_httpbf.c) = 79c9ab6e2fb7855db25f7d50860851a5061c5bea
SHA1 (patch-src_std_c__string.c) = 4f94ae5559fd0c19b11f3bcd751b5de89ad615a4
diff -r da4ccf8b2373 -r dac0aaaa0cd8 net/ocsync/patches/patch-cmake_Modules_FindLibSSH.cmake
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ocsync/patches/patch-cmake_Modules_FindLibSSH.cmake Wed Jan 13 09:40:40 2021 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-cmake_Modules_FindLibSSH.cmake,v 1.1 2021/01/13 09:40:40 nia Exp $
+
+Fix detecting the libssh version in newer releases.
+
+--- cmake/Modules/FindLibSSH.cmake.orig 2013-10-18 13:11:09.000000000 +0000
++++ cmake/Modules/FindLibSSH.cmake
+@@ -58,15 +58,15 @@ else (LIBSSH_LIBRARIES AND LIBSSH_INCLUD
+ )
+
+ if (LibSSH_FIND_VERSION)
+- file(STRINGS ${LIBSSH_INCLUDE_DIR}/libssh/libssh.h LIBSSH_VERSION_MAJOR
++ file(STRINGS ${LIBSSH_INCLUDE_DIR}/libssh/libssh_version.h LIBSSH_VERSION_MAJOR
+ REGEX "#define[ ]+LIBSSH_VERSION_MAJOR[ ]+[0-9]+")
+ # Older versions of libssh like libssh-0.2 have LIBSSH_VERSION but not LIBSSH_VERSION_MAJOR
+ if (LIBSSH_VERSION_MAJOR)
+ string(REGEX MATCH "[0-9]+" LIBSSH_VERSION_MAJOR ${LIBSSH_VERSION_MAJOR})
+- file(STRINGS ${LIBSSH_INCLUDE_DIR}/libssh/libssh.h LIBSSH_VERSION_MINOR
++ file(STRINGS ${LIBSSH_INCLUDE_DIR}/libssh/libssh_version.h LIBSSH_VERSION_MINOR
+ REGEX "#define[ ]+LIBSSH_VERSION_MINOR[ ]+[0-9]+")
+ string(REGEX MATCH "[0-9]+" LIBSSH_VERSION_MINOR ${LIBSSH_VERSION_MINOR})
+- file(STRINGS ${LIBSSH_INCLUDE_DIR}/libssh/libssh.h LIBSSH_VERSION_PATCH
++ file(STRINGS ${LIBSSH_INCLUDE_DIR}/libssh/libssh_version.h LIBSSH_VERSION_PATCH
+ REGEX "#define[ ]+LIBSSH_VERSION_MICRO[ ]+[0-9]+")
+ string(REGEX MATCH "[0-9]+" LIBSSH_VERSION_PATCH ${LIBSSH_VERSION_PATCH})
+
+@@ -75,7 +75,7 @@ else (LIBSSH_LIBRARIES AND LIBSSH_INCLUD
+ include(FindPackageVersionCheck)
+ find_package_version_check(LibSSH DEFAULT_MSG)
+ else (LIBSSH_VERSION_MAJOR)
+- message(STATUS "LIBSSH_VERSION_MAJOR not found in ${LIBSSH_INCLUDE_DIR}/libssh/libssh.h, assuming libssh is too old")
++ message(STATUS "LIBSSH_VERSION_MAJOR not found in ${LIBSSH_INCLUDE_DIR}/libssh/libssh_version.h, assuming libssh is too old")
+ set(LIBSSH_FOUND FALSE)
+ endif (LIBSSH_VERSION_MAJOR)
+ endif (LibSSH_FIND_VERSION)
diff -r da4ccf8b2373 -r dac0aaaa0cd8 net/ocsync/patches/patch-src_csync__log.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ocsync/patches/patch-src_csync__log.h Wed Jan 13 09:40:40 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_csync__log.h,v 1.1 2021/01/13 09:40:40 nia Exp $
+
+Fix build with gcc>=5, use c99-compliant identifier.
+
+--- src/csync_log.h.orig 2013-10-18 13:11:09.000000000 +0000
++++ src/csync_log.h
+@@ -61,7 +61,7 @@ enum csync_log_priority_e {
+ };
+
+ #define CSYNC_LOG(priority, ...) \
+- csync_log(ctx, priority, __FUNCTION__, __VA_ARGS__)
++ csync_log(ctx, priority, __func__, __VA_ARGS__)
+
+ void csync_log(CSYNC *ctx,
+ int verbosity,
diff -r da4ccf8b2373 -r dac0aaaa0cd8 net/ocsync/patches/patch-src_httpbf_src_httpbf.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ocsync/patches/patch-src_httpbf_src_httpbf.c Wed Jan 13 09:40:40 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_httpbf_src_httpbf.c,v 1.1 2021/01/13 09:40:40 nia Exp $
+
+Fix build with gcc>=5, use c99-compliant identifier.
+
+--- src/httpbf/src/httpbf.c.orig 2013-10-18 13:11:09.000000000 +0000
++++ src/httpbf/src/httpbf.c
+@@ -42,7 +42,7 @@
+ #define DEBUG_HBF(...) { if(transfer->log_cb) { \
+ char buf[1024]; \
+ snprintf(buf, 1024, __VA_ARGS__); \
+- transfer->log_cb(__FUNCTION__, buf); \
++ transfer->log_cb(__func__, buf); \
+ } }
+
+ // #endif
Home |
Main Index |
Thread Index |
Old Index