Karsten Hopp ce843e
To: vim_dev@googlegroups.com
Karsten Hopp ce843e
Subject: Patch 7.3.679
Karsten Hopp ce843e
Fcc: outbox
Karsten Hopp ce843e
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp ce843e
Mime-Version: 1.0
Karsten Hopp ce843e
Content-Type: text/plain; charset=UTF-8
Karsten Hopp ce843e
Content-Transfer-Encoding: 8bit
Karsten Hopp ce843e
------------
Karsten Hopp ce843e
Karsten Hopp ce843e
Patch 7.3.679
Karsten Hopp ce843e
Problem:    Ruby detection uses Config, newer Ruby versions use RbConfig.
Karsten Hopp ce843e
Solution:   Detect the need to use RbConfig. (Vit Ondruch)
Karsten Hopp ce843e
Files:	    src/configure.in, src/auto/configure
Karsten Hopp ce843e
Karsten Hopp ce843e
Karsten Hopp ce843e
*** ../vim-7.3.678/src/configure.in	2012-10-03 18:49:55.000000000 +0200
Karsten Hopp ce843e
--- src/configure.in	2012-10-03 18:50:48.000000000 +0200
Karsten Hopp ce843e
***************
Karsten Hopp ce843e
*** 1442,1465 ****
Karsten Hopp ce843e
      AC_MSG_CHECKING(Ruby version)
Karsten Hopp ce843e
      if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
Karsten Hopp ce843e
        AC_MSG_RESULT(OK)
Karsten Hopp ce843e
        AC_MSG_CHECKING(Ruby header files)
Karsten Hopp ce843e
!       rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG[["rubyhdrdir"]] || Config::CONFIG[["archdir"]] || $hdrdir' 2>/dev/null`
Karsten Hopp ce843e
        if test "X$rubyhdrdir" != "X"; then
Karsten Hopp ce843e
  	AC_MSG_RESULT($rubyhdrdir)
Karsten Hopp ce843e
  	RUBY_CFLAGS="-I$rubyhdrdir"
Karsten Hopp ce843e
!         rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG[["arch"]]'`
Karsten Hopp ce843e
          if test -d "$rubyhdrdir/$rubyarch"; then
Karsten Hopp ce843e
            RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
Karsten Hopp ce843e
          fi
Karsten Hopp ce843e
!         rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG[["ruby_version"]].gsub(/\./, "")[[0,2]]'`
Karsten Hopp ce843e
          RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
Karsten Hopp ce843e
! 	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG[["LIBS"]]'`
Karsten Hopp ce843e
  	if test "X$rubylibs" != "X"; then
Karsten Hopp ce843e
  	  RUBY_LIBS="$rubylibs"
Karsten Hopp ce843e
  	fi
Karsten Hopp ce843e
! 	librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG[["LIBRUBYARG"]])'`
Karsten Hopp ce843e
! 	librubya=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG[["LIBRUBY_A"]])'`
Karsten Hopp ce843e
!   rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG[["libdir"]])'`
Karsten Hopp ce843e
  	if test -f "$rubylibdir/$librubya"; then
Karsten Hopp ce843e
  	  librubyarg="$librubyarg"
Karsten Hopp ce843e
      RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
Karsten Hopp ce843e
--- 1442,1471 ----
Karsten Hopp ce843e
      AC_MSG_CHECKING(Ruby version)
Karsten Hopp ce843e
      if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
Karsten Hopp ce843e
        AC_MSG_RESULT(OK)
Karsten Hopp ce843e
+       AC_MSG_CHECKING(Ruby rbconfig)
Karsten Hopp ce843e
+       ruby_rbconfig="RbConfig"
Karsten Hopp ce843e
+       if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
Karsten Hopp ce843e
+ 	ruby_rbconfig="Config"
Karsten Hopp ce843e
+       fi
Karsten Hopp ce843e
+       AC_MSG_RESULT($ruby_rbconfig)
Karsten Hopp ce843e
        AC_MSG_CHECKING(Ruby header files)
