aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2005-05-10 14:10:21 +0800
committerperky <perky@FreeBSD.org>2005-05-10 14:10:21 +0800
commitf9e085e695c84d8475b9ecb52a0a1fb996617de9 (patch)
treeea520e306156676b3be56b2781c4b360975c4ef5 /net
parent4d90098eecef89f840962a534fa7d1fbe43a6277 (diff)
downloadfreebsd-ports-gnome-f9e085e695c84d8475b9ecb52a0a1fb996617de9.tar.gz
freebsd-ports-gnome-f9e085e695c84d8475b9ecb52a0a1fb996617de9.tar.zst
freebsd-ports-gnome-f9e085e695c84d8475b9ecb52a0a1fb996617de9.zip
Fix build with rrdtool 1.2.
Spotted by: kris
Diffstat (limited to 'net')
-rw-r--r--net/py-rrdtool_lgpl/Makefile1
-rw-r--r--net/py-rrdtool_lgpl/files/patch-src::_rrdtoolmodule.c17
2 files changed, 18 insertions, 0 deletions
diff --git a/net/py-rrdtool_lgpl/Makefile b/net/py-rrdtool_lgpl/Makefile
index 5676de7fd324..83a6f5479581 100644
--- a/net/py-rrdtool_lgpl/Makefile
+++ b/net/py-rrdtool_lgpl/Makefile
@@ -6,6 +6,7 @@
PORTNAME= rrdtool_lgpl
PORTVERSION= 0.2.1
+PORTREVISION= 1
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= py-rrdtool
diff --git a/net/py-rrdtool_lgpl/files/patch-src::_rrdtoolmodule.c b/net/py-rrdtool_lgpl/files/patch-src::_rrdtoolmodule.c
new file mode 100644
index 000000000000..358957220aaf
--- /dev/null
+++ b/net/py-rrdtool_lgpl/files/patch-src::_rrdtoolmodule.c
@@ -0,0 +1,17 @@
+--- src/_rrdtoolmodule.c.orig Tue May 10 15:02:49 2005
++++ src/_rrdtoolmodule.c Tue May 10 15:06:59 2005
+@@ -232,11 +232,13 @@
+ PyObject *r;
+ char **argv, **calcpr;
+ int argc, xsize, ysize, i;
++ double ymin, ymax;
+
+ if (create_args("graph", args, &argc, &argv) < 0)
+ return NULL;
+
+- if (rrd_graph(argc, argv, &calcpr, &xsize, &ysize) == -1) {
++ if (rrd_graph(argc, argv, &calcpr, &xsize, &ysize, NULL,
++ &ymin, &ymax) == -1) {
+ PyErr_SetString(ErrorObject, rrd_get_error());
+ rrd_clear_error();
+ r = NULL;