Use mysql data directory if no previous percona data directory exists.
Remove std_cmake_path and restore CMAKE_INSTALL_PREFIX.
Use share.basename/mysql for INSTALL_MYSQLSHAREDIR.
Closes#16070.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This reverts commit adee531526.
Turns out one of the "other things" is a dealbreaker.
We only create kegs using a formula's canonical name. However, we do not
check that this is the case when mapping existing kegs back to formula
objects, and thus a keg with a name that happens to be an alias can fool
Homebrew into thinking the canonically-named keg exists.
So anything that enumerates kegs and then tries to do stuff with the
resulting formula objects will just break. This is obviously worse than
the debugger being broken, so reverting this for the time being.
The Readline class clashes with the Readline module from the Ruby
stdlib. This has mostly worked, but with the recent debugging support's
integration of IRB, it is no longer possible for them to coexist. So we
need to rename it.
The implications of this are:
- Anything that depends on readline will reinstall it as
"gnu-readline". Anything already installed will continue to function.
- "brew upgrade readline" will say "gnu-readline not installed", as
"readline" is now an alias.
- Probably other things.
So there are some downsides, but we will just have to deal with them.
Fixes#15776.
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 percona-server and those used to build software that links to it.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
conflicts_with is a thin wrapper around Requirement which simplifies
marking conflicts between formulae.
Closes#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. #9346.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This brew has been marked as keg_only because it can conflict with 'mysql' if
it's arelady installed. ($prefix/bin/mysql*)
Closes#7385.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>