Blob Blame History Raw
Use configured value instead of hardcoded path

diff -up mariadb-10.1.19/scripts/mysql_install_db.pl.in.pbasedir mariadb-10.1.19/scripts/mysql_install_db.pl.in
--- mariadb-10.1.19/scripts/mysql_install_db.pl.in.pbasedir	2016-11-19 13:08:53.882777759 +0100
+++ mariadb-10.1.19/scripts/mysql_install_db.pl.in	2016-11-19 13:08:53.880777758 +0100
@@ -306,7 +306,7 @@ if ( $opt->{srcdir} )
   $bindir          = "$opt->{basedir}/client";
   $extra_bindir    = "$opt->{basedir}/extra";
   $mysqld          = "$opt->{basedir}/sql/mysqld";
-  $mysqld_opt      = "--language=$opt->{srcdir}/sql/share/english";
+  $mysqld_opt      = "--language=$opt->{srcdir}/sql/@INSTALL_MYSQLSHAREDIR@/english";
   $srcpkgdatadir   = "$opt->{srcdir}/scripts";
   $buildpkgdatadir = "$opt->{builddir}/scripts";
   $scriptdir       = "$opt->{srcdir}/scripts";
@@ -320,7 +320,7 @@ elsif ( $opt->{basedir} )
                     find_in_basedir($opt,"file","mysqld-nt",
                                   "bin");  # ,"sql"
   $srcpkgdatadir  = find_in_basedir($opt,"dir","fill_help_tables.sql",
-                                    "share","share/mysql");  # ,"scripts"
+                                    "share","@INSTALL_MYSQLSHAREDIR@");  # ,"scripts"
   $buildpkgdir    = $srcpkgdatadir;
   $scriptdir      = "$opt->{basedir}/scripts";
 }