Skip to content

Commit 37ab7e4

Browse files
committed
Merge branch '5.5' into 10.0
2 parents 30c3d6d + 893ebb7 commit 37ab7e4

File tree

122 files changed

+14872
-3473
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+14872
-3473
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ storage/mroonga/vendor/groonga/src/groonga-benchmark
231231
storage/mroonga/vendor/groonga/src/suggest/groonga-suggest-create-dataset
232232
storage/mroonga/mysql-test/mroonga/storage/r/information_schema_plugins.result
233233
storage/mroonga/mysql-test/mroonga/storage/r/variable_version.result
234+
zlib/zconf.h
235+
234236
# C and C++
235237

236238
# Compiled Object files

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Copyright (c) 2006, 2017, Oracle and/or its affiliates.
2-
# Copyright (c) 2008, 2017, MariaDB
2+
# Copyright (c) 2008, 2018, MariaDB Corporation
33
#
44
# This program is free software; you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by

client/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2008, 2018, MariaDB Corporation
23
#
34
# This program is free software; you can redistribute it and/or modify
45
# it under the terms of the GNU General Public License as published by

client/mysql.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
Copyright (c) 2000, 2014, Oracle and/or its affiliates.
3-
Copyright (c) 2009, 2017, MariaDB
2+
Copyright (c) 2000, 2018, Oracle and/or its affiliates.
3+
Copyright (c) 2009, 2018, MariaDB Corporation
44
55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by
@@ -1493,7 +1493,7 @@ static struct my_option my_long_options[] =
14931493
{"batch", 'B',
14941494
"Don't use history file. Disable interactive behavior. (Enables --silent.)",
14951495
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1496-
{"binary-as-hex", 'b', "Print binary data as hex", &opt_binhex, &opt_binhex,
1496+
{"binary-as-hex", 0, "Print binary data as hex", &opt_binhex, &opt_binhex,
14971497
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
14981498
{"character-sets-dir", OPT_CHARSETS_DIR,
14991499
"Directory for character set files.", &charsets_dir,

cmake/libutils.cmake

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ MACRO(MERGE_STATIC_LIBS TARGET OUTPUT_NAME LIBS_TO_MERGE)
136136
SET(SOURCE_FILE ${CMAKE_CURRENT_BINARY_DIR}/${TARGET}_depends.c)
137137
ADD_LIBRARY(${TARGET} STATIC ${SOURCE_FILE})
138138
SET_TARGET_PROPERTIES(${TARGET} PROPERTIES OUTPUT_NAME ${OUTPUT_NAME})
139+
IF(NOT _SKIP_PIC)
140+
SET_TARGET_PROPERTIES(${TARGET} PROPERTIES COMPILE_FLAGS
141+
"${CMAKE_SHARED_LIBRARY_C_FLAGS}")
142+
ENDIF()
139143

140144
SET(OSLIBS)
141145
FOREACH(LIB ${LIBS_TO_MERGE})
@@ -240,11 +244,11 @@ MACRO(MERGE_LIBRARIES)
240244
# check for non-PIC libraries
241245
IF(NOT _SKIP_PIC)
242246
FOREACH(LIB ${LIBS})
243-
GET_TARGET_PROPERTY(${LIB} TYPE LIBTYPE)
244-
IF(LIBTYPE STREQUAL "STATIC_LIBRARY")
245-
GET_TARGET_PROPERTY(LIB COMPILE_FLAGS LIB_COMPILE_FLAGS)
247+
GET_TARGET_PROPERTY(LTYPE ${LIB} TYPE)
248+
IF(LTYPE STREQUAL "STATIC_LIBRARY")
249+
GET_TARGET_PROPERTY(LIB_COMPILE_FLAGS ${LIB} COMPILE_FLAGS)
246250
STRING(REPLACE "${CMAKE_SHARED_LIBRARY_C_FLAGS}"
247-
"<PIC_FLAG>" LIB_COMPILE_FLAGS ${LIB_COMPILE_FLAG})
251+
"<PIC_FLAG>" LIB_COMPILE_FLAGS "${LIB_COMPILE_FLAGS}")
248252
IF(NOT LIB_COMPILE_FLAGS MATCHES "<PIC_FLAG>")
249253
MESSAGE(FATAL_ERROR
250254
"Attempted to link non-PIC static library ${LIB} to shared library ${TARGET}\n"

cmake/os/Windows.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,8 @@ IF(MSVC)
128128
ENDIF()
129129

130130
# Always link with socket library
131-
LINK_LIBRARIES(ws2_32)
132-
# ..also for tests
133-
SET(CMAKE_REQUIRED_LIBRARIES ws2_32)
131+
STRING(APPEND CMAKE_C_STANDARD_LIBRARIES " ws2_32.lib")
132+
STRING(APPEND CMAKE_CXX_STANDARD_LIBRARIES " ws2_32.lib")
134133

135134
# System checks
136135
SET(SIGNAL_WITH_VIO_CLOSE 1) # Something that runtime team needs

cmake/plugin.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2009, 2018, Oracle and/or its affiliates.
2+
# Copyright (c) 2011, 2018, MariaDB Corporation
23
#
34
# This program is free software; you can redistribute it and/or modify
45
# it under the terms of the GNU General Public License as published by

cmake/zlib.cmake

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -14,15 +14,12 @@
1414
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1515

1616
MACRO (MYSQL_USE_BUNDLED_ZLIB)
17-
SET(ZLIB_LIBRARY zlib)
18-
SET(ZLIB_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/zlib)
17+
SET(ZLIB_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/zlib ${CMAKE_BINARY_DIR}/zlib)
18+
SET(BUILD_BUNDLED_ZLIB 1)
19+
SET(ZLIB_LIBRARY zlib CACHE INTERNAL "Bundled zlib library")
1920
SET(ZLIB_FOUND TRUE)
2021
SET(WITH_ZLIB "bundled" CACHE STRING "Use bundled zlib")
2122
ADD_SUBDIRECTORY(zlib)
22-
GET_TARGET_PROPERTY(src zlib SOURCES)
23-
FOREACH(file ${src})
24-
SET(ZLIB_SOURCES ${ZLIB_SOURCES} ${CMAKE_SOURCE_DIR}/zlib/${file})
25-
ENDFOREACH()
2623
ENDMACRO()
2724

2825
# MYSQL_CHECK_ZLIB_WITH_COMPRESS
@@ -37,15 +34,10 @@ ENDMACRO()
3734

3835
MACRO (MYSQL_CHECK_ZLIB_WITH_COMPRESS)
3936

40-
IF(CMAKE_SYSTEM_NAME STREQUAL "OS400" OR
41-
CMAKE_SYSTEM_NAME STREQUAL "AIX" OR
42-
CMAKE_SYSTEM_NAME STREQUAL "Windows")
43-
# Use bundled zlib on some platforms by default (system one is too
44-
# old or not existent)
37+
# For NDBCLUSTER: Use bundled zlib by default
4538
IF (NOT WITH_ZLIB)
4639
SET(WITH_ZLIB "bundled" CACHE STRING "By default use bundled zlib on this platform")
4740
ENDIF()
48-
ENDIF()
4941

5042
IF(WITH_ZLIB STREQUAL "bundled")
5143
MYSQL_USE_BUNDLED_ZLIB()

debian/dist/Ubuntu/rules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/make -f
22

33
export DH_VERBOSE=1
4+
export DEB_BUILD_HARDENING=1
45

56
PACKAGE=mariadb-10.0
67

libmysqld/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright (c) 2006, 2011, Oracle and/or its affiliates.
2+
# Copyright (c) 2009, 2018, MariaDB Corporation
23
#
34
# This program is free software; you can redistribute it and/or modify
45
# it under the terms of the GNU General Public License as published by
@@ -184,4 +185,3 @@ IF(NOT DISABLE_SHARED)
184185
ENDIF()
185186
ENDIF()
186187
ENDIF()
187-

0 commit comments

Comments
 (0)