Karsten Hopp ce843e
!       rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG[['rubyhdrdir']] || $ruby_rbconfig::CONFIG[['archdir']] || \\$hdrdir" 2>/dev/null`
Karsten Hopp ce843e
        if test "X$rubyhdrdir" != "X"; then
Karsten Hopp ce843e
  	AC_MSG_RESULT($rubyhdrdir)
Karsten Hopp ce843e
  	RUBY_CFLAGS="-I$rubyhdrdir"
Karsten Hopp ce843e
!         rubyarch=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG[['arch']]"`
Karsten Hopp ce843e
          if test -d "$rubyhdrdir/$rubyarch"; then
Karsten Hopp ce843e
            RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
Karsten Hopp ce843e
          fi
Karsten Hopp ce843e
!         rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG[['ruby_version']].gsub(/\./, '')[[0,2]]"`
Karsten Hopp ce843e
          RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
Karsten Hopp ce843e
! 	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG[['LIBS']]"`
Karsten Hopp ce843e
  	if test "X$rubylibs" != "X"; then
Karsten Hopp ce843e
  	  RUBY_LIBS="$rubylibs"
Karsten Hopp ce843e
  	fi
Karsten Hopp ce843e
! 	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG[['LIBRUBYARG']])"`
Karsten Hopp ce843e
! 	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG[['LIBRUBY_A']])"`
Karsten Hopp ce843e
!   rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG[['libdir']])"`
Karsten Hopp ce843e
  	if test -f "$rubylibdir/$librubya"; then
Karsten Hopp ce843e
  	  librubyarg="$librubyarg"
Karsten Hopp ce843e
      RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
Karsten Hopp ce843e
***************
Karsten Hopp ce843e
*** 1472,1478 ****
Karsten Hopp ce843e
  	if test "X$librubyarg" != "X"; then
Karsten Hopp ce843e
  	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
Karsten Hopp ce843e
  	fi
Karsten Hopp ce843e
! 	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG[["LDFLAGS"]]'`
Karsten Hopp ce843e
  	if test "X$rubyldflags" != "X"; then
Karsten Hopp ce843e
  	  dnl Ruby on Mac OS X 10.5 adds "-arch" flags but these should only
Karsten Hopp ce843e
  	  dnl be included if requested by passing --with-mac-arch to
Karsten Hopp ce843e
--- 1478,1484 ----
Karsten Hopp ce843e
  	if test "X$librubyarg" != "X"; then
Karsten Hopp ce843e
  	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
Karsten Hopp ce843e
  	fi
Karsten Hopp ce843e
! 	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG[['LDFLAGS']]"`
Karsten Hopp ce843e
  	if test "X$rubyldflags" != "X"; then
Karsten Hopp ce843e
  	  dnl Ruby on Mac OS X 10.5 adds "-arch" flags but these should only
Karsten Hopp ce843e
  	  dnl be included if requested by passing --with-mac-arch to
Karsten Hopp ce843e
***************
Karsten Hopp ce843e
*** 1487,1493 ****
Karsten Hopp ce843e
  	RUBY_PRO="if_ruby.pro"
Karsten Hopp ce843e
  	AC_DEFINE(FEAT_RUBY)
Karsten Hopp ce843e
  	if test "$enable_rubyinterp" = "dynamic"; then
Karsten Hopp ce843e
! 	  libruby=`$vi_cv_path_ruby -r rbconfig -e 'puts Config::CONFIG[["LIBRUBY_SO"]]'`
Karsten Hopp ce843e
  	  AC_DEFINE(DYNAMIC_RUBY)
Karsten Hopp ce843e
  	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
Karsten Hopp ce843e
  	  RUBY_LIBS=
Karsten Hopp ce843e
--- 1493,1499 ----
Karsten Hopp ce843e
  	RUBY_PRO="if_ruby.pro"
Karsten Hopp ce843e
  	AC_DEFINE(FEAT_RUBY)
