commit perl-DBD-mysql for openSUSE:Factory
Hello community,
here is the log from the commit of package perl-DBD-mysql for openSUSE:Factory checked in at 2017-11-19 11:06:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-DBD-mysql (Old)
and /work/SRC/openSUSE:Factory/.perl-DBD-mysql.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-DBD-mysql"
Sun Nov 19 11:06:28 2017 rev:49 rq:542062 version:4.043
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-DBD-mysql/perl-DBD-mysql.changes 2017-08-19 10:55:05.143724257 +0200
+++ /work/SRC/openSUSE:Factory/.perl-DBD-mysql.new/perl-DBD-mysql.changes 2017-11-19 11:06:29.594102920 +0100
@@ -1,0 +2,7 @@
+Tue Nov 14 17:12:32 UTC 2017 - pmonrealgonzalez@suse.com
+
+- Fixed build with libmariadb [bsc#1067882]
+- Added patch:
+ * perl-DBD-mysql-4.043-Fix-build-failures-for-MariaDB.patch
+
+-------------------------------------------------------------------
New:
----
perl-DBD-mysql-4.043-Fix-build-failures-for-MariaDB.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-DBD-mysql.spec ++++++
--- /var/tmp/diff_new_pack.KIyAMW/_old 2017-11-19 11:06:30.170081917 +0100
+++ /var/tmp/diff_new_pack.KIyAMW/_new 2017-11-19 11:06:30.170081917 +0100
@@ -28,6 +28,8 @@
Source1: cpanspec.yml
# PATCH-FIX-UPSTREAM CVE-2017-10788 bsc#1047095 pmonrealgonzalez@suse.com - DoS or possibly RCE through use-after-free
Patch1: perl-DBD-mysql-4.043-CVE-2017-10788.patch
+# bsc#1067882 perl-DBD-mysql-4.043-Fix-build-failures-for-MariaDB.patch
+Patch2: perl-DBD-mysql-4.043-Fix-build-failures-for-MariaDB.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
@@ -52,6 +54,7 @@
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%patch1 -p1
+%patch2 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
++++++ perl-DBD-mysql-4.043-Fix-build-failures-for-MariaDB.patch ++++++
diff --git a/dbdimp.c b/dbdimp.c
index 9b8b313..fa628b0 100644
--- a/dbdimp.c
+++ b/dbdimp.c
@@ -1979,6 +1979,9 @@ MYSQL *mysql_dr_connect(
if (result)
{
+#if MYSQL_VERSION_ID >= 50013
+ my_bool reconnect=1;
+#endif
#if MYSQL_VERSION_ID >=SERVER_PREPARE_VERSION
/* connection succeeded. */
/* imp_dbh == NULL when mysql_dr_connect() is called from mysql.xs
@@ -1997,7 +2000,11 @@ MYSQL *mysql_dr_connect(
we turn off Mysql's auto reconnect and handle re-connecting ourselves
so that we can keep track of when this happens.
*/
+#if MYSQL_VERSION_ID >= 50013
+ mysql_options(result, MYSQL_OPT_RECONNECT, &reconnect);
+#else
result->reconnect=0;
+#endif
}
else {
/*
diff --git a/dbdimp.h b/dbdimp.h
index 935256e..3a5fcaa 100644
--- a/dbdimp.h
+++ b/dbdimp.h
@@ -20,6 +20,7 @@
#include
participants (1)
-
root@hilbert.suse.de