ports/180732: [PATCH] sysutils/rubygem-ohai: Add patch to fix issue with interfaces with no address
Steve Wills
swills at freebsd.org
Sun Jul 21 23:10:01 UTC 2013
>Number: 180732
>Category: ports
>Synopsis: [PATCH] sysutils/rubygem-ohai: Add patch to fix issue with interfaces with no address
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 21 23:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Steve Wills
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD meatwad.mouf.net 10.0-CURRENT FreeBSD 10.0-CURRENT #9 r252909: Sun Jul 7 02:36:14
>Description:
- Add patch to fix issue with interfaces with no address
Port maintainer (renchap at cocoa-x.com) is cc'd.
Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: SVN)
>How-To-Repeat:
>Fix:
--- rubygem-ohai-6.16.0_1.patch begins here ---
Index: Makefile
===================================================================
--- Makefile (revision 323422)
+++ Makefile (working copy)
@@ -3,6 +3,7 @@
PORTNAME= ohai
PORTVERSION= 6.16.0
+PORTREVISION= 1
CATEGORIES= sysutils rubygems
MASTER_SITES= RG
Index: files/patch-lib__ohai__plugins__network.rb
===================================================================
--- files/patch-lib__ohai__plugins__network.rb (revision 0)
+++ files/patch-lib__ohai__plugins__network.rb (working copy)
@@ -0,0 +1,10 @@
+--- lib/ohai/plugins/network.rb.orig 2013-07-21 23:01:09.756891058 +0000
++++ lib/ohai/plugins/network.rb 2013-07-21 23:02:09.166886689 +0000
+@@ -42,6 +42,7 @@
+ ipaddresses = []
+ # ipaddresses going to hold #{family} ipaddresses and their scope
+ Mash[network['interfaces']].each do |iface, iface_v|
++ next if iface_v.nil? or not iface_v.has_key? 'addresses'
+ iface_v['addresses'].each do |addr, addr_v|
+ next if addr_v.nil? or not addr_v.has_key? "family" or addr_v['family'] != family
+ ipaddresses << {
Property changes on: files/patch-lib__ohai__plugins__network.rb
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- rubygem-ohai-6.16.0_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list