[前][次][番号順一覧][スレッド一覧]

ruby-changes:27150

From: nobu <ko1@a...>
Date: Mon, 11 Feb 2013 13:17:32 +0900 (JST)
Subject: [ruby-changes:27150] nobu:r39202 (trunk): configure.in: sitearch

nobu	2013-02-11 13:17:22 +0900 (Mon, 11 Feb 2013)

  New Revision: 39202

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39202

  Log:
    configure.in: sitearch
    
    * configure.in (rubysitearchprefix): sitearchdir and vendorarchdir
      should use sitearch, not arch.  [ruby-dev:46964] [Bug #7823]

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/template/ruby.pc.in
    trunk/test/test_rbconfig.rb

Index: configure.in
===================================================================
--- configure.in	(revision 39201)
+++ configure.in	(revision 39202)
@@ -3163,10 +3163,10 @@ AC_ARG_ENABLE(multiarch, https://github.com/ruby/ruby/blob/trunk/configure.in#L3163
 	      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"
@@ -3190,6 +3190,7 @@ shvar_to_cpp() { https://github.com/ruby/ruby/blob/trunk/configure.in#L3190
 	    -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}"'\"|' \
@@ -3216,6 +3217,13 @@ AC_ARG_WITH(rubyarchprefix, https://github.com/ruby/ruby/blob/trunk/configure.in#L3217
 	    [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,
@@ -3261,7 +3269,7 @@ AC_ARG_WITH(sitearchdir, https://github.com/ruby/ruby/blob/trunk/configure.in#L3269
 	    AS_HELP_STRING([--with-sitearchdir=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]),
@@ -3273,7 +3281,7 @@ AC_ARG_WITH(vendorarchdir, https://github.com/ruby/ruby/blob/trunk/configure.in#L3281
 	    AS_HELP_STRING([--with-vendorarchdir=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)
@@ -3283,6 +3291,7 @@ else https://github.com/ruby/ruby/blob/trunk/configure.in#L3291
 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
@@ -3293,6 +3302,7 @@ fi https://github.com/ruby/ruby/blob/trunk/configure.in#L3302
 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: ChangeLog
===================================================================
--- ChangeLog	(revision 39201)
+++ ChangeLog	(revision 39202)
@@ -1,4 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
-Mon Feb 11 13:15:11 2013  Nobuyoshi Nakada  <nobu@r...>
+Mon Feb 11 13:17:20 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in (rubysitearchprefix): sitearchdir and vendorarchdir
+	  should use sitearch, not arch.  [ruby-dev:46964] [Bug #7823]
 
 	* win32/Makefile.sub (config.status): site and vendor directories
 	  should use sitearch, not arch.  [ruby-dev:46964] [Bug #7823]
Index: test/test_rbconfig.rb
===================================================================
--- test/test_rbconfig.rb	(revision 39201)
+++ test/test_rbconfig.rb	(revision 39202)
@@ -27,7 +27,7 @@ class TestRbConfig < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/test_rbconfig.rb#L27
     bug7823 = '[ruby-dev:46964] [Bug #7823]'
     RbConfig::MAKEFILE_CONFIG.each do |key, val|
       next unless /\Asite.*arch.*dir\z/ =~ key
-      assert_match(/\$\(sitearch|\$\(rubyarchprefix\)/, val, "#{key} #{bug7823}")
+      assert_match(/\$\(sitearch|\$\(rubysitearchprefix\)/, val, "#{key} #{bug7823}")
     end
   end
 
@@ -35,7 +35,7 @@ class TestRbConfig < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/test_rbconfig.rb#L35
     bug7823 = '[ruby-dev:46964] [Bug #7823]'
     RbConfig::MAKEFILE_CONFIG.each do |key, val|
       next unless /\Avendor.*arch.*dir\z/ =~ key
-      assert_match(/\$\(sitearch|\$\(rubyarchprefix\)/, val, "#{key} #{bug7823}")
+      assert_match(/\$\(sitearch|\$\(rubysitearchprefix\)/, val, "#{key} #{bug7823}")
     end
   end
 end
Index: template/ruby.pc.in
===================================================================
--- template/ruby.pc.in	(revision 39201)
+++ template/ruby.pc.in	(revision 39202)
@@ -31,6 +31,7 @@ sitearchincludedir=@sitearchincludedir@ https://github.com/ruby/ruby/blob/trunk/template/ruby.pc.in#L31
 ruby=${bindir}/${RUBY_INSTALL_NAME}@EXEEXT@
 rubylibprefix=@rubylibprefix@
 rubyarchprefix=@rubyarchprefix@
+rubysitearchprefix=@rubysitearchprefix@
 rubylibdir=@rubylibdir@
 vendordir=@vendordir@
 sitedir=@sitedir@

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]