Description of problem: Mock fails to rebuild a rubygem SRPM when using "--dnf" and succeeds with "--yum". Version-Release number of selected component (if applicable): mock-1.2.7-1.fc22.noarch dnf-0.6.4-2.fc22.noarch How reproducible: always Steps to Reproduce: 1. Start from a Fedora 22 system 2. Download the rubygem-pathspec SRPM from https://bugzilla.redhat.com/show_bug.cgi?id=1210826 3. Run "mock --dnf -r fedora-rawhide-x86_64 rebuild srpm/rubygem-pathspec-0.0.2-1.fc21.src.rpm"; it fails because dnf/mock selects JRuby 4. Run "mock --yum -r fedora-rawhide-x86_64 rebuild srpm/rubygem-pathspec-0.0.2-1.fc21.src.rpm"; it succeeds because yum/mock selects MRI Actual results: Yum selects the "right" Ruby, DNF selects JRuby Expected results: Yum and DNF should both select MRI by default Additional info: I searched Bugzilla for this problem and the closest bug I could find was BZ 1121538 . Is there something we can put into the MRI ruby package to make DNF prefer it over JRuby?
BTW I used the "--mock-options" argument to fedora-review in order to work around this when reviewing rubygem-pathspec. For example: $ fedora-review -b 1210826 -m fedora-rawhide-x86_64 --mock-options='--yum'
Well, that is how DNF behaves :/ I tried a while ago to force DNF to prefer MRI, using Recommends in rubypick or by similar trick but I failed. Since JRuby is in better shape then it used to be, probably I should spend some more time trying to investigate. So far, the workaround is to specify "BR: ruby", which is by default generated by gem2rpm.
rubypick-1.1.1-4.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/rubypick-1.1.1-4.fc22
Package rubypick-1.1.1-4.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing rubypick-1.1.1-4.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-11970/rubypick-1.1.1-4.fc22 then log in and leave karma (feedback).
rubypick-1.1.1-4.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.