From 858c7ed922e5b0692d34e7b655cb88ee49e6f117 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 17 Jul 2018 11:32:06 +0300 Subject: [PATCH] update plist patch --- chef.spec | 2 +- optional-plist.patch | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/chef.spec b/chef.spec index 46c0b80..7d1c012 100644 --- a/chef.spec +++ b/chef.spec @@ -8,7 +8,7 @@ Summary: A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure Name: chef Version: 14.1.36 -Release: 0.2 +Release: 0.3 License: Apache v2.0 Group: Networking/Admin Source0: https://github.com/chef/chef/archive/v%{version}/%{name}-%{version}.tar.gz diff --git a/optional-plist.patch b/optional-plist.patch index a348365..dc02eb6 100644 --- a/optional-plist.patch +++ b/optional-plist.patch @@ -32,3 +32,22 @@ Plist::Emit.save_plist(user_info, user_plist_file) run_plutil("convert", "binary1", user_plist_file) end +--- chef-14.1.36/lib/chef/provider/launchd.rb~ 2018-06-04 22:47:04.000000000 +0300 ++++ chef-14.1.36/lib/chef/provider/launchd.rb 2018-07-16 17:04:37.751739371 +0300 +@@ -20,7 +20,6 @@ + require "chef/resource/file" + require "chef/resource/cookbook_file" + require "chef/resource/macosx_service" +-require "plist" + require "forwardable" + + class Chef +@@ -173,6 +172,8 @@ + end + + def content ++ require "plist" ++ + plist_hash = new_resource.plist_hash || gen_hash + Plist::Emit.dump(plist_hash) unless plist_hash.nil? + end -- 2.44.0