Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 360892 Details for
Bug 486096
app-emulation/vagrant - vagrant plugin install [...]: /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require': cannot load such file -- rubygems/format (LoadError)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
rubygems2 compatibility
rubygems2.patch (text/plain), 1.43 KB, created by
Tiago Macedo
on 2013-10-14 16:39:48 UTC
(
hide
)
Description:
rubygems2 compatibility
Filename:
MIME Type:
Creator:
Tiago Macedo
Created:
2013-10-14 16:39:48 UTC
Size:
1.43 KB
patch
obsolete
>--- vagrant-1.3.4/plugins/commands/plugin/action/install_gem.rb >+++ vagrant-1.3.4/plugins/commands/plugin/action/install_gem.rb >@@ -1,6 +1,10 @@ > require "rubygems" > require "rubygems/dependency_installer" >-require "rubygems/format" >+begin >+ require "rubygems/format" >+rescue LoadError >+ # rubygems 2.0 >+end > > require "log4r" > >@@ -26,8 +30,13 @@ module VagrantPlugins > if plugin_name =~ /\.gem$/ > # If we're installing from a gem file, determine the name > # based on the spec in the file. >- pkg = Gem::Format.from_file_by_path(plugin_name) >+ pkg = if defined?(Gem::Format) >+ Gem::Format.from_file_by_path(plugin_name) >+ else >+ Gem::Package.new(plugin_name) >+ end > find_plugin_name = pkg.spec.name >+ version = pkg.spec.version > end > > # Install the gem >--- vagrant-1.3.4/plugins/commands/plugin/action/prune_gems.rb >+++ vagrant-1.3.4/plugins/commands/plugin/action/prune_gems.rb >@@ -126,6 +126,10 @@ module VagrantPlugins > > if prune_specs.length > 0 > env[:gem_helper].with_environment do >+ >+ # due to a bug in rubygems 2.0, we need to load the specifications before removing any >+ Gem::Specification.to_a >+ > prune_specs.each do |prune_spec| > uninstaller = Gem::Uninstaller.new(prune_spec.name, { > :all => true,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 486096
:
359546
| 360892