From pete@tortall.net  Sat Dec  2 06:05:21 2006
Return-Path: <pete@tortall.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id DF4B416A407
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  2 Dec 2006 06:05:21 +0000 (UTC)
	(envelope-from pete@tortall.net)
Received: from cvs.tortall.net (cvs.tortall.net [69.55.238.110])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2ECFE43C9D
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  2 Dec 2006 06:05:03 +0000 (GMT)
	(envelope-from pete@tortall.net)
Received: from localhost (cvs [69.55.238.110])
	by cvs.tortall.net (Postfix) with ESMTP id 7904618CBA
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  1 Dec 2006 22:05:21 -0800 (PST)
Received: from cvs.tortall.net ([69.55.238.110])
	by localhost (cvs.tortall.net [69.55.238.110]) (amavisd-new, port 10024)
	with ESMTP id vJ1EikzYFXAS for <FreeBSD-gnats-submit@freebsd.org>;
	Fri,  1 Dec 2006 22:05:18 -0800 (PST)
Received: by cvs.tortall.net (Postfix, from userid 1000)
	id DE32718E0F; Fri,  1 Dec 2006 22:05:18 -0800 (PST)
Message-Id: <20061202060518.DE32718E0F@cvs.tortall.net>
Date: Fri,  1 Dec 2006 22:05:18 -0800 (PST)
From: Peter Johnson <johnson.peter@gmail.com>
Reply-To: Peter Johnson <johnson.peter@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] misc/xdf: Fix BROKENness
X-Send-Pr-Version: 3.113
X-GNATS-Notify: vidalrod@in.tum.de

>Number:         106199
>Category:       ports
>Synopsis:       [PATCH] misc/xdf: Fix BROKENness
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 02 06:10:11 GMT 2006
>Closed-Date:    Mon Jan 01 10:49:13 GMT 2007
>Last-Modified:  Mon Jan 01 10:49:13 GMT 2007
>Originator:     Peter Johnson
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD 6.1-RELEASE
>Description:
Fix bad C++, which currently has the port marked as BROKEN on >= 5.x.
>How-To-Repeat:
Marked BROKEN on >= 5.x (due to bad C++).
>Fix:
Patch attached.

--- unbreak-xdf.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/misc/xdf/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	8 Feb 2004 02:49:47 -0000	1.6
+++ Makefile	2 Dec 2006 06:02:17 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	xdf
 PORTVERSION=    1.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=     misc
 MASTER_SITES=   http://home.in.tum.de/~vidalrod/ports/
 
@@ -23,10 +23,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 502000
-BROKEN=		"Does not compile"
-.endif
-
 post-install:
 	${STRIP_CMD} ${PREFIX}/bin/xdf
 
Index: files/patch-xdf.cc
===================================================================
RCS file: /home/ncvs/ports/misc/xdf/files/patch-xdf.cc,v
retrieving revision 1.2
diff -u -r1.2 patch-xdf.cc
--- files/patch-xdf.cc	16 Jan 2003 22:57:11 -0000	1.2
+++ files/patch-xdf.cc	2 Dec 2006 06:02:17 -0000
@@ -1,10 +1,12 @@
---- xdf.cc.orig	Thu Nov 14 00:06:28 2002
-+++ xdf.cc	Fri Jan 17 00:56:31 2003
-@@ -18,18 +18,18 @@
+--- xdf.cc.orig	Wed Nov 13 05:06:28 2002
++++ xdf.cc	Fri Dec  1 21:58:22 2006
+@@ -17,19 +17,19 @@
+ /* Standard C++ includes */
  #include <stdio.h>
  #include <iostream.h>
- #include <strstream.h>
+-#include <strstream.h>
 -#include <syscall.h>
++#include <backward/strstream>
 +#include <sys/syscall.h>
  #include <sys/param.h>
  #include <sys/types.h>
@@ -83,3 +85,12 @@
    
    for ( int i = 0 ; i < mountpoints ; ++i ){
      if ( par_table[i]->status == FALSE && par_table[i]->last_status == TRUE) {
+@@ -322,7 +328,7 @@
+ /*}}}*/
+ /*{{{  Create String Subroutine  */
+ void create_size_string(char* string, double value, double maximum, int target){
+-  ostrstream OSS(string, STRLENGTH, ios::out);
++  std::ostrstream OSS(string, STRLENGTH, ios::out);
+   OSS.seekp(ios::beg);
+   char* unit="K";
+   int precision = kprec;
--- unbreak-xdf.patch ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sat Dec 2 06:10:23 UTC 2006 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106199 
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Sat Dec 2 07:27:22 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106199 
State-Changed-From-To: feedback->closed 
State-Changed-By: miwi 
State-Changed-When: Mon Jan 1 10:49:09 UTC 2007 
State-Changed-Why:  
Maintainer send new Patches. 

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