vagrant: 2.2.9 -> 2.2.10

ChangeLog: https://github.com/hashicorp/vagrant/blob/v2.2.10/CHANGELOG.md#2210-august-24-2020

Apart from the usual `gemset`-update the following patches were altered:

* Deprecation fix on ruby 2.6.5: was removed since the underlying issue
was fixed upstream.
* 0004-Support-system-installed-plugins.patch: re-downloaded the rebased
version from `salsa.debian.org`[1] where we originally obtained the patch
from.
* use-system-bundler-version: re-applied on top of Vagrant 2.2.10.

[1] https://salsa.debian.org/ruby-team/vagrant/-/blob/9d86f222/debian/patches/0004-Support-system-installed-plugins.patch

+37 -38
+3 -7
pkgs/development/tools/vagrant/0004-Support-system-installed-plugins.patch
··· 1 From: Antonio Terceiro <terceiro@debian.org> 2 Date: Wed, 27 May 2015 09:36:17 -0300 3 Subject: Support system-installed plugins 4 - Source: https://salsa.debian.org/ruby-team/vagrant/blob/cb672c6dc0c63f6552c5ec4d6d7d22929d353503/debian/patches/0004-Support-system-installed-plugins.patch 5 6 Plugins must be installed as regular Ruby libraries, and they must 7 contain /usr/share/vagrant-plugins/plugins.d/$PLUGINNAME.json with the ··· 22 2 files changed, 23 insertions(+), 3 deletions(-) 23 24 diff --git a/lib/vagrant/plugin/manager.rb b/lib/vagrant/plugin/manager.rb 25 - index 567347d..d9d76a0 100644 26 --- a/lib/vagrant/plugin/manager.rb 27 +++ b/lib/vagrant/plugin/manager.rb 28 @@ -18,7 +18,7 @@ module Vagrant ··· 80 end 81 82 # Add a plugin that is installed to the state file. 83 - @@ -107,6 +123,14 @@ module Vagrant 84 f.close 85 FileUtils.mv(f.path, @path) 86 end 87 + rescue Errno::EACCES 88 + # Ignore permission denied against system-installed plugins; regular 89 - + # users are not supposed to write there. 90 - + raise unless @system 91 - + rescue Errno::EROFS 92 - + # Ignore read-only filesystem against system-installed plugins; regular 93 + # users are not supposed to write there. 94 + raise unless @system 95 end
··· 1 From: Antonio Terceiro <terceiro@debian.org> 2 Date: Wed, 27 May 2015 09:36:17 -0300 3 Subject: Support system-installed plugins 4 + Source: https://salsa.debian.org/ruby-team/vagrant/-/blob/9d86f222/debian/patches/0004-Support-system-installed-plugins.patch 5 6 Plugins must be installed as regular Ruby libraries, and they must 7 contain /usr/share/vagrant-plugins/plugins.d/$PLUGINNAME.json with the ··· 22 2 files changed, 23 insertions(+), 3 deletions(-) 23 24 diff --git a/lib/vagrant/plugin/manager.rb b/lib/vagrant/plugin/manager.rb 25 + index 9058e68..2772131 100644 26 --- a/lib/vagrant/plugin/manager.rb 27 +++ b/lib/vagrant/plugin/manager.rb 28 @@ -18,7 +18,7 @@ module Vagrant ··· 80 end 81 82 # Add a plugin that is installed to the state file. 83 + @@ -107,6 +123,10 @@ module Vagrant 84 f.close 85 FileUtils.mv(f.path, @path) 86 end 87 + rescue Errno::EACCES 88 + # Ignore permission denied against system-installed plugins; regular 89 + # users are not supposed to write there. 90 + raise unless @system 91 end
+2 -9
pkgs/development/tools/vagrant/default.nix
··· 5 let 6 # NOTE: bumping the version and updating the hash is insufficient; 7 # you must use bundix to generate a new gemset.nix in the Vagrant source. 8 - version = "2.2.9"; 9 url = "https://github.com/hashicorp/vagrant/archive/v${version}.tar.gz"; 10 - sha256 = "0fbickjjliaw3cpkh3pl9bp56b2gcqn87c5ag67amc450ah43rdq"; 11 12 deps = bundlerEnv rec { 13 name = "${pname}-${version}"; ··· 54 ./unofficial-installation-nowarn.patch 55 ./use-system-bundler-version.patch 56 ./0004-Support-system-installed-plugins.patch 57 - 58 - # fix deprecation warning on ruby 2.6.5. 59 - # See also https://github.com/hashicorp/vagrant/pull/11307 60 - (fetchpatch { 61 - url = "https://github.com/hashicorp/vagrant/commit/d18ed567aaa5da23c9e91ab87f360e7bf6760f13.patch"; 62 - sha256 = "0f61qj41rc3fdggmnha4jrqg4pzmfiriwpsz4fcgf7c0bx6qha7q"; 63 - }) 64 ]; 65 66 postPatch = ''
··· 5 let 6 # NOTE: bumping the version and updating the hash is insufficient; 7 # you must use bundix to generate a new gemset.nix in the Vagrant source. 8 + version = "2.2.10"; 9 url = "https://github.com/hashicorp/vagrant/archive/v${version}.tar.gz"; 10 + sha256 = "07wlj4m79m9li3za1jkk4imdhqwpca86qz3c0h706s0w8cmv4bbj"; 11 12 deps = bundlerEnv rec { 13 name = "${pname}-${version}"; ··· 54 ./unofficial-installation-nowarn.patch 55 ./use-system-bundler-version.patch 56 ./0004-Support-system-installed-plugins.patch 57 ]; 58 59 postPatch = ''
+27 -17
pkgs/development/tools/vagrant/gemset.nix
··· 24 platforms = []; 25 source = { 26 remotes = ["https://rubygems.org"]; 27 - sha256 = "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"; 28 type = "gem"; 29 }; 30 - version = "3.0.0"; 31 }; 32 concurrent-ruby = { 33 groups = ["default"]; 34 platforms = []; 35 source = { 36 remotes = ["https://rubygems.org"]; 37 - sha256 = "094387x4yasb797mv07cs3g6f08y56virc2rjcpb1k79rzaj3nhl"; 38 type = "gem"; 39 }; 40 - version = "1.1.6"; 41 }; 42 domain_name = { 43 dependencies = ["unf"]; ··· 149 platforms = []; 150 source = { 151 remotes = ["https://rubygems.org"]; 152 - sha256 = "10nq1xjqvkhngiygji831qx9bryjwws95r4vrnlq9142bzkg670s"; 153 type = "gem"; 154 }; 155 - version = "1.8.3"; 156 }; 157 listen = { 158 - dependencies = ["rb-fsevent" "rb-inotify" "ruby_dep"]; 159 groups = ["default"]; 160 platforms = []; 161 source = { 162 remotes = ["https://rubygems.org"]; 163 - sha256 = "01v5mrnfqm6sgm8xn2v5swxsn1wlmq7rzh2i48d4jzjsc7qvb6mx"; 164 type = "gem"; 165 }; 166 - version = "3.1.5"; 167 }; 168 little-plugger = { 169 groups = ["default"]; ··· 191 platforms = []; 192 source = { 193 remotes = ["https://rubygems.org"]; 194 - sha256 = "06j6iaj89h9jhkx1x3hlswqrfnqds8br05xb1qra69dpvbdmjcwn"; 195 type = "gem"; 196 }; 197 - version = "2.2.2"; 198 }; 199 mime-types = { 200 dependencies = ["mime-types-data"]; ··· 222 platforms = []; 223 source = { 224 remotes = ["https://rubygems.org"]; 225 - sha256 = "0xy54mjf7xg41l8qrg1bqri75agdqmxap9z466fjismc1rn2jwfr"; 226 type = "gem"; 227 }; 228 - version = "1.14.1"; 229 }; 230 net-scp = { 231 dependencies = ["net-ssh"]; ··· 244 platforms = []; 245 source = { 246 remotes = ["https://rubygems.org"]; 247 - sha256 = "04674g4n6mryjajlcd82af8g8k95la4b1bj712dh71hw1c9vhw1y"; 248 type = "gem"; 249 }; 250 - version = "2.1.2"; 251 }; 252 net-ssh = { 253 groups = ["default"]; 254 platforms = []; 255 source = { 256 remotes = ["https://rubygems.org"]; 257 - sha256 = "101wd2px9lady54aqmkibvy4j62zk32w0rjz4vnigyg974fsga40"; 258 type = "gem"; 259 }; 260 - version = "5.2.0"; 261 }; 262 netrc = { 263 groups = ["default"];
··· 24 platforms = []; 25 source = { 26 remotes = ["https://rubygems.org"]; 27 + sha256 = "08hd3d2lfi19cns4d6wkq51scasn17l83fgbzbjjk3dqccz4rg3j"; 28 type = "gem"; 29 }; 30 + version = "4.0.0"; 31 }; 32 concurrent-ruby = { 33 groups = ["default"]; 34 platforms = []; 35 source = { 36 remotes = ["https://rubygems.org"]; 37 + sha256 = "1vnxrbhi7cq3p4y2v9iwd10v1c7l15is4var14hwnb2jip4fyjzz"; 38 type = "gem"; 39 }; 40 + version = "1.1.7"; 41 }; 42 domain_name = { 43 dependencies = ["unf"]; ··· 149 platforms = []; 150 source = { 151 remotes = ["https://rubygems.org"]; 152 + sha256 = "153sx77p16vawrs4qpkv7qlzf9v5fks4g7xqcj1dwk40i6g7rfzk"; 153 type = "gem"; 154 }; 155 + version = "1.8.5"; 156 }; 157 listen = { 158 + dependencies = ["rb-fsevent" "rb-inotify"]; 159 groups = ["default"]; 160 platforms = []; 161 source = { 162 remotes = ["https://rubygems.org"]; 163 + sha256 = "1w923wmdi3gyiky0asqdw5dnh3gcjs2xyn82ajvjfjwh6sn0clgi"; 164 type = "gem"; 165 }; 166 + version = "3.2.1"; 167 }; 168 little-plugger = { 169 groups = ["default"]; ··· 191 platforms = []; 192 source = { 193 remotes = ["https://rubygems.org"]; 194 + sha256 = "0pkmhcxi8lp74bq5gz9lxrvaiv5w0745kk7s4bw2b1x07qqri0n9"; 195 type = "gem"; 196 }; 197 + version = "2.3.0"; 198 + }; 199 + mime = { 200 + groups = ["default"]; 201 + platforms = []; 202 + source = { 203 + remotes = ["https://rubygems.org"]; 204 + sha256 = "0nskys7brz2bylhxiknl0z9i19w3wb1knf0h93in6mjq70jdw5cr"; 205 + type = "gem"; 206 + }; 207 + version = "0.4.4"; 208 }; 209 mime-types = { 210 dependencies = ["mime-types-data"]; ··· 232 platforms = []; 233 source = { 234 remotes = ["https://rubygems.org"]; 235 + sha256 = "0pb1g1y3dsiahavspyzkdy39j4q377009f6ix0bh1ag4nqw43l0z"; 236 type = "gem"; 237 }; 238 + version = "1.15.0"; 239 }; 240 net-scp = { 241 dependencies = ["net-ssh"]; ··· 254 platforms = []; 255 source = { 256 remotes = ["https://rubygems.org"]; 257 + sha256 = "185vsybznqgqbb4i2qnxvf1gam8lb634nqcrq7r3i2zy1g6xd8mi"; 258 type = "gem"; 259 }; 260 + version = "3.0.0"; 261 }; 262 net-ssh = { 263 groups = ["default"]; 264 platforms = []; 265 source = { 266 remotes = ["https://rubygems.org"]; 267 + sha256 = "0jp3jgcn8cij407xx9ldb5h9c6jv13jc4cf6kk2idclz43ww21c9"; 268 type = "gem"; 269 }; 270 + version = "6.1.0"; 271 }; 272 netrc = { 273 groups = ["default"];
+5 -5
pkgs/development/tools/vagrant/use-system-bundler-version.patch
··· 1 - diff --git i/lib/vagrant/bundler.rb w/lib/vagrant/bundler.rb 2 - index 301e40e37..e361ab510 100644 3 - --- i/lib/vagrant/bundler.rb 4 - +++ w/lib/vagrant/bundler.rb 5 - @@ -217,7 +217,7 @@ module Vagrant 6 source_list = {} 7 system_plugins = plugins.map do |plugin_name, plugin_info| 8 plugin_name if plugin_info["system"]
··· 1 + diff --git a/lib/vagrant/bundler.rb b/lib/vagrant/bundler.rb 2 + index 336ac1e05..1bfd84c0d 100644 3 + --- a/lib/vagrant/bundler.rb 4 + +++ b/lib/vagrant/bundler.rb 5 + @@ -470,7 +470,7 @@ module Vagrant 6 source_list = {} 7 system_plugins = plugins.map do |plugin_name, plugin_info| 8 plugin_name if plugin_info["system"]