FreeBSD Bugzilla – Attachment 165432 Details for
Bug 206156
databases/pecl-rrd: Fix build when rrdtool option GRAPH is off
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Build without graph
pecl-rrd.diff (text/plain), 4.29 KB, created by
Renato Botelho
on 2016-01-12 13:06:18 UTC
(
hide
)
Description:
Build without graph
Filename:
MIME Type:
Creator:
Renato Botelho
Created:
2016-01-12 13:06:18 UTC
Size:
4.29 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 405865) >+++ Makefile (working copy) >@@ -2,7 +2,7 @@ > > PORTNAME= rrd > DISTVERSION= 1.1.3 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= databases pear > MASTER_SITES= http://pecl.php.net/get/ > PKGNAMEPREFIX= pecl- >Index: files/patch-config.m4 >=================================================================== >--- files/patch-config.m4 (nonexistent) >+++ files/patch-config.m4 (working copy) >@@ -0,0 +1,24 @@ >+--- config.m4.orig 2016-01-12 12:40:08 UTC >++++ config.m4 >+@@ -59,9 +59,11 @@ if test "$PHP_RRD" != "no"; then >+ LDFLAGS="$LDFLAGS -L$RRDTOOL_LIBDIR" >+ >+ dnl rrd_graph_v is available in 1.3.0+ >++ rrd_graph_c="" >+ PHP_CHECK_FUNC(rrd_graph_v, rrd) >+- if test "$ac_cv_func_rrd_graph_v" != yes; then >+- AC_MSG_ERROR([rrd lib version seems older than 1.3.0, update to 1.3.0+]) >++ if test "$ac_cv_func_rrd_graph_v" == yes; then >++ AC_DEFINE(HAVE_RRD_GRAPH, 1, [ ]) >++ rrd_graph_c="rrd_graph.c" >+ fi >+ >+ dnl rrd_lastupdate_r available in 1.4.0+ >+@@ -72,6 +74,6 @@ if test "$PHP_RRD" != "no"; then >+ >+ LDFLAGS=$old_LDFLAGS >+ >+- PHP_NEW_EXTENSION(rrd, rrd.c rrd_graph.c rrd_create.c rrd_update.c rrd_info.c, $ext_shared) >++ PHP_NEW_EXTENSION(rrd, rrd.c $rrd_graph_c rrd_create.c rrd_update.c rrd_info.c, $ext_shared) >+ PHP_SUBST(RRD_SHARED_LIBADD) >+ fi > >Property changes on: files/patch-config.m4 >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/patch-rrd.c >=================================================================== >--- files/patch-rrd.c (nonexistent) >+++ files/patch-rrd.c (working copy) >@@ -0,0 +1,81 @@ >+--- rrd.c.orig 2016-01-12 12:42:39 UTC >++++ rrd.c >+@@ -19,7 +19,9 @@ >+ #include <rrd.h> >+ >+ #include "php_rrd.h" >++#ifdef HAVE_RRD_GRAPH >+ #include "rrd_graph.h" >++#endif >+ #include "rrd_create.h" >+ #include "rrd_update.h" >+ #include "rrd_info.h" >+@@ -387,6 +389,7 @@ PHP_FUNCTION(rrd_tune) >+ } >+ /* }}} */ >+ >++#ifdef HAVE_RRD_GRAPH >+ /* {{{ proto array rrd_xport(array options) >+ * Creates a graph based on options passed via an array >+ */ >+@@ -480,6 +483,7 @@ PHP_FUNCTION(rrd_xport) >+ free(data); >+ } >+ /* }}} */ >++#endif >+ >+ #ifdef HAVE_RRDC_DISCONNECT >+ /* {{{ proto void rrdc_disconnect() >+@@ -537,18 +541,22 @@ ZEND_BEGIN_ARG_INFO(arginfo_rrd_tune, 0) >+ ZEND_ARG_INFO(0, options) >+ ZEND_END_ARG_INFO() >+ >++#ifdef HAVE_RRD_GRAPH >+ ZEND_BEGIN_ARG_INFO(arginfo_rrd_xport, 0) >+ ZEND_ARG_INFO(0, options) >+ ZEND_END_ARG_INFO() >++#endif >+ >+ ZEND_BEGIN_ARG_INFO(arginfo_rrd_info, 0) >+ ZEND_ARG_INFO(0, file) >+ ZEND_END_ARG_INFO() >+ >++#ifdef HAVE_RRD_GRAPH >+ ZEND_BEGIN_ARG_INFO(arginfo_rrd_graph, 0) >+ ZEND_ARG_INFO(0, file) >+ ZEND_ARG_INFO(0, options) >+ ZEND_END_ARG_INFO() >++#endif >+ >+ ZEND_BEGIN_ARG_INFO(arginfo_rrd_create, 0) >+ ZEND_ARG_INFO(0, filename) >+@@ -565,7 +573,9 @@ ZEND_END_ARG_INFO() >+ static zend_function_entry rrd_functions[] = { >+ PHP_FE(rrd_update, arginfo_rrd_update) >+ PHP_FE(rrd_create, arginfo_rrd_create) >++#ifdef HAVE_RRD_GRAPH >+ PHP_FE(rrd_graph, arginfo_rrd_graph) >++#endif >+ PHP_FE(rrd_error, NULL) >+ PHP_FE(rrd_fetch, arginfo_rrd_fetch) >+ PHP_FE(rrd_first, arginfo_rrd_first) >+@@ -574,7 +584,9 @@ static zend_function_entry rrd_functions >+ PHP_FE(rrd_lastupdate, arginfo_rrd_lastupdate) >+ PHP_FE(rrd_restore, arginfo_rrd_restore) >+ PHP_FE(rrd_tune, arginfo_rrd_tune) >++#ifdef HAVE_RRD_GRAPH >+ PHP_FE(rrd_xport, arginfo_rrd_xport) >++#endif >+ #ifdef HAVE_RRDC_DISCONNECT >+ PHP_FE(rrdc_disconnect, NULL) >+ #endif >+@@ -590,7 +602,9 @@ static zend_function_entry rrd_functions >+ /* {{{ PHP_MINIT_FUNCTION */ >+ static PHP_MINIT_FUNCTION(rrd) >+ { >++#ifdef HAVE_RRD_GRAPH >+ rrd_graph_minit(TSRMLS_C); >++#endif >+ rrd_create_minit(TSRMLS_C); >+ rrd_update_minit(TSRMLS_C); >+ return SUCCESS; > >Property changes on: files/patch-rrd.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 206156
: 165432