ports/158602: bench2graph use gnuplot deprecated syntax that resulted in error

pirat sriyotha jotawski at gmail.com
Sun Jul 3 05:00:22 UTC 2011


>Number:         158602
>Category:       ports
>Synopsis:       bench2graph use gnuplot deprecated syntax that resulted in error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 03 05:00:21 UTC 2011
>Closed-Date:
>Last-Modified:
>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 at 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 at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list