Bug 823221

Summary: ruby package should not depend on rubygems
Product: [Fedora] Fedora Reporter: Tim Cuthbertson <tim>
Component: rubyAssignee: Jeroen van Meeuwen <vanmeeuwen+fedora>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: bkabrda, jeremy, mmorsi, mtasaka, tagoh, 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-05-21 07:24:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tim Cuthbertson 2012-05-20 01:20:21 UTC
Description of problem:

Apologies if I'm missing something, I tried to find a rationale for this on the package page or sources, but couldn't. It seems wrong that ruby (the interpreter) depends on rubygems (a package manager).

Some relevant examples for other languages:

 - python does not depend on python-setuptools
 - ghc does not depend on cabal-install
 - perl does not depend on perl-CPAN

I care because I want to write & test zeroinstall feeds for ruby libraries, and having rubygems installed on the system makes this more complicated (plus I simply don't want it).

Comment 1 Vít Ondruch 2012-05-21 07:24:50 UTC
Hi Tim,

I understand your sentiment. However, this was upstream decision to make RubyGems hard dependency. There is possible to build Ruby with disabled RubyGems, but it make break expectation of others.

You may try to submit patch upstream, which would use RubyGems in case they are available and works also fine when they are not present on the system (e.g. change gem_prelude.rb file to contains something like:

if defined?(Gem)
  begin
    require 'rubygems.rb'
  rescue
  end
end

), but I doubt it would be accepted since there are talks about gemyfying stdlib, etc.

Comment 2 Tim Cuthbertson 2012-05-21 11:25:40 UTC
Thanks for the explanation, Vit. I am used to debian which ships ruby on its own, but I also know that people moan about debian breaking rubygems ;). I might see what they do, and possibly roll my own ruby install if it's not too hairy.