- Fix use of rrd_update in php bindings (#437558)
This commit is contained in:
parent
4093f51e54
commit
5e4849bb98
12
rrdtool-1.3.0-beta4-fix-rrd_update-in-php-bindings.patch
Normal file
12
rrdtool-1.3.0-beta4-fix-rrd_update-in-php-bindings.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -Naurp rrdtool.orig/php4/rrdtool.c rrdtool/php4/rrdtool.c
|
||||||
|
--- rrdtool.orig/php4/rrdtool.c 2007-06-16 01:32:23.000000000 -0400
|
||||||
|
+++ rrdtool/php4/rrdtool.c 2008-04-05 23:37:04.000000000 -0400
|
||||||
|
@@ -381,7 +381,7 @@ PHP_FUNCTION(rrd_update)
|
||||||
|
argv[3] = estrdup(opt->value.str.val);
|
||||||
|
|
||||||
|
optind = 0; opterr = 0;
|
||||||
|
- if ( rrd_update(3, &argv[1]) != -1 )
|
||||||
|
+ if ( rrd_update(2, &argv[2]) != -1 )
|
||||||
|
{
|
||||||
|
RETVAL_TRUE;
|
||||||
|
}
|
@ -10,13 +10,14 @@
|
|||||||
Summary: Round Robin Database Tool to store and display time-series data
|
Summary: Round Robin Database Tool to store and display time-series data
|
||||||
Name: rrdtool
|
Name: rrdtool
|
||||||
Version: 1.3
|
Version: 1.3
|
||||||
Release: 0.9.%{betaver}%{?dist}
|
Release: 0.10.%{betaver}%{?dist}
|
||||||
License: GPLv2+ with exceptions
|
License: GPLv2+ with exceptions
|
||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
URL: http://oss.oetiker.ch/rrdtool/
|
URL: http://oss.oetiker.ch/rrdtool/
|
||||||
#Source0: http://oss.oetiker.ch/%{name}/pub/%{name}-%{version}.tar.gz
|
#Source0: http://oss.oetiker.ch/%{name}/pub/%{name}-%{version}.tar.gz
|
||||||
Source0: http://oss.oetiker.ch/rrdtool/pub/beta/%{name}-%{version}%{betaver}.tar.gz
|
Source0: http://oss.oetiker.ch/rrdtool/pub/beta/%{name}-%{version}%{betaver}.tar.gz
|
||||||
Source1: php4-%{svnrev}.tar.gz
|
Source1: php4-%{svnrev}.tar.gz
|
||||||
|
Patch1: rrdtool-1.3.0-beta4-fix-rrd_update-in-php-bindings.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Requires: dejavu-lgc-fonts
|
Requires: dejavu-lgc-fonts
|
||||||
BuildRequires: gcc-c++, openssl-devel, freetype-devel
|
BuildRequires: gcc-c++, openssl-devel, freetype-devel
|
||||||
@ -140,6 +141,9 @@ The %{name}-ruby package includes RRDtool bindings for Ruby.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{pretag} %{?with_php: -a 1}
|
%setup -q -n %{name}-%{pretag} %{?with_php: -a 1}
|
||||||
|
%if %{with_php}
|
||||||
|
%patch1 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
# Fix to find correct python dir on lib64
|
# 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' \
|
%{__perl} -pi -e 's|get_python_lib\(0,0,prefix|get_python_lib\(1,0,prefix|g' \
|
||||||
@ -316,6 +320,9 @@ find examples/ -type f -exec chmod 0644 {} \;
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Apr 05 2008 Jarod Wilson <jwilson@redhat.com> 1.3.0-0.10.beta4
|
||||||
|
- Fix use of rrd_update in php bindings (#437558)
|
||||||
|
|
||||||
* Mon Mar 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.3.0-0.9.beta4
|
* Mon Mar 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.3.0-0.9.beta4
|
||||||
- rebuild for new perl (again)
|
- rebuild for new perl (again)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user