2014-09-04 13:36:04 +00:00
|
|
|
Use configured value instead of hardcoded path
|
|
|
|
|
2016-10-04 17:10:24 +00:00
|
|
|
diff -up mariadb-10.1.18/scripts/mysql_install_db.pl.in.pbasedir mariadb-10.1.18/scripts/mysql_install_db.pl.in
|
|
|
|
--- mariadb-10.1.18/scripts/mysql_install_db.pl.in.pbasedir 2016-10-04 19:03:15.562101826 +0200
|
|
|
|
+++ mariadb-10.1.18/scripts/mysql_install_db.pl.in 2016-10-04 19:04:47.833130195 +0200
|
|
|
|
@@ -320,7 +320,7 @@ elsif ( $opt->{basedir} )
|
2014-09-04 13:36:04 +00:00
|
|
|
find_in_basedir($opt,"file","mysqld-nt",
|
|
|
|
"bin"); # ,"sql"
|
2016-10-04 17:10:24 +00:00
|
|
|
$srcpkgdatadir = find_in_basedir($opt,"dir","fill_help_tables.sql",
|
2014-09-04 13:36:04 +00:00
|
|
|
- "share","share/mysql"); # ,"scripts"
|
|
|
|
+ "share","@INSTALL_MYSQLSHAREDIR@"); # ,"scripts"
|
2016-10-04 17:10:24 +00:00
|
|
|
$buildpkgdir = $srcpkgdatadir;
|
2014-09-04 13:36:04 +00:00
|
|
|
$scriptdir = "$opt->{basedir}/scripts";
|
|
|
|
}
|
2016-10-04 17:10:24 +00:00
|
|
|
diff -up mariadb-10.1.18/scripts/mysql_install_db.sh.pbasedir mariadb-10.1.18/scripts/mysql_install_db.sh
|
|
|
|
--- mariadb-10.1.18/scripts/mysql_install_db.sh.pbasedir 2016-10-04 19:03:22.714104025 +0200
|
|
|
|
+++ mariadb-10.1.18/scripts/mysql_install_db.sh 2016-10-04 19:08:11.457186833 +0200
|
|
|
|
@@ -283,17 +283,17 @@ then
|
2014-09-04 13:36:04 +00:00
|
|
|
cannot_find_file mysqld $basedir/libexec $basedir/sbin $basedir/bin
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
- langdir=`find_in_basedir --dir errmsg.sys share/english share/mysql/english`
|
|
|
|
+ langdir=`find_in_basedir --dir errmsg.sys share/english @INSTALL_MYSQLSHAREDIR@/english`
|
|
|
|
if test -z "$langdir"
|
|
|
|
then
|
|
|
|
- cannot_find_file errmsg.sys $basedir/share/english $basedir/share/mysql/english
|
|
|
|
+ cannot_find_file errmsg.sys $basedir/share/english $basedir/@INSTALL_MYSQLSHAREDIR@/english
|
|
|
|
exit 1
|
|
|
|
fi
|
2016-10-04 17:10:24 +00:00
|
|
|
- srcpkgdatadir=`find_in_basedir --dir fill_help_tables.sql share share/mysql`
|
|
|
|
+ srcpkgdatadir=`find_in_basedir --dir fill_help_tables.sql share @INSTALL_MYSQLSHAREDIR@`
|
|
|
|
buildpkgdatadir=$srcpkgdatadir
|
|
|
|
if test -z "$srcpkgdatadir"
|
2014-09-04 13:36:04 +00:00
|
|
|
then
|
|
|
|
- cannot_find_file fill_help_tables.sql $basedir/share $basedir/share/mysql
|
|
|
|
+ cannot_find_file fill_help_tables.sql $basedir/share $basedir/@INSTALL_MYSQLSHAREDIR@
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
scriptdir="$basedir/scripts"
|