while mysql emerges properly on a ~x86-linux prefix (after manually applying the fix in Bug 430836), configuration does not complete successfully: $ echo $EPREFIX /c/gentoo-prefix $ emerge --config =dev-db/mysql-5.5.28 Configuring pkg... * Creating MySQL tmpdir /tmp * /tmp/ install: cannot change owner and permissions of ‘/c/gentoo-prefix///tmp’: Operation not permitted install: cannot change owner and permissions of ‘/tmp/’: Operation not permitted * Please provide a password for the mysql 'root' user now, in the * MYSQL_ROOT_PASSWORD env var or through the /root/.my.cnf file. * Avoid ["'\_%] characters in the password > * Retype the password > * Command: '/c/gentoo-prefix/usr/share/mysql/scripts/mysql_install_db' '--basedir=/c/gentoo-prefix/usr' --log-warnings=0 --loose-skip-grant-tables --loose-skip-host-cache --loose-skip-name-resolve --loose-skip-networking --loose-skip-slave-start --loose-skip-innodb --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 * ERROR: dev-db/mysql-5.5.28 failed (config phase): * Failed to run mysql_install_db. Please review /c/gentoo-prefix/var/log/mysql/mysqld.err AND /c/gentoo-prefix/tmp/portage/dev-db/mysql-5.5.28/temp/mysql_install_db.log * * Call stack: * ebuild.sh, line 85: Called call-ebuildshell 'pkg_config' * environment, line 796: Called pkg_config * environment, line 3438: Called mysql-v2_pkg_config * environment, line 3098: Called die * The specific snippet of code: * die "Failed to run mysql_install_db. Please review ${EPREFIX}/var/log/mysql/mysqld.err AND ${TMPDIR}/mysql_install_db.log"; * * If you need support, post the output of `emerge --info '=dev-db/mysql-5.5.28'`, * the complete build log and the output of `emerge -pqv '=dev-db/mysql-5.5.28'`. * This ebuild is from an overlay named 'gentoo_prefix': '/c/gentoo-prefix/var/db/pkg/' * The complete build log is located at '/c/gentoo-prefix/var/log/portage/dev-db:mysql-5.5.28:20121129-045700.log'. * For convenience, a symlink to the build log is located at '/c/gentoo-prefix/tmp/portage/dev-db/mysql-5.5.28/temp/build.log'. * The ebuild environment file is located at '/c/gentoo-prefix/tmp/portage/dev-db/mysql-5.5.28/temp/environment'. * Working directory: '/c/gentoo-prefix/tmp/portage/dev-db/mysql-5.5.28/temp' * S: '/c/gentoo-prefix/tmp/portage/dev-db/mysql-5.5.28/work/mysql-5.5.28' Reproducible: Always
I meant I had applied the fix in Bug 430820 to get it emerged, though Bug 430836 is also related
Now that Bug 430836 is fixed, can you please retest with 5.5.29?
now on mysql-5.5.29-r1, but I still see a failure. I'm not sure it's for the same reason, though (I don't recall the previous contents of the error logs, and I don't seem to have attached them here : /) $EPREFIX/var/log/mysql/mysqld.err reports: unknown option '--skip-bdb'
Please retry with the latest eclass (sync your tree). --skip-bdb was recently removed
the error still persists with dev-db/mysql-5.5.32 (freshly synced tree): Configuring pkg... * Creating MySQL tmpdir /tmp * /c/gentoo-prefix/tmp/ install: cannot change owner and permissions of ‘/c/gentoo-prefix///tmp’: Operation not permitted install: cannot change owner and permissions of ‘/c/gentoo-prefix/tmp/’: Operation not permitted * Please provide a password for the mysql 'root' user now, in the * MYSQL_ROOT_PASSWORD env var or through the /root/.my.cnf file. * Avoid ["'\_%] characters in the password > * Retype the password > * Command: '/c/gentoo-prefix/usr/share/mysql/scripts/mysql_install_db' '--basedir=/c/gentoo-prefix/usr' --log-warnings=0 --loose-skip-grant-tables --loose-skip-host-cache --loose-skip-name-resolve --loose-skip-networking --loose-skip-slave-start --loose-skip-innodb --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 * ERROR: dev-db/mysql-5.5.32::gentoo_prefix failed (config phase): * Failed to run mysql_install_db. Please review /c/gentoo-prefix/var/log/mysql/mysqld.err AND /c/gentoo-prefix/tmp/portage/dev-db/mysql-5.5.32/temp/mysql_install_db.log mysqld.err: 30813 16:30:37 [ERROR] /c/gentoo-prefix/usr/sbin/mysqld: unknown option '--skip-bdb' 130813 16:30:37 [ERROR] Aborting 130813 16:30:37 [Note] /c/gentoo-prefix/usr/sbin/mysqld: Shutdown complete
I don't see any references to --skip-bdb in the eclass files. could this possibly be related to the fact that there is a mysql installed in the host system (which I can't modify)? $ which -a mysql /c/gentoo-prefix/usr/bin/mysql /usr/bin/mysql
ok, I see the reason, it is pulling the my.cnf from /etc/mysql/my.cnf (i.e. outside the prefix tree), where, indeed, skip-bdb is specified. Is there a static path we're not modifying in the mysqld binary that is built for the prefix?
Fix pushed to overlay to use prefix my.cnf during emerge --config instead of base system if installed.