From tkato432@yahoo.com  Sun Jan  5 18:01:38 2014
Return-Path: <tkato432@yahoo.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id CA9A6744
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sun,  5 Jan 2014 18:01:04 +0000 (UTC)
Received: from omta01.auone-net.jp (mail-or2-f145.auone-net.jp [111.87.219.145])
	by mx1.freebsd.org (Postfix) with ESMTP id 898981669
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sun,  5 Jan 2014 18:01:04 +0000 (UTC)
Received: from coppermine.my.domain (ZT034124.ppp.dion.ne.jp [59.128.34.124])
	by omta01.auone-net.jp (au one net mail) with ESMTP id A6058980016
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon,  6 Jan 2014 03:01:00 +0900 (JST)
Message-Id: <20140106025510.2b5d067291bf993c7a7265fe@yahoo.com>
Date: Mon, 6 Jan 2014 02:55:10 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: net/netmap: Fix build with clang

>Number:         185506
>Category:       ports
>Synopsis:       net/netmap: Fix build with clang
>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:   Sun Jan 05 18:10:02 UTC 2014
>Closed-Date:    Sun Jan 19 09:28:26 UTC 2014
>Last-Modified:  Sat Jan 25 13:00:02 UTC 2014
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Fix build with clang

New file:
files/patch-makelist__args.c
files/patch-netmap__args.c
files/patch-netmap__drawmap.c
files/patch-netmap__hostclass.c
files/patch-netmap__hostclass.h
files/patch-netmap__lookup.h
files/patch-netmap__misc.h
files/patch-netmap__netmap.c

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/net/netmap/Makefile net/netmap/Makefile
--- /usr/ports/net/netmap/Makefile	2013-11-06 21:53:54.000000000 +0900
+++ net/netmap/Makefile	2014-01-06 00:00:00.000000000 +0900
@@ -10,15 +10,18 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Make a graphical representation of the surrounding network
 
+LICENSE=	GPLv2
+
 RUN_DEPENDS=	dotty:${PORTSDIR}/graphics/graphviz
 
-USE_GMAKE=	yes
+USES=		gmake
 
 PLIST_FILES=	bin/makelist bin/netmap
 
-NO_STAGE=	yes
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/makelist/makelist ${PREFIX}/bin
-	${INSTALL_PROGRAM} ${WRKSRC}/netmap/netmap ${PREFIX}/bin
+.for i in makelist netmap
+	(cd ${WRKSRC}/${i} && ${INSTALL_PROGRAM} ${i} \
+		${STAGEDIR}${PREFIX}/bin)
+.endfor
 
 .include <bsd.port.mk>
diff -urN /usr/ports/net/netmap/files/patch-belgolib::files.c net/netmap/files/patch-belgolib::files.c
--- /usr/ports/net/netmap/files/patch-belgolib::files.c	2013-11-06 21:53:54.000000000 +0900
+++ net/netmap/files/patch-belgolib::files.c	2014-01-06 00:00:00.000000000 +0900
@@ -1,14 +1,16 @@
 --- belgolib/files.c.orig	2010-01-06 08:00:52.000000000 +0900
 +++ belgolib/files.c	2011-11-23 22:22:36.000000000 +0900
-@@ -17,7 +17,7 @@
+@@ -17,8 +17,8 @@
  
  Infile::Infile() : ifstream() { }
  
 -Infile::Infile(const string& file_name, int mode, bool fatal)
+-    : ifstream(file_name.c_str(), (std::_Ios_Openmode)mode)
 +Infile::Infile(const string& file_name, ios::openmode mode, bool fatal)
-     : ifstream(file_name.c_str(), (std::_Ios_Openmode)mode)
++    : ifstream(file_name.c_str(), (std::ios_base::openmode)mode)
  {
  
+     if(cdb>d_list)
 @@ -39,7 +39,7 @@
  }
  
