diff --git a/SOURCES/remove-use-of-MYSQL_OPT_RECONNECT.patch b/SOURCES/remove-use-of-MYSQL_OPT_RECONNECT.patch new file mode 100644 index 0000000..9008f96 --- /dev/null +++ b/SOURCES/remove-use-of-MYSQL_OPT_RECONNECT.patch @@ -0,0 +1,20 @@ +diff -u -r DBD-mysql-4.053.orig/dbdimp.c DBD-mysql-4.053/dbdimp.c +--- DBD-mysql-4.053.orig/dbdimp.c 2025-11-05 16:42:56.268297096 +0100 ++++ DBD-mysql-4.053/dbdimp.c 2025-11-05 16:48:35.530544337 +0100 +@@ -2111,16 +2111,6 @@ + + if (result) + { +- /* +- 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 +- my_bool reconnect = FALSE; +- mysql_options(result, MYSQL_OPT_RECONNECT, &reconnect); +-#else +- result->reconnect = 0; +-#endif + #if MYSQL_VERSION_ID >=SERVER_PREPARE_VERSION + /* connection succeeded. */ + /* imp_dbh == NULL when mysql_dr_connect() is called from mysql.xs diff --git a/SPECS/perl-DBD-MySQL.spec b/SPECS/perl-DBD-MySQL.spec index cd378da..577bb81 100644 --- a/SPECS/perl-DBD-MySQL.spec +++ b/SPECS/perl-DBD-MySQL.spec @@ -3,7 +3,7 @@ ExcludeArch: %{ix86} Name: perl-DBD-MySQL Version: 4.053 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A MySQL interface for Perl License: GPL+ or Artistic URL: https://metacpan.org/release/DBD-mysql @@ -15,6 +15,9 @@ Source4: test-env.sh # Remove a useless shebang, bug #1813195, # Patch0: DBD-mysql-4.050-Remove-a-useless-shebang-from-DBD-mysql.patch +# Remove use of MYSQL_OPT_RECONNECT, +# +Patch1: remove-use-of-MYSQL_OPT_RECONNECT.patch BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc @@ -70,6 +73,7 @@ management system. %prep %setup -q -n DBD-mysql-%{version} %patch -P0 -p1 +%patch -P1 -p1 # Correct file permissions find . -type f | xargs chmod -x @@ -108,6 +112,10 @@ make test %{?with_perl_DBD_MySQL_enables_leak_test:EXTENDED_TESTING=1} %{_mandir}/man3/*.3* %changelog +* Wed Nov 05 2025 Michal Josef Špaček - 4.053-2 +- Resolves: RHEL-123525 +- Fix MYSQL OPT_RECONNECT warning + * Thu Mar 13 2025 Jitka Plesnikova - 4.053-1 - Resolves: RHEL-53861, RHEL-77083 - Update check for SSL connection