From 6788415234191db73c23622b8594a2b3b99bab46 Mon Sep 17 00:00:00 2001 From: Tomas Hrcka Date: Feb 09 2016 12:47:42 +0000 Subject: Include rebased patches --- diff --git a/vagrant-1.8.1-disable-winrm-tests.patch b/vagrant-1.8.1-disable-winrm-tests.patch new file mode 100644 index 0000000..3b39554 --- /dev/null +++ b/vagrant-1.8.1-disable-winrm-tests.patch @@ -0,0 +1,63 @@ +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 +@@ -445,55 +445,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 { |*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") +- } +- 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 { |*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") +- } +- end +- end +- end + + describe "with inventory_path option" do + before do +-- +2.5.0 + diff --git a/vagrant-1.8.1-fix-dependencies.patch b/vagrant-1.8.1-fix-dependencies.patch new file mode 100755 index 0000000..cefcbc1 --- /dev/null +++ b/vagrant-1.8.1-fix-dependencies.patch @@ -0,0 +1,114 @@ +From 8d5d208fbc4a9b87c6f1f9991dbbf65d5cb5bfbb Mon Sep 17 00:00:00 2001 +From: Tomas Hrcka +Date: Wed, 27 Jan 2016 10:20:34 +0100 +Subject: [PATCH] fix dependencies + +--- + lib/vagrant/bundler.rb | 2 +- + lib/vagrant/util/downloader.rb | 5 +++-- + vagrant.gemspec | 41 ++++++++++++++++++++--------------------- + 3 files changed, 24 insertions(+), 24 deletions(-) + +diff --git a/lib/vagrant/bundler.rb b/lib/vagrant/bundler.rb +index ff60b32..7e02ae9 100644 +--- a/lib/vagrant/bundler.rb ++++ b/lib/vagrant/bundler.rb +@@ -188,7 +188,7 @@ module Vagrant + gemfile.puts(%Q[source "#{source}"]) + end + +- gemfile.puts(%Q[gem "vagrant", "= #{VERSION}"]) ++ gemfile.puts(%Q[gemspec :path => "#{File.expand_path '../../..', __FILE__}"]) + + gemfile.puts("group :plugins do") + plugins.each do |name, plugin| +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 +@@ -244,8 +244,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] +diff --git a/vagrant.gemspec b/vagrant.gemspec +index 078add3..d1dd7bd 100644 +--- a/vagrant.gemspec ++++ b/vagrant.gemspec +@@ -20,24 +20,23 @@ Gem::Specification.new do |s| + s.add_dependency "erubis", "~> 2.7.0" + s.add_dependency "i18n", ">= 0.6.0", "<= 0.8.0" + s.add_dependency "listen", "~> 3.0.2" ++ s.add_dependency "json" + s.add_dependency "hashicorp-checkpoint", "~> 0.1.1" + s.add_dependency "log4r", "~> 1.1.9", "< 1.1.11" +- s.add_dependency "net-ssh", "~> 3.0.1" +- s.add_dependency "net-sftp", "~> 2.1" +- s.add_dependency "net-scp", "~> 1.1.0" +- s.add_dependency "rb-kqueue", "~> 0.2.0" ++ s.add_dependency "net-ssh" ++ s.add_dependency "net-sftp", ">= 2.1" ++ s.add_dependency "net-scp", ">= 1.1.0" + s.add_dependency "rest-client", ">= 1.6.0", "< 2.0" +- s.add_dependency "wdm", "~> 0.1.0" +- s.add_dependency "winrm", "~> 1.3" +- s.add_dependency "winrm-fs", "~> 0.2.2" + + # We lock this down to avoid compilation issues. +- s.add_dependency "nokogiri", "= 1.6.3.1" +- +- s.add_development_dependency "rake" +- s.add_development_dependency "rspec", "~> 2.14.0" +- s.add_development_dependency "webmock", "~> 1.20" +- s.add_development_dependency "fake_ftp", "~> 0.1" ++ s.add_dependency "nokogiri" ++ ++ # This dependency is typically provided by listen, but was removed in Fedora. ++ s.add_dependency "rb-inotify" ++ #s.add_development_dependency "rake" ++ #s.add_development_dependency "rspec", "~> 2.14.0" ++ #s.add_development_dependency "webmock", "~> 1.20" ++ #s.add_development_dependency "fake_ftp", "~> 0.1" + + # The following block of code determines the files that should be included + # in the gem. It does this by reading all the files in the directory where +@@ -48,10 +47,10 @@ Gem::Specification.new do |s| + all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") } + all_files.reject! { |file| [".", ".."].include?(File.basename(file)) } + all_files.reject! { |file| file.start_with?("website/") } +- gitignore_path = File.join(root_path, ".gitignore") +- gitignore = File.readlines(gitignore_path) +- gitignore.map! { |line| line.chomp.strip } +- gitignore.reject! { |line| line.empty? || line =~ /^(#|!)/ } ++ #gitignore_path = File.join(root_path, ".gitignore") ++ #gitignore = File.readlines(gitignore_path) ++ #gitignore.map! { |line| line.chomp.strip } ++ #gitignore.reject! { |line| line.empty? || line =~ /^(#|!)/ } + + unignored_files = all_files.reject do |file| + # Ignore any directories, the gemspec only cares about files +@@ -65,10 +64,10 @@ Gem::Specification.new do |s| + # like '.DS_Store' will match sub-directories too (same behavior + # as git). + # +- gitignore.any? do |ignore| +- File.fnmatch(ignore, file, File::FNM_PATHNAME) || +- File.fnmatch(ignore, File.basename(file), File::FNM_PATHNAME) +- end ++ #gitignore.any? do |ignore| ++ # File.fnmatch(ignore, file, File::FNM_PATHNAME) || ++ # File.fnmatch(ignore, File.basename(file), File::FNM_PATHNAME) ++ #end + end + + s.files = unignored_files +-- +2.5.0 +