update to 1.1.3 (stable) - no change, only our patch merged

This commit is contained in:
Remi Collet 2014-01-15 10:25:54 +01:00
parent 1b813cb74c
commit 04aca47e06
4 changed files with 7 additions and 97 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ package-*.xml
/rrd-1.1.0.tgz
/rrd-1.1.1.tgz
/rrd-1.1.2.tgz
/rrd-1.1.3.tgz

View File

@ -15,7 +15,7 @@
Summary: PHP Bindings for rrdtool
Name: php-pecl-rrd
Version: 1.1.2
Version: 1.1.3
Release: 1%{?dist}
License: BSD
Group: Development/Languages
@ -23,11 +23,6 @@ URL: http://pecl.php.net/package/rrd
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
# http://svn.php.net/viewvc?view=revision&revision=332619
# http://svn.php.net/viewvc?view=revision&revision=332620
# fix build with rrdtool < 1.4
Patch0: %{pecl_name}-svn.patch
BuildRequires: php-devel >= 5.3.2
BuildRequires: rrdtool
BuildRequires: rrdtool-devel >= 1.3.0
@ -62,10 +57,6 @@ system for time series data.
mv %{pecl_name}-%{version} NTS
cd NTS
%patch0 -p0 -b .svn
cd ..
cat > %{pecl_name}.ini << 'EOF'
; Enable %{pecl_name} extension module
extension=%{pecl_name}.so
@ -170,6 +161,10 @@ fi
%changelog
* Wed Jan 15 2014 Remi Collet <remi@fedoraproject.org> - 1.1.3-1
- Update to 1.1.3 (stable)
- drop merged patch
* Tue Jan 14 2014 Remi Collet <remi@fedoraproject.org> - 1.1.2-1
- Update to 1.1.2 (stable)
- install doc in pecl doc_dir

View File

@ -1,86 +0,0 @@
Index: config.m4
===================================================================
--- config.m4 (révision 332618)
+++ config.m4 (copie de travail)
@@ -67,6 +67,9 @@
dnl rrd_lastupdate_r available in 1.4.0+
PHP_CHECK_FUNC(rrd_lastupdate_r, rrd)
+ dnl rrd_disconnect available in 1.4.0+
+ PHP_CHECK_FUNC(rrdc_disconnect, rrd)
+
LDFLAGS=$old_LDFLAGS
PHP_NEW_EXTENSION(rrd, rrd.c rrd_graph.c rrd_create.c rrd_update.c rrd_info.c, $ext_shared)
Index: rrd.c
===================================================================
--- rrd.c (révision 332618)
+++ rrd.c (copie de travail)
@@ -481,6 +481,7 @@
}
/* }}} */
+#ifdef HAVE_RRDC_DISCONNECT
/* {{{ proto void rrdc_disconnect()
* Close any outstanding connection to rrd cache daemon.
*/
@@ -492,6 +493,7 @@
rrdc_disconnect();
}
+#endif
/* {{{ proto string rrd_version()
* Gets version of underlying librrd.
@@ -573,7 +575,9 @@
PHP_FE(rrd_restore, arginfo_rrd_restore)
PHP_FE(rrd_tune, arginfo_rrd_tune)
PHP_FE(rrd_xport, arginfo_rrd_xport)
+#ifdef HAVE_RRDC_DISCONNECT
PHP_FE(rrdc_disconnect, NULL)
+#endif
PHP_FE(rrd_version, NULL)
{NULL, NULL, NULL}
};
@@ -609,7 +613,9 @@
static PHP_MSHUTDOWN_FUNCTION(rrd)
{
/* ensure that any connection to rrd cache deamon will be closed */
+#ifdef HAVE_RRDC_DISCONNECT
rrdc_disconnect();
+#endif
return SUCCESS;
}
/* }}} */
Index: tests/rrd_012.phpt
===================================================================
--- tests/rrd_012.phpt (révision 332618)
+++ tests/rrd_012.phpt (copie de travail)
@@ -11,6 +11,8 @@
--FILE--
<?php
include('data/definition.inc');
+putenv('LANG=C');
+setlocale(LC_ALL, 'C');
var_dump($info = rrd_info($data_updatedDb));
var_dump($info["filename"] == $data_updatedDb);
?>
Index: tests/rrd_022.phpt
===================================================================
--- tests/rrd_022.phpt (révision 332618)
+++ tests/rrd_022.phpt (copie de travail)
@@ -1,7 +1,13 @@
--TEST--
rrdc_disconnect test
--SKIPIF--
-<?php include('skipif.inc'); ?>
+<?php
+include('skipif.inc');
+if (!function_exists("rrdc_disconnect")) {
+ die("skip rrdc_disconnect only in rrdtool >= 1.4");
+}
+
+?>
--FILE--
<?php
var_dump(rrdc_disconnect());

View File

@ -1 +1 @@
edd7873d9205d987ba4ec8bf6ad38392 rrd-1.1.2.tgz
bde6c50fa2aa39090ed22e574ac71c5a rrd-1.1.3.tgz