From owner-svn-ports-head@FreeBSD.ORG Mon Oct 28 23:50:44 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D4372BE4; Mon, 28 Oct 2013 23:50:44 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C0E8D2981; Mon, 28 Oct 2013 23:50:44 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9SNoi8Q093575; Mon, 28 Oct 2013 23:50:44 GMT (envelope-from swills@svn.freebsd.org) Received: (from swills@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9SNoiJh093573; Mon, 28 Oct 2013 23:50:44 GMT (envelope-from swills@svn.freebsd.org) Message-Id: <201310282350.r9SNoiJh093573@svn.freebsd.org> From: Steve Wills Date: Mon, 28 Oct 2013 23:50:44 +0000 (UTC) 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 X-SVN-Group: ports-head 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.14 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: Mon, 28 Oct 2013 23:50:44 -0000 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|