Bug 1210862 - mock rebuild --dnf fails for rubygem-pathspec
Summary: mock rebuild --dnf fails for rubygem-pathspec
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ruby
Version: 22
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-04-10 18:33 UTC by Ken Dreyer
Modified: 2015-08-07 13:12 UTC (History)
8 users (show)

Fixed In Version: rubypick-1.1.1-4.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-07 13:12:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ken Dreyer 2015-04-10 18:33:17 UTC
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?

Comment 1 Ken Dreyer 2015-04-10 19:38:44 UTC
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'

Comment 2 Vít Ondruch 2015-04-13 09:01:39 UTC
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.

Comment 3 Fedora Update System 2015-07-22 12:56:25 UTC
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

Comment 4 Fedora Update System 2015-07-29 01:40:54 UTC
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).

Comment 5 Fedora Update System 2015-08-07 13:12:22 UTC
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.


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