rrdtool/rrdtool.patch

changeset 494
fd1de0c7bc20
parent 490
615d51fb3fea
child 630
561e962f5a6e
equal deleted inserted replaced
4:347c73352636 5:50587e5beb2f
1 Index: RRDTool-OO-0.31/Makefile.PL 1 Index: RRDTool-OO-0.32/Makefile.PL
2 --- RRDTool-OO-0.31/Makefile.PL.orig 2010-01-09 00:50:31.000000000 +0100 2 --- RRDTool-OO-0.32/Makefile.PL.orig 2010-06-26 05:32:42.000000000 +0200
3 +++ RRDTool-OO-0.31/Makefile.PL 2010-12-27 08:45:34.000000000 +0100 3 +++ RRDTool-OO-0.32/Makefile.PL 2012-03-08 10:57:56.000000000 +0100
4 @@ -10,52 +10,12 @@ 4 @@ -10,52 +10,12 @@
5 } 5 }
6 }; 6 };
7 7
8 -# Check if RRDs is installed 8 -# Check if RRDs is installed
52 PREREQ_PM => { 52 PREREQ_PM => {
53 - Log::Log4perl => '0.40', 53 - Log::Log4perl => '0.40',
54 RRDs => 0, 54 RRDs => 0,
55 }, # e.g., Module::Name => 1.1 55 }, # e.g., Module::Name => 1.1
56 $ExtUtils::MakeMaker::VERSION >= 6.50 ? (%$meta_merge) : (), 56 $ExtUtils::MakeMaker::VERSION >= 6.50 ? (%$meta_merge) : (),
57 Index: RRDTool-OO-0.31/lib/RRDTool/OO.pm 57 Index: RRDTool-OO-0.32/lib/RRDTool/OO.pm
58 --- RRDTool-OO-0.31/lib/RRDTool/OO.pm.orig 2010-05-26 02:26:34.000000000 +0200 58 --- RRDTool-OO-0.32/lib/RRDTool/OO.pm.orig 2012-03-07 17:29:01.000000000 +0100
59 +++ RRDTool-OO-0.31/lib/RRDTool/OO.pm 2010-12-27 08:45:34.000000000 +0100 59 +++ RRDTool-OO-0.32/lib/RRDTool/OO.pm 2012-03-08 21:30:51.000000000 +0100
60 @@ -5,7 +5,6 @@ 60 @@ -6,7 +6,6 @@
61 use warnings;
62 use Carp; 61 use Carp;
63 use RRDs; 62 use RRDs;
63 use Data::Dumper;
64 -use Log::Log4perl qw(:easy); 64 -use Log::Log4perl qw(:easy);
65 65
66 our $VERSION = '0.31'; 66 our $VERSION = '0.32';
67 67
68 @@ -189,7 +188,7 @@ 68 @@ -203,7 +202,7 @@
69 # Check if we got all mandatory parameters 69 # Check if we got all mandatory parameters
70 for(@{$ref->{mandatory}}) { 70 for(@{$ref->{mandatory}}) {
71 if(! exists $options_hash{$_}) { 71 if(! exists $options_hash{$_}) {
72 - Log::Log4perl->get_logger("")->logcroak( 72 - Log::Log4perl->get_logger("")->logcroak(
73 + croak( 73 + croak(
74 "Mandatory parameter '$_' not set " . 74 "Mandatory parameter '$_' not set " .
75 "in $method() (@{[%mandatory]}) (@$options)"); 75 "in $method() (@{[%mandatory]}) (@$options)");
76 } 76 }
77 @@ -201,7 +200,7 @@ 77 @@ -215,7 +214,7 @@
78 for(keys %options_hash) { 78 for(keys %options_hash) {
79 if(! exists $optional{$_} and 79 if(! exists $optional{$_} and
80 ! exists $mandatory{$_}) { 80 ! exists $mandatory{$_}) {
81 - Log::Log4perl->get_logger("")->logcroak( 81 - Log::Log4perl->get_logger("")->logcroak(
82 + croak( 82 + croak(
83 "Illegal parameter '$_' in $method()"); 83 "Illegal parameter '$_' in $method()");
84 } 84 }
85 } 85 }
86 Index: bindings/perl-shared/Makefile.PL 86 Index: bindings/perl-shared/Makefile.PL
87 --- bindings/perl-shared/Makefile.PL.orig 2010-12-17 17:10:20.000000000 +0100 87 --- bindings/perl-shared/Makefile.PL.orig 2011-12-15 17:07:05.000000000 +0100
88 +++ bindings/perl-shared/Makefile.PL 2010-12-27 08:47:23.000000000 +0100 88 +++ bindings/perl-shared/Makefile.PL 2012-03-08 10:57:56.000000000 +0100
89 @@ -1,52 +1,6 @@ 89 @@ -20,32 +20,7 @@
90 use ExtUtils::MakeMaker; 90 ) : ()
91 use Config; 91 );
92 -# See lib/ExtUtils/MakeMaker.pm for details of how to influence 92 }else{
93 -# the contents of the Makefile that is written.
94 -
95 -if (($Config{'osname'} eq 'MSWin32' && $ENV{'OSTYPE'} eq '')) {
96 - WriteMakefile(
97 - 'NAME' => 'RRDs',
98 - 'VERSION_FROM' => 'RRDs.pm',
99 - 'DEFINE' => "-DPERLPATCHLEVEL=$Config{PATCHLEVEL} -D_CRT_SECURE_NO_WARNINGS -DWIN32",
100 - 'INC' => '-I../../src/ "-IC:/Perl/lib/CORE" -I"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include" -I"C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include"',
101 - 'LDDLFLAGS' => '-dll -nologo -opt:ref,icf -ltcg -libpath:"C:\Perl\lib\CORE" -machine:X86',
102 - 'LDFLAGS' => '-nologo -opt:ref,icf -ltcg -libpath:"C:\Perl\lib\CORE" -machine:X86',
103 - 'OPTIMIZE' => '-O2 -MD',
104 - 'LIBS' => '"..\..\win32\Release\rrdlib.lib" "..\..\win32\Release" "C:\Perl\lib\CORE\perl514.lib" -L../../contrib/lib -L"C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib" -L"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib" -L"C:\Perl\lib\CORE"',
105 - 'realclean' => {FILES => 't/demo?.rrd t/demo?.png' },
106 - ($] ge '5.005') ? (
107 - 'AUTHOR' => 'Tobias Oetiker (tobi@oetiker.ch)',
108 - 'ABSTRACT' => 'Round Robin Database Tool',
109 - ) : ()
110 - );
111 -}else{
112 - # if the last argument when calling Makefile.PL is RPATH=/... and ... is the 93 - # if the last argument when calling Makefile.PL is RPATH=/... and ... is the
113 - # path to librrd.so then the Makefile will be written such that RRDs.so knows 94 - # path to librrd.so then the Makefile will be written such that RRDs.so knows
114 - # where to find librrd.so later on ... 95 - # where to find librrd.so later on ...
115 - my $R=""; 96 - my $R="";
116 - if ($ARGV[-1] =~ /RPATH=(\S+)/){ 97 - if ($ARGV[-1] =~ /RPATH=(\S+)/){
133 - if ($^O eq 'darwin'){ 114 - if ($^O eq 'darwin'){
134 - $librrd = '-lrrd'; 115 - $librrd = '-lrrd';
135 - } else { 116 - } else {
136 - $librrd = "-L../../src/.libs/ $R -lrrd"; 117 - $librrd = "-L../../src/.libs/ $R -lrrd";
137 - } 118 - }
138 - 119 + my $librrd = "-L../../src/.libs/ -lrrd -L$Config{prefix}/lib -lcairo -lpangocairo -lpixman-1 -lpango -lpangoft2 -lfreetype -lpng -lgobject2 -lgio2 -lgmodule2 -lglib2 -lfontconfig -lfreetype -lxml2 -lexpat -lpcre -lz -liconv -lintl";
139 +my $librrd = "-L../../src/.libs/ -lrrd -L$Config{prefix}/lib @l_pangocairo@"; 120
140 WriteMakefile( 121 WriteMakefile(
141 'NAME' => 'RRDs', 122 'NAME' => 'RRDs',
142 'VERSION_FROM' => 'RRDs.pm', # finds $VERSION
143 @@ -59,5 +13,4 @@
144 'realclean' => {FILES => 't/demo?.rrd t/demo?.png' },
145 ($^O eq 'darwin') ? ( 'LDDLFLAGS' => "-L../../src/.libs/ $Config{lddlflags}" ) : ()
146 );
147 -}
148
149 Index: bindings/python/setup.py 123 Index: bindings/python/setup.py
150 --- bindings/python/setup.py.orig 2008-03-15 11:39:48.000000000 +0100 124 --- bindings/python/setup.py.orig 2008-03-15 11:39:48.000000000 +0100
151 +++ bindings/python/setup.py 2010-12-27 08:45:34.000000000 +0100 125 +++ bindings/python/setup.py 2012-03-08 10:57:56.000000000 +0100
152 @@ -47,7 +47,7 @@ 126 @@ -47,7 +47,7 @@
153 Extension( 127 Extension(
154 "rrdtoolmodule", 128 "rrdtoolmodule",
155 ["rrdtoolmodule.c"], 129 ["rrdtoolmodule.c"],
156 - libraries=['rrd'], 130 - libraries=['rrd'],
157 + libraries=['rrd', 'freetype', 'png', 'z'], 131 + libraries=['rrd', 'freetype', 'art_lgpl', 'png', 'z'],
158 library_dirs=[library_dir], 132 library_dirs=[library_dir],
159 include_dirs=[include_dir], 133 include_dirs=[include_dir],
160 ) 134 )
161 Index: configure 135 Index: configure
162 --- configure.orig 2010-12-26 20:51:06.000000000 +0100 136 --- configure.orig 2012-01-24 11:09:06.000000000 +0100
163 +++ configure 2010-12-27 08:45:34.000000000 +0100 137 +++ configure 2012-03-08 10:57:56.000000000 +0100
164 @@ -25560,7 +25560,7 @@ 138 @@ -25560,7 +25560,7 @@
165 $as_echo_n "(cached) " >&6 139 $as_echo_n "(cached) " >&6
166 else 140 else
167 ac_check_lib_save_LIBS=$LIBS 141 ac_check_lib_save_LIBS=$LIBS
168 -LIBS="-lpangocairo-1.0 $LIBS" 142 -LIBS="-lpangocairo-1.0 $LIBS"
234 + PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION} -I${py_exec_prefix}/include/python" 208 + PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION} -I${py_exec_prefix}/include/python"
235 fi 209 fi
236 210
237 save_CPPFLAGS="$CPPFLAGS" 211 save_CPPFLAGS="$CPPFLAGS"
238 Index: src/rrd_daemon.c 212 Index: src/rrd_daemon.c
239 --- src/rrd_daemon.c.orig 2010-12-21 17:06:32.000000000 +0100 213 --- src/rrd_daemon.c.orig 2011-12-16 08:29:44.000000000 +0100
240 +++ src/rrd_daemon.c 2010-12-27 08:45:34.000000000 +0100 214 +++ src/rrd_daemon.c 2012-03-08 10:57:56.000000000 +0100
241 @@ -105,7 +105,7 @@ 215 @@ -105,7 +105,7 @@
242 #include <tcpd.h> 216 #include <tcpd.h>
243 #endif /* HAVE_LIBWRAP */ 217 #endif /* HAVE_LIBWRAP */
244 218
245 -#include <glib-2.0/glib.h> 219 -#include <glib-2.0/glib.h>
246 +#include <glib2/glib.h> 220 +#include <glib2/glib.h>
247 /* }}} */ 221 /* }}} */
248 222
249 #define RRDD_LOG(severity, ...) \ 223 #define RRDD_LOG(severity, ...) \
250 Index: src/rrd_open.c 224 Index: src/rrd_open.c
251 --- src/rrd_open.c.orig 2010-12-26 20:24:48.000000000 +0100 225 --- src/rrd_open.c.orig 2012-01-24 11:08:48.000000000 +0100
252 +++ src/rrd_open.c 2010-12-27 08:45:34.000000000 +0100 226 +++ src/rrd_open.c 2012-03-08 10:57:56.000000000 +0100
253 @@ -296,7 +296,7 @@ 227 @@ -296,7 +296,7 @@
254 #endif 228 #endif
255 if (rdwr & RRD_CREAT) 229 if (rdwr & RRD_CREAT)
256 goto out_done; 230 goto out_done;
257 -#ifdef USE_MADVISE 231 -#ifdef USE_MADVISE

mercurial