From 635c377683e90bbe9ff0f45972153a7655e83042 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Mon, 18 Sep 2023 12:28:43 +0200 Subject: [PATCH] Explanation added for a conditional requirement of mysql-selinux --- mariadb.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mariadb.spec b/mariadb.spec index 9945b68..21643cd 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -447,7 +447,10 @@ Requires: %{_sysconfdir}/my.cnf.d # Additional SELinux rules (common for MariaDB & MySQL) shipped in a separate package # For cases, where we want to fix a SELinux issues in MariaDB sooner than patched selinux-policy-targeted package is released %if %require_mysql_selinux +# The *-selinux package should only be required on SELinux enabled systems. Therefore the following rich dependency syntax should be used: Requires: (mysql-selinux if selinux-policy-targeted) +# This ensures that the *-selinux package and all its dependencies are not pulled into containers and other systems that do not use SELinux. +# https://fedoraproject.org/wiki/SELinux/IndependentPolicy#Adding_dependency_to_the_spec_file_of_corresponding_package %endif # for fuser in mysql-check-socket