Hi, Andrew! On Feb 08, Andrew McDonnell wrote: > Hi, > > I like to build MariaDB in a separate directory to keep the source tree clean. > > This works for me as follows: > > cd path/to/maria/source > mkdir mybuildir > cd mybuildir > cmake .. "-DWITH_PLUGIN_ARIA=1 (etc...)" > make > mysql-test/mysql-test-run --suite oqgraph (etc) > > However when I want to use this build to create a non-MTR database as follows: > > MARIA_HOME=path/to/maria/source > MARIA_BUILD=path/to/maria/source/mybuilddir > sh $MARIA_BUILD/scripts/mysql_install_db \ > --srcdir=$MARIA_HOME \ > --builddir=$MARIA_BUILD \ > --datadir=path/to/data --defaults-file=... > > This fails with > > FATAL ERROR: Could not find maria/source/sql/share/english/errmsg.sys ... > === modified file 'scripts/mysql_install_db.sh' > --- scripts/mysql_install_db.sh 2014-02-03 14:22:39 +0000 > +++ scripts/mysql_install_db.sh 2014-02-08 11:52:52 +0000 > @@ -267,7 +267,7 @@ > bindir="$basedir/client" > extra_bindir="$basedir/extra" > mysqld="$basedir/sql/mysqld" > - langdir="$srcdir/sql/share/english" > + langdir="$basedir/sql/share/english" > pkgdatadir="$srcdir/scripts" > scriptdir="$srcdir/scripts" > elif test -n "$basedir"
Seems reasonable. errmsg.sys is a generated file, it's located in the builddir, not in the srcdir. I'll fix this, thanks. Regards, Sergei _______________________________________________ Mailing list: https://launchpad.net/~maria-developers Post to : [email protected] Unsubscribe : https://launchpad.net/~maria-developers More help : https://help.launchpad.net/ListHelp

