mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Fix build with rrdtool 1.2.
Spotted by: kris
This commit is contained in:
parent
b3b2273ba8
commit
323973d144
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134970
@ -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
|
||||
|
17
databases/py-rrdtool_lgpl/files/patch-src::_rrdtoolmodule.c
Normal file
17
databases/py-rrdtool_lgpl/files/patch-src::_rrdtoolmodule.c
Normal file
@ -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;
|
@ -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
|
||||
|
17
net/py-rrdtool_lgpl/files/patch-src::_rrdtoolmodule.c
Normal file
17
net/py-rrdtool_lgpl/files/patch-src::_rrdtoolmodule.c
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user