Date: 13 Jan 2005 16:22:11 +0900 From: Yuichiro AIZAWA <yaizawa@mdbl.sfc.keio.ac.jp> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Yuichiro AIZAWA <yaizawa@mdbl.sfc.keio.ac.jp> Subject: ports/76190: quickml-analog dosen't work with gnuplot 4.0 Message-ID: <20050113072211.55096.qmail@amaterasu.yaizawa.jp> Resent-Message-ID: <200501130730.j0D7UOQH032369@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 76190 >Category: ports >Synopsis: quickml-analog dosen't work with gnuplot 4.0 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Thu Jan 13 07:30:21 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Yuichiro AIZAWA >Release: FreeBSD 5.3-RELEASE-p2 i386 >Organization: Graduate School of Media and Governance, Keio University >Environment: System: FreeBSD amaterasu.yaizawa.jp 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #13: Fri Dec 3 12:47:27 JST 2004 yaizawa@amaterasu.yaizawa.jp:/usr/obj/usr/src/sys/TP570 i386 >Description: Quickml-analog works with gnuplot. Quickml-analog generates gnuplot script, but the script dosen't work with gnuplot 4.0. Because the syntax of gnuplot was small changed. >How-To-Repeat: # quickml-analog -i -o /tmp/quickml /var/log/quickml.log Analyzing the log file... Fri Dec 17 00:00:00 JST 2004 Sat Dec 18 00:00:00 JST 2004 Sun Dec 19 00:00:00 JST 2004 (snip...) Tue Jan 11 00:00:00 JST 2005 Wed Jan 12 00:00:00 JST 2005 Thu Jan 13 00:00:00 JST 2005 Writing statistics files... Generating a gnuplot script... Generating EPS files using gnuplot... "quickml-analog.gp", line 6: undefined variable: linetype Generating PNG files using ImageMagick for en... convert: unable to open image `*.eps': No such file or directory. convert: missing an image filename `*.png'. Generating PNG files using ImageMagick for ja... convert: unable to open image `*.eps': No such file or directory. convert: missing an image filename `*.png'. >Fix: diff -ruN quickml.old/Makefile quickml/Makefile --- quickml.old/Makefile Thu Jan 13 15:42:48 2005 +++ quickml/Makefile Thu Jan 13 15:50:38 2005 @@ -56,7 +56,7 @@ post-patch: .if !defined(WITHOUT_LIMIT) - ${PATCH} ${PATCH_DIST_ARGS} < ${DISTDIR}/${PORTNAME}-${PORTVERSION}-limited.patch + @${PATCH} ${PATCH_DIST_ARGS} < ${DISTDIR}/${PORTNAME}-${PORTVERSION}-limited.patch .endif @${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ ${FILESDIR}/quickml.sh > ${WRKDIR}/quickml.sh diff -ruN quickml.old/files/patch-quickml-analog.in quickml/files/patch-quickml-analog.in --- quickml.old/files/patch-quickml-analog.in Thu Jan 1 09:00:00 1970 +++ quickml/files/patch-quickml-analog.in Thu Jan 13 15:47:28 2005 @@ -0,0 +1,74 @@ +*** quickml-analog.in.orig 2004-06-07 17:50:59.000000000 +0900 +--- quickml-analog.in 2005-01-07 19:11:59.000000000 +0900 +*************** +*** 15,20 **** +--- 15,21 ---- + require 'ftools' + require 'time' + require 'cgi' ++ require 'open3' + + class Array + def tail (n) +*************** +*** 395,413 **** + end + + def add_basic (f) +! f.print ' +! set grid +! set timefmt "%y%m%d%H" +! set xdata time +! set size ratio 0.76 +! set linestyle 1 linetype 1 linewidth 5 +! set linestyle 2 linetype 3 linewidth 5 +! set linestyle 3 linetype 2 linewidth 5 +! set linestyle 4 linetype 4 linewidth 5 +! set linestyle 5 linetype 5 linewidth 5 +! set linestyle 6 linetype 7 linewidth 5 + +! '.gsub(/^ /, "") + end + + def add_chart (f, default, lang, chart_prefix, stat_files, type, +--- 396,435 ---- + end + + def add_basic (f) +! Open3.popen3( "gnuplot" ) { |stdin, stdout, stderr| +! stdin.puts "show version" +! stdin.close +! stderr.read[/[Vv]ersion (\d+\.\d+)/] +! } +! if ( Float( $1 ) < 4.0 ) then +! f.print ' +! set grid +! set timefmt "%y%m%d%H" +! set xdata time +! set size ratio 0.76 +! set linestyle 1 linetype 1 linewidth 5 +! set linestyle 2 linetype 3 linewidth 5 +! set linestyle 3 linetype 2 linewidth 5 +! set linestyle 4 linetype 4 linewidth 5 +! set linestyle 5 linetype 5 linewidth 5 +! set linestyle 6 linetype 7 linewidth 5 + +! '.gsub(/^ /, "") +! else +! f.print ' +! set grid +! set timefmt "%y%m%d%H" +! set xdata time +! set size ratio 0.76 +! set style line 1 linetype 1 linewidth 5 +! set style line 2 linetype 3 linewidth 5 +! set style line 3 linetype 2 linewidth 5 +! set style line 4 linetype 4 linewidth 5 +! set style line 5 linetype 5 linewidth 5 +! set style line 6 linetype 7 linewidth 5 +! +! '.gsub(/^ /, "") +! end + end + + def add_chart (f, default, lang, chart_prefix, stat_files, type, >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050113072211.55096.qmail>