]> git.pld-linux.org Git - packages/chef.git/commitdiff
chef/version_string uses Gem class, but doesn't load it auto/th/chef-14.1.36-2
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 1 Nov 2018 13:41:49 +0000 (15:41 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Thu, 1 Nov 2018 13:42:20 +0000 (15:42 +0200)
chef.spec
rubygems.patch [new file with mode: 0644]

index e54a2aef93276e7a75c701dbce90214a34c6bdbb..f94f61bf74d64be62391bc51eecdad7aaa44c746 100644 (file)
--- 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:       1
+Release:       2
 License:       Apache v2.0
 Group:         Networking/Admin
 Source0:       https://github.com/chef/chef/archive/v%{version}/%{name}-%{version}.tar.gz
@@ -23,6 +23,7 @@ Patch3:               https://github.com/glensc/chef/compare/pld-knife-boostrap.patch
 # Patch3-md5:  8ff0fdfde6dc90018698775bf8f13062
 Patch4:                optional-plist.patch
 Patch5:                gemdeps.patch
+Patch6:                rubygems.patch
 URL:           https://www.chef.io/
 BuildRequires: rpm-rubyprov
 BuildRequires: rpmbuild(macros) >= 1.673
@@ -101,6 +102,7 @@ subcommand is documented in its own manual page.
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
 
diff --git a/rubygems.patch b/rubygems.patch
new file mode 100644 (file)
index 0000000..90d6eda
--- /dev/null
@@ -0,0 +1,11 @@
+--- chef-14.1.36/lib/chef/version_string.rb~   2018-06-04 22:47:04.000000000 +0300
++++ chef-14.1.36/lib/chef/version_string.rb    2018-11-01 15:41:08.594148157 +0200
+@@ -13,6 +13,8 @@
+ # See the License for the specific language governing permissions and
+ # limitations under the License.
++require "rubygems"
++
+ class Chef
+   # String-like object for version strings.
+   #
This page took 0.066368 seconds and 4 git commands to generate.