Skip to content

Commit 6d05a95

Browse files
committed
Merge 10.5 into 10.6
2 parents 666565c + e4205fb commit 6d05a95

19 files changed

+63
-203
lines changed

cmake/Internal/CPack/CPackRPM.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ endmacro()
2424

2525
set_from_component(LICENSE)
2626
set_from_component(VENDOR)
27+
set_from_component(VERSION)
2728

2829
#
2930
# Support for the %posttrans scriptlet
@@ -80,6 +81,7 @@ set(CMAKE_MODULE_PATH ${orig_CMAKE_MODULE_PATH})
8081

8182
restore(LICENSE)
8283
restore(VENDOR)
84+
restore(VERSION)
8385
if(${orig_${base_var}})
8486
set(${base_var} ${orig_${base_var}})
8587
endif()

cmake/cpack_deb.cmake

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,18 @@ SET(CPACK_COMPONENT_SERVER_GROUP "server")
77
SET(CPACK_COMPONENT_README_GROUP "server")
88
SET(CPACK_COMPONENTS_ALL Server Test SharedLibraries)
99
SET(PYTHON_SHEBANG "/usr/bin/python3" CACHE STRING "python shebang")
10+
11+
FUNCTION(SET_PLUGIN_DEB_VERSION plugin ver)
12+
STRING(REPLACE "_" "-" plugin ${plugin})
13+
STRING(REPLACE "-" "." serverver ${SERVER_VERSION})
14+
STRING(REPLACE ${SERVER_VERSION} ${serverver} ver ${ver})
15+
FILE(READ ${CMAKE_SOURCE_DIR}/debian/changelog changelog)
16+
STRING(REPLACE ${serverver} ${ver} changelog "${changelog}")
17+
FILE(WRITE ${CMAKE_SOURCE_DIR}/debian/mariadb-plugin-${plugin}.changelog "${changelog}")
18+
ENDFUNCTION()
19+
20+
ELSE(DEB)
21+
FUNCTION(SET_PLUGIN_DEB_VERSION plugin ver)
22+
ENDFUNCTION()
1023
ENDIF(DEB)
1124

cmake/cpack_rpm.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ SET(CPACK_COMPONENTS_ALL Server ManPagesServer IniFiles Server_Scripts
3333
)
3434

3535
SET(CPACK_RPM_PACKAGE_NAME ${CPACK_PACKAGE_NAME})
36+
SET(CPACK_RPM_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION})
3637
IF(CMAKE_VERSION VERSION_LESS "3.6.0")
37-
SET(CPACK_PACKAGE_FILE_NAME "${CPACK_RPM_PACKAGE_NAME}-${VERSION}-${RPM}-${CMAKE_SYSTEM_PROCESSOR}")
38+
SET(CPACK_PACKAGE_FILE_NAME "${CPACK_RPM_PACKAGE_NAME}-${CPACK_RPM_PACKAGE_VERSION}-${RPM}-${CMAKE_SYSTEM_PROCESSOR}")
3839
ELSE()
3940
SET(CPACK_RPM_FILE_NAME "RPM-DEFAULT")
4041
OPTION(CPACK_RPM_DEBUGINFO_PACKAGE "" ON)
4142
MARK_AS_ADVANCED(CPACK_RPM_DEBUGINFO_PACKAGE)
42-
SET(CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX "/usr/src/debug/${CPACK_RPM_PACKAGE_NAME}-${VERSION}")
43+
SET(CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX "/usr/src/debug/${CPACK_RPM_PACKAGE_NAME}-${CPACK_RPM_PACKAGE_VERSION}")
4344
ENDIF()
4445

4546
SET(CPACK_RPM_PACKAGE_RELEASE "1%{?dist}")

