[Bug 1871685] Re: vagrant spits out ruby deprecation warnings on every call
** Description changed: + [Impact] + + This issue is not critical but I believe it degrades a lot the user + experience in a brand new LTS release. Every time one calls vagrant via + CLI, Ruby 2.7 throws a bunch of warnings about some deprecated features, + which for some (inexperienced?) users might seem a failure in a first + look. + + This was reported not just here as a bug report but also in Discourse: + + https://discourse.ubuntu.com/t/workarounds-for-applications-which-are- + broken-in-20-04lts/15474/5 + + [Test Case] + + In a Focal LXD container: + + $ apt install vagrant + $ vagrant + NOTE: Gem::Specification.default_specifications_dir is deprecated; use Gem.default_specifications_dir instead. It will be removed on or after 2020-02-01. + Gem::Specification.default_specifications_dir called from /usr/share/rubygems-integration/all/gems/vagrant-2.2.6/lib/vagrant/bundler.rb:428. + /usr/share/rubygems-integration/all/gems/vagrant-2.2.6/lib/vagrant/errors.rb:103: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call + /usr/share/rubygems-integration/all/gems/i18n-1.8.2/lib/i18n.rb:195: warning: The called method `t' is defined here + (eval):3: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call + /usr/share/rubygems-integration/all/gems/vagrant-2.2.6/lib/vagrant/ui.rb:223: warning: The called method `say' is defined here + Usage: vagrant [options] [] + + -v, --versionPrint the version and exit. + -h, --help Print this help. + + Common commands: + box manages boxes: installation, removal, etc. + cloud manages everything related to Vagrant Cloud + destroy stops and deletes all traces of the vagrant machine + global-status outputs status Vagrant environments for this user + haltstops the vagrant machine + helpshows the help for a subcommand + initinitializes a new Vagrant environment by creating a Vagrantfile + login + package packages a running vagrant environment into a box + plugin manages plugins: install, uninstall, update, etc. + portdisplays information about guest port mappings + powershell connects to machine via powershell remoting + provision provisions the vagrant machine + pushdeploys code in this environment to a configured destination + rdp connects to machine via RDP + reload restarts vagrant machine, loads new Vagrantfile configuration + resume resume a suspended vagrant machine + snapshotmanages snapshots: saving, restoring, etc. + ssh connects to machine via SSH + ssh-config outputs OpenSSH valid configuration to connect to the machine + status outputs status of the vagrant machine + suspend suspends the machine + up starts and provisions the vagrant environment + upload upload to machine via communicator + validatevalidates the Vagrantfile + version prints current and latest Vagrant version + winrm executes commands on a machine via WinRM + winrm-configoutputs WinRM configuration to connect to the machine + + For help on any individual command run `vagrant COMMAND -h` + + Additional subcommands are available, but are either more advanced + or not commonly used. To see all subcommands, run the command + `vagrant list-commands`. + $ vagrant init + NOTE: Gem::Specification.default_specifications_dir is deprecated; use Gem.default_specifications_dir instead. It will be removed on or after 2020-02-01. + Gem::Specification.default_specifications_dir called from /usr/share/rubygems-integration/all/gems/vagrant-2.2.6/lib/vagrant/bundler.rb:428. + /usr/share/rubygems-integration/all/gems/vagrant-2.2.6/lib/vagrant/errors.rb:103: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call + /usr/share/rubygems-integration/all/gems/i18n-1.8.2/lib/i18n.rb:195: warning: The called method `t' is defined here + (eval):3: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call + /usr/share/rubygems-integration/all/gems/vagrant-2.2.6/lib/vagrant/ui.rb:223: warning: The called method `say' is defined here + A `Vagrantfile` has been placed in this directory. You are now + ready to `vagrant up` your first virtual environment! Please read + the comments in the Vagrantfile as well as documentation on + `vagrantup.com` for more information on using Vagrant. + + + [Regression Potential] + + I consider the potential for a regression low, the patches are working + fine in Debian and they fix simple deprecated features in Ruby 2.7 +
[Bug 1871685] Re: vagrant spits out ruby deprecation warnings on every call
Some users are complaining about those warnings after Focal release, for instance here: https://discourse.ubuntu.com/t/workarounds-for-applications-which-are- broken-in-20-04lts/15474/5 I tried it myself and all those Ruby 2.7 related warning messages are really annoying. IMO we should release a fix for this ASAP to not ruin our users' experience. In order to incorporate minimal changes I backported the two patches from Debian to version 2.2.6 instead of merging the version 2.2.7. It should allow the SRU team review it faster than a full merge. Here is a MP for it containing more information: https://code.launchpad.net/~lucaskanashiro/ubuntu/+source/vagrant/+git/vagrant/+merge/382953 I'll update the bug description, adding the SRU template. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1871685 Title: vagrant spits out ruby deprecation warnings on every call To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vagrant/+bug/1871685/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1871685] Re: vagrant spits out ruby deprecation warnings on every call
** Merge proposal linked: https://code.launchpad.net/~lucaskanashiro/ubuntu/+source/vagrant/+git/vagrant/+merge/382953 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1871685 Title: vagrant spits out ruby deprecation warnings on every call To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vagrant/+bug/1871685/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1871685] Re: vagrant spits out ruby deprecation warnings on every call
** Patch added: "full merge debdiff from old ubuntu version to new ubuntu version" https://bugs.launchpad.net/ubuntu/+source/vagrant/+bug/1871685/+attachment/5356998/+files/lp1871685_complete-merge_2.2.6+dfsg-2ubuntu1_2.2.7+dfsg-1ubuntu1.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1871685 Title: vagrant spits out ruby deprecation warnings on every call To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vagrant/+bug/1871685/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1871685] Re: vagrant spits out ruby deprecation warnings on every call
** Patch added: "partial merge debdiff showing only the delta to current debian version" https://bugs.launchpad.net/ubuntu/+source/vagrant/+bug/1871685/+attachment/5356999/+files/lp1871685_merge-only_2.2.7+dfsg-1_2.2.7+dfsg-1ubuntu1.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1871685 Title: vagrant spits out ruby deprecation warnings on every call To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vagrant/+bug/1871685/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1871685] Re: vagrant spits out ruby deprecation warnings on every call
Please sponsor this upload of a merge of Vagrant 2.2.7+dfsg-1 from Debian. It is a minor upstream version bump (2.2.6 -> 2.2.7) plus contains new patches from Debian to fix multiple Ruby 2.7 deprecation warnings on every command invocation. Two debdiffs attached: partial merge debdiff showing only the delta to current debian version (lp1871685_merge-only_2.2.7+dfsg-1_2.2.7+dfsg-1ubuntu1.debdiff) full merge debdiff from old ubuntu version to new ubuntu version (lp1871685_complete-merge_2.2.6+dfsg-2ubuntu1_2.2.7+dfsg-1ubuntu1.debdiff) This is a direct merge of the previous merge, which is simply to disable the autopkgtest as it is long time known flakey on Ubuntu infrastructure. It would be ideal to get this merge through ahead of Focal release to continue having no delta to Debian upstream. This package is in universe. ** Changed in: vagrant (Ubuntu) Status: New => Confirmed ** Changed in: vagrant (Ubuntu) Importance: Undecided => Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1871685 Title: vagrant spits out ruby deprecation warnings on every call To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vagrant/+bug/1871685/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1871685] Re: vagrant spits out ruby deprecation warnings on every call
I was wrong this package requires a merge due to a small delta on the upstream Debian package. So I will have to prepare a patch. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1871685 Title: vagrant spits out ruby deprecation warnings on every call To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vagrant/+bug/1871685/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1871685] Re: vagrant spits out ruby deprecation warnings on every call
This has been fixed in a new Debian Release (2.2.7+dfsg-1). Tested a package built on Focal and these warnings go away. Specifically they added two patches: 0006-Fix-warnings-for-ruby-2.7.patch 0007-Fix-more-warnings-under-ruby-2.7.patch Since this is in universe but a popular too, hoping we can sneak in a Debian sync for Focal with the new version as well to fix this otherwise I can look to submit a patch for the warnings specifically. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1871685 Title: vagrant spits out ruby deprecation warnings on every call To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vagrant/+bug/1871685/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs