diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mysql.rb | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb index 340fb7d7e..6ba8af3b7 100644 --- a/Library/Formula/mysql.rb +++ b/Library/Formula/mysql.rb @@ -25,9 +25,9 @@ class Mysql < Formula ] end - def patches - DATA - end + # Remove optimization flags from `mysql_config --cflags` + # This facilitates easy compilation of gems using a brewed mysql + def patches; DATA; end def install # Make sure the var/mysql directory exists @@ -159,22 +159,6 @@ end __END__ -diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh -index 0d2045a..2fdd5ce 100644 ---- a/scripts/mysqld_safe.sh -+++ b/scripts/mysqld_safe.sh -@@ -558,7 +558,7 @@ else - fi - - USER_OPTION="" --if test -w / -o "$USER" = "root" -+if test -w /sbin -o "$USER" = "root" - then - if test "$user" != "root" -o $SET_USER = 1 - then - -# Remove optimization flags from `mysql-config --cflags` -# This facilitates easy compilation of gems using a brewed mysql diff --git a/scripts/mysql_config.sh b/scripts/mysql_config.sh index 9296075..70c18db 100644 --- a/scripts/mysql_config.sh |
