Project

General

Profile

Backport #1941

Updated by luislavena (Luis Lavena) almost 12 years ago

=begin 
  
  Working on updating RubyInstaller packages to recently released patchlevel 383, found that my patching strategies over rbconfig no longer works. 
 
  On previous patchlevel (368), I configure ruby with my sandbox path, and once installed, gsub it from rbconfig, leaving this: 
 
  CONFIG["prefix"] = (TOPDIR || DESTDIR + "") 
 
  Where my path was inside "". 
 
  Since TOPDIR refers to rbconfig.rb itself (but with stripped path), prefix end being always the path where Ruby ends installed/copied. 
 
  DESTDIR ends not being used for the prefix, and it's value turns to be "C:" 
 
  Now, bear with me for a second, on p368: 
 
  CONFIG["libdir"] = "$(exec_prefix)/lib" 
  CONFIG["exec_prefix"] = "$(prefix)" 
 
  But on p383: 
 
  CONFIG["exec_prefix"] = "$(DESTDIR)" 
 
  This affects installation of rubygems and packages that uses setup.rb 
 
  Other places that uses $(DESTDIR) instead of previous values: 
 
  CONFIG["sitedir"] = "$(DESTDIR)/lib/ruby/site_ruby" 
 
  Wonder why the change, if DESTDIR was not used during make, why remove the usage of prefix on this case? 
 
  Thank you. 
 
 =end 
 

Back