Blame SOURCES/mysql-install-db-sharedir.patch

80384c
Use configured value instead of hardcoded path
80384c
80384c
diff -up mariadb-10.0.13/scripts/mysql_install_db.pl.in.pbasedir mariadb-10.0.13/scripts/mysql_install_db.pl.in
80384c
--- mariadb-10.0.13/scripts/mysql_install_db.pl.in.pbasedir	2014-09-04 12:50:24.061979080 +0200
80384c
+++ mariadb-10.0.13/scripts/mysql_install_db.pl.in	2014-09-04 12:51:22.929045559 +0200
80384c
@@ -318,7 +318,7 @@ elsif ( $opt->{basedir} )
80384c
                     find_in_basedir($opt,"file","mysqld-nt",
80384c
                                   "bin");  # ,"sql"
80384c
   $pkgdatadir     = find_in_basedir($opt,"dir","fill_help_tables.sql",
80384c
-                                    "share","share/mysql");  # ,"scripts"
80384c
+                                    "share","@INSTALL_MYSQLSHAREDIR@");  # ,"scripts"
80384c
   $scriptdir      = "$opt->{basedir}/scripts";
80384c
 }
80384c
 else
80384c
diff -up mariadb-10.0.13/scripts/mysql_install_db.sh.pbasedir mariadb-10.0.13/scripts/mysql_install_db.sh
80384c
--- mariadb-10.0.13/scripts/mysql_install_db.sh.pbasedir	2014-09-04 12:51:59.005086301 +0200
80384c
+++ mariadb-10.0.13/scripts/mysql_install_db.sh	2014-09-04 12:54:02.794222597 +0200
80384c
@@ -280,16 +280,16 @@ then
80384c
     cannot_find_file mysqld $basedir/libexec $basedir/sbin $basedir/bin
80384c
     exit 1
80384c
   fi
80384c
-  langdir=`find_in_basedir --dir errmsg.sys share/english share/mysql/english`
80384c
+  langdir=`find_in_basedir --dir errmsg.sys share/english @INSTALL_MYSQLSHAREDIR@/english`
80384c
   if test -z "$langdir"
80384c
   then
80384c
-    cannot_find_file errmsg.sys $basedir/share/english $basedir/share/mysql/english
80384c
+    cannot_find_file errmsg.sys $basedir/share/english $basedir/@INSTALL_MYSQLSHAREDIR@/english
80384c
     exit 1
80384c
   fi
80384c
-  pkgdatadir=`find_in_basedir --dir fill_help_tables.sql share share/mysql`
80384c
+  pkgdatadir=`find_in_basedir --dir fill_help_tables.sql share @INSTALL_MYSQLSHAREDIR@`
80384c
   if test -z "$pkgdatadir"
80384c
   then
80384c
-    cannot_find_file fill_help_tables.sql $basedir/share $basedir/share/mysql
80384c
+    cannot_find_file fill_help_tables.sql $basedir/share $basedir/@INSTALL_MYSQLSHAREDIR@
80384c
     exit 1
80384c
   fi
80384c
   scriptdir="$basedir/scripts"