From: Sebastian Harl Date: Mon, 16 May 2011 07:58:01 +0000 (+0200) Subject: patches: Added bts625631-gcc4.5, fixing an compiler issue when using GCC 4.5. X-Git-Tag: debian/1.4.3-3~5 X-Git-Url: https://git.tokkee.org/?p=pkg-rrdtool.git;a=commitdiff_plain;h=e21971984e8f0428448d87194147ab35e381bda9 patches: Added bts625631-gcc4.5, fixing an compiler issue when using GCC 4.5. Thanks to Maxime Petazzoni for reporting this and Sven Hartge for pointing out the upstream fix by anicka@suse.cz. Closes: #625631 --- diff --git a/debian/changelog b/debian/changelog index dde0f6e..10993f8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,12 @@ rrdtool (1.4.3-3) unstable; urgency=low * Reupload to unstable, which has Tcl 8.5 by now. + * debian/patches: + - Added bts625631-gcc4.5, fixing an compiler issue when using GCC 4.5; + thanks to Maxime Petazzoni for reporting this and Sven Hartge for + pointing out the upstream fix by anicka@suse.cz (Closes: #625631). - -- Sebastian Harl Mon, 16 May 2011 09:39:40 +0200 + -- Sebastian Harl Mon, 16 May 2011 09:55:27 +0200 rrdtool (1.4.3-2) experimental; urgency=low diff --git a/debian/patches/bts625631-gcc4.5 b/debian/patches/bts625631-gcc4.5 new file mode 100644 index 0000000..18f735f --- /dev/null +++ b/debian/patches/bts625631-gcc4.5 @@ -0,0 +1,10 @@ +diff a/src/rrd_format.h b/src/rrd_format.h +--- a/src/rrd_format.h ++++ b/src/rrd_format.h +@@ -36,5 +36,5 @@ + #define RRD_VERSION "0004" + #define RRD_VERSION3 "0003" +-#define FLOAT_COOKIE 8.642135E130 ++#define FLOAT_COOKIE ((double)8.642135E130) + + typedef union unival { diff --git a/debian/patches/series b/debian/patches/series index ab9438e..3e14c51 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -5,3 +5,4 @@ no-rpath-for-perl implicit-decl-fix bts530814-hurd tcl-8.5 +bts625631-gcc4.5