--- /dev/null
+--- mysql-5.7.27/rapid/plugin/x/ngs/include/ngs_common/protocol_protobuf.h.orig 2019-06-10 16:43:20.000000000 +0200
++++ mysql-5.7.27/rapid/plugin/x/ngs/include/ngs_common/protocol_protobuf.h 2019-07-29 19:19:29.421629353 +0200
+@@ -29,7 +29,9 @@
+ #include <google/protobuf/io/tokenizer.h>
+ #include <google/protobuf/io/zero_copy_stream.h>
+ #include <google/protobuf/wire_format_lite.h>
++#if GOOGLE_PROTOBUF_VERSION < 3008000
+ #include <google/protobuf/wire_format_lite_inl.h>
++#endif
+ #include <google/protobuf/dynamic_message.h>
+
+ #include "mysqlx_connection.pb.h"
%undefine with_tokudb
%endif
-%define rel 1
+%define rel 2
%define percona_rel 30
%include /usr/lib/rpm/macros.perl
Summary: MySQL: a very fast and reliable SQL database engine
# from fedora
Patch4: mysql-dubious-exports.patch
Patch5: mysql-cmake.patch
+Patch6: mysql-protobuf.patch
URL: https://www.percona.com/software/mysql-database/percona-server
BuildRequires: bison >= 1.875
BuildRequires: cmake >= 2.8.2
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
# to get these files rebuild
[ -f sql/sql_yacc.cc ] && %{__rm} sql/sql_yacc.cc