From owner-svn-ports-head@freebsd.org Thu Dec 28 11:24:50 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 65FB6E89283; Thu, 28 Dec 2017 11:24:50 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2FF6D76A26; Thu, 28 Dec 2017 11:24:50 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBSBOnEP071388; Thu, 28 Dec 2017 11:24:49 GMT (envelope-from girgen@FreeBSD.org) Received: (from girgen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBSBOnZB071386; Thu, 28 Dec 2017 11:24:49 GMT (envelope-from girgen@FreeBSD.org) Message-Id: <201712281124.vBSBOnZB071386@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: girgen set sender to girgen@FreeBSD.org using -f From: Palle Girgensohn Date: Thu, 28 Dec 2017 11:24:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r457446 - in head/sysutils/beats: . files X-SVN-Group: ports-head X-SVN-Commit-Author: girgen X-SVN-Commit-Paths: in head/sysutils/beats: . files X-SVN-Commit-Revision: 457446 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Dec 2017 11:24:50 -0000 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 +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} +-}