vagrant init command

This forum is dedicated to packaging and translating :

On those activities rely the making of Mageia Linux Distribution.

Post all questions and information about packaging and translating : feedbacks, discussion about guidelines, packaging practices...

vagrant init command

Postby ljskgbca » Feb 22nd, '22, 15:15

Hi,

I am quite new to OSS community (and to any community related to computing and software development as well tbh), so I apologize in advance if I made any mistake. Please feel free to correct me if I'm wrong (e.g. if this is not the right place to post this).

If you installed mageia8 and vagrant (vagrant-2.2.9-1.mga8.noarch.rpm), you might encounter an error when trying to run
Code: Select all
vagrant init
command. This command requires vagrant cloud package on your machine, which is registered as "ruby-vagrant_cloud" (ruby-vagrant_cloud-3.0.2-1.mga8.noarch.rpm).

This is because the package "ruby-vagrant_cloud" is not registered as dependency or recommendation for the vagrant package.

Here's what I found on my laptop:
Code: Select all
rpm -qiR vagrant

Name        : vagrant
Version     : 2.2.9
Release     : 1.mga8
Architecture: noarch
Install Date: Mon 21 Feb 2022 00:14:38 GMT
Group       : Development/Other
Size        : 2449951
License     : MIT
Signature   : RSA/SHA256, Fri 01 Jan 2021 17:32:55 GMT, Key ID b742fa8b80420f66
Source RPM  : vagrant-2.2.9-1.mga8.src.rpm
Build Date  : Fri 01 Jan 2021 17:18:26 GMT
Build Host  : localhost
Packager    : neoclust <neoclust>
Vendor      : Mageia.Org
URL         : http://vagrantup.com
Summary     : Build and distribute virtualized development environments
Description :
Vagrant is a tool for building and distributing virtualized development
environments.

/usr/bin/ruby
/usr/bin/ruby
bsdtar
curl
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1
ruby
ruby(release)
ruby(rubygems) >= 1.3.6
rubygem(childprocess) >= 0.5.0
rubygem(erubi)
rubygem(hashicorp-checkpoint) >= 0.1.5
rubygem(i18n) >= 1.8
rubygem(i18n) < 2.0
rubygem(json)
rubygem(listen) >= 3.2
rubygem(listen) < 4
rubygem(log4r) >= 1.1.9
rubygem(net-scp) >= 1.2.0
rubygem(net-sftp) >= 2.1
rubygem(net-ssh) >= 5.2.0
rubygem(rest-client) >= 1.6.0
rubygem(rubyzip) >= 1.1.7

Code: Select all
rpm -q --recommends vagrant

rubygem(bcrypt_pbkdf)
rubygem(ed25519)
vagrant(vagrant-libvirt)


I hope this helps :)
ljskgbca
 
Posts: 2
Joined: Feb 22nd, '22, 14:46

Re: vagrant init command

Postby doktor5000 » Feb 22nd, '22, 15:39

Hi there, thanks for the report. Would be helpful if you could add the actual error message, as you mentioned one "might" encounter an error.

FWIW, vagrant has BuildRequires: rubygem(vagrant_cloud) but seems later during the build it's intentionally removed as runtime dependency: http://svnweb.mageia.org/packages/cauld ... arkup#l123
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18037
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: vagrant init command

Postby ljskgbca » Feb 22nd, '22, 15:51

Thanks doktor5000,

I totally forgot to put that error message, sorry!

Code: Select all
Traceback (most recent call last):
13: from /usr/share/vagrant/gems/bin/vagrant:23:in `<main>'
12: from /usr/share/vagrant/gems/bin/vagrant:23:in `load'
11: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/bin/vagrant:88:in `<top (required)>'
10: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require'
9: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require'
8: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant.rb:336:in `<top (required)>'
7: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant.rb:336:in `each'
6: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant.rb:344:in `block in <top (required)>'
5: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant.rb:344:in `each'
4: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant.rb:327:in `block in <top (required)>'
3: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/lib/vagrant.rb:327:in `load'
2: from /usr/share/vagrant/gems/gems/vagrant-2.2.9/plugins/commands/cloud/plugin.rb:2:in `<top (required)>'
1: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- vagrant_cloud (LoadError)


As you can see, it was a quite easy one to figure out what's wrong since it directly states "vagrant_cloud" is missing.

I didn't refer to the script (idk what i should call them), that's an interesting thing, thank you for your information!
ljskgbca
 
Posts: 2
Joined: Feb 22nd, '22, 14:46

Re: vagrant init command

Postby doktor5000 » Feb 22nd, '22, 18:56

I think you should report this: https://wiki.mageia.org/en/How_to_report_a_bug_properly
Add the error message and that rubygem(vagrant_cloud) is missing from the Requires list.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18037
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Packaging and translating for Mageia

Who is online

Users browsing this forum: No registered users and 1 guest

cron