Skip to content

Commit 362fa6f

Browse files
committed
Bug#19586917 - cannot build mysql with dtrace on solaris 11.2
On Solaris 11.2, "dtrace -V" output changed from "Sun D" to "Oracle D". Because of this detection of real dtrace was failing. Changed code in file dtrace.make to check "Sun D" or "Oracle D" from "dtrace -V" output to fix this issue.
1 parent 6fa0975 commit 362fa6f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

cmake/dtrace.cmake

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ MACRO(CHECK_DTRACE)
4343
EXECUTE_PROCESS(
4444
COMMAND ${DTRACE} -V
4545
OUTPUT_VARIABLE out)
46-
IF(out MATCHES "Sun D" AND
47-
NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD" AND
48-
NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
49-
SET(HAVE_REAL_DTRACE_INSTRUMENTING ON CACHE BOOL "Real DTrace detected")
46+
IF(out MATCHES "Sun D" OR out MATCHES "Oracle D")
47+
IF(NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD" AND
48+
NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
49+
SET(HAVE_REAL_DTRACE_INSTRUMENTING ON CACHE BOOL "Real DTrace detected")
50+
ENDIF()
5051
ENDIF()
5152
IF(HAVE_REAL_DTRACE_INSTRUMENTING)
5253
IF(CMAKE_SIZEOF_VOID_P EQUAL 4)

mysql-test/t/dynamic_tracing.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
$ret = `dtrace -V 2>&1`;
2424
if ($? == 0)
2525
{
26-
if ($ret =~ m/Sun D/)
26+
if (($ret =~ m/Sun D/) || ($ret =~ m/Oracle D/))
2727
{
2828
$dyn_trace_tool_available = 1;
2929

0 commit comments

Comments
 (0)