From ce9c5b823e8b095ebc3d5e96acb7fe8120212e33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Tue, 12 Dec 2017 12:30:11 +0100 Subject: [PATCH 1/3] Fix plugin registration issues caused by changes in RPM (rhbz#1523296). Originally, the transaction file triggers provided just list of filenames, but that was not intentional and the list now contains also directory entries. Fortunatelly, these entries can be filtered out if the path end withi '/'. --- vagrant.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vagrant.spec b/vagrant.spec index 154cfb0..70f71e3 100644 --- a/vagrant.spec +++ b/vagrant.spec @@ -4,7 +4,7 @@ Name: vagrant Version: 1.9.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Build and distribute virtualized development environments Group: Development/Languages License: MIT @@ -209,7 +209,7 @@ rescue => e puts "Vagrant plugin.json is not properly initialized: #{e}" end -%transfiletriggerin -p %{_bindir}/ruby -- %{dirname:%{vagrant_plugin_spec}} +%transfiletriggerin -p %{_bindir}/ruby -- %{dirname:%{vagrant_plugin_spec}}/ begin $LOAD_PATH.unshift "%{vagrant_dir}/lib" begin @@ -228,7 +228,7 @@ rescue => e puts "Vagrant plugin register error: #{e}" end -%transfiletriggerun -p %{_bindir}/ruby -- %{dirname:%{vagrant_plugin_spec}} +%transfiletriggerun -p %{_bindir}/ruby -- %{dirname:%{vagrant_plugin_spec}}/ begin $LOAD_PATH.unshift "%{vagrant_dir}/lib" begin @@ -304,6 +304,9 @@ end %changelog +* Tue Dec 12 2017 Vít Ondruch - 1.9.8-2 +- Fix plugin registration issues caused by changes in RPM (rhbz#1523296). + * Thu Aug 24 2017 Pavel Valena - 1.9.8-1 - Update to Vagrant 1.9.8 (rhbz#1427505). - Remove Nokogiri dependency. From 9be79fdcd4cec751fb8c8a54f73b710f7b9350db Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Mon, 11 Sep 2017 17:19:39 +0200 Subject: [PATCH 2/3] Update to Vagrant 2.0.1. Replace vagrant-1.8.1-disable-winrm-tests.patch with sed command. Update to latest vagrant-spec commit. Execute test suite properly. Remove 'Use system certificates' patch - not needed anymore. Add `ssh` BuildRequire for tests. Disable tests that require bundler. --- sources | 4 +- vagrant-1.8.1-disable-winrm-tests.patch | 63 ------- ...ant-1.9.1-Fix-Ruby-2.4-compatibility.patch | 171 ------------------ vagrant-1.9.8-use-system-certificates.patch | 27 --- ...ch => vagrant-2.0.1-fix-dependencies.patch | 18 +- vagrant.spec | 44 ++--- 6 files changed, 36 insertions(+), 291 deletions(-) delete mode 100644 vagrant-1.8.1-disable-winrm-tests.patch delete mode 100644 vagrant-1.9.1-Fix-Ruby-2.4-compatibility.patch delete mode 100644 vagrant-1.9.8-use-system-certificates.patch rename vagrant-1.9.8-fix-dependencies.patch => vagrant-2.0.1-fix-dependencies.patch (80%) diff --git a/sources b/sources index eeb2cc8..558b7ff 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (vagrant-1.9.8.tar.gz) = d22cc0a6800aa5ef84085c750f5ec8729f7b3adefd9a5df1a1fcaf60d1219e781869ede4f57ce4fdeb269224603dfc3a8024545a0250ebd9e144745ce9aa670b -SHA512 (vagrant-spec-e623a5694912c539ac2657e38a372d5e8c93441d.tar.gz) = dd480f06b3be740f368354a3d15bf4bba2982d72c6368c10b72596e8263c2c2fb5179c07f8aea8d9e77e9e2b7792e6f8562a9abb3c2e8861969effb5825a908c +SHA512 (vagrant-2.0.1.tar.gz) = 4458fd819cfcbf732dcbb5e334986afc986e3da4f4ea883260ed9b7ff8dd90ef9b0078c067a1bf7fbf51562f235ab447234762a38aa0ac539974f6205f6d9cfd +SHA512 (vagrant-spec-7ac8b4191de578e345b29acaf62ecc72c8e73be1.tar.gz) = 49482df5a17f0a01b6e1645b2f9fbc1bac2c7e04d7c41f00284b52336513ef1876845e09ba21af3de196b196faa29809ac00655fe61d4ab4d800b8d83df8c6cc diff --git a/vagrant-1.8.1-disable-winrm-tests.patch b/vagrant-1.8.1-disable-winrm-tests.patch deleted file mode 100644 index ed8b9a3..0000000 --- a/vagrant-1.8.1-disable-winrm-tests.patch +++ /dev/null @@ -1,63 +0,0 @@ -diff --git a/test/unit/plugins/provisioners/ansible/provisioner_test.rb b/test/unit/plugins/provisioners/ansible/provisioner_test.rb -index 31354a7..f2dfd0f 100644 ---- a/test/unit/plugins/provisioners/ansible/provisioner_test.rb -+++ b/test/unit/plugins/provisioners/ansible/provisioner_test.rb -@@ -497,55 +497,6 @@ VF - end - end - -- context "with winrm communicator" do -- -- let(:iso_winrm_env) do -- env = isolated_environment -- env.vagrantfile <<-VF --Vagrant.configure("2") do |config| -- config.winrm.username = 'winner' -- config.winrm.password = 'winword' -- config.winrm.transport = :ssl -- -- config.vm.define :machine1 do |machine| -- machine.vm.box = "winbox" -- machine.vm.communicator = :winrm -- end --end --VF -- env.create_vagrant_env -- end -- -- let(:machine) { iso_winrm_env.machine(iso_winrm_env.machine_names[0], :dummy) } -- -- it_should_set_arguments_and_environment_variables -- -- it "generates an inventory with winrm connection settings" do -- -- expect(Vagrant::Util::Subprocess).to receive(:execute).with(any_args) { |*args| -- expect(config.inventory_path).to be_nil -- expect(File.exists?(generated_inventory_file)).to be(true) -- inventory_content = File.read(generated_inventory_file) -- -- expect(inventory_content).to include("machine1 ansible_connection=winrm ansible_ssh_host=127.0.0.1 ansible_ssh_port=55986 ansible_ssh_user='winner' ansible_ssh_pass='winword'\n") -- }.and_return(default_execute_result) -- end -- -- describe "with force_remote_user option disabled" do -- before do -- config.force_remote_user = false -- end -- -- it "doesn't set the ansible remote user in inventory and use '--user' argument with the vagrant ssh username" do -- expect(Vagrant::Util::Subprocess).to receive(:execute).with(any_args) { |*args| -- inventory_content = File.read(generated_inventory_file) -- -- expect(inventory_content).to include("machine1 ansible_connection=winrm ansible_ssh_host=127.0.0.1 ansible_ssh_port=55986 ansible_ssh_pass='winword'\n") -- expect(args).to include("--user=testuser") -- }.and_return(default_execute_result) -- end -- end -- end - - describe "with inventory_path option" do - before do --- -2.5.0 - diff --git a/vagrant-1.9.1-Fix-Ruby-2.4-compatibility.patch b/vagrant-1.9.1-Fix-Ruby-2.4-compatibility.patch deleted file mode 100644 index fc9bba1..0000000 --- a/vagrant-1.9.1-Fix-Ruby-2.4-compatibility.patch +++ /dev/null @@ -1,171 +0,0 @@ -From 3cdd1d09f9617e6005fc643000b5486ffbe22577 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?V=C3=ADt=20Ondruch?= -Date: Tue, 14 Feb 2017 10:13:29 +0100 -Subject: [PATCH 1/2] Use Integer instead of Fixnum for Ruby 2.4+ - compatibility. - ---- - lib/vagrant/cli.rb | 2 +- - lib/vagrant/plugin/v2/communicator.rb | 2 +- - lib/vagrant/registry.rb | 2 +- - plugins/provisioners/shell/config.rb | 4 ++-- - plugins/pushes/local-exec/config.rb | 4 ++-- - test/unit/plugins/provisioners/shell/config_test.rb | 6 +++--- - test/unit/plugins/pushes/local-exec/config_test.rb | 4 ++-- - 7 files changed, 12 insertions(+), 12 deletions(-) - -diff --git a/lib/vagrant/cli.rb b/lib/vagrant/cli.rb -index a6e9655f0..cca8c0184 100644 ---- a/lib/vagrant/cli.rb -+++ b/lib/vagrant/cli.rb -@@ -45,7 +45,7 @@ module Vagrant - result = 1 - end - -- result = 0 if !result.is_a?(Fixnum) -+ result = 0 if !result.is_a?(Integer) - return result - end - -diff --git a/lib/vagrant/plugin/v2/communicator.rb b/lib/vagrant/plugin/v2/communicator.rb -index 511fb6002..41385f486 100644 ---- a/lib/vagrant/plugin/v2/communicator.rb -+++ b/lib/vagrant/plugin/v2/communicator.rb -@@ -50,7 +50,7 @@ module Vagrant - # until then. It will wait up to the given duration or raise an - # exception if something goes wrong. - # -- # @param [Fixnum] duration Timeout in seconds. -+ # @param [Integer] duration Timeout in seconds. - # @return [Boolean] Will return true on successful connection - # or false on timeout. - def wait_for_ready(duration) -diff --git a/lib/vagrant/registry.rb b/lib/vagrant/registry.rb -index d84a745a5..c0c4e1bad 100644 ---- a/lib/vagrant/registry.rb -+++ b/lib/vagrant/registry.rb -@@ -52,7 +52,7 @@ module Vagrant - - # Return the number of elements in this registry. - # -- # @return [Fixnum] -+ # @return [Integer] - def length - @items.keys.length - end -diff --git a/plugins/provisioners/shell/config.rb b/plugins/provisioners/shell/config.rb -index 049eb15d0..05da320e3 100644 ---- a/plugins/provisioners/shell/config.rb -+++ b/plugins/provisioners/shell/config.rb -@@ -106,10 +106,10 @@ module VagrantPlugins - def args_valid? - return true if !args - return true if args.is_a?(String) -- return true if args.is_a?(Fixnum) -+ return true if args.is_a?(Integer) - if args.is_a?(Array) - args.each do |a| -- return false if !a.kind_of?(String) && !a.kind_of?(Fixnum) -+ return false if !a.kind_of?(String) && !a.kind_of?(Integer) - end - - return true -diff --git a/plugins/pushes/local-exec/config.rb b/plugins/pushes/local-exec/config.rb -index d62dfa8fa..9ed466088 100644 ---- a/plugins/pushes/local-exec/config.rb -+++ b/plugins/pushes/local-exec/config.rb -@@ -63,10 +63,10 @@ module VagrantPlugins - def args_valid? - return true if !args - return true if args.is_a?(String) -- return true if args.is_a?(Fixnum) -+ return true if args.is_a?(Integer) - if args.is_a?(Array) - args.each do |a| -- return false if !a.kind_of?(String) && !a.kind_of?(Fixnum) -+ return false if !a.kind_of?(String) && !a.kind_of?(Integer) - end - - return true -diff --git a/test/unit/plugins/provisioners/shell/config_test.rb b/test/unit/plugins/provisioners/shell/config_test.rb -index c4d260b90..905a28b03 100644 ---- a/test/unit/plugins/provisioners/shell/config_test.rb -+++ b/test/unit/plugins/provisioners/shell/config_test.rb -@@ -30,7 +30,7 @@ describe "VagrantPlugins::Shell::Config" do - expect(result["shell provisioner"]).to eq([]) - end - -- it "passes with fixnum args" do -+ it "passes with integer args" do - subject.path = file_that_exists - subject.args = 1 - subject.finalize! -@@ -112,7 +112,7 @@ describe "VagrantPlugins::Shell::Config" do - end - - describe 'finalize!' do -- it 'changes fixnum args into strings' do -+ it 'changes integer args into strings' do - subject.path = file_that_exists - subject.args = 1 - subject.finalize! -@@ -120,7 +120,7 @@ describe "VagrantPlugins::Shell::Config" do - expect(subject.args).to eq '1' - end - -- it 'changes fixnum args in arrays into strings' do -+ it 'changes integer args in arrays into strings' do - subject.path = file_that_exists - subject.args = ["string", 1, 2] - subject.finalize! -diff --git a/test/unit/plugins/pushes/local-exec/config_test.rb b/test/unit/plugins/pushes/local-exec/config_test.rb -index 1bde10d98..9442b6420 100644 ---- a/test/unit/plugins/pushes/local-exec/config_test.rb -+++ b/test/unit/plugins/pushes/local-exec/config_test.rb -@@ -70,7 +70,7 @@ describe VagrantPlugins::LocalExecPush::Config do - expect(errors).to be_empty - end - -- it "passes with fixnum args" do -+ it "passes with integer args" do - subject.args = 1 - expect(errors).to be_empty - end -@@ -118,7 +118,7 @@ describe VagrantPlugins::LocalExecPush::Config do - expect(errors).to be_empty - end - -- it "passes with fixnum args" do -+ it "passes with integer args" do - subject.args = 1 - expect(errors).to be_empty - end --- -2.11.1 - - -From 6d269293e37db86325bec0a17502d68838d28214 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?V=C3=ADt=20Ondruch?= -Date: Tue, 14 Feb 2017 10:33:58 +0100 -Subject: [PATCH 2/2] Do not use deprecated API. - ---- - lib/vagrant/util/keypair.rb | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/lib/vagrant/util/keypair.rb b/lib/vagrant/util/keypair.rb -index 342d3264f..5e3d10ea6 100644 ---- a/lib/vagrant/util/keypair.rb -+++ b/lib/vagrant/util/keypair.rb -@@ -26,7 +26,7 @@ module Vagrant - private_key = rsa_key.to_pem - - if password -- cipher = OpenSSL::Cipher::Cipher.new('des3') -+ cipher = OpenSSL::Cipher.new('des3') - private_key = rsa_key.to_pem(cipher, password) - end - --- -2.11.1 - diff --git a/vagrant-1.9.8-use-system-certificates.patch b/vagrant-1.9.8-use-system-certificates.patch deleted file mode 100644 index 1e73c65..0000000 --- a/vagrant-1.9.8-use-system-certificates.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 7486aa2ce950f55a4be9049d514c412d7e45ddef Mon Sep 17 00:00:00 2001 -From: Pavel Valena -Date: Thu, 20 Jul 2017 15:01:06 +0200 -Subject: [PATCH] Use system certificates - ---- - lib/vagrant/util/downloader.rb | 5 +++-- - 1 files changed, 3 insertions(+), 2 deletions(-) - -diff --git a/lib/vagrant/util/downloader.rb b/lib/vagrant/util/downloader.rb -index 03e6238..9a02a85 100644 ---- a/lib/vagrant/util/downloader.rb -+++ b/lib/vagrant/util/downloader.rb -@@ -297,8 +297,9 @@ module Vagrant - # If we're in Vagrant, then we use the packaged CA bundle - if Vagrant.in_installer? - subprocess_options[:env] ||= {} -- subprocess_options[:env]["CURL_CA_BUNDLE"] = -- File.expand_path("cacert.pem", ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"]) -+ #Use system certificates. -+ #subprocess_options[:env]["CURL_CA_BUNDLE"] = -+ # File.expand_path("cacert.pem", ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"]) - end - - return [options, subprocess_options] --- -2.5.0 diff --git a/vagrant-1.9.8-fix-dependencies.patch b/vagrant-2.0.1-fix-dependencies.patch similarity index 80% rename from vagrant-1.9.8-fix-dependencies.patch rename to vagrant-2.0.1-fix-dependencies.patch index f1796bf..ff7614f 100644 --- a/vagrant-1.9.8-fix-dependencies.patch +++ b/vagrant-2.0.1-fix-dependencies.patch @@ -1,21 +1,21 @@ From 7486aa2ce950f55a4be9049d514c412d7e45ddef Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Thu, 20 Jul 2017 15:01:06 +0200 -Subject: [PATCH] Fix dependencies for Vagrant 1.9.7. +Subject: [PATCH] Fix dependencies for Vagrant 2.0.1. --- - vagrant.gemspec | 23 +++++++++++++---------- - 1 file changed, 13 insertions(+), 10 deletions(-) + vagrant.gemspec | 25 ++++++++++++++----------- + 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/vagrant.gemspec b/vagrant.gemspec index c92ca17..aeee52f 100644 --- a/vagrant.gemspec +++ b/vagrant.gemspec -@@ -12,31 +12,34 @@ Gem::Specification.new do |s| +@@ -12,35 +12,38 @@ Gem::Specification.new do |s| s.summary = "Build and distribute virtualized development environments." s.description = "Vagrant is a tool for building and distributing virtualized development environments." -- s.required_ruby_version = "~> 2.2", "< 2.4" +- s.required_ruby_version = "~> 2.2", "< 2.5" + s.required_ruby_version = "~> 2.2" s.required_rubygems_version = ">= 1.3.6" s.rubyforge_project = "vagrant" @@ -56,6 +56,10 @@ index c92ca17..aeee52f 100644 # Constraint rake to properly handle deprecated method usage # from within rspec +- s.add_development_dependency "rake", "~> 12.0.0" ++ s.add_development_dependency "rake", "~> 12.2.0" + s.add_development_dependency "rspec", "~> 3.5.0" + s.add_development_dependency "rspec-its", "~> 1.2.0" + s.add_development_dependency "webmock", "~> 2.3.1" -- -2.7.5 - +2.13.6 diff --git a/vagrant.spec b/vagrant.spec index 70f71e3..fba7e78 100644 --- a/vagrant.spec +++ b/vagrant.spec @@ -1,10 +1,10 @@ %global bashcompletion_dir %(pkg-config --variable=completionsdir bash-completion 2> /dev/null || :) -%global vagrant_spec_commit e623a5694912c539ac2657e38a372d5e8c93441d +%global vagrant_spec_commit 7ac8b4191de578e345b29acaf62ecc72c8e73be1 Name: vagrant -Version: 1.9.8 -Release: 2%{?dist} +Version: 2.0.1 +Release: 1%{?dist} Summary: Build and distribute virtualized development environments Group: Development/Languages License: MIT @@ -14,7 +14,7 @@ Source0: https://github.com/mitchellh/%{name}/archive/v%{version}/%{name}-%{vers Source1: binstub # The library has no official release yet. But since it is just test # dependency, it should be fine to include the source right here. -# wget https://github.com/mitchellh/vagrant-spec/archive/2f0fb10862b2d19861c584be9d728080ba1f5d33/vagrant-spec-2f0fb10862b2d19861c584be9d728080ba1f5d33.tar.gz +# wget https://github.com/mitchellh/vagrant-spec/archive/7ac8b4191de578e345b29acaf62ecc72c8e73be1/vagrant-spec-7ac8b4191de578e345b29acaf62ecc72c8e73be1.tar.gz Source2: https://github.com/mitchellh/%{name}-spec/archive/%{vagrant_spec_commit}/%{name}-spec-%{vagrant_spec_commit}.tar.gz # Monkey-patching needed for Vagrant to work until the respective patches # for RubyGems and Bundler are in place @@ -24,17 +24,7 @@ Source4: macros.vagrant # fails on older Fedoras. %{?load:%{SOURCE4}} -Patch0: vagrant-1.9.8-fix-dependencies.patch - -# Disable ansible winrm tests -Patch1: vagrant-1.8.1-disable-winrm-tests.patch - -# Use Integer instead of Fixnum for Ruby 2.4+ compatibility. -# https://github.com/mitchellh/vagrant/pull/8284 -Patch2: vagrant-1.9.1-Fix-Ruby-2.4-compatibility.patch - -# Use system certificates(split to standalone patch) -Patch3: vagrant-1.9.8-use-system-certificates.patch +Patch0: vagrant-2.0.1-fix-dependencies.patch Requires: ruby(release) Requires: ruby(rubygems) >= 1.3.6 @@ -77,6 +67,7 @@ BuildRequires: rubygem(thor) BuildRequires: rubygem(webmock) BuildRequires: rubygem(fake_ftp) BuildRequires: pkgconfig(bash-completion) +BuildRequires: %{_bindir}/ssh BuildArch: noarch # vagrant-atomic was retired in F26, since it was merged into Vagrant. @@ -106,9 +97,6 @@ Documentation for %{name}. %setup -q -b2 %patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 %build gem build %{name}.gemspec @@ -174,8 +162,12 @@ mv ../vagrant-spec{-%{vagrant_spec_commit},} # Remove the git reference, which is useless in our case. sed -i '/git/ s/^/#/' ../vagrant-spec/vagrant-spec.gemspec -# Relax the thor dependency, since Fedora ships with newer version. +# Relax the dependencies, since Fedora ships with newer versions. sed -i '/thor/ s/~>/>=/' ../vagrant-spec/vagrant-spec.gemspec +sed -i '/rspec/ s/~>/>=/' ./vagrant.gemspec +sed -i '/rspec/ s/~>/>=/' ../vagrant-spec/vagrant-spec.gemspec +# TODO: package newer childproccess +sed -i '/childprocess/ s/~>/<=/' ../vagrant-spec/vagrant-spec.gemspec #Insert new test dependencies sed -i '25 i\ spec.add_dependency "webmock"' ../vagrant-spec/vagrant-spec.gemspec @@ -185,9 +177,16 @@ sed -i '26 i\ spec.add_dependency "fake_ftp"' ../vagrant-spec/vagrant-spec.gems rm -rf test/unit/plugins/communicators/winrm sed -i '/it "eager loads WinRM" do/,/^ end$/ s/^/#/' test/unit/vagrant/machine_test.rb sed -i '/it "should return the specified communicator if given" do/,/^ end$/ s/^/#/' test/unit/vagrant/machine_test.rb +sed -i '/^ context "with winrm communicator" do$/,/^ end$/ s/^/#/' \ + test/unit/plugins/provisioners/ansible/provisioner_test.rb + +# Disable test that requires bundler +# https://github.com/hashicorp/vagrant/issues/9273 +mv test/unit/vagrant/util/env_test.rb{,.disable} + +# Rake solves the requires issues for tests +rake -f tasks/test.rake test:unit -# Test suite must be executed in order. -ruby -I.:lib -e 'Dir.glob("test/unit/**/*_test.rb").sort.each &method(:require)' %pre getent group vagrant >/dev/null || groupadd -r vagrant @@ -304,6 +303,9 @@ end %changelog +* Mon Dec 18 2017 Pavel Valena - 2.0.1-1 +- Update to Vagrant 2.0.1. + * Tue Dec 12 2017 Vít Ondruch - 1.9.8-2 - Fix plugin registration issues caused by changes in RPM (rhbz#1523296). From e9f8242042b77ee4143dc1c9059302db07172353 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Wed, 31 Jan 2018 12:24:31 +0100 Subject: [PATCH 3/3] Update to Vagrant 2.0.2. Update to latest vagrant-spec commit. --- .gitignore | 17 ++-------- sources | 4 +-- ...ch => vagrant-2.0.2-fix-dependencies.patch | 9 +++--- ....0.2-use-numerical-instead-localhost.patch | 32 +++++++++++++++++++ vagrant.spec | 21 ++++++++---- 5 files changed, 55 insertions(+), 28 deletions(-) rename vagrant-2.0.1-fix-dependencies.patch => vagrant-2.0.2-fix-dependencies.patch (91%) create mode 100644 vagrant-2.0.2-use-numerical-instead-localhost.patch diff --git a/.gitignore b/.gitignore index fec04bd..ce3853d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,2 @@ -/vagrant-1.6.5.tar.gz -/vagrant-spec-c0dafc996165bf1628b672dd533f1858ff66fe4a.tar.gz -/vagrant-1.7.2.tar.gz -/vagrant-1.7.4.tar.gz -/vagrant-spec-f1a18fd3e5387328ca83e016e48373aadb67112a.tar.gz -/vagrant-1.8.1.tar.gz -/vagrant-spec-9bba7e1228379c0a249a06ce76ba8ea7d276afbe.tar.gz -/vagrant-1.8.5.tar.gz -/vagrant-1.8.6.tar.gz -/vagrant-1.8.7.tar.gz -/vagrant-1.9.1.tar.gz -/vagrant-1.9.7.tar.gz -/vagrant-spec-2f0fb10862b2d19861c584be9d728080ba1f5d33.tar.gz -/vagrant-1.9.8.tar.gz -/vagrant-spec-e623a5694912c539ac2657e38a372d5e8c93441d.tar.gz +/vagrant-*.tar.gz +/vagrant-spec-*.tar.gz diff --git a/sources b/sources index 558b7ff..2cba5c6 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (vagrant-2.0.1.tar.gz) = 4458fd819cfcbf732dcbb5e334986afc986e3da4f4ea883260ed9b7ff8dd90ef9b0078c067a1bf7fbf51562f235ab447234762a38aa0ac539974f6205f6d9cfd -SHA512 (vagrant-spec-7ac8b4191de578e345b29acaf62ecc72c8e73be1.tar.gz) = 49482df5a17f0a01b6e1645b2f9fbc1bac2c7e04d7c41f00284b52336513ef1876845e09ba21af3de196b196faa29809ac00655fe61d4ab4d800b8d83df8c6cc +SHA512 (vagrant-2.0.2.tar.gz) = 27e8157cf8a8d102a0ca328403410639bd4a9f7cb90d443f5be3ca912aeb6177208b26ba9751b49d98b5ba1e92f8bec74db0baca4cd22051d5ef6d3aca558f3a +SHA512 (vagrant-spec-f3daedaac493ebc0ba1a96c915423a329e09e84a.tar.gz) = 78dd57932b3a19c410abbac45992251ec5b8a5fa6ba5431fb74187c17a7fe7079d757b1654d674c02d25afb1dbe40d16fb4dd7553517c531a737d7a7998b6f70 diff --git a/vagrant-2.0.1-fix-dependencies.patch b/vagrant-2.0.2-fix-dependencies.patch similarity index 91% rename from vagrant-2.0.1-fix-dependencies.patch rename to vagrant-2.0.2-fix-dependencies.patch index ff7614f..34f0c30 100644 --- a/vagrant-2.0.1-fix-dependencies.patch +++ b/vagrant-2.0.2-fix-dependencies.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Fix dependencies for Vagrant 2.0.1. --- vagrant.gemspec | 25 ++++++++++++++----------- - 1 file changed, 14 insertions(+), 11 deletions(-) + 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/vagrant.gemspec b/vagrant.gemspec index c92ca17..aeee52f 100644 @@ -15,7 +15,7 @@ index c92ca17..aeee52f 100644 s.summary = "Build and distribute virtualized development environments." s.description = "Vagrant is a tool for building and distributing virtualized development environments." -- s.required_ruby_version = "~> 2.2", "< 2.5" +- s.required_ruby_version = "~> 2.2", "< 2.6" + s.required_ruby_version = "~> 2.2" s.required_rubygems_version = ">= 1.3.6" s.rubyforge_project = "vagrant" @@ -25,10 +25,9 @@ index c92ca17..aeee52f 100644 s.add_dependency "erubis", "~> 2.7.0" s.add_dependency "i18n", ">= 0.6.0", "<= 0.8.0" s.add_dependency "listen", "~> 3.1.5" - s.add_dependency "hashicorp-checkpoint", "~> 0.1.1" + s.add_dependency "hashicorp-checkpoint", "~> 0.1.5" s.add_dependency "log4r", "~> 1.1.9", "< 1.1.11" -- s.add_dependency "net-ssh", "~> 4.1.0" -+ s.add_dependency "net-ssh", ">= 4.1.0" + s.add_dependency "net-ssh", "~> 4.2.0" s.add_dependency "net-sftp", "~> 2.1" - s.add_dependency "net-scp", "~> 1.2.0" - s.add_dependency "rb-kqueue", "~> 0.2.0" diff --git a/vagrant-2.0.2-use-numerical-instead-localhost.patch b/vagrant-2.0.2-use-numerical-instead-localhost.patch new file mode 100644 index 0000000..7b7ab2b --- /dev/null +++ b/vagrant-2.0.2-use-numerical-instead-localhost.patch @@ -0,0 +1,32 @@ +From a102bc064f2b0d97cc6e67bb4f5e4a1bd951e311 Mon Sep 17 00:00:00 2001 +From: Pavel Valena +Date: Wed, 31 Jan 2018 19:08:35 +0100 +Subject: [PATCH] Use 127.0.0.1 instead of localhost + +in test is_port_open_test.rb +--- + test/unit/vagrant/util/is_port_open_test.rb | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/test/unit/vagrant/util/is_port_open_test.rb b/test/unit/vagrant/util/is_port_open_test.rb +index 71ee1db3b7..ea70425755 100644 +--- a/test/unit/vagrant/util/is_port_open_test.rb ++++ b/test/unit/vagrant/util/is_port_open_test.rb +@@ -36,7 +36,7 @@ + end + + # Verify that we report the port is open +- expect(klass.is_port_open?("localhost", open_port)).to be ++ expect(klass.is_port_open?("127.0.0.1", open_port)).to be + + # Kill the thread + thr[:die] = true +@@ -47,7 +47,7 @@ + # This CAN fail, since port 52811 might actually be in use, but I'm + # not sure what to do except choose some random port and hope for the + # best, really. +- expect(klass.is_port_open?("localhost", closed_port)).not_to be ++ expect(klass.is_port_open?("127.0.0.1", closed_port)).not_to be + end + end + diff --git a/vagrant.spec b/vagrant.spec index fba7e78..9adb00a 100644 --- a/vagrant.spec +++ b/vagrant.spec @@ -1,9 +1,9 @@ %global bashcompletion_dir %(pkg-config --variable=completionsdir bash-completion 2> /dev/null || :) -%global vagrant_spec_commit 7ac8b4191de578e345b29acaf62ecc72c8e73be1 +%global vagrant_spec_commit f3daedaac493ebc0ba1a96c915423a329e09e84a Name: vagrant -Version: 2.0.1 +Version: 2.0.2 Release: 1%{?dist} Summary: Build and distribute virtualized development environments Group: Development/Languages @@ -14,7 +14,7 @@ Source0: https://github.com/mitchellh/%{name}/archive/v%{version}/%{name}-%{vers Source1: binstub # The library has no official release yet. But since it is just test # dependency, it should be fine to include the source right here. -# wget https://github.com/mitchellh/vagrant-spec/archive/7ac8b4191de578e345b29acaf62ecc72c8e73be1/vagrant-spec-7ac8b4191de578e345b29acaf62ecc72c8e73be1.tar.gz +# wget https://github.com/mitchellh/vagrant-spec/archive/f3daedaac493ebc0ba1a96c915423a329e09e84a/vagrant-spec-f3daedaac493ebc0ba1a96c915423a329e09e84a.tar.gz Source2: https://github.com/mitchellh/%{name}-spec/archive/%{vagrant_spec_commit}/%{name}-spec-%{vagrant_spec_commit}.tar.gz # Monkey-patching needed for Vagrant to work until the respective patches # for RubyGems and Bundler are in place @@ -24,20 +24,24 @@ Source4: macros.vagrant # fails on older Fedoras. %{?load:%{SOURCE4}} -Patch0: vagrant-2.0.1-fix-dependencies.patch +Patch0: vagrant-2.0.2-fix-dependencies.patch + +# Use 127.0.0.1 instead of localhost in tests +# https://github.com/hashicorp/vagrant/pull/9422 +Patch1: vagrant-2.0.2-use-numerical-instead-localhost.patch Requires: ruby(release) Requires: ruby(rubygems) >= 1.3.6 # Explicitly specify MRI, since Vagrant does not work with JRuby ATM. Requires: ruby -Requires: rubygem(hashicorp-checkpoint) >= 0.1.1 +Requires: rubygem(hashicorp-checkpoint) >= 0.1.5 Requires: rubygem(childprocess) >= 0.5.0 Requires: rubygem(erubis) >= 2.7.0 Requires: rubygem(i18n) >= 0.6.0 Requires: rubygem(json) Requires: rubygem(listen) >= 3.1.5 Requires: rubygem(log4r) >= 1.1.9 -Requires: rubygem(net-ssh) >= 4.1.0 +Requires: rubygem(net-ssh) >= 4.2.0 Requires: rubygem(net-scp) >= 1.2.0 Requires: rubygem(net-sftp) >= 2.1 Requires: rubygem(rest-client) >= 1.6.0 @@ -155,6 +159,8 @@ EOF %check +cat %{PATCH1} | patch -p1 + # Adjust the vagrant-spec directory name. rm -rf ../vagrant-spec mv ../vagrant-spec{-%{vagrant_spec_commit},} @@ -303,6 +309,9 @@ end %changelog +* Wed Jan 31 2018 Pavel Valena - 2.0.2-1 +- Update to Vagrant 2.0.2. + * Mon Dec 18 2017 Pavel Valena - 2.0.1-1 - Update to Vagrant 2.0.1.