cmake/mysql_version.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ IF(NOT "${MAJOR_VERSION}" MATCHES "[0-9]+" OR
5757
ENDIF()
5858

5959
SET(VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}${EXTRA_VERSION}")
60+
SET(SERVER_VERSION ${VERSION})
6061
MESSAGE(STATUS "MariaDB ${VERSION}")
6162
SET(MYSQL_BASE_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}" CACHE INTERNAL "MySQL Base version")
6263
SET(MYSQL_NO_DASH_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")

cmake/plugin.cmake

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ INCLUDE(CMakeParseArguments)
2828
# [STATIC_OUTPUT_NAME static_name]
2929
# [COMPONENT component]
3030
# [CONFIG cnf_file_name]
31+
# [VERSION version_string]
3132
# [LINK_LIBRARIES lib1...libN]
3233
# [DEPENDENCIES target1...targetN]
3334

3435
MACRO(MYSQL_ADD_PLUGIN)
3536
CMAKE_PARSE_ARGUMENTS(ARG
3637
"STORAGE_ENGINE;STATIC_ONLY;MODULE_ONLY;MANDATORY;DEFAULT;DISABLED;NOT_EMBEDDED;RECOMPILE_FOR_EMBEDDED;CLIENT"
37-
"MODULE_OUTPUT_NAME;STATIC_OUTPUT_NAME;COMPONENT;CONFIG"
38+
"MODULE_OUTPUT_NAME;STATIC_OUTPUT_NAME;COMPONENT;CONFIG;VERSION"
3839
"LINK_LIBRARIES;DEPENDENCIES"
3940
${ARGN}
4041
)
@@ -117,6 +118,10 @@ MACRO(MYSQL_ADD_PLUGIN)
117118
IF(NOT ARG_DEPENDENCIES)
118119
SET(ARG_DEPENDENCIES)
119120
ENDIF()
121+
122+
IF(ARG_VERSION)
123+
SET(version_string ";PLUGIN_${plugin}_VERSION=\"${ARG_VERSION}\"")
124+
ENDIF()
120125

121126
IF(NOT ARG_MODULE_OUTPUT_NAME)
122127
IF(ARG_STORAGE_ENGINE)
@@ -153,7 +158,7 @@ MACRO(MYSQL_ADD_PLUGIN)
153158
DTRACE_INSTRUMENT(${target}_embedded)
154159
IF(ARG_RECOMPILE_FOR_EMBEDDED)
155160
SET_TARGET_PROPERTIES(${target}_embedded
156-
PROPERTIES COMPILE_DEFINITIONS "EMBEDDED_LIBRARY")
161+
PROPERTIES COMPILE_DEFINITIONS "EMBEDDED_LIBRARY${version_string}")
157162
ENDIF()
158163
ADD_DEPENDENCIES(${target}_embedded GenError)
159164
ENDIF()
@@ -204,7 +209,7 @@ MACRO(MYSQL_ADD_PLUGIN)
204209
SET_TARGET_PROPERTIES (${target} PROPERTIES PREFIX "")
205210
IF (NOT ARG_CLIENT)
206211
SET_TARGET_PROPERTIES (${target} PROPERTIES
207-
COMPILE_DEFINITIONS "MYSQL_DYNAMIC_PLUGIN")
212+
COMPILE_DEFINITIONS "MYSQL_DYNAMIC_PLUGIN${version_string}")
208213
ENDIF()
209214

210215
TARGET_LINK_LIBRARIES (${target} mysqlservices ${ARG_LINK_LIBRARIES})
@@ -240,7 +245,8 @@ MACRO(MYSQL_ADD_PLUGIN)
240245
NOT CPACK_COMPONENTS_ALL MATCHES ${ARG_COMPONENT}
241246
AND INSTALL_SYSCONF2DIR)
242247
IF (ARG_STORAGE_ENGINE)
243-
SET(ver " = %{version}-%{release}")
248+
STRING(REPLACE "-" "_" ver ${SERVER_VERSION})
249+
SET(ver " = ${ver}-%{release}")
244250
ELSE()
245251
SET(ver "")
246252
ENDIF()
@@ -251,6 +257,10 @@ MACRO(MYSQL_ADD_PLUGIN)
251257
SET(CPACK_RPM_${ARG_COMPONENT}_PACKAGE_REQUIRES "MariaDB-server${ver}" PARENT_SCOPE)
252258
ENDIF()
253259
SET(CPACK_RPM_${ARG_COMPONENT}_USER_FILELIST ${ignored} PARENT_SCOPE)
260+
IF (ARG_VERSION)
261+
SET(CPACK_RPM_${ARG_COMPONENT}_PACKAGE_VERSION ${SERVER_VERSION}_${ARG_VERSION} PARENT_SCOPE)
262+
SET_PLUGIN_DEB_VERSION(${target} ${SERVER_VERSION}-${ARG_VERSION})
263+
ENDIF()
254264
IF(NOT ARG_CLIENT AND UNIX)
255265
IF (NOT ARG_CONFIG)
256266
SET(ARG_CONFIG "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${target}.cnf")

debian/autobake-deb.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,11 @@ PATCHLEVEL="+maria"
9191
LOGSTRING="MariaDB build"
9292
CODENAME="$(lsb_release -sc)"
9393
EPOCH="1:"
94+
VERSION="${EPOCH}${UPSTREAM}${PATCHLEVEL}~${CODENAME}"
9495

