Skip to content

Commit 0090671

Browse files
committed
Merge branch '10.2' into bb-10.3-merge
2 parents 055c09a + 91d506c commit 0090671

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,5 +503,5 @@ ENDIF()
503503

504504
IF(NON_DISTRIBUTABLE_WARNING)
505505
MESSAGE(WARNING "
506-
You have linked MariaDB with GPLv3 libraries! You may not distribute the resulting binary. If you do, you will put yourself into a legal problem with Free Software Foundation.")
506+
You have linked MariaDB with ${NON_DISTRIBUTABLE_WARNING} libraries! You may not distribute the resulting binary. If you do, you will put yourself into a legal problem with the Free Software Foundation.")
507507
ENDIF()

cmake/readline.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ MACRO (MYSQL_FIND_SYSTEM_READLINE)
134134
SET(USE_NEW_READLINE_INTERFACE 1)
135135
ELSE()
136136
IF(NOT_FOR_DISTRIBUTION)
137-
SET(NON_DISTRIBUTABLE_WARNING 1)
137+
SET(NON_DISTRIBUTABLE_WARNING "GPLv3")
138138
SET(USE_NEW_READLINE_INTERFACE 1)
139139
ELSE()
140140
SET(USE_NEW_READLINE_INTERFACE 0)

configure.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ SET(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} -DPACKAGE=test) # b
260260
CHECK_INCLUDE_FILES (bfd.h BFD_H_EXISTS)
261261
IF(BFD_H_EXISTS)
262262
IF(NOT_FOR_DISTRIBUTION)
263-
SET(NON_DISTRIBUTABLE_WARNING 1)
263+
SET(NON_DISTRIBUTABLE_WARNING "GPLv3")
264264
SET(HAVE_BFD_H 1)
265265
ENDIF()
266266
ENDIF()

plugin/aws_key_management/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ MACRO(SKIP_AWS_PLUGIN msg)
1717
ENDMACRO()
1818
SET(CMAKE_CXX_STANDARD 11)
1919

20-
20+
IF(NOT NOT_FOR_DISTRIBUTION)
21+
SKIP_AWS_PLUGIN("AWS SDK has Apache 2.0 License which is not complatible with GPLv2. Set -DNOT_FOR_DISTRIBUTION=ON if you need this plugin")
22+
ENDIF()
2123

2224
# This plugin needs recent C++ compilers (AWS C++ SDK header files are using C++11 features)
2325
SET(CXX11_FLAGS)
@@ -167,4 +169,6 @@ MYSQL_ADD_PLUGIN(aws_key_management aws_key_management_plugin.cc
167169
LINK_LIBRARIES ${AWS_SDK_LIBS} ${AWS_CPP_SDK_DEPENDENCIES}
168170
COMPONENT aws-key-management)
169171

170-
172+
IF (TARGET aws_key_management)
173+
SET(NON_DISTRIBUTABLE_WARNING "Apache 2.0" PARENT_SCOPE)
174+
ENDIF()

scripts/mysql_install_db.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,8 @@ fi
303303
parse_arguments `"$print_defaults" $defaults $defaults_group_suffix --mysqld mysql_install_db`
304304
parse_arguments PICK-ARGS-FROM-ARGV "$@"
305305

306+
rel_mysqld="$dirname0/@INSTALL_SBINDIR@/mysqld"
307+
306308
# Configure paths to support files
307309
if test -n "$srcdir"
308310
then
@@ -344,12 +346,12 @@ then
344346
fi
345347
plugindir=`find_in_dirs --dir auth_socket.so $basedir/lib*/plugin $basedir/lib*/mysql/plugin`
346348
# relative from where the script was run for a relocatable install
347-
elif test -n "$dirname0" -a -x "$dirname0/@INSTALL_SBINDIR@/mysqld"
349+
elif test -n "$dirname0" -a -x "$rel_mysqld" -a ! "$rel_mysqld" -ef "@sbindir@/mysqld"
348350
then
349351
basedir="$dirname0"
350-
bindir="$basedir/@INSTALL_SBINDIR@"
352+
bindir="$basedir/@INSTALL_BINDIR@"
351353
resolveip="$bindir/resolveip"
352-
mysqld="$basedir/@INSTALL_SBINDIR@/mysqld"
354+
mysqld="$rel_mysqld"
353355
srcpkgdatadir="$basedir/@INSTALL_MYSQLSHAREDIR@"
354356
buildpkgdatadir="$basedir/@INSTALL_MYSQLSHAREDIR@"
355357
plugindir="$basedir/@INSTALL_PLUGINDIR@"

0 commit comments

Comments
 (0)