ruby-changes:42600
From: usa <ko1@a...>
Date: Fri, 22 Apr 2016 13:36:25 +0900 (JST)
Subject: [ruby-changes:42600] usa:r54674 (ruby_2_2): merge revision(s) 53619, 53620, 53621, 53622, 53623, 53624, 53626, 53627: [Backport #12287]
usa 2016-04-22 14:33:01 +0900 (Fri, 22 Apr 2016) New Revision: 54674 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54674 Log: merge revision(s) 53619,53620,53621,53622,53623,53624,53626,53627: [Backport #12287] configure.bat: --with-libdir * win32/configure.bat: add --with-libdir option for basename of libdir. on Windows it must be placed under exec_prefix always. Modified directories: branches/ruby_2_2/ Modified files: branches/ruby_2_2/version.h branches/ruby_2_2/win32/Makefile.sub branches/ruby_2_2/win32/configure.bat branches/ruby_2_2/win32/setup.mak Index: ruby_2_2/win32/Makefile.sub =================================================================== --- ruby_2_2/win32/Makefile.sub (revision 54673) +++ ruby_2_2/win32/Makefile.sub (revision 54674) @@ -151,8 +151,11 @@ prefix = /usr https://github.com/ruby/ruby/blob/trunk/ruby_2_2/win32/Makefile.sub#L151 !if !defined(exec_prefix) exec_prefix = $(prefix) !endif +!if !defined(libdir_basename) +libdir_basename = lib +!endif !if !defined(libdir) -libdir = $(exec_prefix)/lib +libdir = $(exec_prefix)/$(libdir_basename) !endif !if !defined(datadir) datadir = $(prefix)/share @@ -794,7 +797,7 @@ s,@datadir@,$${prefix}/share,;t t https://github.com/ruby/ruby/blob/trunk/ruby_2_2/win32/Makefile.sub#L797 s,@sysconfdir@,$${prefix}/etc,;t t s,@sharedstatedir@,/etc,;t t s,@localstatedir@,/var,;t t -s,@libdir@,$${exec_prefix}/lib,;t t +s,@libdir@,$${exec_prefix}/$(libdir_basename),;t t s,@includedir@,$${prefix}/include,;t t s,@oldincludedir@,/usr/include,;t t s,@infodir@,$${datadir}/info,;t t Index: ruby_2_2/win32/setup.mak =================================================================== --- ruby_2_2/win32/setup.mak (revision 54673) +++ ruby_2_2/win32/setup.mak (revision 54674) @@ -44,6 +44,9 @@ ia64-mswin64: -prologue64- -ia64- -epilo https://github.com/ruby/ruby/blob/trunk/ruby_2_2/win32/setup.mak#L44 MAKE = nmake srcdir = $(srcdir:\=/) prefix = $(prefix:\=/) +!if defined(libdir_basename) +libdir_basename = $(libdir_basename) +!endif EXTSTATIC = $(EXTSTATIC) !if defined(RDOCTARGET) RDOCTARGET = $(RDOCTARGET) Index: ruby_2_2/win32/configure.bat =================================================================== --- ruby_2_2/win32/configure.bat (revision 54673) +++ ruby_2_2/win32/configure.bat (revision 54674) @@ -38,6 +38,7 @@ if "%1" == "--extout" goto :extout https://github.com/ruby/ruby/blob/trunk/ruby_2_2/win32/configure.bat#L38 if "%1" == "--path" goto :path if "%1" == "--with-baseruby" goto :baseruby if "%1" == "--with-ntver" goto :ntver +if "%1" == "--with-libdir" goto :libdir if "%1" == "--without-ext" goto :witharg if "%1" == "--without-extensions" goto :witharg if "%opt:~0,10%" == "--without-" goto :withoutarg @@ -53,43 +54,43 @@ if "%1" == "--help" goto :help https://github.com/ruby/ruby/blob/trunk/ruby_2_2/win32/configure.bat#L54 echo>>confargs.tmp ,%1\ ) shift -goto :loop +goto :loop ; :srcdir echo>> ~tmp~.mak "srcdir=%~2" \ echo>>confargs.tmp --srcdir=%2 \ shift shift -goto :loop +goto :loop ; :prefix echo>> ~tmp~.mak "prefix=%~2" \ echo>>confargs.tmp %1=%2 \ shift shift -goto :loop +goto :loop ; :pprefix echo>> ~tmp~.mak "PROGRAM_PREFIX=%~2" \ echo>>confargs.tmp %1=%2 \ shift shift -goto :loop +goto :loop ; :suffix echo>> ~tmp~.mak "PROGRAM_SUFFIX=%~2" \ echo>>confargs.tmp %1=%2 \ shift shift -goto :loop +goto :loop ; :installname echo>> ~tmp~.mak "RUBY_INSTALL_NAME=%~2" \ echo>>confargs.tmp %1=%2 \ shift shift -goto :loop +goto :loop ; :soname echo>> ~tmp~.mak "RUBY_SO_NAME=%~2" \ echo>>confargs.tmp %1=%2 \ shift shift -goto :loop +goto :loop ; :target echo>> ~tmp~.mak "%~2" \ echo>>confargs.tmp --target=%2 \ @@ -100,76 +101,82 @@ goto :loop https://github.com/ruby/ruby/blob/trunk/ruby_2_2/win32/configure.bat#L101 :target3 shift shift -goto :loop +goto :loop ; :extstatic echo>> ~tmp~.mak "EXTSTATIC=static" \ echo>>confargs.tmp %1 \ shift -goto :loop +goto :loop ; :enable-rdoc echo>> ~tmp~.mak "RDOCTARGET=rdoc" \ echo>>confargs.tmp %1 \ shift -goto :loop +goto :loop ; :disable-rdoc echo>> ~tmp~.mak "RDOCTARGET=nodoc" \ echo>>confargs.tmp %1 \ shift -goto :loop +goto :loop ; :enable-debug-env echo>> ~tmp~.mak "ENABLE_DEBUG_ENV=yes" \ echo>>confargs.tmp %1 \ shift -goto :loop +goto :loop ; :disable-debug-env echo>> ~tmp~.mak "ENABLE_DEBUG_ENV=no" \ echo>>confargs.tmp %1 \ shift -goto :loop +goto :loop ; :enable-rubygems echo>> ~tmp~.mak "USE_RUBYGEMS=YES" \ echo>>confargs.tmp %1 \ shift -goto :loop +goto :loop ; :disable-rubygems echo>> ~tmp~.mak "USE_RUBYGEMS=NO" \ echo>>confargs.tmp %1 \ shift -goto :loop +goto :loop ; :ntver echo>> ~tmp~.mak "NTVER=%~2" \ echo>>confargs.tmp %1=%2 \ shift shift -goto :loop +goto :loop ; :extout echo>> ~tmp~.mak "EXTOUT=%~2" \ echo>>confargs.tmp %1=%2 \ shift shift -goto :loop +goto :loop ; :path echo>>pathlist.tmp %~2;\ echo>>confargs.tmp %1=%2 \ shift shift -goto :loop +goto :loop ; :baseruby echo>> ~tmp~.mak "BASERUBY=%~2" \ echo>>confargs.tmp %1=%2 \ shift shift -goto :loop +goto :loop ; +:libdir + echo>> ~tmp~.mak "libdir_basename=%~2" \ + echo>>confargs.tmp %1=%2 \ + shift + shift +goto :loop ; :witharg echo>>confargs.tmp %1=%2\ set witharg=1 shift shift -goto :loop +goto :loop ; :withoutarg echo>>confargs.tmp %1 \ shift -goto :loop +goto :loop ; :help echo Configuration: echo --help display this help @@ -191,7 +198,7 @@ goto :exit https://github.com/ruby/ruby/blob/trunk/ruby_2_2/win32/configure.bat#L198 :end echo>> ~tmp~.mak WIN32DIR=$(@D:\=/) echo.>>confargs.tmp -echo>confargs.c #define $ $$ +echo>confargs.c #define $ $$ // echo>>confargs.c !ifndef CONFIGURE_ARGS type>>confargs.c confargs.tmp echo>>confargs.c configure_args = CONFIGURE_ARGS Index: ruby_2_2/version.h =================================================================== --- ruby_2_2/version.h (revision 54673) +++ ruby_2_2/version.h (revision 54674) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/version.h#L1 #define RUBY_VERSION "2.2.5" #define RUBY_RELEASE_DATE "2016-04-22" -#define RUBY_PATCHLEVEL 295 +#define RUBY_PATCHLEVEL 296 #define RUBY_RELEASE_YEAR 2016 #define RUBY_RELEASE_MONTH 4 Property changes on: ruby_2_2 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r53619-53624,53626-53627 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/