import CS perl-DBD-MySQL-4.053-2.el9
This commit is contained in:
parent
f19b26733e
commit
b6e17aeff5
20
SOURCES/remove-use-of-MYSQL_OPT_RECONNECT.patch
Normal file
20
SOURCES/remove-use-of-MYSQL_OPT_RECONNECT.patch
Normal file
@ -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
|
||||
@ -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,
|
||||
# <https://github.com/perl5-dbi/DBD-mysql/pull/321>
|
||||
Patch0: DBD-mysql-4.050-Remove-a-useless-shebang-from-DBD-mysql.patch
|
||||
# Remove use of MYSQL_OPT_RECONNECT,
|
||||
# <https://github.com/perl5-dbi/DBD-mysql/commit/cfe411868626e8d553716d1d9a9e759ba1104b75>
|
||||
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 <mspacek@redhat.com> - 4.053-2
|
||||
- Resolves: RHEL-123525
|
||||
- Fix MYSQL OPT_RECONNECT warning
|
||||
|
||||
* Thu Mar 13 2025 Jitka Plesnikova <jplesnik@redhat.com> - 4.053-1
|
||||
- Resolves: RHEL-53861, RHEL-77083
|
||||
- Update check for SSL connection
|
||||
|
||||
Loading…
Reference in New Issue
Block a user