Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PKG-228 Packaging tasks for release - PS 9.1.0-1 #5526

Merged
merged 4 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build-ps/debian/percona-mysql-router.install
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ usr/lib/mysqlrouter/private/libmysqlrouter_routing_connections.so.1
usr/lib/mysqlrouter/private/libmysqlrouter_destination_status.so.1
usr/lib/mysqlrouter/private/libmysqlrouter_cluster.so.1
usr/lib/mysqlrouter/private/libmysqlrouter_mysqlxclient.so.1
usr/lib/mysqlrouter/private/libmysqlrouter_mysqlclient.so.1
usr/lib/mysqlrouter/private/libmysqlrouter_utils.so.1
usr/lib/mysqlrouter/private/libmysqlrouter_http_server.so.1
usr/lib/mysqlrouter/private/libmysqlrouter_mysql.so.1
Expand Down
6 changes: 6 additions & 0 deletions build-ps/debian/percona-server-server.install
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ usr/lib/mysql/plugin/authentication_webauthn_client.so
usr/lib/mysql/plugin/component_test_server_telemetry_metrics.so
usr/lib/mysql/plugin/component_test_session_var_service.so
usr/lib/mysql/plugin/mysql_native_password.so
usr/lib/mysql/plugin/component_test_server_telemetry_logs_client.so
usr/lib/mysql/plugin/component_test_server_telemetry_logs_export.so
usr/lib/mysql/plugin/authentication_openid_connect_client.so

usr/lib/mysql/plugin/debug/component_mysqlbackup.so
usr/lib/mysql/plugin/debug/component_percona_telemetry.so
Expand Down Expand Up @@ -200,6 +203,9 @@ usr/lib/mysql/plugin/debug/authentication_webauthn_client.so
usr/lib/mysql/plugin/debug/component_test_server_telemetry_metrics.so
usr/lib/mysql/plugin/debug/component_test_session_var_service.so
usr/lib/mysql/plugin/debug/mysql_native_password.so
usr/lib/mysql/plugin/debug/component_test_server_telemetry_logs_client.so
usr/lib/mysql/plugin/debug/component_test_server_telemetry_logs_export.so
usr/lib/mysql/plugin/debug/authentication_openid_connect_client.so

# Percona plugins
usr/lib/mysql/plugin/auth_pam.so
Expand Down
10 changes: 8 additions & 2 deletions build-ps/percona-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,6 @@ mkdir debug
%{?ssl_option} \
%{?mecab_option} \
-DCOMPILATION_COMMENT="%{compilation_comment_debug}" %{TOKUDB_FLAGS} %{TOKUDB_DEBUG_OFF} %{ROCKSDB_FLAGS}
echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG
make %{?_smp_mflags} VERBOSE=1
)
# Build full release
Expand Down Expand Up @@ -624,7 +623,6 @@ mkdir release
%{?ssl_option} \
%{?mecab_option} \
-DCOMPILATION_COMMENT="%{compilation_comment_release}" %{TOKUDB_FLAGS} %{TOKUDB_DEBUG_OFF} %{ROCKSDB_FLAGS}
echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG
make %{?_smp_mflags} VERBOSE=1
)

Expand Down Expand Up @@ -1138,6 +1136,10 @@ fi
%attr(755, root, root) %{_libdir}/mysql/plugin/component_test_mysql_signal_handler.so
%attr(755, root, root) %{_libdir}/mysql/plugin/component_test_session_var_service.so
%attr(755, root, root) %{_libdir}/mysql/plugin/mysql_native_password.so
%attr(755, root, root) %{_libdir}/mysql/plugin/authentication_openid_connect_client.so
%attr(755, root, root) %{_libdir}/mysql/plugin/component_test_server_telemetry_logs_client.so
%attr(755, root, root) %{_libdir}/mysql/plugin/component_test_server_telemetry_logs_export.so


%dir %{_libdir}/mysql/plugin/debug
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/adt_null.so
Expand Down Expand Up @@ -1189,6 +1191,9 @@ fi
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/component_keyring_file.so
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/component_test_session_var_service.so
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/mysql_native_password.so
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/component_test_server_telemetry_logs_client.so
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/component_test_server_telemetry_logs_export.so
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/authentication_openid_connect_client.so
%if 0%{?rhel} >= 8
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/authentication_webauthn_client.so
%endif
Expand Down Expand Up @@ -1603,6 +1608,7 @@ fi
%{_libdir}/mysqlrouter/private/libmysqlrouter_destination_status.so.*
%{_libdir}/mysqlrouter/private/libmysqlrouter_cluster.so.*
%{_libdir}/mysqlrouter/private/libmysqlrouter_mysqlxclient.so.*
%{_libdir}/mysqlrouter/private/libmysqlrouter_mysqlclient.so.*
%{_libdir}/mysqlrouter/private/libmysqlrouter_utils.so.*
%{_libdir}/mysqlrouter/private/libmysqlrouter_http_server.so.*
%{_libdir}/mysqlrouter/private/libmysqlrouter_mysql.so.*
Expand Down
49 changes: 21 additions & 28 deletions build-ps/rpm/mysql-5.7-sharedlib-rename.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
- LINK_LIBRARIES perconaserverclient
+ LINK_LIBRARIES mysqlclient
)
IF (WITH_COREDUMPER)
TARGET_LINK_LIBRARIES(mysqltest coredumper)
@@ -67,23 +67,23 @@

