NetBSD Problem Report #43330

From gary@duzan.org  Wed May 19 23:30:30 2010
Return-Path: <gary@duzan.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 051F263B873
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 19 May 2010 23:30:30 +0000 (UTC)
Message-Id: <20100519233028.C45287C1033@brain.localdomain>
Date: Wed, 19 May 2010 19:30:28 -0400 (EDT)
From: gary@duzan.org
Reply-To: gary@duzan.org
To: gnats-bugs@gnats.NetBSD.org
Subject: Upgrade finance/libofx to 0.9.1
X-Send-Pr-Version: 3.95

>Number:         43330
>Category:       pkg
>Synopsis:       Upgrade finance/libofx to 0.9.1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed May 19 23:35:00 +0000 2010
>Closed-Date:    Thu May 20 06:55:18 +0000 2010
>Last-Modified:  Thu May 20 07:05:10 +0000 2010
>Originator:     Gary Duzan
>Release:        NetBSD 5.99.29
>Organization:

>Environment:
System: NetBSD brain 5.99.29 NetBSD 5.99.29 (GENERIC) #3: Sun May 2 10:54:14 EDT 2010 gary@brain:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	Upgrade finance/libofx to 0.9.1. The latest kmymoney
	(available in wip) wants it.
>How-To-Repeat:
	Just build it.
>Fix:
	Patch included. The iconv change is an educated guess, but
	Linux seems to be the exception.

Index: Makefile
===================================================================
RCS file: /usr2/netbsd-cvs/pkgsrc/finance/libofx/Makefile,v
retrieving revision 1.10
diff -b -u -p -r1.10 Makefile
--- Makefile	17 Jan 2010 12:02:16 -0000	1.10
+++ Makefile	18 May 2010 23:13:01 -0000
@@ -1,8 +1,7 @@
 # $NetBSD: Makefile,v 1.10 2010/01/17 12:02:16 wiz Exp $
 #

-DISTNAME=	libofx-0.8.3
-PKGREVISION=	4
+DISTNAME=	libofx-0.9.1
 CATEGORIES=	finance devel
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=libofx/}

Index: distinfo
===================================================================
RCS file: /usr2/netbsd-cvs/pkgsrc/finance/libofx/distinfo,v
retrieving revision 1.6
diff -b -u -p -r1.6 distinfo
--- distinfo	5 Sep 2007 16:42:16 -0000	1.6
+++ distinfo	18 May 2010 23:13:01 -0000
@@ -1,7 +1,7 @@
 $NetBSD: distinfo,v 1.6 2007/09/05 16:42:16 drochner Exp $

-SHA1 (libofx-0.8.3.tar.gz) = 0fa22f0535c1f50d4b9056f6f86d1429f1c8485f
-RMD160 (libofx-0.8.3.tar.gz) = a5c9acd6af4ce252d5a0941c82436af72961cd7c
-Size (libofx-0.8.3.tar.gz) = 971250 bytes
-SHA1 (patch-aa) = 639e3a0d4204966ff318e27aa9eea79e2783c00e
+SHA1 (libofx-0.9.1.tar.gz) = a12110ddcbff596e26496865570fb4dcb75c08d0
+RMD160 (libofx-0.9.1.tar.gz) = 84b139cb39006f8f6433d490d72e83f103156952
+Size (libofx-0.9.1.tar.gz) = 1177818 bytes
+SHA1 (patch-aa) = dc3df3ee3b6154a529bf407f9f2eacdf07499c2f
 SHA1 (patch-ab) = 1afecedcc76ac45824a13da1d2a39881c734a179
Index: patches/patch-aa
===================================================================
RCS file: /usr2/netbsd-cvs/pkgsrc/finance/libofx/patches/patch-aa,v
retrieving revision 1.3
diff -b -u -p -r1.3 patch-aa
--- patches/patch-aa	3 Sep 2006 13:02:18 -0000	1.3
+++ patches/patch-aa	18 May 2010 23:13:01 -0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.3 2006/09/03 13:02:18 wiz Exp $
+$NetBSD$

---- lib/ofx_preproc.cpp.orig	2006-08-25 15:31:15.000000000 +0000
-+++ lib/ofx_preproc.cpp
-@@ -21,6 +21,7 @@
+--- lib/ofx_preproc.cpp.orig	2008-12-06 17:22:57.000000000 -0500
++++ lib/ofx_preproc.cpp	2010-05-18 19:03:57.000000000 -0400
+@@ -22,6 +22,7 @@
  #include <fstream>
  #include <stdlib.h>
  #include <stdio.h>
@@ -10,3 +10,12 @@ $NetBSD: patch-aa,v 1.3 2006/09/03 13:02
  #include <string>
  #include "ParserEventGeneratorKit.h"
  #include "libofx.h"
+@@ -185,7 +186,7 @@ CFCT int ofx_proc_file(LibofxContextPtr 
+ 	    memset(iconv_buffer,0,READ_BUFFER_SIZE * 2);
+ 	    size_t inbytesleft = strlen(s_buffer.c_str());
+ 	    size_t outbytesleft = READ_BUFFER_SIZE * 2 - 1;
+-#ifdef OS_WIN32
++#ifndef OS_LINUX
+ 	    const char * inchar = (const char *)s_buffer.c_str();
+ #else
+ 	    char * inchar = (char *)s_buffer.c_str();

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Thu, 20 May 2010 06:55:18 +0000
State-Changed-Why:
Committed, thanks.
(PLIST had changes too, which were missing from the diff?)


From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43330 CVS commit: pkgsrc/finance/libofx
Date: Thu, 20 May 2010 06:54:24 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Thu May 20 06:54:24 UTC 2010

 Modified Files:
 	pkgsrc/finance/libofx: Makefile PLIST distinfo
 	pkgsrc/finance/libofx/patches: patch-aa

 Log Message:
 Update to 0.9.1, based on PR 43330 by Gary Duzan.
 Set LICENSE.

 LibOFX 0.9.0:
 	- this release now exports version information thus allowing depending applications
           to determine the version of LibOFX to compile against
         - some fields have been added to OfxFiLogin to allow for modification of some
           OFX header fields in outgoing requests. Together with the latest AqBanking3 this
           should fix the problem with servers suddenly rejecting connections from LibOFX
           applications
         - the calling application can now tell libofx where the data files reside. This allows
           for relocatable binaries (most importantly on Windows)
         - some warnings from recent versions of GCC have been fixed
         - libOFX can now easily be cross-compiled for Windows on Linux
         - the OFX header is now scanned for a hint regarding the encoding of the document and
           convert the data to UTF8 if iconv is available at compile time.
         - the API for online requests has been cleaned up


 To generate a diff of this commit:
 cvs rdiff -u -r1.10 -r1.11 pkgsrc/finance/libofx/Makefile
 cvs rdiff -u -r1.4 -r1.5 pkgsrc/finance/libofx/PLIST
 cvs rdiff -u -r1.6 -r1.7 pkgsrc/finance/libofx/distinfo
 cvs rdiff -u -r1.3 -r1.4 pkgsrc/finance/libofx/patches/patch-aa

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.