svn commit: r331910 - in head/sysutils/rubygem-ohai: . files
Steve Wills
swills at FreeBSD.org
Mon Oct 28 23:50:44 UTC 2013
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 at 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|
More information about the svn-ports-head
mailing list