ruby-changes:27259
From: nobu <ko1@a...>
Date: Tue, 19 Feb 2013 12:26:01 +0900 (JST)
Subject: [ruby-changes:27259] nobu:r39311 (ruby_2_0_0): merge revision(s) 39201,39202:
nobu 2013-02-19 12:25:48 +0900 (Tue, 19 Feb 2013) New Revision: 39311 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39311 Log: merge revision(s) 39201,39202: * win32/Makefile.sub (config.status): site and vendor directories should use sitearch, not arch. [ruby-dev:46964] [Bug #7823] * configure.in (rubysitearchprefix): sitearchdir and vendorarchdir should use sitearch, not arch. [ruby-dev:46964] [Bug #7823] Added files: branches/ruby_2_0_0/test/test_rbconfig.rb Modified directories: branches/ruby_2_0_0/ Modified files: branches/ruby_2_0_0/ChangeLog branches/ruby_2_0_0/configure.in branches/ruby_2_0_0/template/ruby.pc.in branches/ruby_2_0_0/win32/Makefile.sub Index: ruby_2_0_0/configure.in =================================================================== --- ruby_2_0_0/configure.in (revision 39310) +++ ruby_2_0_0/configure.in (revision 39311) @@ -3142,10 +3142,10 @@ AC_ARG_ENABLE(multiarch, https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/configure.in#L3142 AS_HELP_STRING([--enable-multiarch], [enable multiarch compatible directories]), [multiarch=], [unset multiarch]) -archlibdir='${libdir}'${multiarch+'/${arch}'} -sitearchlibdir='${libdir}'${multiarch+'/${sitearch}'} -archincludedir='${includedir}'${multiarch+'/${arch}'} -sitearchincludedir='${includedir}'${multiarch+'/${sitearch}'} +archlibdir='${libdir}/${arch}' +sitearchlibdir='${libdir}/${sitearch}' +archincludedir='${includedir}/${arch}' +sitearchincludedir='${includedir}/${sitearch}' shvar_to_cpp() { local var="$1" val="$2" @@ -3169,6 +3169,7 @@ shvar_to_cpp() { https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/configure.in#L3169 -e 's/\${rubylibdir}/"RUBY_LIB"/g' \ -e 's/\${rubylibprefix}/"RUBY_LIB_PREFIX"/g' \ -e 's/\${rubyarchprefix}/"RUBY_ARCH_PREFIX_FOR(arch)"/g' \ + -e 's/\${rubysitearchprefix}/"RUBY_SITEARCH_PREFIX_FOR(arch)"/g' \ -e 's/\${exec_prefix}/"RUBY_EXEC_PREFIX"/g' \ -e 's|^\"NONE/|RUBY_EXEC_PREFIX\"/|' \ -e 's|^\"NONE\"|\"'"${prefix}"'\"|' \ @@ -3195,6 +3196,13 @@ AC_ARG_WITH(rubyarchprefix, https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/configure.in#L3196 [rubyarchprefix="$withval"]) AC_SUBST(rubyarchprefix) +rubysitearchprefix=${multiarch+'${sitearchlibdir}/${RUBY_BASE_NAME}'}${multiarch-'${rubylibprefix}/${sitearch}'} +AC_ARG_WITH(rubysitearchprefix, + AS_HELP_STRING([--with-rubysitearchprefix=DIR], + [prefix for architecture dependent site libraries [[RUBYLIBPREFIX/SITEARCH]]]), + [rubysitearchprefix="$withval"]) +AC_SUBST(rubysitearchprefix) + RI_BASE_NAME=`echo ${RUBY_BASE_NAME} | sed 's/ruby/ri/'` ridir='${datarootdir}/${RI_BASE_NAME}' AC_ARG_WITH(ridir, @@ -3238,7 +3246,7 @@ AC_ARG_WITH(sitearchdir, https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/configure.in#L3246 AS_HELP_STRING([--with-arch-sitedir=DIR], [architecture dependent site libraries in DIR [[SITEDIR/SITEARCH]], "no" to disable site directory]), [sitearchdir=$withval], - [sitearchdir=${multiarch+'${rubyarchprefix}/site_ruby/${ruby_version}'}${multiarch-'${sitelibdir}/${sitearch}'}]) + [sitearchdir=${multiarch+'${rubysitearchprefix}/site_ruby/${ruby_version}'}${multiarch-'${sitelibdir}/${sitearch}'}]) AC_ARG_WITH(vendordir, AS_HELP_STRING([--with-vendordir=DIR], [vendor libraries in DIR [[RUBY_LIB_PREFIX/vendor_ruby]], "no" to disable vendor directory]), @@ -3250,7 +3258,7 @@ AC_ARG_WITH(vendorarchdir, https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/configure.in#L3258 AS_HELP_STRING([--with-arch-vendordir=DIR], [architecture dependent vendor libraries in DIR [[VENDORDIR/SITEARCH]], "no" to disable vendor directory]), [vendorarchdir=$withval], - [vendorarchdir=${multiarch+'${rubyarchprefix}/vendor_ruby/${ruby_version}'}${multiarch-'${vendorlibdir}/${sitearch}'}]) + [vendorarchdir=${multiarch+'${rubysitearchprefix}/vendor_ruby/${ruby_version}'}${multiarch-'${vendorlibdir}/${sitearch}'}]) if test "${LOAD_RELATIVE+set}"; then AC_DEFINE_UNQUOTED(LOAD_RELATIVE, $LOAD_RELATIVE) @@ -3260,6 +3268,7 @@ else https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/configure.in#L3268 fi shvar_to_cpp RUBY_LIB_PREFIX "${rubylibprefix}" shvar_to_cpp RUBY_ARCH_PREFIX_FOR "${rubyarchprefix}" +shvar_to_cpp RUBY_SITEARCH_PREFIX_FOR "${rubysitearchprefix}" shvar_to_cpp RIDIR "${ridir}" if test ${RUBY_LIB_VERSION_STYLE+set}; then @@ -3270,6 +3279,7 @@ fi https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/configure.in#L3279 AC_DEFINE_UNQUOTED(RUBY_EXEC_PREFIX, ${RUBY_EXEC_PREFIX}) AC_DEFINE_UNQUOTED(RUBY_LIB_PREFIX, ${RUBY_LIB_PREFIX} !<verconf>!) AC_DEFINE_UNQUOTED(RUBY_ARCH_PREFIX_FOR(arch), ${RUBY_ARCH_PREFIX_FOR} !<verconf>!) +AC_DEFINE_UNQUOTED(RUBY_SITEARCH_PREFIX_FOR(arch), ${RUBY_SITEARCH_PREFIX_FOR} !<verconf>!) shvar_to_cpp RUBY_LIB "${rubylibdir}" if test "x${RUBY_LIB}" != 'xRUBY_LIB_PREFIX"/"RUBY_LIB_VERSION'; then Index: ruby_2_0_0/ChangeLog =================================================================== --- ruby_2_0_0/ChangeLog (revision 39310) +++ ruby_2_0_0/ChangeLog (revision 39311) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1 +Tue Feb 19 12:25:27 2013 Nobuyoshi Nakada <nobu@r...> + + * win32/Makefile.sub (config.status): site and vendor directories + should use sitearch, not arch. [ruby-dev:46964] [Bug #7823] + Tue Feb 19 07:51:01 2013 Koichi Sasada <ko1@a...> * backport r39275 from trunk. [ruby-dev:46994] [Bug #7774] Index: ruby_2_0_0/win32/Makefile.sub =================================================================== --- ruby_2_0_0/win32/Makefile.sub (revision 39310) +++ ruby_2_0_0/win32/Makefile.sub (revision 39311) @@ -850,10 +850,10 @@ s,@rubylibprefix@,$${prefix}/lib/$${RUBY https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/win32/Makefile.sub#L850 s,@rubyarchdir@,$${rubylibdir}/$${arch},;t t s,@rubylibdir@,$${rubylibprefix}/$${ruby_version},;t t s,@sitedir@,$${rubylibprefix}/site_ruby,;t t -s,@sitearchdir@,$${sitelibdir}/$${arch},;t t +s,@sitearchdir@,$${sitelibdir}/$${sitearch},;t t s,@sitelibdir@,$${sitedir}/$${ruby_version},;t t s,@vendordir@,$${rubylibprefix}/vendor_ruby,;t t -s,@vendorarchdir@,$${vendirlibdir}/$${arch},;t t +s,@vendorarchdir@,$${vendirlibdir}/$${sitearch},;t t s,@vendorlibdir@,$${vendordir}/$${ruby_version},;t t s,@rubyhdrdir@,$$(includedir)/$${RUBY_BASE_NAME}-$$(ruby_version),;t t s,@sitehdrdir@,$$(rubyhdrdir)/site_ruby,;t t Index: ruby_2_0_0/test/test_rbconfig.rb =================================================================== --- ruby_2_0_0/test/test_rbconfig.rb (revision 0) +++ ruby_2_0_0/test/test_rbconfig.rb (revision 39311) @@ -0,0 +1,41 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/test/test_rbconfig.rb#L1 +require 'test/unit' +require 'rbconfig' + +class TestRbConfig < Test::Unit::TestCase + def test_sitedirs + RbConfig::MAKEFILE_CONFIG.each do |key, val| + next unless /\Asite(?!arch)/ =~ key + assert_match(/(?:\$\(|\/)site/, val, key) + end + end + + def test_vendordirs + RbConfig::MAKEFILE_CONFIG.each do |key, val| + next unless /\Avendor(?!arch)/ =~ key + assert_match(/(?:\$\(|\/)vendor/, val, key) + end + end + + def test_archdirs + RbConfig::MAKEFILE_CONFIG.each do |key, val| + next unless /\A(?!site|vendor|archdir\z).*arch.*dir\z/ =~ key + assert_match(/\$\(arch|\$\(rubyarchprefix\)/, val, key) + end + end + + def test_sitearchdirs + bug7823 = '[ruby-dev:46964] [Bug #7823]' + RbConfig::MAKEFILE_CONFIG.each do |key, val| + next unless /\Asite.*arch.*dir\z/ =~ key + assert_match(/\$\(sitearch|\$\(rubysitearchprefix\)/, val, "#{key} #{bug7823}") + end + end + + def test_vendorarchdirs + bug7823 = '[ruby-dev:46964] [Bug #7823]' + RbConfig::MAKEFILE_CONFIG.each do |key, val| + next unless /\Avendor.*arch.*dir\z/ =~ key + assert_match(/\$\(sitearch|\$\(rubysitearchprefix\)/, val, "#{key} #{bug7823}") + end + end +end Property changes on: ruby_2_0_0/test/test_rbconfig.rb ___________________________________________________________________ Added: svn:eol-style + LF Index: ruby_2_0_0/template/ruby.pc.in =================================================================== --- ruby_2_0_0/template/ruby.pc.in (revision 39310) +++ ruby_2_0_0/template/ruby.pc.in (revision 39311) @@ -31,6 +31,7 @@ sitearchincludedir=@sitearchincludedir@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/template/ruby.pc.in#L31 ruby=${bindir}/${RUBY_INSTALL_NAME}@EXEEXT@ rubylibprefix=@rubylibprefix@ rubyarchprefix=@rubyarchprefix@ +rubysitearchprefix=@rubysitearchprefix@ rubylibdir=@rubylibdir@ vendordir=@vendordir@ sitedir=@sitedir@ Property changes on: ruby_2_0_0 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r39201-39202 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/