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