IF(MY_COMPILER_IS_GNU AND (WITH_LTO OR CMAKE_COMPILER_FLAG_WITH_LTO))
@@ -72,23 +72,23 @@
check/mysqlcheck.cc
check/mysqlcheck_core.cc
multi_factor_passwordopt-vars.cc
Expand Down Expand Up @@ -46,7 +46,7 @@
)

OPTION(WITH_JSON_BINLOG_LIBRARY
@@ -240,7 +240,7 @@
@@ -256,7 +256,7 @@

SET(MYSQLBINLOG_LIBRARIES
mysql_binlog_event
Expand All @@ -55,7 +55,7 @@
)

IF(WITH_JSON_BINLOG_LIBRARY)
@@ -282,20 +282,20 @@
@@ -298,20 +298,20 @@
MYSQL_ADD_EXECUTABLE(mysqladmin
mysqladmin.cc
multi_factor_passwordopt-vars.cc
Expand Down Expand Up @@ -119,9 +119,9 @@
#define mysql_library_init mysql_server_init
--- libmysql/CMakeLists.txt
+++ libmysql/CMakeLists.txt
@@ -304,15 +304,15 @@
# authentication mysql_native_password client plug-in
ADD_SUBDIRECTORY(authentication_native_password)
@@ -307,15 +307,15 @@
# authentication openid connect client plug-in
ADD_SUBDIRECTORY(authentication_openid_connect_client)

-# Merge several convenience libraries into one big perconaserverclient
-MERGE_CONVENIENCE_LIBRARIES(perconaserverclient ${LIBS_TO_MERGE}
Expand All @@ -138,7 +138,7 @@

INSTALL_DEBUG_TARGET(auth_win_client DESTINATION ${INSTALL_LIBDIR}/debug)
INSTALL_DEBUG_TARGET(clientlib DESTINATION ${INSTALL_LIBDIR}/debug)
@@ -326,13 +326,13 @@
@@ -350,13 +350,13 @@
STRING_APPEND(OS_SHARED_LIB_VERSION
".${SHARED_LIB_MINOR_VERSION}.${SHARED_LIB_PATCH_VERSION}")
ENDIF()
Expand All @@ -149,32 +149,32 @@
SET(UNIX_VERSION VERSION "${OS_SHARED_LIB_VERSION}")
SET(UNIX_SOVERSION SOVERSION "${SHARED_LIB_MAJOR_VERSION}")
ENDIF()

-# Merge several convenience libraries into one big perconaserverclient
+# Merge several convenience libraries into one big mysqlclient
# and link them together into shared library.
MERGE_LIBRARIES_SHARED(libmysql ${LIBS_TO_MERGE}
EXPORTS
@@ -353,7 +353,7 @@
@@ -377,7 +377,7 @@

IF(LINUX_STANDALONE AND KERBEROS_CUSTOM_LIBRARY)
ADD_DEPENDENCIES(libmysql ${kerberos_target})
- ADD_DEPENDENCIES(perconaserverclient ${kerberos_target})
+ ADD_DEPENDENCIES(mysqlclient ${kerberos_target})
ENDIF()

IF(UNIX)
@@ -368,8 +368,8 @@
@@ -392,8 +392,8 @@
ENDIF()

# clean direct output needs to be set several targets have the same name
- #(perconaserverclient in this case)
- SET_TARGET_PROPERTIES(perconaserverclient PROPERTIES CLEAN_DIRECT_OUTPUT 1)
+ #(mysqlclient in this case)
+ SET_TARGET_PROPERTIES(mysqlclient PROPERTIES CLEAN_DIRECT_OUTPUT 1)
SET_TARGET_PROPERTIES(libmysql PROPERTIES CLEAN_DIRECT_OUTPUT 1)
ENDIF()

--- libmysql/libmysql.ver.in
+++ libmysql/libmysql.ver.in
@@ -21,5 +21,5 @@
Expand Down Expand Up @@ -206,17 +206,6 @@
${MYSQLX_CLIENT_FULL_LIB}
${MYSQLX_PROTOCOL_FULL_LIB}
ext::libprotobuf
--- router/src/router/src/CMakeLists.txt
+++ router/src/router/src/CMakeLists.txt
@@ -53,7 +53,7 @@
PUBLIC
harness_stdx
harness-library # log_debug
- perconaserverclient
+ mysqlclient
)

ROUTER_ADD_SHARED_LIBRARY(router_cluster
--- scripts/CMakeLists.txt
+++ scripts/CMakeLists.txt
@@ -302,7 +302,7 @@ ELSE()
Expand Down Expand Up @@ -271,13 +260,17 @@
ENDIF()
--- testclients/CMakeLists.txt
+++ testclients/CMakeLists.txt
@@ -24,9 +24,9 @@
@@ -24,7 +24,7 @@
ADD_WSHADOW_WARNING()

MYSQL_ADD_EXECUTABLE(mysql_client_test mysql_client_test.cc COMPONENT Test)
-TARGET_LINK_LIBRARIES(mysql_client_test perconaserverclient extra::rapidjson)
+TARGET_LINK_LIBRARIES(mysql_client_test mysqlclient extra::rapidjson)

# We *do* calculate that there is space, see:
# printf("Warning: MYSQL_TMP_DIR is too long. Logging is disabled.\n");
@@ -35,5 +35,5 @@

IF(WITH_UNIT_TESTS)
MYSQL_ADD_EXECUTABLE(bug25714 bug25714.cc SKIP_INSTALL EXCLUDE_FROM_PGO)
- TARGET_LINK_LIBRARIES(bug25714 perconaserverclient)
Expand Down