Permalink
Browse files

mysql-v2.eclass: correct path for mysql_install_db (closes #2)

  • Loading branch information...
1 parent 99a48de commit ad9d6a0ac0e7fc2ece16df89ddcb3aa081a8bb24 @wmark committed Oct 17, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 eclass/mysql-v2.eclass
View
@@ -602,7 +602,11 @@ mysql-v2_pkg_config() {
help_tables="${TMPDIR}/fill_help_tables.sql"
pushd "${TMPDIR}" &>/dev/null
- "${EROOT}/usr/bin/mysql_install_db" "--basedir=${EPREFIX}/usr" >"${TMPDIR}"/mysql_install_db.log 2>&1
+ if [ -x "${EROOT}/usr/bin/mysql_install_db" ]; then
+ "${EROOT}/usr/bin/mysql_install_db" "--basedir=${EPREFIX}/usr" >"${TMPDIR}"/mysql_install_db.log 2>&1
+ else
+ "${EROOT}/usr/share/mysql/scripts/mysql_install_db" "--basedir=${EPREFIX}/usr" >"${TMPDIR}"/mysql_install_db.log 2>&1
+ fi
if [ $? -ne 0 ]; then
grep -B5 -A999 -i "ERROR" "${TMPDIR}"/mysql_install_db.log 1>&2
die "Failed to run mysql_install_db. Please review ${EPREFIX}/var/log/mysql/mysqld.err AND ${TMPDIR}/mysql_install_db.log"

0 comments on commit ad9d6a0

Please sign in to comment.