@@ -18,3 +20,12 @@
  {
      
      if(cdb>d_list)
+@@ -49,7 +49,7 @@
+ 	//file is open, close it first
+ 	close();
+ 
+-    open(file_name.c_str(), (std::_Ios_Openmode)mode);
++    open(file_name.c_str(), (std::ios_base::openmode)mode);
+ 
+     if(int error_nr = check_open())  { 
+ 	if(cdb>d_list)
diff -urN /usr/ports/net/netmap/files/patch-makelist__args.c net/netmap/files/patch-makelist__args.c
--- /usr/ports/net/netmap/files/patch-makelist__args.c	1970-01-01 09:00:00.000000000 +0900
+++ net/netmap/files/patch-makelist__args.c	2014-01-06 00:00:00.000000000 +0900
@@ -0,0 +1,29 @@
+--- makelist/args.c.orig
++++ makelist/args.c
+@@ -1,6 +1,6 @@
+-#include <strstream>
++#include <sstream>
+ #include <iostream>
+-#include <stdlib.h>
++#include <cstdlib>
+ 
+ using namespace std;
+ 
+@@ -35,7 +35,7 @@
+     exit(-1);
+ }    
+ 
+-static void set_string_arg(strstream& ss, string& val) 
++static void set_string_arg(stringstream& ss, string& val) 
+ {
+     string argvalue;
+     ss >> argvalue;
+@@ -62,7 +62,7 @@
+ 
+ static void process(const string& argline) 
+ {
+-    strstream ss;
++    stringstream ss;
+     ss << argline;
+ 
+     string arg;
diff -urN /usr/ports/net/netmap/files/patch-netmap::Makefile net/netmap/files/patch-netmap::Makefile
--- /usr/ports/net/netmap/files/patch-netmap::Makefile	2013-11-06 21:53:54.000000000 +0900
+++ net/netmap/files/patch-netmap::Makefile	2014-01-06 00:00:00.000000000 +0900
@@ -10,7 +10,14 @@
  
  CPPFLAGS = -I../belgolib
  
-@@ -34,7 +33,7 @@
+@@ -28,13 +27,13 @@
+ 
+ test: $(OFILES)
+ 	$(CC) -o $(OEXE) $(OFILES) $(LDFLAGS)
+-	strip $(OEXE)
++#	strip $(OEXE)
+ 
+ clean:
  	-/bin/rm -f $(OFILES) $(OEXE)
  
  depend: 
diff -urN /usr/ports/net/netmap/files/patch-netmap::lookup.c net/netmap/files/patch-netmap::lookup.c
--- /usr/ports/net/netmap/files/patch-netmap::lookup.c	2013-11-06 21:53:54.000000000 +0900
+++ net/netmap/files/patch-netmap::lookup.c	2014-01-06 00:00:00.000000000 +0900
@@ -1,7 +1,7 @@
 --- netmap/lookup.c.orig	2010-01-06 07:59:38.000000000 +0900
 +++ netmap/lookup.c	2011-11-23 22:32:15.000000000 +0900
-@@ -1,6 +1,8 @@
- #include <strstream>
+@@ -1,6 +1,7 @@
+-#include <strstream>
  #include <iostream>
  
 +#include <sys/types.h>
diff -urN /usr/ports/net/netmap/files/patch-netmap::misc.c net/netmap/files/patch-netmap::misc.c
--- /usr/ports/net/netmap/files/patch-netmap::misc.c	2013-11-06 21:53:54.000000000 +0900
+++ net/netmap/files/patch-netmap::misc.c	2014-01-06 00:00:00.000000000 +0900
@@ -1,6 +1,21 @@
 --- netmap/misc.c.orig	Sun Dec 15 14:54:26 2002
 +++ netmap/misc.c	Sun Dec 15 14:54:26 2002
-@@ -54,7 +54,7 @@
+@@ -1,4 +1,4 @@
+-#include <strstream>
++#include <sstream>
+ #include <string>
+ 
+ #include "misc.h"
+@@ -17,7 +17,7 @@
+ 
+ string int_to_str(int i) 
+ {
+-    strstream ost;
++    stringstream ost;
+ 
+     ost << i << char(0);
+ 
+@@ -55,7 +55,7 @@
  	return false;
      
      bool had_point = false;
diff -urN /usr/ports/net/netmap/files/patch-netmap__args.c net/netmap/files/patch-netmap__args.c
--- /usr/ports/net/netmap/files/patch-netmap__args.c	1970-01-01 09:00:00.000000000 +0900
+++ net/netmap/files/patch-netmap__args.c	2014-01-06 00:00:00.000000000 +0900
@@ -0,0 +1,26 @@
+--- netmap/args.c.orig
++++ netmap/args.c
+@@ -1,4 +1,4 @@
+-#include <strstream>
++#include <sstream>
+ #include <iostream>
+ #include <string>
+ 
+@@ -47,7 +47,7 @@
+     exit(0);
+ }
+ 
+-static void set_string_arg(strstream& ss, string& val) 
++static void set_string_arg(stringstream& ss, string& val) 
+ {
+     string argvalue;
+     ss >> argvalue;
+@@ -60,7 +60,7 @@
+ 
+ static void process(const string& argline) 
+ {
+-    strstream ss;
++    stringstream ss;
+     ss << argline;
+ 
+     string arg;
diff -urN /usr/ports/net/netmap/files/patch-netmap__drawmap.c net/netmap/files/patch-netmap__drawmap.c
--- /usr/ports/net/netmap/files/patch-netmap__drawmap.c	1970-01-01 09:00:00.000000000 +0900
+++ net/netmap/files/patch-netmap__drawmap.c	2014-01-06 00:00:00.000000000 +0900
@@ -0,0 +1,7 @@
+--- netmap/drawmap.c.orig
++++ netmap/drawmap.c
+@@ -1,4 +1,3 @@
+-#include <strstream>
+ #include <iostream>
+ 
+ #include <fstream>
diff -urN /usr/ports/net/netmap/files/patch-netmap__hostclass.c net/netmap/files/patch-netmap__hostclass.c
--- /usr/ports/net/netmap/files/patch-netmap__hostclass.c	1970-01-01 09:00:00.000000000 +0900
+++ net/netmap/files/patch-netmap__hostclass.c	2014-01-06 00:00:00.000000000 +0900
@@ -0,0 +1,7 @@
+--- netmap/hostclass.c.orig
++++ netmap/hostclass.c
+@@ -1,4 +1,3 @@
+-#include <strstream>
+ #include <map>
+ 
+ //from belgolib
diff -urN /usr/ports/net/netmap/files/patch-netmap__hostclass.h net/netmap/files/patch-netmap__hostclass.h
--- /usr/ports/net/netmap/files/patch-netmap__hostclass.h	1970-01-01 09:00:00.000000000 +0900
+++ net/netmap/files/patch-netmap__hostclass.h	2014-01-06 00:00:00.000000000 +0900
@@ -0,0 +1,15 @@
+--- netmap/hostclass.h.orig
++++ netmap/hostclass.h
+@@ -48,10 +48,10 @@
+     HostClass* a;
+     HostClass* b;
+ 
+-    bool operator==(HostLink& hl)
++    bool operator==(const HostLink& hl) const
+ 	{ return a == hl.a && b == hl.b; }
+ 
+-    bool operator <(HostLink& hl)
++    bool operator <(const HostLink& hl) const
+ 	{ return a==hl.a ? b < hl.b : a < hl.a; }
+ };
+ 
diff -urN /usr/ports/net/netmap/files/patch-netmap__lookup.h net/netmap/files/patch-netmap__lookup.h
--- /usr/ports/net/netmap/files/patch-netmap__lookup.h	1970-01-01 09:00:00.000000000 +0900
+++ net/netmap/files/patch-netmap__lookup.h	2014-01-06 00:00:00.000000000 +0900
@@ -0,0 +1,15 @@
+--- netmap/lookup.h.orig
++++ netmap/lookup.h
+@@ -14,10 +14,10 @@
+     string ip;
+     string hostname;
+ 
+-    bool operator==(const HostRec& hr)
++    bool operator==(const HostRec& hr) const
+ 	{ return ip == hr.ip && hostname == hr.hostname; }
+ 
+-    bool operator<(const HostRec& hr)
++    bool operator<(const HostRec& hr) const
+ 	{ return ip==hr.ip ? hostname<hr.hostname : ip<hr.ip; }
+ };
+ 
diff -urN /usr/ports/net/netmap/files/patch-netmap__misc.h net/netmap/files/patch-netmap__misc.h
--- /usr/ports/net/netmap/files/patch-netmap__misc.h	1970-01-01 09:00:00.000000000 +0900
+++ net/netmap/files/patch-netmap__misc.h	2014-01-06 00:00:00.000000000 +0900
@@ -0,0 +1,10 @@
+--- netmap/misc.h.orig
++++ netmap/misc.h
+@@ -2,7 +2,6 @@
+ #define _misc_h_
+ 
+ #include <string>
+-#include <strstream>
+ #include <iostream>
+ 
+ #include <list>
diff -urN /usr/ports/net/netmap/files/patch-netmap__netmap.c net/netmap/files/patch-netmap__netmap.c
--- /usr/ports/net/netmap/files/patch-netmap__netmap.c	1970-01-01 09:00:00.000000000 +0900
+++ net/netmap/files/patch-netmap__netmap.c	2014-01-06 00:00:00.000000000 +0900
@@ -0,0 +1,26 @@
+--- netmap/netmap.c.orig
++++ netmap/netmap.c
+@@ -1,4 +1,4 @@
+-#include <strstream>
++#include <sstream>
+ #include <iostream>
+ #include <fstream>
+ 
+@@ -18,7 +18,7 @@
+ Dbgfile dbgs;
+ int cdb = 1;
+ 
+-static void copy_line(strstream& os, istream& inf) 
++static void copy_line(stringstream& os, istream& inf) 
+ {
+     string result;
+ 
+@@ -67,7 +67,7 @@
+     int nr_hops = 0;
+     int invalid_hosts_found = 0;
+     while(inf && !inf.eof()) {
+-	strstream line;
++	stringstream line;
+ 	copy_line(line, inf);
+ 	
+ 	if(max_hops && ++nr_hops > max_hops) {
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Sun Jan 19 09:28:26 UTC 2014 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185506 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/185506: commit references a PR
Date: Sun, 19 Jan 2014 09:28:32 +0000 (UTC)

 Author: miwi
 Date: Sun Jan 19 09:28:21 2014
 New Revision: 340257
 URL: http://svnweb.freebsd.org/changeset/ports/340257
 QAT: https://qat.redports.org/buildarchive/r340257/
 
 Log:
   - Fix build with clang
   
   PR:		185506
   Submitted by:	ports fury
 
 Added:
   head/net/netmap/files/patch-makelist__args.c   (contents, props changed)
   head/net/netmap/files/patch-netmap__args.c   (contents, props changed)
   head/net/netmap/files/patch-netmap__drawmap.c   (contents, props changed)
   head/net/netmap/files/patch-netmap__hostclass.c   (contents, props changed)
   head/net/netmap/files/patch-netmap__hostclass.h   (contents, props changed)
   head/net/netmap/files/patch-netmap__lookup.h   (contents, props changed)
   head/net/netmap/files/patch-netmap__misc.h   (contents, props changed)
   head/net/netmap/files/patch-netmap__netmap.c   (contents, props changed)
 Modified:
   head/net/netmap/Makefile   (contents, props changed)
   head/net/netmap/files/patch-belgolib::files.c   (contents, props changed)
   head/net/netmap/files/patch-netmap::Makefile   (contents, props changed)
   head/net/netmap/files/patch-netmap::lookup.c   (contents, props changed)
   head/net/netmap/files/patch-netmap::misc.c   (contents, props changed)
 
 Modified: head/net/netmap/Makefile
 ==============================================================================
 --- head/net/netmap/Makefile	Sun Jan 19 09:27:40 2014	(r340256)
 +++ head/net/netmap/Makefile	Sun Jan 19 09:28:21 2014	(r340257)
 @@ -10,15 +10,18 @@ MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}
  MAINTAINER=	ports@FreeBSD.org
  COMMENT=	Make a graphical representation of the surrounding network
  
 +LICENSE=	GPLv2
 +
  RUN_DEPENDS=	dotty:${PORTSDIR}/graphics/graphviz
  
 -USE_GMAKE=	yes
 +USES=		gmake
  
  PLIST_FILES=	bin/makelist bin/netmap
  
 -NO_STAGE=	yes
  do-install:
 -	${INSTALL_PROGRAM} ${WRKSRC}/makelist/makelist ${PREFIX}/bin
 -	${INSTALL_PROGRAM} ${WRKSRC}/netmap/netmap ${PREFIX}/bin
 +.for i in makelist netmap
 +	(cd ${WRKSRC}/${i} && ${INSTALL_PROGRAM} ${i} \
 +		${STAGEDIR}${PREFIX}/bin)
 +.endfor
  
  .include <bsd.port.mk>
 
 Modified: head/net/netmap/files/patch-belgolib::files.c
 ==============================================================================
 --- head/net/netmap/files/patch-belgolib::files.c	Sun Jan 19 09:27:40 2014	(r340256)
 +++ head/net/netmap/files/patch-belgolib::files.c	Sun Jan 19 09:28:21 2014	(r340257)
 @@ -1,14 +1,16 @@
  --- belgolib/files.c.orig	2010-01-06 08:00:52.000000000 +0900
  +++ belgolib/files.c	2011-11-23 22:22:36.000000000 +0900
 -@@ -17,7 +17,7 @@
 +@@ -17,8 +17,8 @@
   
   Infile::Infile() : ifstream() { }
   
  -Infile::Infile(const string& file_name, int mode, bool fatal)
 +-    : ifstream(file_name.c_str(), (std::_Ios_Openmode)mode)
  +Infile::Infile(const string& file_name, ios::openmode mode, bool fatal)
 -     : ifstream(file_name.c_str(), (std::_Ios_Openmode)mode)
 ++    : ifstream(file_name.c_str(), (std::ios_base::openmode)mode)
   {
   
 +     if(cdb>d_list)
  @@ -39,7 +39,7 @@
   }
   
 @@ -18,3 +20,12 @@
   {
       
       if(cdb>d_list)
 +@@ -49,7 +49,7 @@
 + 	//file is open, close it first
 + 	close();
 + 
 +-    open(file_name.c_str(), (std::_Ios_Openmode)mode);
 ++    open(file_name.c_str(), (std::ios_base::openmode)mode);
 + 
 +     if(int error_nr = check_open())  { 
 + 	if(cdb>d_list)
 
 Added: head/net/netmap/files/patch-makelist__args.c
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/net/netmap/files/patch-makelist__args.c	Sun Jan 19 09:28:21 2014	(r340257)
 @@ -0,0 +1,29 @@
 +--- makelist/args.c.orig
 ++++ makelist/args.c
 +@@ -1,6 +1,6 @@
 +-#include <strstream>
 ++#include <sstream>
 + #include <iostream>
 +-#include <stdlib.h>
 ++#include <cstdlib>
 + 
 + using namespace std;
 + 
 +@@ -35,7 +35,7 @@
 +     exit(-1);
 + }    
 + 
 +-static void set_string_arg(strstream& ss, string& val) 
 ++static void set_string_arg(stringstream& ss, string& val) 
 + {
 +     string argvalue;
 +     ss >> argvalue;
 +@@ -62,7 +62,7 @@
 + 
 + static void process(const string& argline) 
 + {
 +-    strstream ss;
 ++    stringstream ss;
 +     ss << argline;
 + 
 +     string arg;
 
 Modified: head/net/netmap/files/patch-netmap::Makefile
 ==============================================================================
 --- head/net/netmap/files/patch-netmap::Makefile	Sun Jan 19 09:27:40 2014	(r340256)
 +++ head/net/netmap/files/patch-netmap::Makefile	Sun Jan 19 09:28:21 2014	(r340257)
 @@ -10,7 +10,14 @@
   
   CPPFLAGS = -I../belgolib
   
 -@@ -34,7 +33,7 @@
 +@@ -28,13 +27,13 @@
 + 
 + test: $(OFILES)
 + 	$(CC) -o $(OEXE) $(OFILES) $(LDFLAGS)
 +-	strip $(OEXE)
 ++#	strip $(OEXE)
 + 
 + clean:
   	-/bin/rm -f $(OFILES) $(OEXE)
   
   depend: 
 
 Modified: head/net/netmap/files/patch-netmap::lookup.c
 ==============================================================================
 --- head/net/netmap/files/patch-netmap::lookup.c	Sun Jan 19 09:27:40 2014	(r340256)
 +++ head/net/netmap/files/patch-netmap::lookup.c	Sun Jan 19 09:28:21 2014	(r340257)
 @@ -1,7 +1,7 @@
  --- netmap/lookup.c.orig	2010-01-06 07:59:38.000000000 +0900
  +++ netmap/lookup.c	2011-11-23 22:32:15.000000000 +0900
 -@@ -1,6 +1,8 @@
 - #include <strstream>
 +@@ -1,6 +1,7 @@
 +-#include <strstream>
   #include <iostream>
   
  +#include <sys/types.h>
 
 Modified: head/net/netmap/files/patch-netmap::misc.c
 ==============================================================================
 --- head/net/netmap/files/patch-netmap::misc.c	Sun Jan 19 09:27:40 2014	(r340256)
 +++ head/net/netmap/files/patch-netmap::misc.c	Sun Jan 19 09:28:21 2014	(r340257)
 @@ -1,6 +1,21 @@
  --- netmap/misc.c.orig	Sun Dec 15 14:54:26 2002
  +++ netmap/misc.c	Sun Dec 15 14:54:26 2002
 -@@ -54,7 +54,7 @@
 +@@ -1,4 +1,4 @@
 +-#include <strstream>
 ++#include <sstream>
 + #include <string>
 + 
 + #include "misc.h"
 +@@ -17,7 +17,7 @@
 + 
 + string int_to_str(int i) 
 + {
 +-    strstream ost;
 ++    stringstream ost;
 + 
 +     ost << i << char(0);
 + 
 +@@ -55,7 +55,7 @@
   	return false;
       
       bool had_point = false;
 
 Added: head/net/netmap/files/patch-netmap__args.c
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/net/netmap/files/patch-netmap__args.c	Sun Jan 19 09:28:21 2014	(r340257)
 @@ -0,0 +1,26 @@
 +--- netmap/args.c.orig
 ++++ netmap/args.c
 +@@ -1,4 +1,4 @@
 +-#include <strstream>
 ++#include <sstream>
 + #include <iostream>
 + #include <string>
 + 
 +@@ -47,7 +47,7 @@
 +     exit(0);
 + }
 + 
 +-static void set_string_arg(strstream& ss, string& val) 
 ++static void set_string_arg(stringstream& ss, string& val) 
 + {
 +     string argvalue;
 +     ss >> argvalue;
 +@@ -60,7 +60,7 @@
 + 
 + static void process(const string& argline) 
 + {
 +-    strstream ss;
 ++    stringstream ss;
 +     ss << argline;
 + 
 +     string arg;
 
 Added: head/net/netmap/files/patch-netmap__drawmap.c
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/net/netmap/files/patch-netmap__drawmap.c	Sun Jan 19 09:28:21 2014	(r340257)
 @@ -0,0 +1,7 @@
 +--- netmap/drawmap.c.orig
 ++++ netmap/drawmap.c
 +@@ -1,4 +1,3 @@
 +-#include <strstream>
 + #include <iostream>
 + 
 + #include <fstream>
 
 Added: head/net/netmap/files/patch-netmap__hostclass.c
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/net/netmap/files/patch-netmap__hostclass.c	Sun Jan 19 09:28:21 2014	(r340257)
 @@ -0,0 +1,7 @@
 +--- netmap/hostclass.c.orig
 ++++ netmap/hostclass.c
 +@@ -1,4 +1,3 @@
 +-#include <strstream>
 + #include <map>
 + 
 + //from belgolib
 
 Added: head/net/netmap/files/patch-netmap__hostclass.h
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/net/netmap/files/patch-netmap__hostclass.h	Sun Jan 19 09:28:21 2014	(r340257)
 @@ -0,0 +1,15 @@
 +--- netmap/hostclass.h.orig
 ++++ netmap/hostclass.h
 +@@ -48,10 +48,10 @@
 +     HostClass* a;
 +     HostClass* b;
 + 
 +-    bool operator==(HostLink& hl)
 ++    bool operator==(const HostLink& hl) const
 + 	{ return a == hl.a && b == hl.b; }
 + 
 +-    bool operator <(HostLink& hl)
 ++    bool operator <(const HostLink& hl) const
 + 	{ return a==hl.a ? b < hl.b : a < hl.a; }
 + };
 + 
 
 Added: head/net/netmap/files/patch-netmap__lookup.h
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/net/netmap/files/patch-netmap__lookup.h	Sun Jan 19 09:28:21 2014	(r340257)
 @@ -0,0 +1,15 @@
 +--- netmap/lookup.h.orig
 ++++ netmap/lookup.h
 +@@ -14,10 +14,10 @@
 +     string ip;
 +     string hostname;
 + 
 +-    bool operator==(const HostRec& hr)
 ++    bool operator==(const HostRec& hr) const
 + 	{ return ip == hr.ip && hostname == hr.hostname; }
 + 
 +-    bool operator<(const HostRec& hr)
 ++    bool operator<(const HostRec& hr) const
 + 	{ return ip==hr.ip ? hostname<hr.hostname : ip<hr.ip; }
 + };
 + 
 
 Added: head/net/netmap/files/patch-netmap__misc.h
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/net/netmap/files/patch-netmap__misc.h	Sun Jan 19 09:28:21 2014	(r340257)
 @@ -0,0 +1,10 @@
 +--- netmap/misc.h.orig
 ++++ netmap/misc.h
 +@@ -2,7 +2,6 @@
 + #define _misc_h_
 + 
 + #include <string>
 +-#include <strstream>
 + #include <iostream>
 + 
 + #include <list>
 
 Added: head/net/netmap/files/patch-netmap__netmap.c
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/net/netmap/files/patch-netmap__netmap.c	Sun Jan 19 09:28:21 2014	(r340257)
 @@ -0,0 +1,26 @@
 +--- netmap/netmap.c.orig
 ++++ netmap/netmap.c
 +@@ -1,4 +1,4 @@
 +-#include <strstream>
 ++#include <sstream>
 + #include <iostream>
 + #include <fstream>
 + 
 +@@ -18,7 +18,7 @@
 + Dbgfile dbgs;
 + int cdb = 1;
 + 
 +-static void copy_line(strstream& os, istream& inf) 
 ++static void copy_line(stringstream& os, istream& inf) 
 + {
 +     string result;
 + 
 +@@ -67,7 +67,7 @@
 +     int nr_hops = 0;
 +     int invalid_hosts_found = 0;
 +     while(inf && !inf.eof()) {
 +-	strstream line;
 ++	stringstream line;
 + 	copy_line(line, inf);
 + 	
 + 	if(max_hops && ++nr_hops > max_hops) {
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/185506: commit references a PR
Date: Sat, 25 Jan 2014 12:59:46 +0000 (UTC)

 Author: miwi
 Date: Sat Jan 25 12:59:35 2014
 New Revision: 341021
 URL: http://svnweb.freebsd.org/changeset/ports/341021
 QAT: https://qat.redports.org/buildarchive/r341021/
 
 Log:
   MFH: r340257
   
   - Fix build with clang
   
   PR:		185506
   Submitted by:	ports fury
 
 Added:
   branches/2014Q1/net/netmap/files/patch-makelist__args.c
      - copied unchanged from r340257, head/net/netmap/files/patch-makelist__args.c
   branches/2014Q1/net/netmap/files/patch-netmap__args.c
      - copied unchanged from r340257, head/net/netmap/files/patch-netmap__args.c
   branches/2014Q1/net/netmap/files/patch-netmap__drawmap.c
      - copied unchanged from r340257, head/net/netmap/files/patch-netmap__drawmap.c
   branches/2014Q1/net/netmap/files/patch-netmap__hostclass.c
      - copied unchanged from r340257, head/net/netmap/files/patch-netmap__hostclass.c
   branches/2014Q1/net/netmap/files/patch-netmap__hostclass.h
      - copied unchanged from r340257, head/net/netmap/files/patch-netmap__hostclass.h
   branches/2014Q1/net/netmap/files/patch-netmap__lookup.h
      - copied unchanged from r340257, head/net/netmap/files/patch-netmap__lookup.h
   branches/2014Q1/net/netmap/files/patch-netmap__misc.h
      - copied unchanged from r340257, head/net/netmap/files/patch-netmap__misc.h
   branches/2014Q1/net/netmap/files/patch-netmap__netmap.c
      - copied unchanged from r340257, head/net/netmap/files/patch-netmap__netmap.c
 Modified:
   branches/2014Q1/net/netmap/Makefile   (contents, props changed)
   branches/2014Q1/net/netmap/files/patch-belgolib::files.c   (contents, props changed)
   branches/2014Q1/net/netmap/files/patch-netmap::Makefile   (contents, props changed)
   branches/2014Q1/net/netmap/files/patch-netmap::lookup.c   (contents, props changed)
   branches/2014Q1/net/netmap/files/patch-netmap::misc.c   (contents, props changed)
 Directory Properties:
   branches/2014Q1/   (props changed)
 
 Modified: branches/2014Q1/net/netmap/Makefile
 ==============================================================================
 --- branches/2014Q1/net/netmap/Makefile	Sat Jan 25 12:58:29 2014	(r341020)
 +++ branches/2014Q1/net/netmap/Makefile	Sat Jan 25 12:59:35 2014	(r341021)
 @@ -10,15 +10,18 @@ MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}
  MAINTAINER=	ports@FreeBSD.org
  COMMENT=	Make a graphical representation of the surrounding network
  
 +LICENSE=	GPLv2
 +
  RUN_DEPENDS=	dotty:${PORTSDIR}/graphics/graphviz
  
 -USE_GMAKE=	yes
 +USES=		gmake
  
  PLIST_FILES=	bin/makelist bin/netmap
  
 -NO_STAGE=	yes
  do-install:
 -	${INSTALL_PROGRAM} ${WRKSRC}/makelist/makelist ${PREFIX}/bin
 -	${INSTALL_PROGRAM} ${WRKSRC}/netmap/netmap ${PREFIX}/bin
 +.for i in makelist netmap
 +	(cd ${WRKSRC}/${i} && ${INSTALL_PROGRAM} ${i} \
 +		${STAGEDIR}${PREFIX}/bin)
 +.endfor
  
  .include <bsd.port.mk>
 
 Modified: branches/2014Q1/net/netmap/files/patch-belgolib::files.c
 ==============================================================================
 --- branches/2014Q1/net/netmap/files/patch-belgolib::files.c	Sat Jan 25 12:58:29 2014	(r341020)
 +++ branches/2014Q1/net/netmap/files/patch-belgolib::files.c	Sat Jan 25 12:59:35 2014	(r341021)
 @@ -1,14 +1,16 @@
  --- belgolib/files.c.orig	2010-01-06 08:00:52.000000000 +0900
  +++ belgolib/files.c	2011-11-23 22:22:36.000000000 +0900
 -@@ -17,7 +17,7 @@
 +@@ -17,8 +17,8 @@
   
   Infile::Infile() : ifstream() { }
   
  -Infile::Infile(const string& file_name, int mode, bool fatal)
 +-    : ifstream(file_name.c_str(), (std::_Ios_Openmode)mode)
  +Infile::Infile(const string& file_name, ios::openmode mode, bool fatal)
 -     : ifstream(file_name.c_str(), (std::_Ios_Openmode)mode)
 ++    : ifstream(file_name.c_str(), (std::ios_base::openmode)mode)
   {
   
 +     if(cdb>d_list)
  @@ -39,7 +39,7 @@
   }
   
 @@ -18,3 +20,12 @@
   {
       
       if(cdb>d_list)
 +@@ -49,7 +49,7 @@
 + 	//file is open, close it first
 + 	close();
 + 
 +-    open(file_name.c_str(), (std::_Ios_Openmode)mode);
 ++    open(file_name.c_str(), (std::ios_base::openmode)mode);
 + 
 +     if(int error_nr = check_open())  { 
 + 	if(cdb>d_list)
 
 Copied: branches/2014Q1/net/netmap/files/patch-makelist__args.c (from r340257, head/net/netmap/files/patch-makelist__args.c)
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ branches/2014Q1/net/netmap/files/patch-makelist__args.c	Sat Jan 25 12:59:35 2014	(r341021, copy of r340257, head/net/netmap/files/patch-makelist__args.c)
 @@ -0,0 +1,29 @@
 +--- makelist/args.c.orig
 ++++ makelist/args.c
 +@@ -1,6 +1,6 @@
 +-#include <strstream>
 ++#include <sstream>
 + #include <iostream>
 +-#include <stdlib.h>
 ++#include <cstdlib>
 + 
 + using namespace std;
 + 
 +@@ -35,7 +35,7 @@
 +     exit(-1);
 + }    
 + 
 +-static void set_string_arg(strstream& ss, string& val) 
 ++static void set_string_arg(stringstream& ss, string& val) 
 + {
 +     string argvalue;
 +     ss >> argvalue;
 +@@ -62,7 +62,7 @@
 + 
 + static void process(const string& argline) 
 + {
 +-    strstream ss;
 ++    stringstream ss;
 +     ss << argline;
 + 
 +     string arg;
 
 Modified: branches/2014Q1/net/netmap/files/patch-netmap::Makefile
 ==============================================================================
 --- branches/2014Q1/net/netmap/files/patch-netmap::Makefile	Sat Jan 25 12:58:29 2014	(r341020)
 +++ branches/2014Q1/net/netmap/files/patch-netmap::Makefile	Sat Jan 25 12:59:35 2014	(r341021)
 @@ -10,7 +10,14 @@
   
   CPPFLAGS = -I../belgolib
   
 -@@ -34,7 +33,7 @@
 +@@ -28,13 +27,13 @@
 + 
 + test: $(OFILES)
 + 	$(CC) -o $(OEXE) $(OFILES) $(LDFLAGS)
 +-	strip $(OEXE)
 ++#	strip $(OEXE)
 + 
 + clean:
   	-/bin/rm -f $(OFILES) $(OEXE)
   
   depend: 
 
 Modified: branches/2014Q1/net/netmap/files/patch-netmap::lookup.c
 ==============================================================================
 --- branches/2014Q1/net/netmap/files/patch-netmap::lookup.c	Sat Jan 25 12:58:29 2014	(r341020)
 +++ branches/2014Q1/net/netmap/files/patch-netmap::lookup.c	Sat Jan 25 12:59:35 2014	(r341021)
 @@ -1,7 +1,7 @@
  --- netmap/lookup.c.orig	2010-01-06 07:59:38.000000000 +0900
  +++ netmap/lookup.c	2011-11-23 22:32:15.000000000 +0900
 -@@ -1,6 +1,8 @@
 - #include <strstream>
 +@@ -1,6 +1,7 @@
 +-#include <strstream>
   #include <iostream>
   
  +#include <sys/types.h>
 
 Modified: branches/2014Q1/net/netmap/files/patch-netmap::misc.c
 ==============================================================================
 --- branches/2014Q1/net/netmap/files/patch-netmap::misc.c	Sat Jan 25 12:58:29 2014	(r341020)
 +++ branches/2014Q1/net/netmap/files/patch-netmap::misc.c	Sat Jan 25 12:59:35 2014	(r341021)
 @@ -1,6 +1,21 @@
  --- netmap/misc.c.orig	Sun Dec 15 14:54:26 2002
  +++ netmap/misc.c	Sun Dec 15 14:54:26 2002
 -@@ -54,7 +54,7 @@
 +@@ -1,4 +1,4 @@
 +-#include <strstream>
 ++#include <sstream>
 + #include <string>
 + 
 + #include "misc.h"
 +@@ -17,7 +17,7 @@
 + 
 + string int_to_str(int i) 
 + {
 +-    strstream ost;
 ++    stringstream ost;
 + 
 +     ost << i << char(0);
 + 
 +@@ -55,7 +55,7 @@
   	return false;
       
       bool had_point = false;
 
 Copied: branches/2014Q1/net/netmap/files/patch-netmap__args.c (from r340257, head/net/netmap/files/patch-netmap__args.c)
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ branches/2014Q1/net/netmap/files/patch-netmap__args.c	Sat Jan 25 12:59:35 2014	(r341021, copy of r340257, head/net/netmap/files/patch-netmap__args.c)
 @@ -0,0 +1,26 @@
 +--- netmap/args.c.orig
 ++++ netmap/args.c
 +@@ -1,4 +1,4 @@
 +-#include <strstream>
 ++#include <sstream>
 + #include <iostream>
 + #include <string>
 + 
 +@@ -47,7 +47,7 @@
 +     exit(0);
 + }
 + 
 +-static void set_string_arg(strstream& ss, string& val) 
 ++static void set_string_arg(stringstream& ss, string& val) 
 + {
 +     string argvalue;
 +     ss >> argvalue;
 +@@ -60,7 +60,7 @@
 + 
 + static void process(const string& argline) 
 + {
 +-    strstream ss;
 ++    stringstream ss;
 +     ss << argline;
 + 
 +     string arg;
 
 Copied: branches/2014Q1/net/netmap/files/patch-netmap__drawmap.c (from r340257, head/net/netmap/files/patch-netmap__drawmap.c)
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ branches/2014Q1/net/netmap/files/patch-netmap__drawmap.c	Sat Jan 25 12:59:35 2014	(r341021, copy of r340257, head/net/netmap/files/patch-netmap__drawmap.c)
 @@ -0,0 +1,7 @@
 +--- netmap/drawmap.c.orig
 ++++ netmap/drawmap.c
 +@@ -1,4 +1,3 @@
 +-#include <strstream>
 + #include <iostream>
 + 
 + #include <fstream>
 
 Copied: branches/2014Q1/net/netmap/files/patch-netmap__hostclass.c (from r340257, head/net/netmap/files/patch-netmap__hostclass.c)
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ branches/2014Q1/net/netmap/files/patch-netmap__hostclass.c	Sat Jan 25 12:59:35 2014	(r341021, copy of r340257, head/net/netmap/files/patch-netmap__hostclass.c)
 @@ -0,0 +1,7 @@
 +--- netmap/hostclass.c.orig
 ++++ netmap/hostclass.c
 +@@ -1,4 +1,3 @@
 +-#include <strstream>
 + #include <map>
 + 
 + //from belgolib
 
 Copied: branches/2014Q1/net/netmap/files/patch-netmap__hostclass.h (from r340257, head/net/netmap/files/patch-netmap__hostclass.h)
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ branches/2014Q1/net/netmap/files/patch-netmap__hostclass.h	Sat Jan 25 12:59:35 2014	(r341021, copy of r340257, head/net/netmap/files/patch-netmap__hostclass.h)
 @@ -0,0 +1,15 @@
 +--- netmap/hostclass.h.orig
 ++++ netmap/hostclass.h
 +@@ -48,10 +48,10 @@
 +     HostClass* a;
 +     HostClass* b;
 + 
 +-    bool operator==(HostLink& hl)
 ++    bool operator==(const HostLink& hl) const
 + 	{ return a == hl.a && b == hl.b; }
 + 
 +-    bool operator <(HostLink& hl)
 ++    bool operator <(const HostLink& hl) const
 + 	{ return a==hl.a ? b < hl.b : a < hl.a; }
 + };
 + 
 
 Copied: branches/2014Q1/net/netmap/files/patch-netmap__lookup.h (from r340257, head/net/netmap/files/patch-netmap__lookup.h)
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ branches/2014Q1/net/netmap/files/patch-netmap__lookup.h	Sat Jan 25 12:59:35 2014	(r341021, copy of r340257, head/net/netmap/files/patch-netmap__lookup.h)
 @@ -0,0 +1,15 @@
 +--- netmap/lookup.h.orig
 ++++ netmap/lookup.h
 +@@ -14,10 +14,10 @@
 +     string ip;
 +     string hostname;
 + 
 +-    bool operator==(const HostRec& hr)
 ++    bool operator==(const HostRec& hr) const
 + 	{ return ip == hr.ip && hostname == hr.hostname; }
 + 
 +-    bool operator<(const HostRec& hr)
 ++    bool operator<(const HostRec& hr) const
 + 	{ return ip==hr.ip ? hostname<hr.hostname : ip<hr.ip; }
 + };
 + 
 
 Copied: branches/2014Q1/net/netmap/files/patch-netmap__misc.h (from r340257, head/net/netmap/files/patch-netmap__misc.h)
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ branches/2014Q1/net/netmap/files/patch-netmap__misc.h	Sat Jan 25 12:59:35 2014	(r341021, copy of r340257, head/net/netmap/files/patch-netmap__misc.h)
 @@ -0,0 +1,10 @@
 +--- netmap/misc.h.orig
 ++++ netmap/misc.h
 +@@ -2,7 +2,6 @@
 + #define _misc_h_
 + 
 + #include <string>
 +-#include <strstream>
 + #include <iostream>
 + 
 + #include <list>
 
 Copied: branches/2014Q1/net/netmap/files/patch-netmap__netmap.c (from r340257, head/net/netmap/files/patch-netmap__netmap.c)
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ branches/2014Q1/net/netmap/files/patch-netmap__netmap.c	Sat Jan 25 12:59:35 2014	(r341021, copy of r340257, head/net/netmap/files/patch-netmap__netmap.c)
 @@ -0,0 +1,26 @@
 +--- netmap/netmap.c.orig
 ++++ netmap/netmap.c
 +@@ -1,4 +1,4 @@
 +-#include <strstream>
 ++#include <sstream>
 + #include <iostream>
 + #include <fstream>
 + 
 +@@ -18,7 +18,7 @@
 + Dbgfile dbgs;
 + int cdb = 1;
 + 
 +-static void copy_line(strstream& os, istream& inf) 
 ++static void copy_line(stringstream& os, istream& inf) 
 + {
 +     string result;
 + 
 +@@ -67,7 +67,7 @@
 +     int nr_hops = 0;
 +     int invalid_hosts_found = 0;
 +     while(inf && !inf.eof()) {
 +-	strstream line;
 ++	stringstream line;
 + 	copy_line(line, inf);
 + 	
 + 	if(max_hops && ++nr_hops > max_hops) {
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
