Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit ad9d6a0ac0e7fc2ece16df89ddcb3aa081a8bb24 1 parent 99a48de
@wmark authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 eclass/mysql-v2.eclass
View
6 eclass/mysql-v2.eclass
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.