svn commit: r457446 - in head/sysutils/beats: . files

Palle Girgensohn girgen at FreeBSD.org
Thu Dec 28 11:24:50 UTC 2017


Author: girgen
Date: Thu Dec 28 11:24:48 2017
New Revision: 457446
URL: https://svnweb.freebsd.org/changeset/ports/457446

Log:
  Better fix for gosigar
  
  WWW: https://github.com/elastic/gosigar/issues/89

Added:
  head/sysutils/beats/files/patch-gosigar_freebsd.go   (contents, props changed)
Deleted:
  head/sysutils/beats/files/patch-gosigar_linux_common.go
Modified:
  head/sysutils/beats/Makefile

Modified: head/sysutils/beats/Makefile
==============================================================================
--- head/sysutils/beats/Makefile	Thu Dec 28 10:59:46 2017	(r457445)
+++ head/sysutils/beats/Makefile	Thu Dec 28 11:24:48 2017	(r457446)
@@ -3,6 +3,7 @@
 
 PORTNAME=	beats
 PORTVERSION=	6.1.1
+PORTREVISION=	1
 DISTVERSIONPREFIX=v
 CATEGORIES=	sysutils
 

Added: head/sysutils/beats/files/patch-gosigar_freebsd.go
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/beats/files/patch-gosigar_freebsd.go	Thu Dec 28 11:24:48 2017	(r457446)
@@ -0,0 +1,26 @@
+commit 988370a873665ea56d5cf1c287c7274f88c429a3
+Author: Palle Girgensohn <girgen at pingpong.net>
+Date:   Thu Dec 28 11:55:29 2017 +0100
+
+    Use the common version of Get(pid)
+
+diff --git a/sigar_freebsd.go b/sigar_freebsd.go
+index 0a31d08..602b4a0 100644
+--- a/sigar_freebsd.go
++++ vendor/github.com/elastic/gosigar/sigar_freebsd.go
+@@ -4,7 +4,6 @@ package gosigar
+ 
+ import (
+ 	"io/ioutil"
+-	"runtime"
+ 	"strconv"
+ 	"strings"
+ 	"unsafe"
+@@ -107,7 +106,3 @@ func parseCpuStat(self *Cpu, line string) error {
+ 	self.Idle, _ = strtoull(fields[4])
+ 	return nil
+ }
+-
+-func (self *ProcTime) Get(pid int) error {
+-	return ErrNotImplemented{runtime.GOOS}
+-}


More information about the svn-ports-head mailing list