Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package mariadb for openSUSE:Factory checked in at 2026-02-06 19:02:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mariadb (Old) and /work/SRC/openSUSE:Factory/.mariadb.new.1670 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mariadb" Fri Feb 6 19:02:26 2026 rev:160 rq:1330833 version:11.8.5 Changes: -------- --- /work/SRC/openSUSE:Factory/mariadb/mariadb.changes 2026-02-01 22:02:35.393408955 +0100 +++ /work/SRC/openSUSE:Factory/.mariadb.new.1670/mariadb.changes 2026-02-06 19:02:30.232311842 +0100 @@ -1,0 +2,8 @@ +Tue Feb 3 19:22:56 UTC 2026 - Antonio Teixeira <[email protected]> + +- Add StateDirectory configs in systemd unit files to let systemd + create mariadb datadir +- Let systemd-tmpfiles create log and secure-file-priv dirs +- Add permissions to the update message file + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mariadb.spec ++++++ --- /var/tmp/diff_new_pack.Ef96As/_old 2026-02-06 19:02:32.156392675 +0100 +++ /var/tmp/diff_new_pack.Ef96As/_new 2026-02-06 19:02:32.164393011 +0100 @@ -505,9 +505,6 @@ # Install the package itself %cmake_install benchdir_root=%{_datadir}/ -# Create log directory with the expected perms of mysql -install -d -m 700 %{buildroot}%{_localstatedir}/log/mysql/ - # Symbols from build to go into libdir install -m 644 build/sql/mysqld.sym %{buildroot}%{_libdir}/mysql/mysqld.sym @@ -642,11 +639,15 @@ # mysql-systemd-helper sed -e 's:mysql.sock-%I:mysql.%I.sock:' -i %{buildroot}%{_unitdir}/[email protected] -# Tmpfiles file to exclude mysql tempfiles that are auto-cleaned up -# bnc#852451 +# Tmpfiles file +# Exclude mysql tempfiles that are auto-cleaned up (bnc#852451) +# Create log directory with the expected perms of mysql +# Create the directory specified in 'secure-file-priv' option mkdir -p %{buildroot}%{_tmpfilesdir} cat >> %{buildroot}%{_tmpfilesdir}/mariadb.conf <<EOF x %{_localstatedir}/tmp/mysql.* +d %{_localstatedir}/log/mysql 0700 mysql mysql +d %{_localstatedir}/lib/mysql-files 0750 mysql mysql EOF # Testsuite @@ -687,9 +688,6 @@ # Unwanted packaged stuff rm -rf '%{buildroot}'%{_datadir}/mysql/{solaris,SELinux} -# Create the directory specified in 'secure-file-priv' option -mkdir -p '%{buildroot}'%{_localstatedir}/lib/mysql-files - # install rpm macros file mkdir -p %{buildroot}%{_rpmmacrodir} install -m 644 %{SOURCE19} %{buildroot}%{_rpmmacrodir} @@ -837,7 +835,7 @@ %license %{_docdir}/%{name}/COPYING %doc %{_docdir}/%{name} %dir %{_libexecdir}/mysql -%dir %attr(0700, mysql, mysql) %{_localstatedir}/log/mysql +%ghost %dir %attr(0700, mysql, mysql) %{_localstatedir}/log/mysql %{_libexecdir}/mysql/mysql-systemd-helper %{_unitdir}/mariadb.service %{_unitdir}/[email protected] @@ -866,8 +864,8 @@ %{_pam_moduledir}/pam_user_map.so %dir %attr(0750, root, mysql) %{_libdir}/mysql/plugin/auth_pam_tool_dir %verify(not mode) %attr(4755,root,root) %{_libdir}/mysql/plugin/auth_pam_tool_dir/auth_pam_tool -%ghost %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-something -%dir %attr(0750, mysql, mysql) %{_localstatedir}/lib/mysql-files +%ghost %attr(0644,root,root) %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-something +%ghost %dir %attr(0750, mysql, mysql) %{_localstatedir}/lib/mysql-files %if 0%{with_mroonga} > 0 %license %{_datadir}/mariadb/mroonga/COPYING %{_datadir}/mariadb/mroonga/ ++++++ mariadb.service.in ++++++ --- /var/tmp/diff_new_pack.Ef96As/_old 2026-02-06 19:02:32.364401413 +0100 +++ /var/tmp/diff_new_pack.Ef96As/_new 2026-02-06 19:02:32.368401582 +0100 @@ -69,4 +69,8 @@ UMask=007 +# Let systemd create /var/lib/mysql so that the correct SELinux labels are applied +StateDirectory=mysql +StateDirectoryMode=700 + ++++++ [email protected] ++++++ --- /var/tmp/diff_new_pack.Ef96As/_old 2026-02-06 19:02:32.416403598 +0100 +++ /var/tmp/diff_new_pack.Ef96As/_new 2026-02-06 19:02:32.420403766 +0100 @@ -69,4 +69,8 @@ UMask=007 +# Let systemd create /var/lib/mysql-$instance so that the correct SELinux labels are applied +StateDirectory=mysql-%i +StateDirectoryMode=700 +
