Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446200 - ~x86-linux prefix: emerge --config =dev-db/mysql-5.5.28 fails: unknown option --skip-bdb
Summary: ~x86-linux prefix: emerge --config =dev-db/mysql-5.5.28 fails: unknown option...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on: 430820 430836
Blocks:
  Show dependency tree
 
Reported: 2012-12-06 01:53 UTC by Myk Taylor
Modified: 2014-04-25 00:30 UTC (History)
1 user (show)

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 Myk Taylor 2012-12-06 01:53:27 UTC
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
Comment 1 Myk Taylor 2012-12-06 02:00:54 UTC
I meant I had applied the fix in Bug 430820 to get it emerged, though Bug 430836 is also related
Comment 2 Brian Evans (RETIRED) gentoo-dev 2013-01-31 15:13:09 UTC
Now that Bug 430836 is fixed, can you please retest with 5.5.29?
Comment 3 Myk Taylor 2013-02-26 01:26:49 UTC
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'
Comment 4 Brian Evans (RETIRED) gentoo-dev 2013-07-05 02:58:27 UTC
Please retry with the latest eclass (sync your tree).

--skip-bdb was recently removed
Comment 5 Myk Taylor 2013-08-13 23:35:45 UTC
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
Comment 6 Myk Taylor 2013-08-13 23:40:06 UTC
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
Comment 7 Myk Taylor 2013-08-15 23:08:20 UTC
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?
Comment 8 Brian Evans (RETIRED) gentoo-dev 2014-02-04 21:17:42 UTC
Fix pushed to overlay to use prefix my.cnf during emerge --config instead of base system if installed.