From nobody@FreeBSD.org  Sun Jul  3 04:53:54 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 88E81106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  3 Jul 2011 04:53:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 7974D8FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  3 Jul 2011 04:53:54 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p634rsBG019046
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 3 Jul 2011 04:53:54 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p634rsCd019017;
	Sun, 3 Jul 2011 04:53:54 GMT
	(envelope-from nobody)
Message-Id: <201107030453.p634rsCd019017@red.freebsd.org>
Date: Sun, 3 Jul 2011 04:53:54 GMT
From: pirat sriyotha <jotawski@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bench2graph use gnuplot deprecated syntax that resulted in error
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         158602
>Category:       ports
>Synopsis:       benchmarks/autobench: bench2graph use gnuplot deprecated syntax that resulted in error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sylvio
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 03 05:00:21 UTC 2011
>Closed-Date:    Wed Jul 27 18:46:04 UTC 2011
>Last-Modified:  Wed Jul 27 18:46:04 UTC 2011
>Originator:     pirat sriyotha
>Release:        FreeBSD wmc.homeunix.org 8.2-RELEASE-p0 FreeBSD 8.2-RELEASE-p0 #1: Sun May 29 15:21:52 ICT 2011     root@jotawski.tint.or.th:/usr/obj/usr/src/sys/JOTAWSKI  amd64
>Organization:
>Environment:
FreeBSD wmc.homeunix.org 8.2-RELEASE-p0 FreeBSD 8.2-RELEASE-p0 #1: Sun May 29 15:21:52 ICT 2011     root@jotawski.tint.or.th:/usr/obj/usr/src/sys/JOTAWSKI  amd64
>Description:
autobench does not generate the correct gnuplot.cmd script for producing a graph.
the graph generated from bench2graph produced error as follow :-

[wmc] ~# bench2graph result-1000.tsv result-1000.ps
Enter the title : core i5 httperf test

set data style linespoints
    ^
"gnuplot.cmd", line 6: Unrecognized option.  See 'help set'.

my gnuplot need a different syntax so I edit bench2graph accordingly and rerun bench2graph without any errors.

the autobench command is

autobench --single_host --quiet --file result-1000.tsv --num_conn 1000 --uri1 /gallery3


>How-To-Repeat:
# autobench --single_host --quiet --file result-1000.tsv --num_conn 1000 --uri1 /gallery3

# bench2graph result-1000.tsv result-1000.ps

>Fix:
edit /usr/local/bin/bench2graph at line 77 by swapping data style to style data


Patch attached with submission follows:

--- bench2graph	2011-07-03 09:13:53.000000000 +0700
+++ bench2graph.orig	2011-07-03 09:13:12.000000000 +0700
@@ -74,7 +74,7 @@
 echo set key box >> gnuplot.cmd
 echo set grid >> gnuplot.cmd
 echo set output \"${output}\" >> gnuplot.cmd
-echo set style data linespoints >> gnuplot.cmd
+echo set data style linespoints >> gnuplot.cmd
 echo set title \"$title\" >> gnuplot.cmd
 echo -n plot >> gnuplot.cmd
 j=0


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sylvio 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Jul 3 05:22:54 UTC 2011 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=158602 
State-Changed-From-To: open->closed 
State-Changed-By: sylvio 
State-Changed-When: Wed Jul 27 18:46:02 UTC 2011 
State-Changed-Why:  
This patch is already applied. 

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