Skip to content

Commit db13582

Browse files
committed
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
1 parent 4809bbd commit db13582

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/cpack_rpm.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,9 @@ IF(RPM MATCHES "fedora")
322322
ALTERNATIVE_NAME("shared" "mariadb-connector-c" ${MARIADB_CONNECTOR_C_VERSION}-1)
323323
ENDIF()
324324

325+
IF(RPM MATCHES "fedora|rhel|centos" AND NOT RPM MATCHES "rhel[78]")
326+
SETA(CPACK_RPM_server_PACKAGE_REQUIRES "(mysql-selinux >= 1.0.14 if selinux-policy-targeted)")
327+
ENDIF()
325328
SET(PYTHON_SHEBANG "/usr/bin/python3" CACHE STRING "python shebang")
326329

327330
# If we want to build build MariaDB-shared-compat,

0 commit comments

Comments
 (0)