From: Vit Ondruch Date: 2012-01-11T06:59:04+09:00 Subject: [ruby-core:42048] [ruby-trunk - Feature #5617] Allow install RubyGems into dediceted directory Issue #5617 has been updated by Vit Ondruch. Benoit Daloze wrote: > Hello, > > I would be very interested to have a way to tell RubyGems to install at a particular shared path by default (to avoid unnecessary duplication), but only for the gems which are not implementation-dependents (e.g.: C extension should be installed in an unshared path of course). > > I think this should be done in RubyGems's code, instead of an option in the configuration process (it would also avoid to do the work for each implementation). > > What do you think? Actually this two patches are just subset of patches I'd like to introduce into Fedora. You can find all the patches in my repository [1]. Some of them, like this one, are more Ruby specific, others are RubyGems specific [2]. If you go through this patch, you'll see that this patch is definitely Ruby specific. It allows to install RubyGems into dedicated directory (specifiable by configuration parameter) and extends Ruby's search path to include this path. There might be also required patch to RubyGems's setup.rb to allow to install updated RubyGems into this location, but first, I'd like to see this feature accepted. Please note that this feature is just optional and it keeps the current Ruby+RubyGems behavior intact unless requested. [1] https://github.com/voxik/ruby.spec/ [2] https://github.com/rubygems/rubygems/issues/210 ---------------------------------------- Feature #5617: Allow install RubyGems into dediceted directory https://bugs.ruby-lang.org/issues/5617 Author: Vit Ondruch Status: Rejected Priority: Normal Assignee: Category: Target version: Hello, I would like to propose my patch, which allows to optionally install RubyGems library into dedicated directory, out of the default Ruby directory structure. This should enable to easily share one RubyGems library by more Ruby implementations and avoids code duplication. I did this patch since Fedora prohibits duplication of system libraries [1], which would be the case if MRI and JRuby are installed in parallel. Thank you for considering this patch. Vit [1] https://fedoraproject.org/wiki/Packaging:Guidelines#Duplication_of_system_libraries -- http://bugs.ruby-lang.org/