From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 4 14:50:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DF061C43 for ; Thu, 4 Jul 2013 14:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id C0D9C1A4D for ; Thu, 4 Jul 2013 14:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r64Eo0Y5075659 for ; Thu, 4 Jul 2013 14:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r64Eo0XT075658; Thu, 4 Jul 2013 14:50:00 GMT (envelope-from gnats) Resent-Date: Thu, 4 Jul 2013 14:50:00 GMT Resent-Message-Id: <201307041450.r64Eo0XT075658@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Lars Eggert Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C5F1C98F for ; Thu, 4 Jul 2013 14:42:08 +0000 (UTC) (envelope-from elars@netapp.com) Received: from mx12.netapp.com (mx12.netapp.com [216.240.18.77]) by mx1.freebsd.org (Postfix) with ESMTP id AFE8319C9 for ; Thu, 4 Jul 2013 14:42:08 +0000 (UTC) Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx12-out.netapp.com with ESMTP; 04 Jul 2013 07:42:02 -0700 Received: from stanley.muccbc.hq.netapp.com ([10.65.56.245]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id r64Eg1gB004395 for ; Thu, 4 Jul 2013 07:42:02 -0700 (PDT) Received: from stanley.muccbc.hq.netapp.com (localhost [127.0.0.1]) by stanley.muccbc.hq.netapp.com (8.14.7/8.14.7) with ESMTP id r64Eg0s2068980 for ; Thu, 4 Jul 2013 16:42:00 +0200 (CEST) (envelope-from elars@stanley.muccbc.hq.netapp.com) Received: (from root@localhost) by stanley.muccbc.hq.netapp.com (8.14.7/8.14.7/Submit) id r64Eg0e9068979; Thu, 4 Jul 2013 16:42:00 +0200 (CEST) (envelope-from elars) Message-Id: <201307041442.r64Eg0e9068979@stanley.muccbc.hq.netapp.com> Date: Thu, 4 Jul 2013 16:42:00 +0200 (CEST) From: Lars Eggert To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/180259: [MAINTAINER] benchmarks/flowgrind: fix IPv6 address parsing X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jul 2013 14:50:00 -0000 >Number: 180259 >Category: ports >Synopsis: [MAINTAINER] benchmarks/flowgrind: fix IPv6 address parsing >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: Thu Jul 04 14:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Lars Eggert >Release: FreeBSD 9.1-STABLE amd64 >Organization: >Environment: System: FreeBSD stanley.muccbc.hq.netapp.com 9.1-STABLE FreeBSD 9.1-STABLE #1: Mon Jul 1 11:18:47 CEST >Description: Fix IPv6 address parsing. (Patch from upstream.) Also enable debugging by default. Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: suffix) >How-To-Repeat: >Fix: --- flowgrind-0.6.0_2.patch begins here --- diff -ruN ../flowgrind.orig/Makefile ./Makefile --- ../flowgrind.orig/Makefile 2013-07-04 16:19:31.000000000 +0200 +++ ./Makefile 2013-07-04 16:21:51.000000000 +0200 @@ -3,7 +3,7 @@ PORTNAME= flowgrind PORTVERSION= 0.6.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= benchmarks MASTER_SITES= https://launchpad.net/flowgrind/trunk/${PORTNAME}-0.6/+download/ @@ -16,6 +16,7 @@ USE_BZIP2= yes GNU_CONFIGURE= yes +CONFIGURE_ARGS= --enable-debug FETCH_ARGS= -pRr MAN1= flowgrind-stop.1 \ diff -ruN ../flowgrind.orig/files/patch-flowgrind ./files/patch-flowgrind --- ../flowgrind.orig/files/patch-flowgrind 1970-01-01 01:00:00.000000000 +0100 +++ ./files/patch-flowgrind 2013-07-04 16:20:29.000000000 +0200 @@ -0,0 +1,29 @@ +--- src/flowgrind.c ++++ src/flowgrind.c +@@ -1872,7 +1872,7 @@ static void parse_flow_option(int ch, char* optarg, int current_flow_ids[]) { + + if (extra_rpc) { + /* Now it's getting tricky... */ +- /* 1st case: IPv6 with port, e.g. "[a:b::c]a:5999" */ ++ /* 1st case: IPv6 with port, e.g. "[a:b::c]:5999" */ + if ((sepptr = strchr(rpc_address, ']'))) { + is_ipv6 = 1; + *sepptr = '\0'; +@@ -1884,7 +1884,7 @@ static void parse_flow_option(int ch, char* optarg, int current_flow_ids[]) { + port = atoi(sepptr); + } else if ((sepptr = strchr(rpc_address, ':'))) { + /* 2nd case: IPv6 without port, e.g. "a:b::c" */ +- if (strchr(sepptr, ':')) { ++ if (strchr(sepptr+1, ':')) { + is_ipv6 = 1; + } else { + /* 3rd case: IPv4 or name with port 1.2.3.4:5999*/ +@@ -1910,7 +1910,7 @@ static void parse_flow_option(int ch, char* optarg, int current_flow_ids[]) { + fprintf(stderr, "No test host given in argument\n"); + usage(); + } +- if (is_ipv6) ++ if (is_ipv6) + sprintf(url, "http://[%s]:%d/RPC2", rpc_address, port); + else + sprintf(url, "http://%s:%d/RPC2", rpc_address, port); --- flowgrind-0.6.0_2.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: