Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391059 - dev-ruby/ruby-gettext cannot work with recent rubygems
Summary: dev-ruby/ruby-gettext cannot work with recent rubygems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL: https://github.com/mutoh/gettext/pull/11
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-20 02:59 UTC by Tomoh K.
Modified: 2011-11-28 19:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log, test failed. (dev-ruby:ruby-gettext-2.1.0_p20100728-r2:20111120-024923.log,7.15 KB, text/plain)
2011-11-20 03:01 UTC, Tomoh K.
Details
Proposed patch for ruby-gettext-2.1.0_p20100728 (Gem.all_load_paths.patch,564 bytes, patch)
2011-11-20 03:04 UTC, Tomoh K.
Details | Diff
build.log, with a patch, test passed. (dev-ruby:ruby-gettext-2.1.0_p20100728-r99:20111120-024653.log,181.57 KB, text/plain)
2011-11-20 03:06 UTC, Tomoh K.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomoh K. 2011-11-20 02:59:10 UTC
ruby-gettext fails to load due to Gem.all_load_paths deprecation in >=rubygems-1.8.
This issue has been reported in upstream. See URL.

tomo@katura ~/work/src/gems/gettext/dist/ruby-gettext-2.1.0_p20100728/samples $ ruby18 makemo.rb 
NOTE: Gem.all_load_paths is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_load_paths called from /usr/lib64/ruby/gems/1.8/gems/gettext-2.1.0/lib/gettext/runtime/locale_path.rb:55.
NOTE: Gem.all_partials is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_partials called from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:258.
NOTE: Gem.all_partials is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_partials called from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:258.
NOTE: Gem.all_partials is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_partials called from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:258.
/usr/lib64/ruby/site_ruby/1.8/rubygems.rb:259:in `_deprecated_all_load_paths': undefined method `add' for "/usr/lib64/ruby/gems/1.8":String (NoMethodError)
	from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:431:in `each_load_path'
	from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:421:in `each'
	from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:421:in `each_load_path'
	from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:258:in `_deprecated_all_load_paths'
	from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:257:in `each'
	from /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:257:in `_deprecated_all_load_paths'
	from /usr/lib64/ruby/site_ruby/1.8/rubygems/deprecate.rb:63:in `send'
	from /usr/lib64/ruby/site_ruby/1.8/rubygems/deprecate.rb:63:in `all_load_paths'
	from /usr/lib64/ruby/gems/1.8/gems/gettext-2.1.0/lib/gettext/runtime/locale_path.rb:55:in `_unmemoized_default_path_rules'
	from /usr/lib64/ruby/gems/1.8/gems/locale-2.0.5/lib/locale/util/memoizable.rb:73:in `default_path_rules'
	from /usr/lib64/ruby/gems/1.8/gems/locale-2.0.5/lib/locale/util/memoizable.rb:95:in `_memoize_dup'
	from /usr/lib64/ruby/gems/1.8/gems/locale-2.0.5/lib/locale/util/memoizable.rb:87:in `_memoize'
	from /usr/lib64/ruby/gems/1.8/gems/locale-2.0.5/lib/locale/util/memoizable.rb:95:in `_memoize_dup'
	from /usr/lib64/ruby/gems/1.8/gems/locale-2.0.5/lib/locale/util/memoizable.rb:72:in `default_path_rules'
	from /usr/lib64/ruby/gems/1.8/gems/gettext-2.1.0/lib/gettext/runtime/locale_path.rb:83:in `initialize'
	from /usr/lib64/ruby/gems/1.8/gems/gettext-2.1.0/lib/gettext/runtime/textdomain.rb:60:in `new'
	from /usr/lib64/ruby/gems/1.8/gems/gettext-2.1.0/lib/gettext/runtime/textdomain.rb:60:in `initialize'
	from /usr/lib64/ruby/gems/1.8/gems/gettext-2.1.0/lib/gettext/runtime/textdomain_manager.rb:209:in `new'
	from /usr/lib64/ruby/gems/1.8/gems/gettext-2.1.0/lib/gettext/runtime/textdomain_manager.rb:209:in `create_or_find_textdomain'
	from /usr/lib64/ruby/gems/1.8/gems/gettext-2.1.0/lib/gettext/runtime/textdomain_manager.rb:69:in `bind_to'
	from /usr/lib64/ruby/gems/1.8/gems/gettext-2.1.0/lib/gettext.rb:83:in `bindtextdomain_to'
	from /usr/lib64/ruby/gems/1.8/gems/gettext-2.1.0/lib/gettext.rb:64:in `bindtextdomain'
	from /usr/lib64/ruby/gems/1.8/gems/gettext-2.1.0/lib/gettext/tools/rgettext.rb:24
	from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
	from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
	from /usr/lib64/ruby/gems/1.8/gems/gettext-2.1.0/lib/gettext/tools.rb:17
	from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `gem_original_require'
	from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `require'
	from makemo.rb:2
Comment 1 Tomoh K. 2011-11-20 03:01:05 UTC
Created attachment 293165 [details]
build.log, test failed.
Comment 2 Tomoh K. 2011-11-20 03:04:31 UTC
Created attachment 293167 [details, diff]
Proposed patch for ruby-gettext-2.1.0_p20100728
Comment 3 Tomoh K. 2011-11-20 03:06:03 UTC
Created attachment 293169 [details]
build.log, with a patch, test passed.
Comment 4 Hans de Graaff gentoo-dev Security 2011-11-28 19:34:00 UTC
Thanks, I've added ruby-gettext-2.1.0_p20100728-r3 with this patch.