When I emerge --config mariadb, it calls my_print_defaults 3 times with --mysqld, but this option is not supported by =dev-db/mysql-connector-c-6.1.11-r1 and should be mysqld in order to work. This causes emerge --config to fail. After fixing this, emerge --config succeeded.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4c95be246e07f93a3d7fac4dfcf91806e127843 commit d4c95be246e07f93a3d7fac4dfcf91806e127843 Author: Brian Evans <grknight@gentoo.org> AuthorDate: 2018-03-27 18:17:17 +0000 Commit: Brian Evans <grknight@gentoo.org> CommitDate: 2018-03-27 18:19:55 +0000 dev-db/mariadb: Consistently use mysqld section in pkg_config Closes: https://bugs.gentoo.org/651356 Package-Manager: Portage-2.3.24, Repoman-2.3.6 dev-db/mariadb/mariadb-10.2.13.ebuild | 6 +++--- dev-db/mariadb/mariadb-10.3.5_rc.ebuild | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-)