Skip to content

Commit 22c1af8

Browse files
committed
Bug#35254810 Bump the server version on mysql-trunk from 8.0 to 8.1
In addition, bump the libmysqlclient major version from 21 to 22 and reset the minor version to 0. Update packaging scripts accordingly. Update an NDB unit test to reflect the version change. Update some tests to accommodate the change. Change-Id: I98ed6720dc2710d1abb56ec19d937fd6dab18dae
1 parent 4709555 commit 22c1af8

File tree

13 files changed

+36
-26
lines changed

13 files changed

+36
-26
lines changed

MYSQL_VERSION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
MYSQL_VERSION_MAJOR=8
2-
MYSQL_VERSION_MINOR=0
3-
MYSQL_VERSION_PATCH=34
4-
MYSQL_VERSION_EXTRA=-tr
2+
MYSQL_VERSION_MINOR=1
3+
MYSQL_VERSION_PATCH=0
4+
MYSQL_VERSION_EXTRA=

cmake/mysql_version.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
# Global constants, only to be changed between major releases.
2525
#
2626

27-
SET(SHARED_LIB_MAJOR_VERSION "21")
28-
SET(SHARED_LIB_MINOR_VERSION "3")
27+
SET(SHARED_LIB_MAJOR_VERSION "22")
28+
SET(SHARED_LIB_MINOR_VERSION "0")
2929
SET(PROTOCOL_VERSION "10")
3030

3131
# Generate "something" to trigger cmake rerun when MYSQL_VERSION changes

mysql-test/suite/x/r/upgrade.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ include/assert_error_log_sequence.inc [server: 1, pattern: SAVEPOS]
1111
# restart: --datadir=DATADIR
1212

