hguemar pushed to hiera (f22). "Fix errors with Puppet4 (patch from Lukas Bezdicka)"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon May 18 17:52:57 UTC 2015


From 22a16d50ad6d2f79139334671c0bd39058637961 Mon Sep 17 00:00:00 2001
From: Haikel Guemar <hguemar at fedoraproject.org>
Date: Mon, 18 May 2015 19:50:17 +0200
Subject: Fix errors with Puppet4 (patch from Lukas Bezdicka)


diff --git a/0001-Fix-errors-with-Puppet-4.patch b/0001-Fix-errors-with-Puppet-4.patch
new file mode 100644
index 0000000..890cce7
--- /dev/null
+++ b/0001-Fix-errors-with-Puppet-4.patch
@@ -0,0 +1,26 @@
+From 376cbbe7cf344f395087dfb04c509bff47b105a2 Mon Sep 17 00:00:00 2001
+From: Haikel Guemar <hguemar at fedoraproject.org>
+Date: Mon, 18 May 2015 19:48:04 +0200
+Subject: [PATCH] Fix errors with Puppet 4
+
+Patch provided by Lukas Bezdicka
+---
+ lib/hiera/config.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/hiera/config.rb b/lib/hiera/config.rb
+index d29da7d..fe854cb 100644
+--- a/lib/hiera/config.rb
++++ b/lib/hiera/config.rb
+@@ -67,7 +67,7 @@ class Hiera::Config
+     #
+     # @return [Object] return value of {YAML.load_file}
+     def yaml_load_file(source)
+-      YAML.load_file(source)
++      YAML.unsafe_load_file(source)
+     end
+     private :yaml_load_file
+ 
+-- 
+2.4.0
+
diff --git a/hiera.spec b/hiera.spec
index d333bfb..50ed416 100644
--- a/hiera.spec
+++ b/hiera.spec
@@ -12,13 +12,14 @@
 
 Name:           hiera
 Version:        1.3.4
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A simple hierarchical database supporting plugin data sources
 
 Group:          System Environment/Base
 License:        ASL 2.0
 URL:            http://projects.puppetlabs.com/projects/%{name}/
 Source0:        http://downloads.puppetlabs.com/hiera/%{name}-%{version}.tar.gz
+Patch0:         0001-Fix-errors-with-Puppet-4.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 %if 0%{?with_checks}
@@ -42,6 +43,7 @@ A simple hierarchical database supporting plugin data sources.
 
 %prep
 %setup -q
+%patch0 -p1 -b .puppet4
 
 %build
 # Nothing to build
@@ -76,6 +78,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Mon May 18 2015 Haïkel Guémar <hguemar at fedoraproject.org> - 1.3.4-2
+- Fix errors with Puppet4 (patch from Lukas Bezdicka)
+
 * Wed Jun 11 2014 Steve Traylen <steve.traylen at cern.ch> - 1.3.4-1
 - New version 1.3.4 
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/hiera.git/commit/?h=f22&id=22a16d50ad6d2f79139334671c0bd39058637961


More information about the scm-commits mailing list