Karsten Hopp ce843e
  	if test "$enable_rubyinterp" = "dynamic"; then
Karsten Hopp ce843e
! 	  libruby=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG[['LIBRUBY_SO']]"`
Karsten Hopp ce843e
  	  AC_DEFINE(DYNAMIC_RUBY)
Karsten Hopp ce843e
  	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
Karsten Hopp ce843e
  	  RUBY_LIBS=
Karsten Hopp ce843e
*** ../vim-7.3.678/src/auto/configure	2012-10-03 18:49:55.000000000 +0200
Karsten Hopp ce843e
--- src/auto/configure	2012-10-03 18:51:38.000000000 +0200
Karsten Hopp ce843e
***************
Karsten Hopp ce843e
*** 6332,6357 ****
Karsten Hopp ce843e
      if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
Karsten Hopp ce843e
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
Karsten Hopp ce843e
  $as_echo "OK" >&6; }
Karsten Hopp ce843e
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
Karsten Hopp ce843e
  $as_echo_n "checking Ruby header files... " >&6; }
Karsten Hopp ce843e
!       rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
Karsten Hopp ce843e
        if test "X$rubyhdrdir" != "X"; then
Karsten Hopp ce843e
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
Karsten Hopp ce843e
  $as_echo "$rubyhdrdir" >&6; }
Karsten Hopp ce843e
  	RUBY_CFLAGS="-I$rubyhdrdir"
Karsten Hopp ce843e
!         rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'`
Karsten Hopp ce843e
          if test -d "$rubyhdrdir/$rubyarch"; then
Karsten Hopp ce843e
            RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
Karsten Hopp ce843e
          fi
Karsten Hopp ce843e
!         rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
Karsten Hopp ce843e
          RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
Karsten Hopp ce843e
! 	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
Karsten Hopp ce843e
  	if test "X$rubylibs" != "X"; then
Karsten Hopp ce843e
  	  RUBY_LIBS="$rubylibs"
Karsten Hopp ce843e
  	fi
Karsten Hopp ce843e
! 	librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
Karsten Hopp ce843e
! 	librubya=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBY_A"])'`
Karsten Hopp ce843e
!   rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
Karsten Hopp ce843e
  	if test -f "$rubylibdir/$librubya"; then
Karsten Hopp ce843e
  	  librubyarg="$librubyarg"
Karsten Hopp ce843e
      RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
Karsten Hopp ce843e
--- 6332,6365 ----
Karsten Hopp ce843e
      if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
Karsten Hopp ce843e
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
Karsten Hopp ce843e
  $as_echo "OK" >&6; }
Karsten Hopp ce843e
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
Karsten Hopp ce843e
+ $as_echo_n "checking Ruby rbconfig... " >&6; }
Karsten Hopp ce843e
+       ruby_rbconfig="RbConfig"
Karsten Hopp ce843e
+       if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
Karsten Hopp ce843e
+ 	ruby_rbconfig="Config"
Karsten Hopp ce843e
+       fi
Karsten Hopp ce843e
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5
Karsten Hopp ce843e
+ $as_echo "$ruby_rbconfig" >&6; }
Karsten Hopp ce843e
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
Karsten Hopp ce843e
  $as_echo_n "checking Ruby header files... " >&6; }
Karsten Hopp ce843e
!       rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null`
Karsten Hopp ce843e
        if test "X$rubyhdrdir" != "X"; then
Karsten Hopp ce843e
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
Karsten Hopp ce843e
  $as_echo "$rubyhdrdir" >&6; }
Karsten Hopp ce843e
  	RUBY_CFLAGS="-I$rubyhdrdir"
Karsten Hopp ce843e
!         rubyarch=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['arch']"`
Karsten Hopp ce843e
          if test -d "$rubyhdrdir/$rubyarch"; then
Karsten Hopp ce843e
            RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
Karsten Hopp ce843e
          fi
Karsten Hopp ce843e
!         rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
Karsten Hopp ce843e
          RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
