After updating MariaDB from 10.4.18 to 10.5.9, I was unable to restart the mariadb systemd service because the actual unit files (existing in 10.4.18) /lib/systemd/system/mariadb.service and /lib/systemd/system/mariadb@.service were replaced as symlinks to mysqld.service and mysqld@.service, respectively (installed by the dev-db/mysql-init-scripts package). However, the mysqld.service includes "Conflicts=mariadb.service" in the "Unit" section, so the MariaDB service won't start on a Gentoo systemd installation.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=504c3b6d413c42c6e5673b638b74571f7af76e98 commit 504c3b6d413c42c6e5673b638b74571f7af76e98 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2021-03-12 00:56:25 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2021-03-12 00:58:26 +0000 dev-db/mariadb: don't symlink systemd services Due to upstream commit https://github.com/MariaDB/server/commit/d2f5e82f0043d9decdbde61e201dbce482e48205, we made mariadb.service a symlink of mysqld.service from dev-db/mysql-init-scripts. However, mysqld.service conflicts with mariadb.service [Bug 775515]. The new patch set will restore <10.5 state. Closes: https://bugs.gentoo.org/775515 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> dev-db/mariadb/Manifest | 2 +- dev-db/mariadb/{mariadb-10.5.9-r2.ebuild => mariadb-10.5.9-r3.ebuild} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)