From f78afa8bbcea2ddd68dc2068541e23b8419f5928 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Wed, 11 Feb 2026 12:20:12 +1100 Subject: [PATCH] MDEV-38771 RPM conflicts between MariaDB-common and mysql-common mysql-common and MariaDB-common don't install the same files. mysql-common (in MySQL 8.0) installs character set files (/usr/share/mysql/charsets/*) and /usr/lib64/mysql (directory only). MariaDB common installs character set files in /usr/share/mariadb and the same /usr/lib64/mysql directory along with client plugins in /usr/lib64/mysql/plugin. The RPM rules of conflict only will cause troubles on directories if they are installed with different metatadata (selinux, ownership, permissions) which isn't the case. As the character sets are at a different location MariaDB-common isn't obsoleting mysql-common in a way that provides compatibilty with mysql-common, for mysql-libs or otherwise, so its just creating an install conflict. Users installing perl-DBD-MySQL notice this because its mysql-libs dependency pulls mysql-common, which conflicts with MariaDB-common. We correct by removing the conflict and the provides of MariaDB-common with resepect to mysql-common. --- cmake/cpack_rpm.cmake | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmake/cpack_rpm.cmake b/cmake/cpack_rpm.cmake index 499e50e3dfe3b..99ae88ec6b83a 100644 --- a/cmake/cpack_rpm.cmake +++ b/cmake/cpack_rpm.cmake @@ -230,10 +230,6 @@ SETA(CPACK_RPM_client_PACKAGE_REQUIRES SETA(CPACK_RPM_common_PACKAGE_CONFLICTS "MariaDB-server < 10.6.1") -SETA(CPACK_RPM_common_PACKAGE_OBSOLETES - "mysql-common") -SETA(CPACK_RPM_common_PACKAGE_PROVIDES - "mysql-common") SETA(CPACK_RPM_devel_PACKAGE_OBSOLETES "MySQL-devel")