commit 23c958991be2ea329d16d83cc6c0cdff31e5d0f4
Author: Richard Shaw <hobbes1069(a)gmail.com>
Date: Tue Aug 8 18:24:38 2017 -0500
Add patch to deal with API regression in MariaDB 10.2.X.
mythtv-mariadb.patch | 12 ++++++++++++
mythtv.spec | 3 +++
2 files changed, 15 insertions(+)
---
diff --git a/mythtv-mariadb.patch b/mythtv-mariadb.patch
new file mode 100644
index 0000000..798d398
--- /dev/null
+++ b/mythtv-mariadb.patch
@@ -0,0 +1,12 @@
+ --- a/mythplugins/mythzoneminder/mythzmserver/zmserver.cpp
+ +++ b/mythplugins/mythzoneminder/mythzmserver/zmserver.cpp
+ @@ -183,7 +183,8 @@ void connectToDatabase(void)
+ exit(mysql_errno(&g_dbConn));
+ }
+
+ - g_dbConn.reconnect = 1;
+ + my_bool reconnect = 1;
+ + mysql_options(&g_dbConn, MYSQL_OPT_RECONNECT, &reconnect);
+
+ if (!mysql_real_connect(&g_dbConn, g_server.c_str(), g_user.c_str(),
+ g_password.c_str(), 0, 0, 0, 0))
diff --git a/mythtv.spec b/mythtv.spec
index 99c7621..1cd2e88 100644
--- a/mythtv.spec
+++ b/mythtv.spec
@@ -133,6 +133,9 @@ Source0:
https://github.com/MythTV/%{name}/archive/v%{version}.tar.gz#/%{name}
# Also update ChangeLog with git log v0.28..HEAD > ChangeLog
# and update define vers_string to v0.28-52-ge6a60f7 with git describe
Patch0: mythtv-0.28-fixes.patch
+%if 0%{?fedora} >= 27
+Patch1: mythtv-mariadb.patch
+%endif
Source10: PACKAGE-LICENSING
Source11: ChangeLog