Bug 1243981 - NoMethodError: undefined method `find_matching' for #<Gem2Rpm::SpecFetcher:0xc46bcd4>
Summary: NoMethodError: undefined method `find_matching' for #<Gem2Rpm::SpecFetcher:0x...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: rubygem-gem2rpm
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vít Ondruch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-16 18:38 UTC by Ilia Gradina
Modified: 2016-07-07 09:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-07 09:31:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ilia Gradina 2015-07-16 18:38:29 UTC
$ gem2rpm --fetch fuubar
Ignoring json-1.8.2 because its extensions are not built.  Try: gem pristine json --version 1.8.2
NoMethodError: undefined method `find_matching' for #<Gem2Rpm::SpecFetcher:0xc46bcd4>
  spec_for_dependency at /usr/share/gems/gems/gem2rpm-0.11.1/lib/gem2rpm/spec_fetcher.rb:15
    find_download_url at /usr/share/gems/gems/gem2rpm-0.11.1/lib/gem2rpm.rb:30
              convert at /usr/share/gems/gems/gem2rpm-0.11.1/lib/gem2rpm.rb:54
               (root) at /usr/share/gems/gems/gem2rpm-0.11.1/bin/gem2rpm:114
                 load at org/jruby/RubyKernel.java:1091
               (root) at /usr/bin/gem2rpm:23

Comment 1 Vít Ondruch 2015-07-20 08:43:17 UTC
You seems to run gem2rpm with JRuby. I have never tested gem2rpm against JRuby neither I am sure the JRuby in Fedora is in best shape yet. So if I may suggest, "dnf install ruby" might be workaround for your issues.

Comment 2 Igor Gnatenko 2015-07-20 14:14:54 UTC
(In reply to Vít Ondruch from comment #1)
> You seems to run gem2rpm with JRuby. I have never tested gem2rpm against
> JRuby neither I am sure the JRuby in Fedora is in best shape yet. So if I
> may suggest, "dnf install ruby" might be workaround for your issues.

yes, but as I can see jruby pulled by gem2rpm instead of ruby.

Comment 3 Igor Gnatenko 2015-07-20 14:21:25 UTC
https://fedoraproject.org/wiki/Packaging:WeakDependencies

looks like this caused by depsolver. link above probably can help to understand how to fix this.

Vit, I hope you as maintainer of some gems can help to address needed bugs. or at least add Suggests: ruby in gem2rpm package spec.

Comment 4 Vít Ondruch 2015-07-22 13:23:42 UTC
(In reply to Igor Gnatenko from comment #2)
> yes, but as I can see jruby pulled by gem2rpm instead of ruby.

This should be resolved by https://admin.fedoraproject.org/updates/rubypick-1.1.1-4.fc22

Comment 5 Vít Ondruch 2015-09-01 12:39:02 UTC
Opened upstream issue for gem2rpm to ensure, that JRuby is supported:

https://github.com/fedora-ruby/gem2rpm/issues/50

Comment 6 Jan Kurik 2016-02-24 13:26:00 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase


Note You need to log in before you can comment on or make changes to this bug.