| Summary: | Gem:Path doesn't exists anymore | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Marek Goldmann <mgoldman> |
| Component: | rubygem-extlib | Assignee: | Orphan Owner <extras-orphan> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 15 | CC: | extras-orphan, mastahnke, mtasaka, vanmeeuwen+fedora, vondruch |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-01-27 21:54:33 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Well, (also judging from some other issues I saw) t seems that rubygems' "deprecated" messages mean: - It just remains unremoved for now, - however rubygems' developer no longer guarantees that the code works - and finally the code will completely removed. So here "Gem::SourceIndex.load_specification" is not guaranteed to work any more (even if the code still exists). I can fix so that "Gem::SourceIndex.load_specification" works for now, however anyway please tell extlib upstream *not* to use this. And anyway Gem::Path no longer exists. So although I may fix "Gem::SourceIndex.load_specification" for now, swithing the component to rubygem-extlib. Well, rubygem-extlib is orphaned? Then I may close this as WONTFIX. So would you tell me what you want here, Marek? - I can fix load_specification "for now", however I would suggest that you don't use this anymore - Gem:Path is not supported any longer anyway. Mamoru, The issue appeared in legacy code that is not maintained anymore. On F14 it worked as expected, on F15 it failed. I think I'll just patch the code to not use load_specification and instead I'll just use Gem::Specification.load directly. You can close this as WONTFIX I think. Thanks for your time. Closing this one. |
Description of problem: + ruby ./installer.rb /home/mgoldmann/cirrasM/lib/cantiere/build/topdir/fedora/15/SOURCES/extlib-0.9.15.gem NOTE: Gem::SourceIndex.load_specification is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::SourceIndex.load_specification called from ./installer.rb:25. /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:76:in `_deprecated_load_specification': uninitialized constant Gem::Path (NameError) from /usr/lib/ruby/site_ruby/1.8/rubygems/deprecate.rb:38:in `skip_during' from /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:75:in `_deprecated_load_specification' from /usr/lib/ruby/site_ruby/1.8/rubygems/deprecate.rb:62:in `send' from /usr/lib/ruby/site_ruby/1.8/rubygems/deprecate.rb:62:in `load_specification' from ./installer.rb:25 Line 76 of /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb ## # Loads a ruby-format specification from +file_name+ and returns the # loaded spec. def self.load_specification(file_name) Deprecate.skip_during do Gem::Specification.load Gem::Path.new(file_name) end end It refers to Gem:Path, but it doesn't exists anymore. Additionally - the deprecation message is hidden. Version-Release number of selected component (if applicable): rubygems-1.7.2-2.fc15.noarch