FS#70146 - [vagrant] vagrant 2.2.14-3 from testing doesn't launch ("ruby": executable file not found in $PATH)

Attached to Project: Community Packages
Opened by gamezelda (gamezelda) - Wednesday, 24 March 2021, 10:36 GMT
Last edited by Jonathan Steel (jsteel) - Wednesday, 24 March 2021, 19:00 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jonathan Steel (jsteel)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Installing the latest testing version vagrant on a clean machine (which does not have the 'ruby' package) will result in an error when attempting to launch it: Exec error: exec: "ruby": executable file not found in $PATH

It appears to be related to the Ruby 2.7 -> Ruby 3 upgrade currently on testing. The vagrant package pulls ruby2.7 as a dependency, but attempts to use the ruby (3) at runtime. Installing ruby (3) in addition to 2.7 seems to work at first glance.

Additional info:
* package version(s): vagrant 2.2.14-3, ruby2.7 2.7.2-2
* config and/or log files etc.: None (application doesn't launch on a clean machine)
* link to upstream bug report, if any: N/A

Steps to reproduce:

[root@0c03db724e19 /]# pacman -S vagrant
...
[root@0c03db724e19 /]# vagrant --version
Exec error: exec: "ruby": executable file not found in $PATH
[root@0c03db724e19 /]# pacman -S ruby
...
[root@0c03db724e19 /]# vagrant --version
Vagrant 2.2.14
This task depends upon

Closed by  Jonathan Steel (jsteel)
Wednesday, 24 March 2021, 19:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.2.14-4

Loading...