Red Hat Bugzilla – Bug 994202
yum selects both ruby and jruby, because the latter provides ruby(version)
Last modified: 2013-08-06 13:53:16 EDT
The puppet package in Fedora has a "Requires: ruby(version)" as required by the packaging guidelines. However, we really want it to use the normal Ruby MRI package, not least because jruby has tons of dependencies. So, again following the guidelines, an explicit "Requires: ruby" was added. However, this does not solve the problem. From a minimal install when one runs `yum install ruby`, one gets both!
This is because jruby is first selected to provide the ruby(version) dependency, and then ruby is added latter:
--> Processing Dependency: ruby(release) for package: puppet-3.1.1-5.fc19.noarch
Searching pkgSack for dep: ruby(release)
TSINFO: Marking jruby-1.7.2-1.fc19.noarch as install for puppet-3.1.1-5.fc19.noarch
--> Processing Dependency: ruby for package: puppet-3.1.1-5.fc19.noarch
Searching pkgSack for dep: ruby
TSINFO: Marking ruby-18.104.22.168-14.fc19.x86_64 as install for puppet-3.1.1-5.fc19.noarch
Of course, `ruby` could satisfy both dependencies, and that's the desired outcome.
Using yum-3.4.3-104.fc19.noarch, with current Fedora (package versions as above).
Um, not sure how this got created as "h2" -- sorry. And I can't change it for some awesome reason.