ganapathi / rpms / mariadb

Forked from rpms/mariadb 4 years ago
Clone

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

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