MDEV-37680/MDEV-24941: RHEL9+,Centos-stream and Fedora to pull mysql-selinux-1.0.14+ dependency

mysql-selinux-1.0.14 provides the necessary labels for
MariaDB to function correctly.

Thanks Pavol Sloboda for the bug forwarding and a ready to
package solution.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2395701
This commit is contained in:
Daniel Black 2025-09-18 13:37:44 +10:00
parent 4809bbdefb
commit db135822f6

View File

@ -322,6 +322,9 @@ IF(RPM MATCHES "fedora")
ALTERNATIVE_NAME("shared" "mariadb-connector-c" ${MARIADB_CONNECTOR_C_VERSION}-1)
ENDIF()
IF(RPM MATCHES "fedora|rhel|centos" AND NOT RPM MATCHES "rhel[78]")
SETA(CPACK_RPM_server_PACKAGE_REQUIRES "(mysql-selinux >= 1.0.14 if selinux-policy-targeted)")
ENDIF()
SET(PYTHON_SHEBANG "/usr/bin/python3" CACHE STRING "python shebang")
# If we want to build build MariaDB-shared-compat,