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

ruby-changes:29891

From: nagachika <ko1@a...>
Date: Sat, 13 Jul 2013 23:13:34 +0900 (JST)
Subject: [ruby-changes:29891] nagachika:r41943 (ruby_2_0_0): merge revision(s) 41815,41816: [Backport #8606]

nagachika	2013-07-13 23:13:20 +0900 (Sat, 13 Jul 2013)

  New Revision: 41943

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

  Log:
    merge revision(s) 41815,41816: [Backport #8606]
    
    * configure.in (RUBY_DTRACE_POSTPROCESS): dtrace version SUN D 1.11
      introduces a check in the dtrace compiler to ensure that probes
      actually exist. If there are no probes, then the -G step will
      fail. As this test is only being used to determine whether -G is
      necessary (for instance, on OSX it is not), adding a real probe to
      the conftest allows it to succeed on newer versions of dtrace.
      Patch by Eric Saxby <sax AT livinginthepast.org> at
      [ruby-core:55826].  [Fix GH-351], [Bug #8606].

  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/version.h

Index: ruby_2_0_0/configure.in
===================================================================
--- ruby_2_0_0/configure.in	(revision 41942)
+++ ruby_2_0_0/configure.in	(revision 41943)
@@ -530,15 +530,21 @@ AC_DEFUN([RUBY_DTRACE_AVAILABLE], https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/configure.in#L530
 AC_DEFUN([RUBY_DTRACE_POSTPROCESS],
 [AC_CACHE_CHECK(whether $DTRACE needs post processing, rb_cv_prog_dtrace_g,
 [
- echo "int main(void){ return 0; }" > conftest.c
- echo "provider conftest{};" > conftest_provider.d
- $CC $CFLAGS -c -o conftest.o conftest.c
- if $DTRACE -G -s conftest_provider.d conftest.o 2>/dev/null; then
-   rb_cv_prog_dtrace_g=yes
- else
-   rb_cv_prog_dtrace_g=no
- fi
- rm -f conftest.o conftest.c conftest_provider.d conftest_provider.o
+  if {
+    echo "provider conftest{ probe fire(); };" > conftest_provider.d &&
+    dtrace -h -o conftest_provider.h -s conftest_provider.d >/dev/null 2>/dev/null &&
+    cat >conftest.c <<_CONF &&
+    @%:@include "conftest_provider.h"
+    int main(void){ CONFTEST_FIRE(); return 0; }
+_CONF
+    $CC $CFLAGS -c -o conftest.o conftest.c &&
+    $DTRACE -G -s conftest_provider.d conftest.o 2>/dev/null
+  }; then
+    rb_cv_prog_dtrace_g=yes
+  else
+    rb_cv_prog_dtrace_g=no
+  fi
+  rm -f conftest.[co] conftest_provider.[dho]
 ])
 ])
 
Index: ruby_2_0_0/ChangeLog
===================================================================
--- ruby_2_0_0/ChangeLog	(revision 41942)
+++ ruby_2_0_0/ChangeLog	(revision 41943)
@@ -1,3 +1,14 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1
+Sat Jul 13 22:45:10 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in (RUBY_DTRACE_POSTPROCESS): dtrace version SUN D 1.11
+	  introduces a check in the dtrace compiler to ensure that probes
+	  actually exist. If there are no probes, then the -G step will
+	  fail. As this test is only being used to determine whether -G is
+	  necessary (for instance, on OSX it is not), adding a real probe to
+	  the conftest allows it to succeed on newer versions of dtrace.
+	  Patch by Eric Saxby <sax AT livinginthepast.org> at
+	  [ruby-core:55826].  [Fix GH-351], [Bug #8606].
+
 Sat Jul 13 22:41:20 2013  Martin Bosslet  <Martin.Bosslet@g...>
 
 	* test/openssl/test_x509crl.rb: Remove unused variable.
Index: ruby_2_0_0/version.h
===================================================================
--- ruby_2_0_0/version.h	(revision 41942)
+++ ruby_2_0_0/version.h	(revision 41943)
@@ -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-07-13"
-#define RUBY_PATCHLEVEL 256
+#define RUBY_PATCHLEVEL 257
 
 #define RUBY_RELEASE_YEAR 2013
 #define RUBY_RELEASE_MONTH 7

Property changes on: ruby_2_0_0
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r41815-41816


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

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