[packages_10.03.2] rrdtool: merge r29874
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 4 Feb 2012 21:01:59 +0000 (21:01 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 4 Feb 2012 21:01:59 +0000 (21:01 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/packages_10.03.2@30152 3c298f89-4303-0410-b956-a3cf2f4a3e73

utils/rrdtool/Makefile
utils/rrdtool/patches/020-x86-float-cast.patch [new file with mode: 0644]

index 381fa04..c73b4e1 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2007-2009 OpenWrt.org
+# Copyright (C) 2007-2012 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=rrdtool
 PKG_VERSION:=1.2.30
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_URL:=http://oss.oetiker.ch/rrdtool/pub/
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
diff --git a/utils/rrdtool/patches/020-x86-float-cast.patch b/utils/rrdtool/patches/020-x86-float-cast.patch
new file mode 100644 (file)
index 0000000..f382404
--- /dev/null
@@ -0,0 +1,13 @@
+Index: rrdtool-1.2.30/src/rrd_format.h
+===================================================================
+--- rrdtool-1.2.30.orig/src/rrd_format.h
++++ rrdtool-1.2.30/src/rrd_format.h
+@@ -22,7 +22,7 @@
+ /* #define RRD_VERSION   "0002" */
+ /* changed because microsecond precision requires another field */
+ #define RRD_VERSION   "0003"
+-#define FLOAT_COOKIE  8.642135E130
++#define FLOAT_COOKIE  ((double)8.642135E130)
+ #include "rrd_nan_inf.h"