From 921d3a65eefb11bd5c7bed60c287931784fcd711 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 14 Jul 2017 13:50:46 +0200 Subject: [PATCH] fixed build issue with new mariad --- qt5-qtbase.spec | 9 ++++++++- qtbase-opensource-src-5.9.0-mysql.patch | 12 ++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 qtbase-opensource-src-5.9.0-mysql.patch diff --git a/qt5-qtbase.spec b/qt5-qtbase.spec index 8cf37ed..7fa94e8 100644 --- a/qt5-qtbase.spec +++ b/qt5-qtbase.spec @@ -49,7 +49,7 @@ BuildRequires: pkgconfig(libsystemd) Name: qt5-qtbase Summary: Qt5 - QtBase components Version: 5.9.0 -Release: 4%{?dist} +Release: 5%{?dist} # See LGPL_EXCEPTIONS.txt, for exception details License: LGPLv2 with exceptions or GPLv3 with exceptions @@ -101,6 +101,9 @@ Patch63: qt5-qtbase-5.7.1-openssl11.patch # support firebird version 3.x Patch64: qt5-qtbase-5.8.0-firebird.patch +# fix for new mariadb +Patch65: qtbase-opensource-src-5.9.0-mysql.patch + ## upstream patches (under review) # https://codereview.qt-project.org/#/c/180232/ Patch401: 0001-Merge-the-QDBusMetaType-s-custom-information-to-QDBu.patch @@ -345,6 +348,7 @@ Qt5 libraries used for drawing widgets and OpenGL items. %patch63 -p1 -b .openssl11 %endif %patch64 -p1 -b .firebird +%patch65 -p1 -b .mysql %if 0%{?inject_optflags} ## adjust $RPM_OPT_FLAGS @@ -948,6 +952,9 @@ fi %changelog +* Fri Jul 14 2017 Than Ngo - 5.9.0-5 +- fixed build issue with new mariadb + * Thu Jul 06 2017 Than Ngo - 5.9.0-4 - fixed bz#1409600, stack overflow in QXmlSimpleReader, CVE-2016-10040 diff --git a/qtbase-opensource-src-5.9.0-mysql.patch b/qtbase-opensource-src-5.9.0-mysql.patch new file mode 100644 index 0000000..c190ca6 --- /dev/null +++ b/qtbase-opensource-src-5.9.0-mysql.patch @@ -0,0 +1,12 @@ +diff -up qtbase-opensource-src-5.9.0/src/plugins/sqldrivers/mysql/qsql_mysql.cpp.than qtbase-opensource-src-5.9.0/src/plugins/sqldrivers/mysql/qsql_mysql.cpp +diff -up qtbase-opensource-src-5.9.0/src/plugins/sqldrivers/mysql/qsql_mysql_p.h.than qtbase-opensource-src-5.9.0/src/plugins/sqldrivers/mysql/qsql_mysql_p.h +--- qtbase-opensource-src-5.9.0/src/plugins/sqldrivers/mysql/qsql_mysql_p.h.than 2017-07-14 13:43:50.831203768 +0200 ++++ qtbase-opensource-src-5.9.0/src/plugins/sqldrivers/mysql/qsql_mysql_p.h 2017-07-14 13:44:24.364948006 +0200 +@@ -58,6 +58,7 @@ + #endif + + #include ++#include + + #ifdef QT_PLUGIN + #define Q_EXPORT_SQLDRIVER_MYSQL