[packages/percona-server] Rel 3; make it buildable with latest protobuf
arekm
arekm at pld-linux.org
Tue Sep 30 15:40:13 CEST 2025
commit f86b402a2f066410005d6819c69cc21c5e24edc6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Sep 30 15:40:01 2025 +0200
Rel 3; make it buildable with latest protobuf
build.patch | 25 +++++++++++++++++++++++++
percona-server.spec | 2 +-
2 files changed, 26 insertions(+), 1 deletion(-)
---
diff --git a/percona-server.spec b/percona-server.spec
index 7ef0e9a..01daaec 100644
--- a/percona-server.spec
+++ b/percona-server.spec
@@ -41,7 +41,7 @@
%undefine with_coredumper
%endif
-%define rel 2
+%define rel 3
%define percona_git_rel 53
%define percona_rel 48
Summary: Percona Server: a very fast and reliable SQL database engine
diff --git a/build.patch b/build.patch
index 1541a5b..b2f92bc 100644
--- a/build.patch
+++ b/build.patch
@@ -93,3 +93,28 @@
#include <portability/toku_config.h>
#include <stdint.h>
+--- percona-server-5.7.44-48/rapid/plugin/x/CMakeLists.txt~ 2025-09-30 11:19:36.000000000 +0200
++++ percona-server-5.7.44-48/rapid/plugin/x/CMakeLists.txt 2025-09-30 11:31:56.041951482 +0200
+@@ -30,6 +30,9 @@ ENDIF()
+ DOWNGRADE_OPENSSL3_DEPRECATION_WARNINGS(
+ mysqlxtest_src/mysql41_hash.cc)
+
++set(CMAKE_CXX_STANDARD 17)
++set(CMAKE_CXX_STANDARD_REQUIRED ON)
++
+ # Note that no COMPONENTS option is to be used for header only components,
+ # it would try to find a library
+ SET(Boost_USE_STATIC_LIBS OFF)
+@@ -201,6 +201,12 @@ ELSE()
+
+ ADD_DEPENDENCIES(mysqlxtest GenError)
+
++ find_package(PkgConfig REQUIRED)
++ pkg_check_modules(PROTOBUF REQUIRED IMPORTED_TARGET protobuf)
++
++ # Headers/compile flags come from the imported target too
++ target_link_libraries(mysqlxtest PRIVATE PkgConfig::PROTOBUF)
++
+ MY_CHECK_CXX_COMPILER_FLAG("-Wunused-but-set-parameter" HAVE_UNUSED_BUT_SET)
+ IF(HAVE_UNUSED_BUT_SET)
+ ADD_COMPILE_FLAGS(${mysqlxtest_SRC} COMPILE_FLAGS
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/percona-server.git/commitdiff/f86b402a2f066410005d6819c69cc21c5e24edc6
More information about the pld-cvs-commit
mailing list