Date: Sun, 12 Jan 2014 21:32:08 +0800 (CST) From: Gea-Suan Lin <gslin@gslin.org> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/185683: [MAINTAINER] net/yconalyzer: Fix build in FreeBSD 10 Message-ID: <20140112133208.0F11E7E882@colo-p.gslin.org> Resent-Message-ID: <201401121350.s0CDo0J0082012@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 185683 >Category: ports >Synopsis: [MAINTAINER] net/yconalyzer: Fix build in FreeBSD 10 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun Jan 12 13:50:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Gea-Suan Lin >Release: FreeBSD 9.1-RELEASE-p6 i386 >Organization: >Environment: System: FreeBSD colo-p.gslin.org 9.1-RELEASE-p6 FreeBSD 9.1-RELEASE-p6 #0: Wed Aug 21 20:30:17 UTC 2013 >Description: * Fix build in FreeBSD 10. * Remove NO_STAGE. Generated with FreeBSD Port Tools 0.99_11 (mode: change, diff: ports) >How-To-Repeat: >Fix: --- yconalyzer-1.0.4_1.patch begins here --- diff -ruN /usr/ports/net/yconalyzer/Makefile ./Makefile --- /usr/ports/net/yconalyzer/Makefile 2013-09-21 06:10:23.000000000 +0800 +++ ./Makefile 2014-01-12 14:51:53.000000000 +0800 @@ -3,6 +3,7 @@ PORTNAME= yconalyzer PORTVERSION= 1.0.4 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= SF MASTER_SITE_SUBDIR= ${PORTNAME} @@ -17,7 +18,6 @@ MAN8= yconalyzer.8 -NO_STAGE= yes pre-install: ${CHMOD} a+x ${WRKSRC}/install-sh diff -ruN /usr/ports/net/yconalyzer/files/patch-yconalyzer.cc ./files/patch-yconalyzer.cc --- /usr/ports/net/yconalyzer/files/patch-yconalyzer.cc 1970-01-01 08:00:00.000000000 +0800 +++ ./files/patch-yconalyzer.cc 2014-01-12 14:18:17.000000000 +0800 @@ -0,0 +1,23 @@ +--- yconalyzer.cc.orig 2014-01-12 14:15:17.000000000 +0800 ++++ yconalyzer.cc 2014-01-12 14:17:49.000000000 +0800 +@@ -76,19 +76,11 @@ + + #include <string> + +-#if __GNUC__ > 2 + #include <map> +-using namespace _GLIBCXX_STD; ++using namespace std; + // Linux gcc-3 is not too happy with the format strings we use in BSD. + #define KEY_FMT_STRING "%#8x%#4x" + +-#else /* We are using gnu-c <= 2 */ +- +-#include <hash_map.h> +-#define KEY_FMT_STRING "%8ux%4hx" +- +-#endif +- + static int debug = 0; + static u_short port = 0; + static int nbuckets; --- yconalyzer-1.0.4_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140112133208.0F11E7E882>