myhost ~ # emerge -pv mariadb These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-db/mariadb-10.4.10:0/18::gentoo USE="backup perl server -bindist -cracklib -debug -extraengine -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc -jemalloc -kerberos -latin1 -libressl -mroonga -numa -odbc -oqgraph -pam -profiling -rocksdb (-selinux) -sphinx -sst-mariabackup -sst-rsync -static -systemd -systemtap -tcmalloc -test -tokudb -xml -yassl" 0 KiB myhost ~ # emerge --config =dev-db/mariadb-10.4.10 Configuring pkg... * Trying to get password for mysql 'root' user from 'mysql' section ... * Trying to get password for mysql 'root' user from 'client' section ... * Please provide a password for the mysql 'root'@'localhost' user now * or through the /root/.my.cnf file. * Avoid ["'\_%] characters in the password * Not entering a password defaults to UNIX authentication > * Retype the password > * Creating the mysql database and setting proper permissions on it ... * Command: /usr/share/mariadb/scripts/mysql_install_db --basedir=/usr --loose-skip-host-cache --loose-skip-name-resolve --loose-skip-networking --loose-skip-slave-start --loose-skip-ssl --loose-skip-log-bin --loose-skip-relay-log --loose-skip-slow-query-log --loose-skip-external-locking --loose-skip-log-slave-updates --datadir=//var/lib/mysql --tmpdir=//tmp/ * ERROR: dev-db/mariadb-10.4.10::gentoo failed (config phase): * Failed to initialize mysqld. Please review /var/log/mysql/mysqld.err AND /var/tmp/portage/dev-db/mariadb-10.4.10/temp/mysql_install_db.log * myhost ~ # more /var/tmp/portage/dev-db/mariadb-10.4.10/temp/mysql_install_db.log chown: cannot access '/usr/lib64/mariadb/plugin/auth_pam_tool_dir': No such file or directory Cannot change ownership of the '/usr/lib64/mariadb/plugin/auth_pam_tool_dir' directory to the 'mysql' user. Check that you have the necessary permissions and try again. Building mariadb with the pam flag enables me to emerge --config.
Can confirm the issue. Was just running into it. Is there any way around it without adding PAM?
I am unable to reproduce. I just emerged mariadb-10.4.13 with USE flags from comment #0 and `emerge --config dev-db/mariadb` passed without any problems. I am also not seeing any chown call in pkg_config...