95-
dch -b -D "${CODENAME}" -v "${EPOCH}${UPSTREAM}${PATCHLEVEL}~${CODENAME}" "Automatic build with ${LOGSTRING}."
96+
dch -b -D "${CODENAME}" -v "${VERSION}" "Automatic build with ${LOGSTRING}."
9697

97-
echo "Creating package version ${EPOCH}${UPSTREAM}${PATCHLEVEL}~${CODENAME} ... "
98+
echo "Creating package version ${VERSION} ... "
9899

99100
# On Travis CI and Gitlab-CI, use -b to build binary only packages as there is
100101
# no need to waste time on generating the source package.

debian/control

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ Build-Depends: bison,
1010
dh-apparmor,
1111
dh-exec,
1212
dh-systemd,
13-
flex [i386 amd64],
13+
flex [amd64],
1414
gdb,
1515
libaio-dev [linux-any],
1616
libarchive-dev,
17-
libboost-atomic-dev [i386 amd64],
18-
libboost-chrono-dev [i386 amd64],
19-
libboost-date-time-dev [i386 amd64],
17+
libboost-atomic-dev [amd64],
18+
libboost-chrono-dev [amd64],
19+
libboost-date-time-dev [amd64],
2020
libboost-dev,
21-
libboost-filesystem-dev [i386 amd64],
22-
libboost-regex-dev [i386 amd64],
23-
libboost-system-dev [i386 amd64],
24-
libboost-thread-dev [i386 amd64],
21+
libboost-filesystem-dev [amd64],
22+
libboost-regex-dev [amd64],
23+
libboost-system-dev [amd64],
24+
libboost-thread-dev [amd64],
2525
libcrack2-dev (>= 2.9.0),
2626
libcurl4-openssl-dev | libcurl4-dev,
2727
libedit-dev,
@@ -35,7 +35,7 @@ Build-Depends: bison,
3535
libnuma-dev [linux-any],
3636
libpam0g-dev,
3737
libpcre2-dev,
38-
libreadline-gplv2-dev [i386 amd64],
38+
libreadline-gplv2-dev [amd64],
3939
libsnappy-dev,
4040
libssl-dev,
4141
libssl-dev:native,
@@ -448,7 +448,7 @@ Depends: galera-4 (>=26.4),
448448
lsb-base (>= 3.0-10),
449449
lsof [linux-any],
450450
mariadb-client-10.6 (>= ${source:Version}),
451-
mariadb-server-core-10.6 (>= ${binary:Version}),
451+
mariadb-server-core-10.6 (>= ${server:Version}),
452452
passwd,
453453
perl (>= 5.6),
454454
procps,
@@ -554,7 +554,7 @@ Description: Backup tool for MariaDB server
554554
Package: mariadb-plugin-connect
555555
Architecture: any
556556
Depends: libxml2,
557-
mariadb-server-10.6 (= ${binary:Version}),
557+
mariadb-server-10.6 (= ${server:Version}),
558558
unixodbc,
559559
${misc:Depends},
560560
${shlibs:Depends}
@@ -575,7 +575,7 @@ Description: Connect storage engine for MariaDB
575575
Package: mariadb-plugin-s3
576576
Architecture: any
577577
Depends: libcurl4,
578-
mariadb-server-10.6 (= ${binary:Version}),
578+
mariadb-server-10.6 (= ${server:Version}),
579579
${misc:Depends},
580580
${shlibs:Depends}
581581
Description: Amazon S3 archival storage engine for MariaDB
@@ -585,7 +585,7 @@ Description: Amazon S3 archival storage engine for MariaDB
585585

586586
Package: mariadb-plugin-rocksdb
587587
Architecture: amd64 arm64 mips64el ppc64el
588-
Depends: mariadb-server-10.6 (= ${binary:Version}),
588+
Depends: mariadb-server-10.6 (= ${server:Version}),
589589
python3,
590590
rocksdb-tools,
591591
${misc:Depends},
@@ -605,7 +605,7 @@ Description: RocksDB storage engine for MariaDB
605605
Package: mariadb-plugin-oqgraph
606606
Architecture: any
607607
Depends: libjudydebian1,
608-
mariadb-server-10.6 (= ${binary:Version}),
608+
mariadb-server-10.6 (= ${server:Version}),
609609
${misc:Depends},
610610
${shlibs:Depends}
611611
Breaks: mariadb-oqgraph-engine-10.1,
@@ -623,7 +623,7 @@ Description: OQGraph storage engine for MariaDB
623623

