Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 2013 23:50:44 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r331910 - in head/sysutils/rubygem-ohai: . files
Message-ID:  <201310282350.r9SNoiJh093573@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Mon Oct 28 23:50:44 2013
New Revision: 331910
URL: http://svnweb.freebsd.org/changeset/ports/331910

Log:
  - Add patch for issue where IP address detection fails if there is an interface
    with no addresses
  
  Submitted by:	maintainer (renchap@cocoa-x.com, via IRC)
  Obtained from:	https://github.com/opscode/ohai/pull/163/files

Added:
  head/sysutils/rubygem-ohai/files/
  head/sysutils/rubygem-ohai/files/patch-lib__ohai__plugins__network.rb   (contents, props changed)
Modified:
  head/sysutils/rubygem-ohai/Makefile

Modified: head/sysutils/rubygem-ohai/Makefile
==============================================================================
--- head/sysutils/rubygem-ohai/Makefile	Mon Oct 28 23:46:40 2013	(r331909)
+++ head/sysutils/rubygem-ohai/Makefile	Mon Oct 28 23:50:44 2013	(r331910)
@@ -3,6 +3,7 @@
 
 PORTNAME=	ohai
 PORTVERSION=	6.16.0
+PORTREVISION=	1
 CATEGORIES=	sysutils rubygems
 MASTER_SITES=	RG
 

Added: head/sysutils/rubygem-ohai/files/patch-lib__ohai__plugins__network.rb
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/rubygem-ohai/files/patch-lib__ohai__plugins__network.rb	Mon Oct 28 23:50:44 2013	(r331910)
@@ -0,0 +1,10 @@
+--- lib/ohai/plugins/network.rb.orig	2013-10-28 22:14:54.275284113 +0000
++++ lib/ohai/plugins/network.rb	2013-10-28 22:15:30.024281591 +0000
+@@ -39,6 +39,7 @@
+   # going to use that later to sort by scope
+   scope_prio = [ "global", "site", "link", "host", "node", nil ]
+ 
++      next if iface_v.nil? or not iface_v.has_key? 'addresses'
+   ipaddresses = []
+   # ipaddresses going to hold #{family} ipaddresses and their scope
+   Mash[network['interfaces']].each do |iface, iface_v|



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