ruby-changes:29141
From: nagachika <ko1@a...>
Date: Sun, 9 Jun 2013 02:37:37 +0900 (JST)
Subject: [ruby-changes:29141] nagachika:r41193 (ruby_2_0_0): merge revision(s) 39841: [Backport #8115]
nagachika 2013-06-09 02:37:25 +0900 (Sun, 09 Jun 2013) New Revision: 41193 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41193 Log: merge revision(s) 39841: [Backport #8115] * lib/mkmf.rb (install_dirs, with_destdir): prefix with DESTDIR directories to install only unless bundled extension libraries. [ruby-core:53502] [Bug #8115] Modified directories: branches/ruby_2_0_0/ Modified files: branches/ruby_2_0_0/ChangeLog branches/ruby_2_0_0/lib/mkmf.rb branches/ruby_2_0_0/version.h Index: ruby_2_0_0/ChangeLog =================================================================== --- ruby_2_0_0/ChangeLog (revision 41192) +++ ruby_2_0_0/ChangeLog (revision 41193) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1 +Sun Jun 9 02:27:07 2013 Nobuyoshi Nakada <nobu@r...> + + * lib/mkmf.rb (install_dirs, with_destdir): prefix with DESTDIR + directories to install only unless bundled extension libraries. + [ruby-core:53502] [Bug #8115] + Sun Jun 9 02:17:16 2013 Charlie Somerville <charliesome@r...> * class.c (include_modules_at): invalidate method cache if included Index: ruby_2_0_0/lib/mkmf.rb =================================================================== --- ruby_2_0_0/lib/mkmf.rb (revision 41192) +++ ruby_2_0_0/lib/mkmf.rb (revision 41193) @@ -189,21 +189,21 @@ module MakeMakefile https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/lib/mkmf.rb#L189 ] elsif $configure_args.has_key?('--vendor') dirs = [ - ['BINDIR', '$(bindir)'], - ['RUBYCOMMONDIR', '$(vendordir)$(target_prefix)'], - ['RUBYLIBDIR', '$(vendorlibdir)$(target_prefix)'], - ['RUBYARCHDIR', '$(vendorarchdir)$(target_prefix)'], - ['HDRDIR', '$(rubyhdrdir)/ruby$(target_prefix)'], - ['ARCHHDRDIR', '$(rubyhdrdir)/$(arch)/ruby$(target_prefix)'], + ['BINDIR', '$(DESTDIR)$(bindir)'], + ['RUBYCOMMONDIR', '$(DESTDIR)$(vendordir)$(target_prefix)'], + ['RUBYLIBDIR', '$(DESTDIR)$(vendorlibdir)$(target_prefix)'], + ['RUBYARCHDIR', '$(DESTDIR)$(vendorarchdir)$(target_prefix)'], + ['HDRDIR', '$(DESTDIR)$(rubyhdrdir)/ruby$(target_prefix)'], + ['ARCHHDRDIR', '$(DESTDIR)$(rubyhdrdir)/$(arch)/ruby$(target_prefix)'], ] else dirs = [ - ['BINDIR', '$(bindir)'], - ['RUBYCOMMONDIR', '$(sitedir)$(target_prefix)'], - ['RUBYLIBDIR', '$(sitelibdir)$(target_prefix)'], - ['RUBYARCHDIR', '$(sitearchdir)$(target_prefix)'], - ['HDRDIR', '$(rubyhdrdir)/ruby$(target_prefix)'], - ['ARCHHDRDIR', '$(rubyhdrdir)/$(arch)/ruby$(target_prefix)'], + ['BINDIR', '$(DESTDIR)$(bindir)'], + ['RUBYCOMMONDIR', '$(DESTDIR)$(sitedir)$(target_prefix)'], + ['RUBYLIBDIR', '$(DESTDIR)$(sitelibdir)$(target_prefix)'], + ['RUBYARCHDIR', '$(DESTDIR)$(sitearchdir)$(target_prefix)'], + ['HDRDIR', '$(DESTDIR)$(rubyhdrdir)/ruby$(target_prefix)'], + ['ARCHHDRDIR', '$(DESTDIR)$(rubyhdrdir)/$(arch)/ruby$(target_prefix)'], ] end dirs << ['target_prefix', (target_prefix ? "/#{target_prefix}" : "")] @@ -1728,6 +1728,7 @@ SRC https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/lib/mkmf.rb#L1728 end def with_destdir(dir) + return dir unless $extmk dir = dir.sub($dest_prefix_pattern, '') /\A\$[\(\{]/ =~ dir ? dir : "$(DESTDIR)"+dir end @@ -1786,8 +1787,8 @@ ECHO = $(ECHO1:0=@echo) https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/lib/mkmf.rb#L1787 #### Start of system configuration section. #### #{"top_srcdir = " + $top_srcdir.sub(%r"\A#{Regexp.quote($topdir)}/", "$(topdir)/") if $extmk} srcdir = #{srcdir.gsub(/\$\((srcdir)\)|\$\{(srcdir)\}/) {mkintpath(CONFIG[$1||$2]).unspace}} -topdir = #{mkintpath($extmk ? CONFIG["topdir"] : $topdir).unspace} -hdrdir = #{mkintpath(CONFIG["hdrdir"]).unspace} +topdir = #{mkintpath(topdir = $extmk ? CONFIG["topdir"] : $topdir).unspace} +hdrdir = #{(hdrdir = CONFIG["hdrdir"]) == topdir ? "$(topdir)" : mkintpath(hdrdir).unspace} arch_hdrdir = #{$arch_hdrdir.quote} PATH_SEPARATOR = #{CONFIG['PATH_SEPARATOR']} VPATH = #{vpath.join(CONFIG['PATH_SEPARATOR'])} Index: ruby_2_0_0/version.h =================================================================== --- ruby_2_0_0/version.h (revision 41192) +++ ruby_2_0_0/version.h (revision 41193) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1 #define RUBY_VERSION "2.0.0" #define RUBY_RELEASE_DATE "2013-06-09" -#define RUBY_PATCHLEVEL 213 +#define RUBY_PATCHLEVEL 214 #define RUBY_RELEASE_YEAR 2013 #define RUBY_RELEASE_MONTH 6 Property changes on: ruby_2_0_0 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r39841 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/