624624
Package: mariadb-plugin-mroonga
625625
Architecture: any-alpha any-amd64 any-arm any-arm64 any-i386 any-ia64 any-mips64el any-mips64r6el any-mipsel any-mipsr6el any-nios2 any-powerpcel any-ppc64el any-sh3 any-sh4 any-tilegx
626-
Depends: mariadb-server-10.6 (= ${binary:Version}),
626+
Depends: mariadb-server-10.6 (= ${server:Version}),
627627
${misc:Depends},
628628
${shlibs:Depends}
629629
Breaks: mariadb-server-10.0,
@@ -643,7 +643,7 @@ Description: Mroonga storage engine for MariaDB
643643

644644
Package: mariadb-plugin-spider
645645
Architecture: any
646-
Depends: mariadb-server-10.6 (= ${binary:Version}),
646+
Depends: mariadb-server-10.6 (= ${server:Version}),
647647
${misc:Depends},
648648
${shlibs:Depends}
649649
Breaks: mariadb-server-10.0,
@@ -665,7 +665,7 @@ Description: Spider storage engine for MariaDB
665665
Package: mariadb-plugin-gssapi-server
666666
Architecture: any
667667
Depends: libgssapi-krb5-2,
668-
mariadb-server-10.6 (= ${binary:Version}),
668+
mariadb-server-10.6,
669669
${misc:Depends},
670670
${shlibs:Depends}
671671
Breaks: mariadb-gssapi-server-10.1,
@@ -706,7 +706,7 @@ Description: GSSAPI authentication plugin for MariaDB client
706706
Package: mariadb-plugin-cracklib-password-check
707707
Architecture: any
708708
Depends: libcrack2 (>= 2.9.0),
709-
mariadb-server-10.6 (= ${binary:Version}),
709+
mariadb-server-10.6,
710710
${misc:Depends},
711711
${shlibs:Depends}
712712
Description: CrackLib Password Validation Plugin for MariaDB
@@ -718,7 +718,7 @@ Description: CrackLib Password Validation Plugin for MariaDB
718718
Package: mariadb-test
719719
Architecture: any
720720
Depends: mariadb-client-10.6 (= ${binary:Version}),
721-
mariadb-server-10.6 (= ${binary:Version}),
721+
mariadb-server-10.6 (= ${server:Version}),
722722
mariadb-test-data (= ${source:Version}),
723723
virtual-mysql-testsuite,
724724
${misc:Depends},

debian/rules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
8282
dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_configure --builddirectory=builddir-native
8383
dh_auto_build --builddirectory=builddir-native -- import_executables
8484
endif
85+
echo "server:Version=$(DEB_VERSION)" >> debian/substvars
8586

8687
# Don't build ColumnStore as part of the native build, only build it when
8788
# triggered by autobake-deb.sh. Saves build time and disk space.
@@ -186,6 +187,8 @@ override_dh_installinit-arch:
186187
dh_installinit --name=mariadb --no-start -- defaults 19 21
187188
dh_systemd_start --restart-after-upgrade
188189

190+
override_dh_gencontrol:
191+
dh_gencontrol -- -Tdebian/substvars
189192

190193
# If a file is not supposed to be included anywhere, add it to the not-installed
191194
# file and document the reason. Note that dh_install supports the above mentioned

mysql-test/suite/sys_vars/r/innodb_idle_flush_pct_basic.result

Lines changed: 0 additions & 77 deletions
This file was deleted.

mysql-test/suite/sys_vars/r/sysvars_innodb,32bit.rdiff

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,6 @@
188188
VARIABLE_COMMENT Total memory allocated for InnoDB Fulltext Search cache
189189
NUMERIC_MIN_VALUE 32000000
190190
NUMERIC_MAX_VALUE 1600000000
191-
@@ -1057,7 +1057,7 @@
192-
SESSION_VALUE NULL
193-
DEFAULT_VALUE 100
194-
VARIABLE_SCOPE GLOBAL
195-
-VARIABLE_TYPE BIGINT UNSIGNED
196-
+VARIABLE_TYPE INT UNSIGNED
197-
VARIABLE_COMMENT Up to what percentage of dirty pages should be flushed when innodb finds it has spare resources to do so.
198-
NUMERIC_MIN_VALUE 0
199-
NUMERIC_MAX_VALUE 100
200191
@@ -1093,22 +1093,22 @@
201192
SESSION_VALUE NULL
202193
DEFAULT_VALUE 200

0 commit comments

Comments
 (0)