From e86906d050b25acbe51eb4f39783513717c96110 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Wed, 29 Nov 2023 22:39:18 +0100 Subject: [PATCH] [18/20] SPECfile cleanup - make sure the target directory exists The 'mv' command failed after the last commit, beacuse the line | install -p -m 644 -D selinux/%{pkg_name}-server-galera.pp %{buildroot}%{_datadir}/selinux/packages/targeted/%{pkg_name}-server-galera.pp which was originally before the cracklib condition, created the target directory tree thanks to the | install -D functionality. --- mariadb.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/mariadb.spec b/mariadb.spec index 17cf494..a07820e 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -954,6 +954,7 @@ echo "d %{pidfiledir} 0755 mysql mysql -" >>%{buildroot}%{_tmpfilesdir}/%{pkg_na # Install additional cracklib selinux policy %if %{with cracklib} +mkdir -p %{buildroot}%{_datadir}/selinux/packages/targeted/ mv %{buildroot}%{_datadir}/mariadb/policy/selinux/mariadb-plugin-cracklib-password-check.pp %{buildroot}%{_datadir}/selinux/packages/targeted/%{pkg_name}-plugin-cracklib-password-check.pp rm %{buildroot}%{_datadir}/mariadb/policy/selinux/mariadb-plugin-cracklib-password-check.te %endif