Karsten Hopp ce843e
! 	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
Karsten Hopp ce843e
  	if test "X$rubylibs" != "X"; then
Karsten Hopp ce843e
  	  RUBY_LIBS="$rubylibs"
Karsten Hopp ce843e
  	fi
Karsten Hopp ce843e
! 	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
Karsten Hopp ce843e
! 	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
Karsten Hopp ce843e
!   rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
Karsten Hopp ce843e
  	if test -f "$rubylibdir/$librubya"; then
Karsten Hopp ce843e
  	  librubyarg="$librubyarg"
Karsten Hopp ce843e
      RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
Karsten Hopp ce843e
***************
Karsten Hopp ce843e
*** 6363,6369 ****
Karsten Hopp ce843e
  	if test "X$librubyarg" != "X"; then
Karsten Hopp ce843e
  	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
Karsten Hopp ce843e
  	fi
Karsten Hopp ce843e
! 	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
Karsten Hopp ce843e
  	if test "X$rubyldflags" != "X"; then
Karsten Hopp ce843e
  	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
Karsten Hopp ce843e
  	  if test "X$rubyldflags" != "X"; then
Karsten Hopp ce843e
--- 6371,6377 ----
Karsten Hopp ce843e
  	if test "X$librubyarg" != "X"; then
Karsten Hopp ce843e
  	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
Karsten Hopp ce843e
  	fi
Karsten Hopp ce843e
! 	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"`
Karsten Hopp ce843e
  	if test "X$rubyldflags" != "X"; then
Karsten Hopp ce843e
  	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
Karsten Hopp ce843e
  	  if test "X$rubyldflags" != "X"; then
Karsten Hopp ce843e
***************
Karsten Hopp ce843e
*** 6376,6382 ****
Karsten Hopp ce843e
  	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
Karsten Hopp ce843e
  
Karsten Hopp ce843e
  	if test "$enable_rubyinterp" = "dynamic"; then
Karsten Hopp ce843e
! 	  libruby=`$vi_cv_path_ruby -r rbconfig -e 'puts Config::CONFIG["LIBRUBY_SO"]'`
Karsten Hopp ce843e
  	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
Karsten Hopp ce843e
  
Karsten Hopp ce843e
  	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
Karsten Hopp ce843e
--- 6384,6390 ----
Karsten Hopp ce843e
  	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
Karsten Hopp ce843e
  
Karsten Hopp ce843e
  	if test "$enable_rubyinterp" = "dynamic"; then
Karsten Hopp ce843e
! 	  libruby=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"`
Karsten Hopp ce843e
  	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
Karsten Hopp ce843e
  
Karsten Hopp ce843e
  	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
Karsten Hopp ce843e
*** ../vim-7.3.678/src/version.c	2012-10-03 18:49:55.000000000 +0200
Karsten Hopp ce843e
--- src/version.c	2012-10-03 21:08:31.000000000 +0200
Karsten Hopp ce843e
***************
Karsten Hopp ce843e
*** 721,722 ****
Karsten Hopp ce843e
--- 721,724 ----
Karsten Hopp ce843e
  {   /* Add new patch number below this line */
Karsten Hopp ce843e
+ /**/
Karsten Hopp ce843e
+     679,
Karsten Hopp ce843e
  /**/
Karsten Hopp ce843e
Karsten Hopp ce843e
-- 
Karsten Hopp ce843e
Close your shells, or I'll kill -9 you
Karsten Hopp ce843e
Tomorrow I'll quota you
Karsten Hopp ce843e
Remember the disks'll always be full
Karsten Hopp ce843e
And then while I'm away
Karsten Hopp ce843e
I'll write ~ everyday
Karsten Hopp ce843e
And I'll send-pr all my buggings to you.
Karsten Hopp ce843e
    [ CVS log "Beatles style" for FreeBSD ports/INDEX, Satoshi Asami ]
Karsten Hopp ce843e
Karsten Hopp ce843e
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp ce843e
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp ce843e
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp ce843e
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///