Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 May 2014 22:06:36 +0000 (UTC)
From:      Tim Bishop <tdb@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r353902 - in head/net-mgmt/collectd5: . files
Message-ID:  <201405122206.s4CM6aUS082411@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tdb
Date: Mon May 12 22:06:36 2014
New Revision: 353902
URL: http://svnweb.freebsd.org/changeset/ports/353902
QAT: https://qat.redports.org/buildarchive/r353902/

Log:
  - Fix build with libstatgrab 0.90
  
  PR:		ports/189738
  Approved by:	maintainer

Added:
  head/net-mgmt/collectd5/files/patch-src__collectd.c   (contents, props changed)
  head/net-mgmt/collectd5/files/patch-src__disk.c   (contents, props changed)
Modified:
  head/net-mgmt/collectd5/Makefile

Modified: head/net-mgmt/collectd5/Makefile
==============================================================================
--- head/net-mgmt/collectd5/Makefile	Mon May 12 22:01:10 2014	(r353901)
+++ head/net-mgmt/collectd5/Makefile	Mon May 12 22:06:36 2014	(r353902)
@@ -3,7 +3,7 @@
 
 PORTNAME=	collectd
 PORTVERSION=	5.4.1
-PORTREVISION=	1
+PORTREVISION=	2
 PKGNAMESUFFIX=	5
 CATEGORIES=	net-mgmt
 MASTER_SITES=	http://collectd.org/files/

Added: head/net-mgmt/collectd5/files/patch-src__collectd.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/collectd5/files/patch-src__collectd.c	Mon May 12 22:06:36 2014	(r353902)
@@ -0,0 +1,11 @@
+--- ./src/collectd.c.orig	2014-01-26 08:09:14.840391000 +0000
++++ ./src/collectd.c	2014-05-10 23:35:17.226683756 +0100
+@@ -288,7 +288,7 @@
+ #endif
+ 
+ #if HAVE_LIBSTATGRAB
+-	if (sg_init ())
++	if (sg_init (0))
+ 	{
+ 		ERROR ("sg_init: %s", sg_str_error (sg_get_error ()));
+ 		return (-1);

Added: head/net-mgmt/collectd5/files/patch-src__disk.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/collectd5/files/patch-src__disk.c	Mon May 12 22:06:36 2014	(r353902)
@@ -0,0 +1,12 @@
+--- ./src/disk.c.orig	2014-01-26 08:09:14.856391000 +0000
++++ ./src/disk.c	2014-05-10 23:35:17.232681397 +0100
+@@ -732,7 +732,8 @@
+ 
+ #elif defined(HAVE_LIBSTATGRAB)
+ 	sg_disk_io_stats *ds;
+-	int disks, counter;
++	size_t disks;
++	int counter;
+ 	char name[DATA_MAX_NAME_LEN];
+ 	
+ 	if ((ds = sg_get_disk_io_stats(&disks)) == NULL)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405122206.s4CM6aUS082411>