[Rubygems-developers] [ rubygems-Bugs-27383 ] gem install build options ignored

noreply at rubyforge.org noreply at rubyforge.org
Mon Nov 2 14:40:46 EST 2009


Bugs item #27383, was opened at 2009-11-01 14:13
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27383&group_id=126

Category: `gem install` command (extensions)
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Miguel Vazquez (mikisvaz)
Assigned to: Nobody (None)
Summary: gem install build options ignored

Initial Comment:

This command will not work, apparently the build parameters are never reaching the build process.

gem install rsruby -- --with-R-dir=/usr/lib/R/ --with-R-include=/usr/include/R/

Making this change in /usr/bin/gem makes it work



*** gem.original        2009-11-01 23:07:59.159157918 +0100
--- gem 2009-11-01 23:07:36.389157816 +0100
***************
*** 18,24 ****
  # We need to preserve the original ARGV to use for passing gem options
  # to source gems.  If there is a -- in the line, strip all options after
  # it...its for the source building process.
! args = !ARGV.include?("--") ? ARGV.clone : ARGV[0...ARGV.index("--")]
  
  begin
    Gem::GemRunner.new.run args
--- 18,25 ----
  # We need to preserve the original ARGV to use for passing gem options
  # to source gems.  If there is a -- in the line, strip all options after
  # it...its for the source building process.
! #args = !ARGV.include?("--") ? ARGV.clone : ARGV[0...ARGV.index("--")]
! args = ARGV
  
  begin
    Gem::GemRunner.new.run args




----------------------------------------------------------------------

>Comment By: Ryan Davis (zenspider)
Date: 2009-11-02 11:40

Message:
WFM... (or did)... can you give more info, like `gem env`?

% gem list rsruby
rsruby (0.5.1.1)


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27383&group_id=126


More information about the Rubygems-developers mailing list