1313
## b) Confirm that X Plugin "accepting" logs are printed after upgrade.
14-
include/assert_error_log_sequence.inc [server: 1, pattern: System.*Server upgrade from '50700' to '800..' started.
15-
System.*Server upgrade from '50700' to '800..' completed.
14+
include/assert_error_log_sequence.inc [server: 1, pattern: System.*Server upgrade from '50700' to '801..' started.
15+
System.*Server upgrade from '50700' to '801..' completed.
1616
System.*X Plugin ready for connections. Bind-address: .* port: ]
1717

1818
## Cleanup: restart the server and restore the default database.

mysql-test/suite/x/t/upgrade.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ source include/restart_mysqld.inc;
3030
disable_query_log;
3131
CREATE SCHEMA mtr;
3232
enable_query_log;
33-
let $error_pattern =System.*Server upgrade from '50700' to '800..' started.
34-
System.*Server upgrade from '50700' to '800..' completed.
33+
let $error_pattern =System.*Server upgrade from '50700' to '801..' started.
34+
System.*Server upgrade from '50700' to '801..' completed.
3535
System.*X Plugin ready for connections. Bind-address: .* port: ;
3636

3737
let $ignore_line_count=0;

packaging/deb-in/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,15 @@ override_dh_strip:
172172
dh_strip -pmysql-server
173173
dh_strip -pmysql-client
174174
dh_strip -pmysql-testsuite
175-
dh_strip -plibmysqlclient21 --dbg-package=libmysqlclient21-dbgsym
175+
dh_strip -plibmysqlclient22 --dbg-package=libmysqlclient22-dbgsym
176176
dh_strip -plibmysqlclient-dev
177177
")
178178
SET (DEB_CONTROL_DBGSYM_DEFAULT
179179
"
180-
Package: libmysqlclient21-dbgsym
180+
Package: libmysqlclient22-dbgsym
181181
Architecture: any
182182
Section: debug
183-
Depends: libmysqlclient21 (=\${binary:Version}), \${misc:Depends}
183+
Depends: libmysqlclient22 (=\${binary:Version}), \${misc:Depends}
184184
Description: Debugging symbols for client library
185185
186186
Package: mysql-${DEB_PRODUCTNAME}-test-dbgsym

packaging/deb-in/control.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Description: MySQL Client Core Binaries
221221
Oracle. This package contains the MySQL client binaries.
222222

223223

224-
Package: libmysqlclient21
224+
Package: libmysqlclient22
225225
Architecture: any
226226
Section: libs
227227
Pre-Depends: ${misc:Pre-Depends}
@@ -266,7 +266,7 @@ Description: Common files shared between packages
266266
Package: libmysqlclient-dev
267267
Architecture: any
268268
Section: libdevel
269-
Depends: libmysqlclient21 (= ${binary:Version}),
269+
Depends: libmysqlclient22 (= ${binary:Version}),
270270
${shlibs:Depends}, ${misc:Depends}
271271
Breaks: libmysqld-dev
272272
Replaces: mysql-client-5.6, mysql-client-core-5.6,

packaging/deb-in/libmysqlclient21-dbgsym.install.in renamed to packaging/deb-in/libmysqlclient22-dbgsym.install.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2222

2323
# legal
24-
usr/share/mysql-@MYSQL_BASE_VERSION@/LICENSE usr/share/doc/libmysqlclient21-dbgsym/
25-
usr/share/mysql-@MYSQL_BASE_VERSION@/README usr/share/doc/libmysqlclient21-dbgsym/
24+
usr/share/mysql-@MYSQL_BASE_VERSION@/LICENSE usr/share/doc/libmysqlclient22-dbgsym/
25+
usr/share/mysql-@MYSQL_BASE_VERSION@/README usr/share/doc/libmysqlclient22-dbgsym/

packaging/deb-in/libmysqlclient21.install.in renamed to packaging/deb-in/libmysqlclient22.install.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# along with this program; if not, write to the Free Software
2121
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2222

23-
usr/lib/*/libmysqlclient.so.21*
23+
usr/lib/*/libmysqlclient.so.22*
2424
# legal
25-
usr/share/mysql-@MYSQL_BASE_VERSION@/LICENSE usr/share/doc/libmysqlclient21/
26-
usr/share/mysql-@MYSQL_BASE_VERSION@/README usr/share/doc/libmysqlclient21/
25+
usr/share/mysql-@MYSQL_BASE_VERSION@/LICENSE usr/share/doc/libmysqlclient22/
26+
usr/share/mysql-@MYSQL_BASE_VERSION@/README usr/share/doc/libmysqlclient22/

packaging/deb-in/libmysqlclient21.lintian-overrides.in renamed to packaging/deb-in/libmysqlclient22.lintian-overrides.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2222

2323
# Additional license file is needed so overriding this warning
24-
libmysqlclient21: extra-license-file
24+
libmysqlclient22: extra-license-file
2525

2626
# Due to static linking this cannot be avoided and hence being overridden
27-
libmysqlclient21: embedded-library
27+
libmysqlclient22: embedded-library

packaging/rpm-fedora/mysql.spec.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ rm -r $(readlink var) var
954954
%doc %{?license_files_server}
955955
%dir %attr(755, root, root) %{_libdir}/mysql
956956
%attr(644, root, root) %{_sysconfdir}/ld.so.conf.d/mysql-%{_arch}.conf
957-
%{_libdir}/mysql/libmysqlclient.so.21*
957+
%{_libdir}/mysql/libmysqlclient.so.22*
958958

959959
%files client-plugins
960960
%defattr(-, root, root, -)
@@ -1242,6 +1242,9 @@ rm -r $(readlink var) var
12421242
%endif # with_router
12431243

12441244
%changelog
1245+
* Wed Apr 05 2023 Erlend Dahl <[email protected]> - 8.1.0-1
1246+
- Bump in the major version of MySQL, so increase the libmysqlclient major version to 22.
1247+
12451248
* Wed Mar 01 2023 Harin Vadodaria <[email protected]> - 8.0.34-1
12461249
- Added components, libraries and binaries related to event tracking
12471250

0 commit comments

Comments
 (0)