diff options
| author | Misty De Meo | 2014-06-21 12:48:47 -0700 |
|---|---|---|
| committer | Misty De Meo | 2014-06-21 14:06:30 -0700 |
| commit | ae1bd3b9ce0177c994de74493a24af8238cc2cc3 (patch) | |
| tree | a81f1313f22faaedba6c58bc68a632417bc9a01f /Library | |
| parent | 77ea0f2f057735cbcc0cad75acdf730d46a5b138 (diff) | |
| download | homebrew-ae1bd3b9ce0177c994de74493a24af8238cc2cc3.tar.bz2 | |
mariadb: set basedir in mysql_install_db
Fixes #30125.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mariadb.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/mariadb.rb b/Library/Formula/mariadb.rb index c636037c2..ee0556da2 100644 --- a/Library/Formula/mariadb.rb +++ b/Library/Formula/mariadb.rb @@ -35,6 +35,14 @@ class Mariadb < Formula "COMMAND /usr/bin/libtool -static -o ${TARGET_LOCATION}", "COMMAND libtool -static -o ${TARGET_LOCATION}" + # Set basedir and ldata so that mysql_install_db can find the server + # without needing an explicit path to be set. This can still + # be overridden by calling --basedir= when calling. + inreplace "scripts/mysql_install_db.sh" do |s| + s.change_make_var! "basedir", "\"#{prefix}\"" + s.change_make_var! "ldata", "\"#{var}/mysql\"" + end + # Build without compiler or CPU specific optimization flags to facilitate # compilation of gems and other software that queries `mysql-config`. ENV.minimal_optimization |
