This is a patch to rebase facter to 1.6.14 for rawhide (and should be a clean change in F17). Note I had to add a requires on rpsec (not just rspec-core) to make this build cleanly in the %%check phase. This patch also removes the asc file, as it is never (and has never been) used in the process of making the facter package. rpmlint looks reasonable to me upon build. Bugzilla: 871211 Signed-off-by: Michael Stahnke <stahnma@puppetlabs.com>epel9
parent
2419cdc443
commit
b0f6e35125
@ -1,69 +0,0 @@
|
|||||||
From 6ec28631f5d0a1d5f3a9f9c4879950089fce5ed2 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Todd Zullinger <tmz@pobox.com>
|
|
||||||
Date: Wed, 15 Feb 2012 10:07:11 -0500
|
|
||||||
Subject: [PATCH/facter] (#12669) Preserve timestamps when installing files
|
|
||||||
|
|
||||||
Without the preserve option, ruby's FileUtils.install method uses the
|
|
||||||
current time for all installed files. For backup systems, package
|
|
||||||
installs, and general pedantic sysadmins, preserving timestamps makes a
|
|
||||||
small improvement in the world.
|
|
||||||
---
|
|
||||||
install.rb | 12 ++++++------
|
|
||||||
1 files changed, 6 insertions(+), 6 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/install.rb b/install.rb
|
|
||||||
index c5c3a11..909171f 100755
|
|
||||||
--- a/install.rb
|
|
||||||
+++ b/install.rb
|
|
||||||
@@ -103,7 +103,7 @@ def do_libs(libs, strip = 'lib/')
|
|
||||||
op = File.dirname(olf)
|
|
||||||
FileUtils.makedirs(op, {:mode => 0755, :verbose => true})
|
|
||||||
FileUtils.chmod(0755, op)
|
|
||||||
- FileUtils.install(lf, olf, {:mode => 0644, :verbose => true})
|
|
||||||
+ FileUtils.install(lf, olf, {:mode => 0644, :preserve => true, :verbose => true})
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
@@ -114,7 +114,7 @@ def do_man(man, strip = 'man/')
|
|
||||||
om = File.dirname(omf)
|
|
||||||
FileUtils.makedirs(om, {:mode => 0755, :verbose => true})
|
|
||||||
FileUtils.chmod(0755, om)
|
|
||||||
- FileUtils.install(mf, omf, {:mode => 0644, :verbose => true})
|
|
||||||
+ FileUtils.install(mf, omf, {:mode => 0644, :preserve => true, :verbose => true})
|
|
||||||
gzip = %x{which gzip}
|
|
||||||
gzip.chomp!
|
|
||||||
%x{#{gzip} -f #{omf}}
|
|
||||||
@@ -400,12 +400,12 @@ def install_binfile(from, op_file, target)
|
|
||||||
installed_wrapper = false
|
|
||||||
|
|
||||||
if File.exists?("#{from}.bat")
|
|
||||||
- FileUtils.install("#{from}.bat", File.join(target, "#{op_file}.bat"), :mode => 0755, :verbose => true)
|
|
||||||
+ FileUtils.install("#{from}.bat", File.join(target, "#{op_file}.bat"), :mode => 0755, :preserve => true, :verbose => true)
|
|
||||||
installed_wrapper = true
|
|
||||||
end
|
|
||||||
|
|
||||||
if File.exists?("#{from}.cmd")
|
|
||||||
- FileUtils.install("#{from}.cmd", File.join(target, "#{op_file}.cmd"), :mode => 0755, :verbose => true)
|
|
||||||
+ FileUtils.install("#{from}.cmd", File.join(target, "#{op_file}.cmd"), :mode => 0755, :preserve => true, :verbose => true)
|
|
||||||
installed_wrapper = true
|
|
||||||
end
|
|
||||||
|
|
||||||
@@ -419,13 +419,13 @@ set RUBY_BIN=%RUBY_BIN:\\=/%
|
|
||||||
"%RUBY_BIN%ruby.exe" -x "%RUBY_BIN%facter" %*
|
|
||||||
EOS
|
|
||||||
File.open(tmp_file2.path, "w") { |cw| cw.puts cwv }
|
|
||||||
- FileUtils.install(tmp_file2.path, File.join(target, "#{op_file}.bat"), :mode => 0755, :verbose => true)
|
|
||||||
+ FileUtils.install(tmp_file2.path, File.join(target, "#{op_file}.bat"), :mode => 0755, :preserve => true, :verbose => true)
|
|
||||||
|
|
||||||
tmp_file2.unlink
|
|
||||||
installed_wrapper = true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
- FileUtils.install(tmp_file.path, File.join(target, op_file), :mode => 0755, :verbose => true)
|
|
||||||
+ FileUtils.install(tmp_file.path, File.join(target, op_file), :mode => 0755, :preserve => true, :verbose => true)
|
|
||||||
tmp_file.unlink
|
|
||||||
end
|
|
||||||
|
|
||||||
--
|
|
||||||
1.7.6
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
|||||||
-----BEGIN PGP SIGNATURE-----
|
|
||||||
Version: GnuPG v1.4.11 (Darwin)
|
|
||||||
|
|
||||||
iQIcBAABAgAGBQJPRrX/AAoJEBBUt6JL1uww5jMP/1EdteiAyZDJfKaJ5sguDpt8
|
|
||||||
OEfxjBRDZblCFwOUIpt62enP3nwdepaToWAJF2ehL74K5jKMuDhlJAxN0WLq+m8q
|
|
||||||
qm3hHWIKBac6CgeBFUX81DlLog+p9EU2HCBhzajBohfwCXjn74kczwskIhR9vrcx
|
|
||||||
wH3/oG3BKKO51Gi/k6uXHkKJvIPpomAqGxvm5VpjE9e3vUkQMlxWL4jCeDIexByL
|
|
||||||
ykviFtsdgzQRBOTSQRtz2okDJxZVVRux+Y4qQnsQe8C2YrDoXK8lzwhHjNVq1fr/
|
|
||||||
XFM/4OXQawPmE7Jw+5DoAtJR4Ur3tRqHfkCK7dITv4tK4WuSCrrZa6r1bGWMhnwD
|
|
||||||
WFPF5+aXIoX3IMtG0YFcarOPNj+X9Z+cs1oUBC2/eZQwStp9zRoLUSMV5w59Shgi
|
|
||||||
6LnV7Rfk50C9QZhK8o/FxsRQthLLyMhYf9SPPJTBw2oCqTDgDLLcgnEYLUHYCDr+
|
|
||||||
xscTEGa9p1maWfy2T2BnLEZOjDe8od3dXFH+7f7YjAMCXxbWM4PWb9EPQeCyXPX3
|
|
||||||
9I620FNeiIFOLw3SLV77clgFufPHTYisyyp3/4ch83wzQRJMMdGSnX8BzBY57N/d
|
|
||||||
PJblmp+hBOXXYBqJq4QPOzMVrf2dsMXfwRJf9S/XVcjx9ryVrC0eEUZJZRdMZl/6
|
|
||||||
JFLvLFKS/8y++eI5Gem4
|
|
||||||
=ztk/
|
|
||||||
-----END PGP SIGNATURE-----
|
|
Loading…
Reference in new issue