diff options
author | mharo <mharo@FreeBSD.org> | 2005-08-30 13:03:39 +0800 |
---|---|---|
committer | mharo <mharo@FreeBSD.org> | 2005-08-30 13:03:39 +0800 |
commit | 5c39ca8e696670b12eac3f4daceb3dd608dd9740 (patch) | |
tree | 4d4561f5dfb3fe2ab378c8ee7405a3adc6a4ea3c /graphics | |
parent | cc7bdd697eeb3b36eb5dcf2dc2ffcc52bfe5b7af (diff) | |
download | freebsd-ports-gnome-5c39ca8e696670b12eac3f4daceb3dd608dd9740.tar.gz freebsd-ports-gnome-5c39ca8e696670b12eac3f4daceb3dd608dd9740.tar.zst freebsd-ports-gnome-5c39ca8e696670b12eac3f4daceb3dd608dd9740.zip |
Fix an incompatible change in RRDtool 1.2 where colons in COMMENT
arguments to RRDs::graph must be escaped with a backslash.
Obtained from: Revision 473 in SVN
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/orca/Makefile | 1 | ||||
-rw-r--r-- | graphics/orca/files/patch-lib_Orca_ImageFile.pm | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/graphics/orca/Makefile b/graphics/orca/Makefile index 27ba52f20f60..bdf7629a2f9d 100644 --- a/graphics/orca/Makefile +++ b/graphics/orca/Makefile @@ -7,6 +7,7 @@ PORTNAME= orca PORTVERSION= 0.27b3 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= http://www.orcaware.com/orca/pub/ diff --git a/graphics/orca/files/patch-lib_Orca_ImageFile.pm b/graphics/orca/files/patch-lib_Orca_ImageFile.pm new file mode 100644 index 000000000000..34ced9c6043d --- /dev/null +++ b/graphics/orca/files/patch-lib_Orca_ImageFile.pm @@ -0,0 +1,27 @@ +--- lib/Orca/ImageFile.pm 2005/07/11 05:21:08 461 ++++ lib/Orca/ImageFile.pm 2005/07/21 02:48:44 467 +@@ -400,6 +400,14 @@ + + my $plot_ref = $self->[I_PLOT_REF]; + ++ # An incompatible change was introduced in RRDtool 1.2 where colons ++ # in COMMENT arguments to RRDs::graph must be escaped with a ++ # backslash. ++ my $plot_end_time_ctime = localtime($plot_end_time); ++ if ($RRDs::VERSION >= 1.2) { ++ $plot_end_time_ctime =~ s/:/\\:/g; ++ } ++ + my ($graph_return, $image_width, $image_height) = + RRDs::graph + $image_filename, +@@ -410,7 +418,7 @@ + '-w', $plot_ref->{plot_width}, + '-h', $plot_ref->{plot_height}, + 'COMMENT:\s', +- 'COMMENT:Last data entered at ' . localtime($plot_end_time) . '.'; ++ "COMMENT:Last data entered at $plot_end_time_ctime."; + if (my $error = RRDs::error) { + warn "$0: warning: cannot create '$image_filename': $error\n"; + return; + |