From: Bernd Zeimetz Date: Tue, 22 Apr 2008 13:40:14 +0000 (+0200) Subject: debian/patches/implicit-decl-fix: X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e013df83bf6e210217776f637c3aef7b6c035aa0;p=pkg-rrdtool.git debian/patches/implicit-decl-fix: * debian/patches/implicit-decl-fix: - Patching the implicit declaration in rrd_update.c in a nicer way. --- diff --git a/debian/changelog b/debian/changelog index 13cdde8..441e355 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,14 @@ rrdtool (1.2.27-2~bpo40+1) etch-backports; urgency=low * Etch backport. - - -- Bernd Zeimetz Thu, 17 Apr 2008 15:39:24 +0200 + * debian/rules: + - Adding an option to point configure to the right path to tcl. This is + not needed for Lenny, but we also add it here to make coming backports + more simple. + * debian/patches/implicit-decl-fix: + - Patching the implicit declaration in rrd_update.c in a nicer way. + + -- Bernd Zeimetz Sun, 20 Apr 2008 02:09:20 +0200 rrdtool (1.2.27-2) unstable; urgency=low diff --git a/debian/patches/implicit-decl-fix b/debian/patches/implicit-decl-fix index 4640a1b..cffa4a8 100644 --- a/debian/patches/implicit-decl-fix +++ b/debian/patches/implicit-decl-fix @@ -1,7 +1,7 @@ Index: rrdtool/src/rrd_tool.c =================================================================== ---- rrdtool.orig/src/rrd_tool.c 2008-02-24 14:05:10.000000000 +0100 -+++ rrdtool/src/rrd_tool.c 2008-02-24 14:24:37.000000000 +0100 +--- rrdtool.orig/src/rrd_tool.c 2008-04-20 02:11:52.000000000 +0200 ++++ rrdtool/src/rrd_tool.c 2008-04-20 02:11:58.000000000 +0200 @@ -4,6 +4,8 @@ * rrd_tool.c Startup wrapper *****************************************************************************/ @@ -13,19 +13,16 @@ Index: rrdtool/src/rrd_tool.c Index: rrdtool/src/rrd_update.c =================================================================== ---- rrdtool.orig/src/rrd_update.c 2008-02-24 14:05:10.000000000 +0100 -+++ rrdtool/src/rrd_update.c 2008-02-24 14:28:33.000000000 +0100 -@@ -432,7 +432,12 @@ - #ifdef USE_MADVISE - /* when we use mmaping we tell the kernel the mmap equivalent - of POSIX_FADV_RANDOM */ -- madvise(rrd_mmaped_file,rrd_filesize,MADV_RANDOM); -+#ifdef __USE_BSD -+ madvise(rrd_mmaped_file,rrd_filesize,MADV_RANDOM); -+#endif -+#ifdef __USE_XOPEN2K -+ posix_madvise(rrd_mmaped_file,rrd_filesize,MADV_RANDOM); +--- rrdtool.orig/src/rrd_update.c 2008-04-20 02:11:52.000000000 +0200 ++++ rrdtool/src/rrd_update.c 2008-04-22 15:38:38.000000000 +0200 +@@ -22,6 +22,10 @@ + #include "rrd_is_thread_safe.h" + #include "unused.h" + ++#ifdef USE_MADVISE ++ #include +#endif - #endif - #endif - /* loop through the arguments. */ ++ + #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) + /* + * WIN32 does not have gettimeofday and struct timeval. This is a quick and dirty