mariadb 10.2.7

Closes #15560.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Dan 2017-07-12 21:10:28 +02:00 committed by ilovezfs
parent eb262f777b
commit 8b01ff9831

View file

@ -1,9 +1,8 @@
class Mariadb < Formula
desc "Drop-in replacement for MySQL"
homepage "https://mariadb.org/"
url "https://ftp.osuosl.org/pub/mariadb/mariadb-10.2.6/source/mariadb-10.2.6.tar.gz"
sha256 "c385c76e40d6e5f0577eba021805da5f494a30c9ef51884baefe206d5658a2e5"
revision 1
url "https://ftp.osuosl.org/pub/mariadb/mariadb-10.2.7/source/mariadb-10.2.7.tar.gz"
sha256 "225ba1bbc48325ad38a9f433ff99da4641028f42404a29591cc370e4a676c0bc"
bottle do
sha256 "3230604da6568de8f1fb7e0bb7ef75691d397ae89841ec7d06014f7fcaa7362d" => :sierra
@ -23,7 +22,6 @@ class Mariadb < Formula
deprecated_option "with-tests" => "with-test"
depends_on "cmake" => :build
depends_on "pidof" unless MacOS.version >= :mountain_lion
depends_on "openssl"
conflicts_with "mysql", "mysql-cluster", "percona-server",
@ -34,21 +32,7 @@ class Mariadb < Formula
conflicts_with "mariadb-connector-c",
:because => "both install plugins"
# Remove for >= 10.2.7
# Upstream commit from 7 Jul 2017 "Fix for MDEV-13270: Wrong output for
# mariadb_config on OSX"
# See https://jira.mariadb.org/browse/MDEV-13270
resource "mariadb-config-patch" do
url "https://github.com/MariaDB/mariadb-connector-c/commit/3f356c0.patch?full_index=1"
sha256 "3f01377b6b806c5e6850c380df271c5835feb80434553a63e91528b40d3ac566"
end
def install
resource("mariadb-config-patch").stage do
system "patch", "-p1", "-i", Pathname.pwd/"3f356c0.patch", "-d",
buildpath/"libmariadb"
end
# 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.