rpms/rrdtool/F-9 rrdtool-1.3beta4-fix-cairo.patch, NONE, 1.1 rrdtool-1.3beta4-fix-python-bindings-rrdtool-info.patch, NONE, 1.1 rrdtool.spec, 1.57, 1.58
Jarod Wilson (jwilson)
fedora-extras-commits at redhat.com
Thu May 1 02:05:30 UTC 2008
- Previous message: rpms/kernel/F-9 linux-2.6-libata-ata_piix-check-sidpr.patch, NONE, 1.1 linux-2.6-md-fix-oops-in-rdev_attr_store.patch, NONE, 1.1 kernel.spec, 1.631, 1.632
- Next message: rpms/rrdtool/F-8 rrdtool-1.3beta4-fix-cairo.patch, NONE, 1.1 rrdtool-1.3beta4-fix-python-bindings-rrdtool-info.patch, NONE, 1.1 rrdtool.spec, 1.49, 1.50
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jwilson
Update of /cvs/pkgs/rpms/rrdtool/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10967
Modified Files:
rrdtool.spec
Added Files:
rrdtool-1.3beta4-fix-cairo.patch
rrdtool-1.3beta4-fix-python-bindings-rrdtool-info.patch
Log Message:
* Wed Apr 30 2008 Jarod Wilson <jwilson at redhat.com> 1.3.0-0.14.beta4
- Drop some conditional flags, they're not working at the moment...
- Fix problem with cairo_save/cairo_restore (#444827)
- Fix python bindings rrdtool info implementation (#435468)
rrdtool-1.3beta4-fix-cairo.patch:
--- NEW FILE rrdtool-1.3beta4-fix-cairo.patch ---
diff -Naurp rrdtool-1.2.99908020600/src/rrd_graph.c rrdtool-1.2.99908020600.fix/src/rrd_graph.c
--- rrdtool-1.2.99908020600/src/rrd_graph.c 2008-02-05 19:14:25.000000000 -0500
+++ rrdtool-1.2.99908020600.fix/src/rrd_graph.c 2008-04-30 21:12:13.000000000 -0400
@@ -3345,34 +3345,36 @@ int graph_paint(
switch (im->gdes[i].gf) {
case GF_HRULE:
if (im->gdes[i].yrule >= im->minval
- && im->gdes[i].yrule <= im->maxval)
- cairo_save(im->cr);
- if (im->gdes[i].dash) {
- cairo_set_dash(im->cr, im->gdes[i].p_dashes,
- im->gdes[i].ndash, im->gdes[i].offset);
- }
- gfx_line(im,
- im->xorigin, ytr(im, im->gdes[i].yrule),
- im->xorigin + im->xsize, ytr(im,
- im->gdes[i].yrule),
- 1.0, im->gdes[i].col);
- cairo_stroke(im->cr);
- cairo_restore(im->cr);
+ && im->gdes[i].yrule <= im->maxval) {
+ cairo_save(im->cr);
+ if (im->gdes[i].dash) {
+ cairo_set_dash(im->cr, im->gdes[i].p_dashes,
+ im->gdes[i].ndash, im->gdes[i].offset);
+ }
+ gfx_line(im,
+ im->xorigin, ytr(im, im->gdes[i].yrule),
+ im->xorigin + im->xsize, ytr(im,
+ im->gdes[i].yrule),
+ 1.0, im->gdes[i].col);
+ cairo_stroke(im->cr);
+ cairo_restore(im->cr);
+ }
break;
case GF_VRULE:
if (im->gdes[i].xrule >= im->start
- && im->gdes[i].xrule <= im->end)
- cairo_save(im->cr);
- if (im->gdes[i].dash) {
- cairo_set_dash(im->cr, im->gdes[i].p_dashes,
- im->gdes[i].ndash, im->gdes[i].offset);
- }
- gfx_line(im,
- xtr(im, im->gdes[i].xrule), im->yorigin,
- xtr(im, im->gdes[i].xrule),
- im->yorigin - im->ysize, 1.0, im->gdes[i].col);
- cairo_stroke(im->cr);
- cairo_restore(im->cr);
+ && im->gdes[i].xrule <= im->end) {
+ cairo_save(im->cr);
+ if (im->gdes[i].dash) {
+ cairo_set_dash(im->cr, im->gdes[i].p_dashes,
+ im->gdes[i].ndash, im->gdes[i].offset);
+ }
+ gfx_line(im,
+ xtr(im, im->gdes[i].xrule), im->yorigin,
+ xtr(im, im->gdes[i].xrule),
+ im->yorigin - im->ysize, 1.0, im->gdes[i].col);
+ cairo_stroke(im->cr);
+ cairo_restore(im->cr);
+ }
break;
default:
break;
rrdtool-1.3beta4-fix-python-bindings-rrdtool-info.patch:
--- NEW FILE rrdtool-1.3beta4-fix-python-bindings-rrdtool-info.patch ---
Index: rrdtool/bindings/python/rrd_extra.h
===================================================================
--- rrdtool/bindings/python/rrd_extra.h (revision 1306)
+++ rrdtool/bindings/python/rrd_extra.h (revision 1332)
@@ -54,5 +54,4 @@
int rrd_open(
char *file_name,
- FILE ** in_file,
rrd_t *rrd,
int rdwr);
Index: rrdtool/bindings/python/rrdtoolmodule.c
===================================================================
--- rrdtool/bindings/python/rrdtoolmodule.c (revision 1306)
+++ rrdtool/bindings/python/rrdtoolmodule.c (revision 1332)
@@ -412,5 +412,4 @@
PyObject *r, *t, *ds;
rrd_t rrd;
- FILE *in_file;
char *filename;
unsigned long i, j;
@@ -419,10 +418,9 @@
return NULL;
- if (rrd_open(filename, &in_file, &rrd, RRD_READONLY) == -1) {
- PyErr_SetString(ErrorObject, rrd_get_error());
- rrd_clear_error();
- return NULL;
- }
- fclose(in_file);
+ if (!rrd_open(filename, &rrd, RRD_READONLY) == -1) {
+ PyErr_SetString(ErrorObject, rrd_get_error());
+ rrd_clear_error();
+ return NULL;
+ }
#define DICTSET_STR(dict, name, value) \
Index: rrdtool.spec
===================================================================
RCS file: /cvs/pkgs/rpms/rrdtool/F-9/rrdtool.spec,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- rrdtool.spec 23 Apr 2008 18:38:11 -0000 1.57
+++ rrdtool.spec 1 May 2008 02:04:53 -0000 1.58
@@ -10,7 +10,7 @@
Summary: Round Robin Database Tool to store and display time-series data
Name: rrdtool
Version: 1.3
-Release: 0.12.%{betaver}%{?dist}
+Release: 0.14.%{betaver}%{?dist}
License: GPLv2+ with exceptions
Group: Applications/Databases
URL: http://oss.oetiker.ch/rrdtool/
@@ -18,15 +18,14 @@
Source0: http://oss.oetiker.ch/rrdtool/pub/beta/%{name}-%{version}%{betaver}.tar.gz
Source1: php4-%{svnrev}.tar.gz
Patch1: rrdtool-1.3.0-beta4-fix-rrd_update-in-php-bindings.patch
-Patch2: rrdtool-1.3b-fix-python-bindings-rrdtool-info.patch
+Patch2: rrdtool-1.3beta4-fix-python-bindings-rrdtool-info.patch
+Patch3: rrdtool-1.3beta4-fix-cairo.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: dejavu-lgc-fonts
BuildRequires: gcc-c++, openssl-devel, freetype-devel
BuildRequires: libpng-devel, zlib-devel, cairo-devel, pango-devel
BuildRequires: libtool, groff
-%if "%{?fedora}" >= "7"
BuildRequires: perl-ExtUtils-MakeMaker perl-devel
-%endif
%description
RRD is the Acronym for Round Robin Database. RRD is a system to store and
@@ -146,6 +145,7 @@
%patch1 -p1
%endif
%patch2 -p1
+%patch3 -p1
# Fix to find correct python dir on lib64
%{__perl} -pi -e 's|get_python_lib\(0,0,prefix|get_python_lib\(1,0,prefix|g' \
@@ -297,10 +297,8 @@
%defattr(-,root,root,-)
%doc bindings/python/AUTHORS bindings/python/COPYING bindings/python/README
%{python_sitearch}/rrdtoolmodule.so
-%if "%{?fedora}" >= "9"
%{python_sitearch}/py_rrdtool-*.egg-info
%endif
-%endif
%if %{with_php}
%files php
@@ -326,6 +324,12 @@
%endif
%changelog
+* Wed Apr 30 2008 Jarod Wilson <jwilson at redhat.com> 1.3.0-0.14.beta4
+- Drop some conditional flags, they're not working at the moment...
+
+* Wed Apr 30 2008 Jarod Wilson <jwilson at redhat.com> 1.3.0-0.13.beta4
+- Fix problem with cairo_save/cairo_restore (#444827)
+
* Wed Apr 23 2008 Jarod Wilson <jwilson at redhat.com> 1.3.0-0.12.beta4
- Fix python bindings rrdtool info implementation (#435468)
- Previous message: rpms/kernel/F-9 linux-2.6-libata-ata_piix-check-sidpr.patch, NONE, 1.1 linux-2.6-md-fix-oops-in-rdev_attr_store.patch, NONE, 1.1 kernel.spec, 1.631, 1.632
- Next message: rpms/rrdtool/F-8 rrdtool-1.3beta4-fix-cairo.patch, NONE, 1.1 rrdtool-1.3beta4-fix-python-bindings-rrdtool-info.patch, NONE, 1.1 rrdtool.spec, 1.49, 1.50
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list