Currently we patch mysql_config to sanitize the CFLAGS that are exported
to software that queries it during builds, such as the mysql gem. Since
there isn't any way to control what compiler is used by Ruby/gem to
build native extensions, we must remove any compiler or CPU specific
flags.
Instead, let's build without these flags to begin with, which will keep
mysql_config clean and provide consistency between the flags used to
build mysql and those used to build software that links to it.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
pidof can be replaced with pgrep from proctools on Mountain Lion
and readline uses the system version which, if too old, will use
the bundled version anyway (doesn't on Mountain Lion).
ClosesHomebrew/homebrew#13942.
conflicts_with is a thin wrapper around Requirement which simplifies
marking conflicts between formulae.
ClosesHomebrew/homebrew#13687.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
These will be used to unify the label namespaces in embedded plists,
i.e. 'homebrew.mxcl.<formula>'.
plist_path returns the full path to a plist file located at the top
level of the keg; plist_path.basename can be used if just the filename
is needed.
c.f. Homebrew/homebrew#9346.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Added install flags to the mysql formula to allow the ARCHIVE and BLACKHOLE
storage engines to be compiled in.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Not sure how I failed so badly at logic. This should be rewritten so that the build info has a tested MacOS version too. However it seems unlikely that the same LLVM versions on different platforms would have different compile errors. So we'll risk it, and it'll be informative for us too.
MySQL client compiles with EditLine wrapper by default. This formula
configures the build to use readline since it's superior in handling
multibyte input, enabling use of non-English languages in the mysql
prompt.
Users can still choose to use EditLine with the `--with-libedit` flag.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
1. Added dependency on pidof. This is necessary for
"mysql.server status" to work fully.
2. Added #{HOMEBREW_PREFIX}/bin to PATH in mysql.server
so that it can find Homebrew-installed pidof.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
1. Added cmake args necessary to link docs, info files, and
shared data into the usual Homebrew locations. This prevents
all the message catalogues from being spattered in #{share} and
allows the doc and info files to appear in expected places.
2. Restored mysql.server to #{bin} and put it back in caveats.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Switch the MySQL formula to use the official MySQL mirror, rather than
the hardcoded Swedish one that's having issues.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Updated the install instructions in the caveats so that the default case
is installing under the user's own account, and note that you should
do 'mysql -uroot' to test the connection.
Added instructions on how to do a manual setup to any folder under any
user account.
Remove the 'data' folder from the prefix, so the setup script
will not try to create databases there. Putting databases
in the prefix instead of directly in /usr/local means they
get deleted on a MySQL update, which is not what you want.