Skip to content

ruby-chef broken #186

@bahamat

Description

@bahamat

In a global zone, with pkgsrc-tools

[root@smartos-iso /var/chef]# /opt/tools/bin/chef-solo -c /var/chef/solo.rb
/opt/tools/lib/ruby/2.4.0/rubygems/dependency.rb:310:in `to_specs': Could not find 'libyajl2' (~> 1.2) - did find: [libyajl2-2.0.0] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/root/.gem/ruby/2.4.0:/opt/tools/lib/ruby/gems/2.4.0', execute `gem env` for more information
	from /opt/tools/lib/ruby/2.4.0/rubygems/specification.rb:1445:in `block in activate_dependencies'
	from /opt/tools/lib/ruby/2.4.0/rubygems/specification.rb:1434:in `each'
	from /opt/tools/lib/ruby/2.4.0/rubygems/specification.rb:1434:in `activate_dependencies'
	from /opt/tools/lib/ruby/2.4.0/rubygems/specification.rb:1416:in `activate'
	from /opt/tools/lib/ruby/2.4.0/rubygems/specification.rb:1448:in `block in activate_dependencies'
	from /opt/tools/lib/ruby/2.4.0/rubygems/specification.rb:1434:in `each'
	from /opt/tools/lib/ruby/2.4.0/rubygems/specification.rb:1434:in `activate_dependencies'
	from /opt/tools/lib/ruby/2.4.0/rubygems/specification.rb:1416:in `activate'
	from /opt/tools/lib/ruby/2.4.0/rubygems/specification.rb:1448:in `block in activate_dependencies'
	from /opt/tools/lib/ruby/2.4.0/rubygems/specification.rb:1434:in `each'
	from /opt/tools/lib/ruby/2.4.0/rubygems/specification.rb:1434:in `activate_dependencies'
	from /opt/tools/lib/ruby/2.4.0/rubygems/specification.rb:1416:in `activate'
	from /opt/tools/lib/ruby/2.4.0/rubygems.rb:300:in `block in activate_bin_path'
	from /opt/tools/lib/ruby/2.4.0/rubygems.rb:300:in `synchronize'
	from /opt/tools/lib/ruby/2.4.0/rubygems.rb:300:in `activate_bin_path'
	from /opt/tools/bin/chef-solo24:23:in `<main>'

But...

[root@smartos-iso /opt/custom/templates]# pkg_info -e ruby24-libyajl2
ruby24-libyajl2-2.0.0

Meanwhile, in a zone:

[root@cf33cc2c-60f4-e687-878a-e66f19f2df7c /var/chef]# /opt/local/bin/chef-solo -c /var/chef/solo.rb
/opt/local/lib/ruby/2.4.0/rubygems/dependency.rb:310:in `to_specs': Could not find 'net-ssh' (~> 4.2) - did find: [net-ssh-5.0.2] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/root/.gem/ruby/2.4.0:/opt/local/lib/ruby/gems/2.4.0', execute `gem env` for more information
	from /opt/local/lib/ruby/2.4.0/rubygems/specification.rb:1445:in `block in activate_dependencies'
	from /opt/local/lib/ruby/2.4.0/rubygems/specification.rb:1434:in `each'
	from /opt/local/lib/ruby/2.4.0/rubygems/specification.rb:1434:in `activate_dependencies'
	from /opt/local/lib/ruby/2.4.0/rubygems/specification.rb:1416:in `activate'
	from /opt/local/lib/ruby/2.4.0/rubygems.rb:300:in `block in activate_bin_path'
	from /opt/local/lib/ruby/2.4.0/rubygems.rb:300:in `synchronize'
	from /opt/local/lib/ruby/2.4.0/rubygems.rb:300:in `activate_bin_path'
	from /opt/local/bin/chef-solo24:23:in `<main>'

But...

[root@cf33cc2c-60f4-e687-878a-e66f19f2df7c /var/chef]# pkg_info -e ruby24-net-ssh
ruby24-net-ssh-5.0.2

This happens with 2017Q4 and 2018Q4.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions