[packages/ruby-ohai/dev-8: 6/8] net/dhcp no longer required in ohai code

glen glen at pld-linux.org
Wed Jun 1 22:22:05 CEST 2016


commit 80c726de352ffd529cae9910af29c63a6654cbfd
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Jun 1 23:18:11 2016 +0300

    net/dhcp no longer required in ohai code

 ruby-ohai.spec      |  2 --
 soft-net-dhcp.patch | 21 ---------------------
 2 files changed, 23 deletions(-)
---
diff --git a/ruby-ohai.spec b/ruby-ohai.spec
index ffeb386..a8f323e 100644
--- a/ruby-ohai.spec
+++ b/ruby-ohai.spec
@@ -14,7 +14,6 @@ Group:		Development/Languages
 Source0:	https://github.com/opscode/ohai/archive/%{version}/%{pkgname}-%{version}.tar.gz
 # Source0-md5:	7a2182e562bab7dcc48e0b68e07daf92
 Patch1:		platform-pld.patch
-#Patch2:		soft-net-dhcp.patch
 URL:		http://docs.getchef.com/ohai.html
 BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.665
@@ -65,7 +64,6 @@ This package contains documentation for %{name}.
 %prep
 %setup -q -n ohai-%{version}
 %patch1 -p1
-#%patch2 -p1
 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
 
 # don't need shellout 2.0 yet, but 2.0 is ok
diff --git a/soft-net-dhcp.patch b/soft-net-dhcp.patch
deleted file mode 100644
index 293c86a..0000000
--- a/soft-net-dhcp.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-require net/dhcp only when cloudstack hint present
-
---- ./lib/ohai/mixin/cloudstack_metadata.rb~	2014-12-01 22:01:15.000000000 +0200
-+++ ./lib/ohai/mixin/cloudstack_metadata.rb	2014-12-04 17:21:55.363338588 +0200
-@@ -17,7 +17,6 @@
- 
- require 'ohai/mixin/ec2_metadata'
- require 'ohai/hints'
--require 'net/dhcp'
- require 'socket'
- 
- 
-@@ -30,6 +29,8 @@
-         response = ''
-         if Ohai::Hints.hint?('cloudstack')
-           begin
-+			require 'net/dhcp'
-+
-             request = DHCP::Discover.new
- 
-             listensock = UDPSocket.new
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-ohai.git/commitdiff/bde0a3a10206ff90937c4ac53c94b3ea316bb280



More information about the pld-cvs-commit mailing list