Skip to content

Commit

Permalink
[email protected] 8.0.40-31
Browse files Browse the repository at this point in the history
  • Loading branch information
daeho-ro committed Jan 19, 2025
1 parent 09f0909 commit 93f3657
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions Formula/p/[email protected]
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class PerconaServerAT80 < Formula
desc "Drop-in MySQL replacement"
homepage "https://www.percona.com"
url "https://downloads.percona.com/downloads/Percona-Server-8.0/Percona-Server-8.0.36-28/source/tarball/percona-server-8.0.36-28.tar.gz"
sha256 "8a4b44bd9cf79a38e6275e8f5f9d4e8d2c308854b71fd5bf5d1728fff43a6844"
url "https://downloads.percona.com/downloads/Percona-Server-8.0/Percona-Server-8.0.40-31/source/tarball/percona-server-8.0.40-31.tar.gz"
sha256 "1318670d8e176c24df74019f748f5f233e2787f865dd3d41d61790ab5a772c4e"
license "BSD-3-Clause"

livecheck do
Expand Down Expand Up @@ -69,17 +69,6 @@ class PerconaServerAT80 < Formula
end
end

# Backport support for newer Protobuf. Remove with 8.0.39
patch do
url "https://github.com/percona/percona-server/commit/089c011f8e2a865e4bd97715653b4bc0973c43a1.patch?full_index=1"
sha256 "aac166f579e636923abeb86cc89934efaf0185df35355aab2d08192d9bf9efd8"
end
# Backport support for Protobuf 22+ on Linux. Remove with 8.0.40
patch do
url "https://github.com/mysql/mysql-server/commit/269abc0409b22bb87ec88bd4d53dfb7a1403eace.patch?full_index=1"
sha256 "ffcee32804e7e1237907432adb3590fcbf30c625eea836df6760c05a312a84e1"
end

# Patch out check for Homebrew `boost`.
# This should not be necessary when building inside `brew`.
# https://github.com/Homebrew/homebrew-test-bot/pull/820
Expand All @@ -88,6 +77,13 @@ class PerconaServerAT80 < Formula
sha256 "af27e4b82c84f958f91404a9661e999ccd1742f57853978d8baec2f993b51153"
end

# Fix for system ssl add_library error
# Issue ref: https://perconadev.atlassian.net/jira/software/c/projects/PS/issues/PS-9641
patch do
url "https://github.com/percona/percona-server/commit/a693e5d67abf6f27f5284c86361604babec529c6.patch?full_index=1"
sha256 "d4afcdfb0dd8dcb7c0f7e380a88605b515874628107295ab5b892e8f1e019604"
end

def datadir
var/"mysql"
end
Expand All @@ -96,7 +92,7 @@ def install
# Remove bundled libraries other than explicitly allowed below.
# `boost` and `rapidjson` must use bundled copy due to patches.
# `lz4` is still needed due to xxhash.c used by mysqlgcs
keep = %w[coredumper duktape libkmip lz4 opensslpp rapidjson robin-hood-hashing]
keep = %w[coredumper duktape libkmip lz4 opensslpp rapidjson robin-hood-hashing unordered_dense]
(buildpath/"extra").each_child { |dir| rm_r(dir) unless keep.include?(dir.basename.to_s) }
(buildpath/"boost").install resource("boost")

Expand Down Expand Up @@ -147,6 +143,8 @@ def install
args << "-DALLOW_NO_SSE42=ON" if Hardware::CPU.intel? && (!OS.mac? || !MacOS.version.requires_sse42?)
args << "-DWITH_KERBEROS=system" unless OS.mac?

ENV.append "CXXFLAGS", "-std=c++17"

system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
Expand Down

0 comments on commit 93f3657

Please sign in to comment.