From frerich.raabe@informatik.uni-oldenburg.de  Mon Jan  3 22:42:30 2005
Return-Path: <frerich.raabe@informatik.uni-oldenburg.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 87E6416A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  3 Jan 2005 22:42:30 +0000 (GMT)
Received: from smtp.uni-oldenburg.de (smtp.uni-oldenburg.de [134.106.87.20])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 376B343D2F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  3 Jan 2005 22:42:24 +0000 (GMT)
	(envelope-from frerich.raabe@informatik.uni-oldenburg.de)
Received: from icarus.lan (arbi-dyn-11-0.Informatik.Uni-Oldenburg.DE [134.106.11.100])
	by smtp.uni-oldenburg.de (8.12.11/8.12.11) with ESMTP id j03MgMhd025889
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 3 Jan 2005 23:42:22 +0100
Received: from icarus.lan (localhost.lan [127.0.0.1])
	by icarus.lan (8.13.1/8.13.1) with ESMTP id j03MgRq4001373
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 3 Jan 2005 23:42:27 +0100 (CET)
	(envelope-from frerich@icarus.lan)
Received: (from frerich@localhost)
	by icarus.lan (8.13.1/8.13.1/Submit) id j03MgQ7g001179;
	Mon, 3 Jan 2005 23:42:26 +0100 (CET)
	(envelope-from frerich)
Message-Id: <200501032242.j03MgQ7g001179@icarus.lan>
Date: Mon, 3 Jan 2005 23:42:26 +0100 (CET)
From: Frerich Raabe <frerich@athame.co.uk>
Reply-To: Frerich Raabe <frerich@athame.co.uk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] make finance/openhbci compile on FreeBSD 5.x
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         75769
>Category:       ports
>Synopsis:       [patch] make finance/openhbci compile on FreeBSD 5.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 03 22:50:22 GMT 2005
>Closed-Date:    Sun Jan 09 17:24:44 GMT 2005
>Last-Modified:  Sun Jan 09 17:24:44 GMT 2005
>Originator:     Frerich Raabe
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD icarus.lan 5.3-STABLE FreeBSD 5.3-STABLE #3: Thu Dec 30 07:40:26 CET 2004 frerich@icarus.lan:/usr/obj/usr/src/sys/IBMTPR51 i386
>Description:
The patch given in the 'Fix' section below adds a patch to the
finance/openhbci port, making it possible to compile the port on
FreeBDS 5.x systems.
>How-To-Repeat:
>Fix:
diff -ruN /usr/ports/finance/openhbci/Makefile finance/openhbci/Makefile
--- /usr/ports/finance/openhbci/Makefile	Sun Sep 19 04:53:44 2004
+++ finance/openhbci/Makefile	Mon Jan  3 23:34:51 2005
@@ -18,10 +18,4 @@
 CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
 INSTALLS_SHLIB=		yes
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 502126
-BROKEN=			"Does not compile on FreeBSD >= 5.x"
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN /usr/ports/finance/openhbci/files/patch-tree.h finance/openhbci/files/patch-tree.h
--- /usr/ports/finance/openhbci/files/patch-tree.h	Thu Jan  1 01:00:00 1970
+++ finance/openhbci/files/patch-tree.h	Mon Jan  3 23:33:26 2005
@@ -0,0 +1,23 @@
+--- src/openhbci/tree.h.orig	Mon Jan  3 23:31:35 2005
++++ src/openhbci/tree.h	Mon Jan  3 23:28:50 2005
+@@ -695,16 +695,16 @@
+    * Returns an iterator that points to the root of the tree.
+    * @author Martin Preuss<martin@aquamaniac.de>
+    */
+-  Tree<T>::iterator root() {
+-      return Tree<T>::iterator(&_root);
++  iterator root() {
++      return iterator(&_root);
+   };
+ 
+   /**
+    * Returns an const_iterator that points to the root of the tree.
+    * @author Martin Preuss<martin@aquamaniac.de>
+    */
+-  Tree<T>::const_iterator const_root() const {
+-      return Tree<T>::const_iterator(&_root);
++  const_iterator const_root() const {
++      return const_iterator(&_root);
+   };
+ 
+   /**
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: arved 
State-Changed-When: Sun Jan 9 17:24:34 GMT 2005 
State-Changed-Why:  
committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75769 
>Unformatted:
