From e5b5fcdcf7e578b28caf6d3590c4fa5f5246f906 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Fri, 12 Feb 2021 06:47:53 +0100 Subject: [PATCH] MariaDB switched to using "DBD::MariaDB" Perl database driver instead of the "DBD::mysql" in MariaDB 10.5.0 version Upstream issue: https://jira.mariadb.org/browse/MDEV-19755 Upstream commit: https://github.com/MariaDB/server/commit/5cc2096f93b7f130b36f8bc0fc43440db9a848e4#diff-8576e5effae0770fc984e35e6749c43a8946489a1b478ce54facb3b9086622bf Scripts that rely on a specific driver won't work with differently named driver Following scripts are affected: mysql_convert_table_format.sh mysql_setpermission.sh mysqlhotcopy.sh mytop.sh as well as several tests for various components So changing the required package to match the needs of the scripts Testing: Following command: mysql_setpermission --user=root --host=127.0.0.1 --port=3306 Would fail with: install_driver(MariaDB) failed: Can't locate DBD/MariaDB.pm in @INC (you may need to install the DBD::MariaDB module) --- mariadb.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mariadb.spec b/mariadb.spec index aa5ba6c..8b293d1 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -158,7 +158,7 @@ Name: mariadb Version: 10.5.8 -Release: 5%{?with_debug:.debug}%{?dist} +Release: 6%{?with_debug:.debug}%{?dist} Epoch: 3 Summary: A very fast and robust SQL database server @@ -626,7 +626,7 @@ Provides: mysql-perl = %{sameevr} %endif Conflicts: community-mysql-server # mysqlhotcopy needs DBI/DBD support -Requires: perl(DBI) perl(DBD::mysql) +Requires: perl(DBI) perl(DBD::MariaDB) %description server-utils This package contains all non-essential server utilities and scripts for @@ -1662,6 +1662,9 @@ fi %endif %changelog +* Fri Feb 12 2021 Michal Schorm - 3:10.5.8-6 +- Fix Perl database driver dependency + * Wed Feb 10 2021 Michal Schorm - 3:10.5.8-5 - Add support for S3 storage engine