- One more addition to initrrdtool patch, to fully revert and correct

upstream changeset 839
- Sync fix for no python in minimal fc4 buildroots
This commit is contained in:
Jarod Wilson 2006-08-02 14:43:17 +00:00
parent dcaa6da059
commit 126afa2e0c
2 changed files with 20 additions and 8 deletions

View File

@ -1,24 +1,23 @@
--- rrdtool-1.2.15/bindings/python/rrdtoolmodule.c.initrrdtool 2006-07-14 08:11:26.000000000 -0400 diff -ur rrdtool-1.2.15.orig/bindings/python/rrdtoolmodule.c rrdtool-1.2.15/bindings/python/rrdtoolmodule.c
+++ rrdtool-1.2.15/bindings/python/rrdtoolmodule.c 2006-08-01 15:21:49.000000000 -0400 --- rrdtool-1.2.15.orig/bindings/python/rrdtoolmodule.c 2006-07-14 08:11:26.000000000 -0400
@@ -48,8 +48,8 @@ +++ rrdtool-1.2.15/bindings/python/rrdtoolmodule.c 2006-08-02 10:20:38.000000000 -0400
@@ -48,8 +48,7 @@
extern int opterr; extern int opterr;
/* forward declaration to keep compiler happy */ /* forward declaration to keep compiler happy */
-/*void initrrdtool(void);*/ -/*void initrrdtool(void);*/
-void initrrdtoolmodule(void); -void initrrdtoolmodule(void);
+void initrrdtool(void); +void initrrdtool(void);
+/*void initrrdtoolmodule(void);*/
static int static int
create_args(char *command, PyObject *args, int *argc, char ***argv) create_args(char *command, PyObject *args, int *argc, char ***argv)
@@ -518,13 +518,13 @@ @@ -518,19 +517,18 @@
/* Initialization function for the module */ /* Initialization function for the module */
void void
-/*initrrdtool(void)*/ -/*initrrdtool(void)*/
-initrrdtoolmodule(void) -initrrdtoolmodule(void)
+initrrdtool(void) +initrrdtool(void)
+/*initrrdtoolmodule(void)*/
{ {
PyObject *m, *d, *t; PyObject *m, *d, *t;
@ -28,3 +27,10 @@
/* Add some symbolic constants to the module */ /* Add some symbolic constants to the module */
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
SET_STRCONSTANT(d, __version__);
- ErrorObject = PyErr_NewException("rrdtoolmodule.error", NULL, NULL);
+ ErrorObject = PyErr_NewException("rrdtool.error", NULL, NULL);
PyDict_SetItemString(d, "error", ErrorObject);
/* Check for errors */

View File

@ -4,7 +4,7 @@
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.2.15 Version: 1.2.15
Release: 2%{?dist} Release: 3%{?dist}
License: GPL License: GPL
Group: Applications/Databases Group: Applications/Databases
URL: http://people.ee.ethz.ch/~oetiker/webtools/%{name}/ URL: http://people.ee.ethz.ch/~oetiker/webtools/%{name}/
@ -18,7 +18,8 @@ BuildRequires: libpng-devel, zlib-devel, libart_lgpl-devel >= 2.0
BuildRequires: freetype-devel, python-devel >= 2.3 BuildRequires: freetype-devel, python-devel >= 2.3
%{!?python_sitearch: %define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')} %{!?python_sitearch: %define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')}
%{!?python_version: %define python_version %(%{__python} -c 'import sys; print sys.version.split(" ")[0]')} # eval to 2.3 if python isn't yet present, workaround for no python in fc4 minimal buildroot
%{!?python_version: %define python_version %(%{__python} -c 'import sys; print sys.version.split(" ")[0]' || echo "2.3")}
%description %description
RRD is the Acronym for Round Robin Database. RRD is a system to store and RRD is the Acronym for Round Robin Database. RRD is a system to store and
@ -221,6 +222,11 @@ find examples/ -type f -exec chmod 0644 {} \;
%{php_extdir}/rrdtool.so %{php_extdir}/rrdtool.so
%changelog %changelog
* Wed Aug 02 2006 Jarod Wilson <jwilson@redhat.com> 1.2.15-3
- One more addition to initrrdtool patch, to fully revert
and correct upstream changeset 839
- Fix for no python in minimal fc4 buildroots
* Tue Aug 1 2006 Mihai Ibanescu <misa@redhat.com> 1.2.15-2 * Tue Aug 1 2006 Mihai Ibanescu <misa@redhat.com> 1.2.15-2
- Fixed rrdtool-python to import the module properly (patch - Fixed rrdtool-python to import the module properly (patch
rrdtool-1.2.15-initrrdtool.patch) rrdtool-1.2.15-initrrdtool.patch)