Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2013 18:01:15 +0000 (UTC)
From:      "Jason E. Hale" <jhale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r329716 - head/finance/libofx/files
Message-ID:  <201310071801.r97I1FZZ064524@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhale
Date: Mon Oct  7 18:01:15 2013
New Revision: 329716
URL: http://svnweb.freebsd.org/changeset/ports/329716

Log:
  - Fix build with libc++ [1]
  - While here, rename patches so they are consistent with how
    "make makepatch" names them
  
  Submitted by:	rm (via email) [1]

Added:
  head/finance/libofx/files/patch-lib__Makefile.am   (contents, props changed)
  head/finance/libofx/files/patch-lib__ofx__preproc.cpp
     - copied unchanged from r329305, head/finance/libofx/files/patch-lib_ofx_preproc.cpp
  head/finance/libofx/files/patch-lib__ofx__utilities.cpp
     - copied unchanged from r329009, head/finance/libofx/files/patch-lib_ofx_utilities.cpp
  head/finance/libofx/files/patch-ofxconnect__ofxpartner.cpp
     - copied unchanged from r329009, head/finance/libofx/files/patch-ofxconnect_ofxpartner.cpp
Deleted:
  head/finance/libofx/files/patch-lib_ofx_preproc.cpp
  head/finance/libofx/files/patch-lib_ofx_utilities.cpp
  head/finance/libofx/files/patch-ofxconnect_ofxpartner.cpp

Added: head/finance/libofx/files/patch-lib__Makefile.am
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/finance/libofx/files/patch-lib__Makefile.am	Mon Oct  7 18:01:15 2013	(r329716)
@@ -0,0 +1,11 @@
+--- ./lib/Makefile.am.orig	2013-10-07 04:12:01.000000000 -0400
++++ ./lib/Makefile.am	2013-10-07 04:12:16.000000000 -0400
+@@ -45,7 +45,7 @@
+ 	-DMAKEFILE_DTD_PATH=\"${LIBOFX_DTD_DIR}\"
+ 
+ #libofx_la_LIBADD = @LIBOBJS@ ${OPENSPLIBS} -lstdc++
+-libofx_la_LIBADD = $(OPENSPLIBS) $(ICONV_LIBS) -lstdc++
++libofx_la_LIBADD = $(OPENSPLIBS) $(ICONV_LIBS)
+ libofx_la_LDFLAGS = -no-undefined -version-info @LIBOFX_SO_CURRENT@:@LIBOFX_SO_REVISION@:@LIBOFX_SO_AGE@
+ 
+ 

Copied: head/finance/libofx/files/patch-lib__ofx__preproc.cpp (from r329305, head/finance/libofx/files/patch-lib_ofx_preproc.cpp)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/finance/libofx/files/patch-lib__ofx__preproc.cpp	Mon Oct  7 18:01:15 2013	(r329716, copy of r329305, head/finance/libofx/files/patch-lib_ofx_preproc.cpp)
@@ -0,0 +1,11 @@
+--- ./lib/ofx_preproc.cpp.orig	2013-04-25 14:06:29.000000000 -0400
++++ ./lib/ofx_preproc.cpp	2013-10-04 06:27:25.000000000 -0400
+@@ -310,7 +310,7 @@
+             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(__FreeBSD__)
+             const char * inchar = (const char *)s_buffer.c_str();
+ #else
+             char * inchar = (char *)s_buffer.c_str();

Copied: head/finance/libofx/files/patch-lib__ofx__utilities.cpp (from r329009, head/finance/libofx/files/patch-lib_ofx_utilities.cpp)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/finance/libofx/files/patch-lib__ofx__utilities.cpp	Mon Oct  7 18:01:15 2013	(r329716, copy of r329009, head/finance/libofx/files/patch-lib_ofx_utilities.cpp)
@@ -0,0 +1,18 @@
+--- ./lib/ofx_utilities.cpp.orig	2011-04-18 11:51:21.000000000 -0400
++++ ./lib/ofx_utilities.cpp	2011-06-01 21:09:51.000000000 -0400
+@@ -115,9 +115,14 @@
+   char time_zone_specified = false;
+   string ofxdate_whole;
+   time_t temptime;
++  int daylight;
++  const struct tm* t;
++  
++  std::time(&temptime);
++  t = localtime(&temptime);
++  daylight = t->tm_isdst;
+ 
+   time.tm_isdst = daylight; // initialize dst setting
+-  std::time(&temptime);
+   local_offset = difftime(mktime(localtime(&temptime)), mktime(gmtime(&temptime))) + (3600 * daylight);
+ 
+   if (ofxdate.size() != 0)

Copied: head/finance/libofx/files/patch-ofxconnect__ofxpartner.cpp (from r329009, head/finance/libofx/files/patch-ofxconnect_ofxpartner.cpp)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/finance/libofx/files/patch-ofxconnect__ofxpartner.cpp	Mon Oct  7 18:01:15 2013	(r329716, copy of r329009, head/finance/libofx/files/patch-ofxconnect_ofxpartner.cpp)
@@ -0,0 +1,10 @@
+--- ofxconnect/ofxpartner.cpp.orig	2011-03-30 22:30:50.000000000 +0000
++++ ofxconnect/ofxpartner.cpp
+@@ -37,6 +37,7 @@
+ #include <vector>
+ #include <algorithm>
+ #include <string.h>
++#include <unistd.h>
+ 
+ using std::string;
+ using std::vector;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310071801.r97I1FZZ064524>