Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 700886 - dev-db/mariadb-10.4.10[-pam] pkg_config - chown: cannot access '/usr/lib64/mariadb/plugin/auth_pam_tool_dir': No such file or directory
Summary: dev-db/mariadb-10.4.10[-pam] pkg_config - chown: cannot access '/usr/lib64/ma...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-21 14:32 UTC by Dag Bakke
Modified: 2020-08-12 21:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dag Bakke 2019-11-21 14:32:00 UTC
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.
Comment 1 r7l 2020-07-08 18:34:24 UTC
Can confirm the issue. Was just running into it. Is there any way around it without adding PAM?
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2020-07-08 23:49:33 UTC
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...