54 VERSION_FROM => 'lib/RRDTool/OO.pm', # finds $VERSION |
51 VERSION_FROM => 'lib/RRDTool/OO.pm', # finds $VERSION |
55 PREREQ_PM => { |
52 PREREQ_PM => { |
56 - Log::Log4perl => '0.40', |
53 - Log::Log4perl => '0.40', |
57 RRDs => 0, |
54 RRDs => 0, |
58 }, # e.g., Module::Name => 1.1 |
55 }, # e.g., Module::Name => 1.1 |
59 ($] >= 5.005 ? ## Add these new keywords supported since 5.005 |
56 $ExtUtils::MakeMaker::VERSION >= 6.50 ? (%$meta_merge) : (), |
60 Index: RRDTool-OO-0.24/lib/RRDTool/OO.pm |
57 Index: RRDTool-OO-0.31/lib/RRDTool/OO.pm |
61 --- RRDTool-OO-0.24/lib/RRDTool/OO.pm.orig 2008-05-20 11:17:57 +0200 |
58 --- RRDTool-OO-0.31/lib/RRDTool/OO.pm.orig 2010-05-26 02:26:34.000000000 +0200 |
62 +++ RRDTool-OO-0.24/lib/RRDTool/OO.pm 2008-12-16 08:35:38 +0100 |
59 +++ RRDTool-OO-0.31/lib/RRDTool/OO.pm 2010-12-27 08:45:34.000000000 +0100 |
63 @@ -5,7 +5,6 @@ |
60 @@ -5,7 +5,6 @@ |
64 use warnings; |
61 use warnings; |
65 use Carp; |
62 use Carp; |
66 use RRDs; |
63 use RRDs; |
67 -use Log::Log4perl qw(:easy); |
64 -use Log::Log4perl qw(:easy); |
68 |
65 |
69 our $VERSION = '0.22'; |
66 our $VERSION = '0.31'; |
70 |
67 |
71 @@ -183,7 +182,7 @@ |
68 @@ -189,7 +188,7 @@ |
72 # Check if we got all mandatory parameters |
69 # Check if we got all mandatory parameters |
73 for(@{$ref->{mandatory}}) { |
70 for(@{$ref->{mandatory}}) { |
74 if(! exists $options_hash{$_}) { |
71 if(! exists $options_hash{$_}) { |
75 - Log::Log4perl->get_logger("")->logcroak( |
72 - Log::Log4perl->get_logger("")->logcroak( |
76 + croak( |
73 + croak( |
77 "Mandatory parameter '$_' not set " . |
74 "Mandatory parameter '$_' not set " . |
78 "in $method() (@{[%mandatory]}) (@$options)"); |
75 "in $method() (@{[%mandatory]}) (@$options)"); |
79 } |
76 } |
80 @@ -195,7 +194,7 @@ |
77 @@ -201,7 +200,7 @@ |
81 for(keys %options_hash) { |
78 for(keys %options_hash) { |
82 if(! exists $optional{$_} and |
79 if(! exists $optional{$_} and |
83 ! exists $mandatory{$_}) { |
80 ! exists $mandatory{$_}) { |
84 - Log::Log4perl->get_logger("")->logcroak( |
81 - Log::Log4perl->get_logger("")->logcroak( |
85 + croak( |
82 + croak( |
86 "Illegal parameter '$_' in $method()"); |
83 "Illegal parameter '$_' in $method()"); |
87 } |
84 } |
88 } |
85 } |
89 Index: bindings/perl-shared/Makefile.PL |
86 Index: bindings/perl-shared/Makefile.PL |
90 --- bindings/perl-shared/Makefile.PL.orig 2008-12-05 16:39:55 +0100 |
87 --- bindings/perl-shared/Makefile.PL.orig 2010-12-17 17:10:20.000000000 +0100 |
91 +++ bindings/perl-shared/Makefile.PL 2008-12-16 08:37:40 +0100 |
88 +++ bindings/perl-shared/Makefile.PL 2010-12-27 08:47:23.000000000 +0100 |
92 @@ -1,36 +1,7 @@ |
89 @@ -1,36 +1,7 @@ |
93 use ExtUtils::MakeMaker; |
90 use ExtUtils::MakeMaker; |
94 use Config; |
91 use Config; |
95 -# See lib/ExtUtils/MakeMaker.pm for details of how to influence |
92 -# See lib/ExtUtils/MakeMaker.pm for details of how to influence |
96 -# the contents of the Makefile that is written. |
93 -# the contents of the Makefile that is written. |
126 +my $librrd = "-L../../src/.libs/ -lrrd -L$Config{prefix}/lib -lxml2 -lz -liconv -lm -lsocket -lnsl -lpangocairo -lpango -lcairo -lpangoft2 -lglib2 -lintl -lgobject2 -lgmodule2 -lpcre -lpixman-1 -lfontconfig -lexpat -lfreetype -lpng -lz -lpango -lm -lfontconfig -lexpat -lgobject2 -lgmodule2 -lglib2 -lintl -liconv -lpcre -lfreetype -lart_lgpl"; |
123 +my $librrd = "-L../../src/.libs/ -lrrd -L$Config{prefix}/lib -lxml2 -lz -liconv -lm -lsocket -lnsl -lpangocairo -lpango -lcairo -lpangoft2 -lglib2 -lintl -lgobject2 -lgmodule2 -lpcre -lpixman-1 -lfontconfig -lexpat -lfreetype -lpng -lz -lpango -lm -lfontconfig -lexpat -lgobject2 -lgmodule2 -lglib2 -lintl -liconv -lpcre -lfreetype -lart_lgpl"; |
127 |
124 |
128 WriteMakefile( |
125 WriteMakefile( |
129 'NAME' => 'RRDs', |
126 'NAME' => 'RRDs', |
130 Index: bindings/python/setup.py |
127 Index: bindings/python/setup.py |
131 --- bindings/python/setup.py.orig 2008-03-15 11:39:48 +0100 |
128 --- bindings/python/setup.py.orig 2008-03-15 11:39:48.000000000 +0100 |
132 +++ bindings/python/setup.py 2008-12-16 08:35:38 +0100 |
129 +++ bindings/python/setup.py 2010-12-27 08:45:34.000000000 +0100 |
133 @@ -47,7 +47,7 @@ |
130 @@ -47,7 +47,7 @@ |
134 Extension( |
131 Extension( |
135 "rrdtoolmodule", |
132 "rrdtoolmodule", |
136 ["rrdtoolmodule.c"], |
133 ["rrdtoolmodule.c"], |
137 - libraries=['rrd'], |
134 - libraries=['rrd'], |
138 + libraries=['rrd', 'freetype', 'art_lgpl', 'png', 'z'], |
135 + libraries=['rrd', 'freetype', 'art_lgpl', 'png', 'z'], |
139 library_dirs=[library_dir], |
136 library_dirs=[library_dir], |
140 include_dirs=[include_dir], |
137 include_dirs=[include_dir], |
141 ) |
138 ) |
142 Index: configure |
139 Index: configure |
143 --- configure.orig 2008-12-15 23:06:39 +0100 |
140 --- configure.orig 2010-12-26 20:51:06.000000000 +0100 |
144 +++ configure 2008-12-16 08:35:38 +0100 |
141 +++ configure 2010-12-27 08:45:34.000000000 +0100 |
145 @@ -30827,7 +30827,7 @@ |
142 @@ -24785,13 +24785,13 @@ |
146 echo $ECHO_N "(cached) $ECHO_C" >&6 |
143 if test "x""" != "x"; then |
147 else |
144 CPPFLAGS="$CPPFLAGS -I""" |
148 ac_check_lib_save_LIBS=$LIBS |
145 fi |
149 -LIBS="-lpango-1.0 $LIBS" |
146 - { $as_echo "$as_me:$LINENO: checking for glib_check_version in -lglib-2.0" >&5 |
150 +LIBS="-lpango $LIBS" |
147 -$as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; } |
151 cat >conftest.$ac_ext <<_ACEOF |
148 + { $as_echo "$as_me:$LINENO: checking for glib_check_version in -lglib2" >&5 |
152 /* confdefs.h. */ |
149 +$as_echo_n "checking for glib_check_version in -lglib2... " >&6; } |
153 _ACEOF |
150 if test "${ac_cv_lib_glib_2_0_glib_check_version+set}" = set; then |
154 @@ -31010,7 +31010,7 @@ |
151 $as_echo_n "(cached) " >&6 |
155 |
152 else |
156 fi |
153 ac_check_lib_save_LIBS=$LIBS |
157 if test $ac_cv_header_pango_pango_h = yes; then |
154 -LIBS="-lglib-2.0 $LIBS" |
158 - LIBS="-lpango-1.0 ${LIBS}";EX_CHECK_STATE=YES |
155 +LIBS="-lglib2 $LIBS" |
159 + LIBS="-lpango ${LIBS}";EX_CHECK_STATE=YES |
156 cat >conftest.$ac_ext <<_ACEOF |
160 fi |
157 /* confdefs.h. */ |
161 |
158 _ACEOF |
162 |
159 @@ -24980,7 +24980,7 @@ |
163 @@ -31066,14 +31066,14 @@ |
160 |
164 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L pangocairo` |
161 fi |
165 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other pangocairo` |
162 if test "x$ac_cv_header_glib_h" = x""yes; then |
166 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l pangocairo` |
163 - LIBS="-lglib-2.0 ${LIBS}";EX_CHECK_STATE=YES |
167 - unset ac_cv_lib_`echo pango-1.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_pango_cairo_context_set_font_options |
164 + LIBS="-lglib2 ${LIBS}";EX_CHECK_STATE=YES |
168 + unset ac_cv_lib_`echo pango | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_pango_cairo_context_set_font_options |
165 fi |
169 { echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5 |
166 |
170 echo $ECHO_N "checking for pango_cairo_context_set_font_options in -lpango-1.0... $ECHO_C" >&6; } |
167 |
171 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then |
168 @@ -25043,7 +25043,7 @@ |
172 echo $ECHO_N "(cached) $ECHO_C" >&6 |
169 $as_echo_n "(cached) " >&6 |
173 else |
170 else |
174 ac_check_lib_save_LIBS=$LIBS |
171 ac_check_lib_save_LIBS=$LIBS |
175 -LIBS="-lpango-1.0 $LIBS" |
172 -LIBS="-lglib-2.0 $LIBS" |
176 +LIBS="-lpango $LIBS" |
173 +LIBS="-lglib2 $LIBS" |
177 cat >conftest.$ac_ext <<_ACEOF |
174 cat >conftest.$ac_ext <<_ACEOF |
178 /* confdefs.h. */ |
175 /* confdefs.h. */ |
179 _ACEOF |
176 _ACEOF |
180 @@ -32551,9 +32551,9 @@ |
177 @@ -25335,7 +25335,7 @@ |
181 echo $ECHO_N "checking for headers required to compile python extensions... $ECHO_C" >&6; } |
178 $as_echo_n "(cached) " >&6 |
|
179 else |
|
180 ac_check_lib_save_LIBS=$LIBS |
|
181 -LIBS="-lpangocairo-1.0 $LIBS" |
|
182 +LIBS="-lpangocairo $LIBS" |
|
183 cat >conftest.$ac_ext <<_ACEOF |
|
184 /* confdefs.h. */ |
|
185 _ACEOF |
|
186 @@ -25524,7 +25524,7 @@ |
|
187 |
|
188 fi |
|
189 if test "x$ac_cv_header_pango_pango_h" = x""yes; then |
|
190 - LIBS="-lpangocairo-1.0 ${LIBS}";EX_CHECK_STATE=YES |
|
191 + LIBS="-lpangocairo ${LIBS}";EX_CHECK_STATE=YES |
|
192 fi |
|
193 |
|
194 |
|
195 @@ -25587,7 +25587,7 @@ |
|
196 $as_echo_n "(cached) " >&6 |
|
197 else |
|
198 ac_check_lib_save_LIBS=$LIBS |
|
199 -LIBS="-lpangocairo-1.0 $LIBS" |
|
200 +LIBS="-lpangocairo $LIBS" |
|
201 cat >conftest.$ac_ext <<_ACEOF |
|
202 /* confdefs.h. */ |
|
203 _ACEOF |
|
204 @@ -28938,9 +28938,9 @@ |
|
205 $as_echo_n "checking for headers required to compile python extensions... " >&6; } |
182 py_prefix=`$PYTHON -c "import sys; print sys.prefix"` |
206 py_prefix=`$PYTHON -c "import sys; print sys.prefix"` |
183 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` |
207 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` |
184 -PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}" |
208 -PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}" |
185 +PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION} -I${py_prefix}/include/python" |
209 +PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION} -I${py_prefix}/include/python" |
186 if test "$py_prefix" != "$py_exec_prefix"; then |
210 if test "$py_prefix" != "$py_exec_prefix"; then |
187 - PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}" |
211 - PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}" |
188 + PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION} -I${py_exec_prefix}/include/python" |
212 + PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION} -I${py_exec_prefix}/include/python" |
189 fi |
213 fi |
190 |
214 |
191 save_CPPFLAGS="$CPPFLAGS" |
215 save_CPPFLAGS="$CPPFLAGS" |
|
216 Index: src/rrd_daemon.c |
|
217 --- src/rrd_daemon.c.orig 2010-12-21 17:06:32.000000000 +0100 |
|
218 +++ src/rrd_daemon.c 2010-12-27 08:45:34.000000000 +0100 |
|
219 @@ -113,7 +113,7 @@ |
|
220 #include <tcpd.h> |
|
221 #endif /* HAVE_LIBWRAP */ |
|
222 |
|
223 -#include <glib-2.0/glib.h> |
|
224 +#include <glib2/glib.h> |
|
225 /* }}} */ |
|
226 |
|
227 #define RRDD_LOG(severity, ...) \ |
192 Index: src/rrd_open.c |
228 Index: src/rrd_open.c |
193 --- src/rrd_open.c.orig 2008-12-15 23:06:22 +0100 |
229 --- src/rrd_open.c.orig 2010-12-26 20:24:48.000000000 +0100 |
194 +++ src/rrd_open.c 2008-12-16 08:35:38 +0100 |
230 +++ src/rrd_open.c 2010-12-27 08:45:34.000000000 +0100 |
195 @@ -218,7 +218,7 @@ |
231 @@ -265,7 +265,7 @@ |
196 #endif |
232 #endif |
197 if (rdwr & RRD_CREAT) |
233 if (rdwr & RRD_CREAT) |
198 goto out_done; |
234 goto out_done; |
199 -#ifdef USE_MADVISE |
235 -#ifdef USE_MADVISE |
200 +#if defined(USE_MADVISE) && defined(MADV_WILLNEED) && defined(MADV_SEQUENTIAL) && defined(MADV_RANDOM) |
236 +#if defined(USE_MADVISE) && defined(MADV_WILLNEED) && defined(MADV_SEQUENTIAL) && defined(MADV_RANDOM) |
201 if (rdwr & RRD_COPY) { |
237 if (rdwr & RRD_COPY) { |
202 /* We will read everything in a moment (copying) */ |
238 /* We will read everything in a moment (copying) */ |
203 madvise(data, rrd_file->file_len, MADV_WILLNEED | MADV_SEQUENTIAL); |
239 madvise(data, rrd_file->file_len, MADV_WILLNEED ); |
204 @@ -251,7 +251,7 @@ |
240 @@ -300,7 +300,7 @@ |
205 rrd->stat_head->version); |
241 rrd->stat_head->version); |
206 goto out_nullify_head; |
242 goto out_nullify_head; |
207 } |
243 } |
208 -#if defined USE_MADVISE |
244 -#if defined USE_MADVISE |
209 +#if defined(USE_MADVISE) && defined(MADV_WILLNEED) |
245 +#if defined(USE_MADVISE) && defined(MADV_WILLNEED) |
210 /* the ds_def will be needed soonish, so hint accordingly */ |
246 /* the ds_def will be needed soonish, so hint accordingly */ |
211 madvise(data + PAGE_START(offset), |
247 madvise(data + PAGE_START(offset), |
212 sizeof(ds_def_t) * rrd->stat_head->ds_cnt, MADV_WILLNEED); |
248 sizeof(ds_def_t) * rrd->stat_head->ds_cnt, MADV_WILLNEED); |
213 @@ -259,7 +259,7 @@ |
249 @@ -308,7 +308,7 @@ |
214 __rrd_read(rrd->ds_def, ds_def_t, |
250 __rrd_read(rrd->ds_def, ds_def_t, |
215 rrd->stat_head->ds_cnt); |
251 rrd->stat_head->ds_cnt); |
216 |
252 |
217 -#if defined USE_MADVISE |
253 -#if defined USE_MADVISE |
218 +#if defined(USE_MADVISE) && defined(MADV_WILLNEED) |
254 +#if defined(USE_MADVISE) && defined(MADV_WILLNEED) |
219 /* the rra_def will be needed soonish, so hint accordingly */ |
255 /* the rra_def will be needed soonish, so hint accordingly */ |
220 madvise(data + PAGE_START(offset), |
256 madvise(data + PAGE_START(offset), |
221 sizeof(rra_def_t) * rrd->stat_head->rra_cnt, MADV_WILLNEED); |
257 sizeof(rra_def_t) * rrd->stat_head->rra_cnt, MADV_WILLNEED); |
222 @@ -274,7 +274,7 @@ |
258 @@ -323,7 +323,7 @@ |
223 rrd_set_error("live_head_t malloc"); |
259 rrd_set_error("live_head_t malloc"); |
224 goto out_close; |
260 goto out_close; |
225 } |
261 } |
226 -#if defined USE_MADVISE |
262 -#if defined USE_MADVISE |
227 +#if defined(USE_MADVISE) && defined(MADV_WILLNEED) |
263 +#if defined(USE_MADVISE) && defined(MADV_WILLNEED) |
228 /* the live_head will be needed soonish, so hint accordingly */ |
264 /* the live_head will be needed soonish, so hint accordingly */ |
229 madvise(data + PAGE_START(offset), sizeof(time_t), MADV_WILLNEED); |
265 madvise(data + PAGE_START(offset), sizeof(time_t), MADV_WILLNEED); |
230 #endif |
266 #endif |
231 @@ -284,7 +284,7 @@ |
267 @@ -333,7 +333,7 @@ |
232 rrd->live_head->last_up = *rrd->legacy_last_up; |
268 rrd->live_head->last_up = *rrd->legacy_last_up; |
233 rrd->live_head->last_up_usec = 0; |
269 rrd->live_head->last_up_usec = 0; |
234 } else { |
270 } else { |
235 -#if defined USE_MADVISE |
271 -#if defined USE_MADVISE |
236 +#if defined(USE_MADVISE) && defined(MADV_WILLNEED) |
272 +#if defined(USE_MADVISE) && defined(MADV_WILLNEED) |
237 /* the live_head will be needed soonish, so hint accordingly */ |
273 /* the live_head will be needed soonish, so hint accordingly */ |
238 madvise(data + PAGE_START(offset), |
274 madvise(data + PAGE_START(offset), |
239 sizeof(live_head_t), MADV_WILLNEED); |
275 sizeof(live_head_t), MADV_WILLNEED); |
240 @@ -414,7 +414,7 @@ |
276 @@ -504,7 +504,7 @@ |
241 + rrd->rra_ptr[i].cur_row |
277 + rrd->rra_ptr[i].cur_row |
242 * rrd->stat_head->ds_cnt * sizeof(rrd_value_t)); |
278 * rrd->stat_head->ds_cnt * sizeof(rrd_value_t)); |
243 if (active_block > dontneed_start) { |
279 if (active_block > dontneed_start) { |
244 -#ifdef USE_MADVISE |
280 -#ifdef USE_MADVISE |
245 +#if defined(USE_MADVISE) && defined(MADV_DONTNEED) |
281 +#if defined(USE_MADVISE) && defined(MADV_DONTNEED) |
246 madvise(rrd_file->file_start + dontneed_start, |
282 madvise(rrd_simple_file->file_start + dontneed_start, |
247 active_block - dontneed_start - 1, MADV_DONTNEED); |
283 active_block - dontneed_start - 1, MADV_DONTNEED); |
248 #endif |
284 #endif |
249 @@ -439,7 +439,7 @@ |
285 @@ -529,7 +529,7 @@ |
250 } |
286 } |
251 |
287 |
252 if (dontneed_start < rrd_file->file_len) { |
288 if (dontneed_start < rrd_file->file_len) { |
253 -#ifdef USE_MADVISE |
289 -#ifdef USE_MADVISE |
254 +#if defined(USE_MADVISE) && defined(MADV_DONTNEED) |
290 +#if defined(USE_MADVISE) && defined(MADV_DONTNEED) |
255 madvise(rrd_file->file_start + dontneed_start, |
291 madvise(rrd_simple_file->file_start + dontneed_start, |
256 rrd_file->file_len - dontneed_start, MADV_DONTNEED); |
292 rrd_file->file_len - dontneed_start, MADV_DONTNEED); |
257 #endif |
293 #endif |