pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/finance/libofx libofx: Fix build on NetBSD 9.99.17



details:   https://anonhg.NetBSD.org/pkgsrc/rev/770560df1d62
branches:  trunk
changeset: 416423:770560df1d62
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Fri Oct 25 09:23:37 2019 +0000

description:
libofx: Fix build on NetBSD 9.99.17

Adapt the local patch for the POSIX iconv(3) API change in new NetBSD.

diffstat:

 finance/libofx/distinfo                           |   4 +-
 finance/libofx/patches/patch-lib_ofx__preproc.cpp |  28 ++++++++++++++++++++--
 2 files changed, 27 insertions(+), 5 deletions(-)

diffs (59 lines):

diff -r dde7b87772a8 -r 770560df1d62 finance/libofx/distinfo
--- a/finance/libofx/distinfo   Fri Oct 25 09:21:07 2019 +0000
+++ b/finance/libofx/distinfo   Fri Oct 25 09:23:37 2019 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.14 2018/01/07 20:59:40 joerg Exp $
+$NetBSD: distinfo,v 1.15 2019/10/25 09:23:37 kamil Exp $
 
 SHA1 (libofx-0.9.10.tar.gz) = 33f394c963c087217cb6c508af842d4844bc0823
 RMD160 (libofx-0.9.10.tar.gz) = 928069129cf945dc85521907325977a36dbeae7f
 SHA512 (libofx-0.9.10.tar.gz) = 061110702034dbbb9be3adaebe6236a4b0842169d8ee7671bad6c93960b380cbb33953bdf080c8b14f45930b0c817fcfe1bf71f15d9872dd2535a1415f5be895
 Size (libofx-0.9.10.tar.gz) = 1433837 bytes
 SHA1 (patch-lib_Makefile.in) = 512cf3dbaa257205ffff18f3953a08eb81d015f4
-SHA1 (patch-lib_ofx__preproc.cpp) = 355bc1db8bcdd723ef7534063a673348e3385163
+SHA1 (patch-lib_ofx__preproc.cpp) = 98ad35ccbd9b36ed486c6180287135b402e36558
diff -r dde7b87772a8 -r 770560df1d62 finance/libofx/patches/patch-lib_ofx__preproc.cpp
--- a/finance/libofx/patches/patch-lib_ofx__preproc.cpp Fri Oct 25 09:21:07 2019 +0000
+++ b/finance/libofx/patches/patch-lib_ofx__preproc.cpp Fri Oct 25 09:23:37 2019 +0000
@@ -1,16 +1,38 @@
-$NetBSD: patch-lib_ofx__preproc.cpp,v 1.2 2014/12/30 13:20:29 wiz Exp $
+$NetBSD: patch-lib_ofx__preproc.cpp,v 1.3 2019/10/25 09:23:37 kamil Exp $
 
 Fix build on NetBSD where iconv has a different prototype.
 http://sourceforge.net/p/libofx/bugs/44/
 
 --- lib/ofx_preproc.cpp.orig   2014-09-12 19:26:30.000000000 +0000
 +++ lib/ofx_preproc.cpp
-@@ -310,7 +310,7 @@ int ofx_proc_file(LibofxContextPtr ctx, 
+@@ -34,6 +34,15 @@
+ #include <iconv.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 OS_WIN32
+ # define DIRSEP "\\"
+ #else
+@@ -310,7 +319,7 @@ int ofx_proc_file(LibofxContextPtr ctx, 
              size_t outbytesleft = inbytesleft * 2 - 1;
              iconv_buffer = (char*) malloc (inbytesleft * 2);
              memset(iconv_buffer, 0, inbytesleft * 2);
 -#if defined(OS_WIN32) || defined(__sun)
-+#if defined(OS_WIN32) || defined(__sun) || defined(__NetBSD__)
++#if defined(OS_WIN32) || defined(__sun) || (defined(__NetBSD__) && !NETBSD_POSIX_ICONV)
              const char * inchar = (const char *)s_buffer.c_str();
  #else
              char * inchar = (char *)s_buffer.c_str();
+@@ -655,5 +664,3 @@ std::string find_dtd(LibofxContextPtr ct
+   message_out(ERROR, "find_dtd():Unable to find the DTD named " + dtd_filename);
+   return "";
+ }
+-
+-



Home | Main Index | Thread Index | Old Index