pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/ocsync
Module Name: pkgsrc
Committed By: kamil
Date: Thu Oct 24 22:28:46 UTC 2019
Modified Files:
pkgsrc/net/ocsync: distinfo
pkgsrc/net/ocsync/patches: patch-src_std_c__string.c
Log Message:
ocsync: Fix build on NetBSD 9.99.17
Adapt the local patch for the POSIX iconv(3) API change in new NetBSD.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/net/ocsync/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/net/ocsync/patches/patch-src_std_c__string.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/ocsync/distinfo
diff -u pkgsrc/net/ocsync/distinfo:1.3 pkgsrc/net/ocsync/distinfo:1.4
--- pkgsrc/net/ocsync/distinfo:1.3 Sat Aug 19 00:23:36 2017
+++ pkgsrc/net/ocsync/distinfo Thu Oct 24 22:28:46 2019
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2017/08/19 00:23:36 jlam Exp $
+$NetBSD: distinfo,v 1.4 2019/10/24 22:28:46 kamil Exp $
SHA1 (ocsync-0.90.4.tar.bz2) = d53a64177addc9fcdd831a0a78786eca25b2588a
RMD160 (ocsync-0.90.4.tar.bz2) = b6208a9c0ae452f16f0ced32c1b5635df06d3b99
@@ -6,4 +6,4 @@ SHA512 (ocsync-0.90.4.tar.bz2) = 74bf6b0
Size (ocsync-0.90.4.tar.bz2) = 4630698 bytes
SHA1 (patch-cmake_Modules_DefineInstallationPaths.cmake) = 1ce32ae21fe331d1ebf5bd5a5941e405a7eb4b06
SHA1 (patch-config_CMakeLists.txt) = b387f38a79d9f85e3f67060a2cb689bb13dd1c28
-SHA1 (patch-src_std_c__string.c) = 65927e8f7c222edfde66136a331ae81b0f4fcd4c
+SHA1 (patch-src_std_c__string.c) = 4f94ae5559fd0c19b11f3bcd751b5de89ad615a4
Index: pkgsrc/net/ocsync/patches/patch-src_std_c__string.c
diff -u pkgsrc/net/ocsync/patches/patch-src_std_c__string.c:1.1 pkgsrc/net/ocsync/patches/patch-src_std_c__string.c:1.2
--- pkgsrc/net/ocsync/patches/patch-src_std_c__string.c:1.1 Fri Nov 22 12:01:13 2013
+++ pkgsrc/net/ocsync/patches/patch-src_std_c__string.c Thu Oct 24 22:28:46 2019
@@ -1,17 +1,33 @@
-$NetBSD: patch-src_std_c__string.c,v 1.1 2013/11/22 12:01:13 ryoon Exp $
+$NetBSD: patch-src_std_c__string.c,v 1.2 2019/10/24 22:28:46 kamil Exp $
* For NetBSD iconv(3), this should be fixed for GNU iconv and NetBSD case.
--- src/std/c_string.c.orig 2013-10-18 13:11:09.000000000 +0000
+++ src/std/c_string.c
-@@ -83,7 +83,11 @@ enum iconv_direction { iconv_from_native
+@@ -40,6 +40,15 @@
+ #include <windows.h>
+ #endif
+
++#if defined(__NetBSD__)
++#include <sys/param.h>
++#if __NetBSD_Prereq__(9,99,17)
++#define NETBSD_POSIX_ICONV 1
++#else
++#define NETBSD_POSIX_ICONV 0
++#endif
++#endif
++
+ #ifdef WITH_ICONV
+ #include <iconv.h>
+
+@@ -83,7 +92,11 @@ enum iconv_direction { iconv_from_native
static char *c_iconv(const char* str, enum iconv_direction dir)
{
-+#if !defined(__NetBSD__)
- char *in = (char*)str;
-+#else
++#if defined(__NetBSD__) && !NETBSD_POSIX_ICONV
+ const char *in = (char*)str;
++#else
+ char *in = (char*)str;
+#endif
size_t size;
size_t outsize;
Home |
Main Index |
Thread Index |
Old Index