Backport patch to silence confine warnings in ruby-1.9.3

epel9
Todd Zullinger 13 years ago
parent cab382d4ed
commit 0d23510c6b

@ -0,0 +1,31 @@
From a71208ba651d96d2ac9792c5358f10231a140e10 Mon Sep 17 00:00:00 2001
From: Daniel Pittman <daniel@puppetlabs.com>
Date: Fri, 9 Mar 2012 14:43:02 -0800
Subject: [PATCH/puppet] Ruby 1.9.3 has a different error when `require`
fails.
The text of the error message when load fails has changed, resulting in the
test failing. This adapts that to catch the different versions, allowing this
to pass in all cases.
Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>
---
lib/puppet/provider/confine.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/puppet/provider/confine.rb b/lib/puppet/provider/confine.rb
index 6825def..b28d07d 100644
--- a/lib/puppet/provider/confine.rb
+++ b/lib/puppet/provider/confine.rb
@@ -25,7 +25,7 @@ class Puppet::Provider::Confine
begin
require "puppet/provider/confine/#{name}"
rescue LoadError => detail
- unless detail.to_s =~ /No such file/i
+ unless detail.to_s =~ /No such file|cannot load such file/i
warn "Could not load confine test '#{name}': #{detail}"
end
# Could not find file
--
1.7.6

@ -22,6 +22,9 @@ Source1: http://downloads.puppetlabs.com/%{name}/%{name}-%{version}.tar.g
Source2: puppetstoredconfigclean.rb Source2: puppetstoredconfigclean.rb
# https://projects.puppetlabs.com/issues/9167 # https://projects.puppetlabs.com/issues/9167
Patch0: 0001-9167-Do-not-sent-tagmail-reports-if-no-changes.patch Patch0: 0001-9167-Do-not-sent-tagmail-reports-if-no-changes.patch
# http://projects.puppetlabs.com/issues/11325
# https://github.com/puppetlabs/puppet/commit/a71208ba
Patch1: 0001-Ruby-1.9.3-has-a-different-error-when-require-fails.patch
Group: System Environment/Base Group: System Environment/Base
@ -82,6 +85,7 @@ The server can also function as a certificate authority and file server.
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%patch1 -p1
patch -s -p1 < conf/redhat/rundir-perms.patch patch -s -p1 < conf/redhat/rundir-perms.patch
# Fix some rpmlint complaints # Fix some rpmlint complaints
@ -279,6 +283,7 @@ rm -rf %{buildroot}
- Change license from GPLv2 to ASL 2.0 - Change license from GPLv2 to ASL 2.0
- Drop %%post hacks to deal with upgrades from 0.25 - Drop %%post hacks to deal with upgrades from 0.25
- Minor rpmlint fixes - Minor rpmlint fixes
- Backport patch to silence confine warnings in ruby-1.9.3
* Wed Apr 11 2012 Todd Zullinger <tmz@pobox.com> - 2.6.16-1 * Wed Apr 11 2012 Todd Zullinger <tmz@pobox.com> - 2.6.16-1
- Update to 2.6.16, fixes CVE-2012-1986, CVE-2012-1987, and CVE-2012-1988 - Update to 2.6.16, fixes CVE-2012-1986, CVE-2012-1987, and CVE-2012-1988

Loading…
Cancel
Save