From 93f3657f8ebe009eba8a81ed18c2ec4db034c756 Mon Sep 17 00:00:00 2001 From: Daeho Ro Date: Sun, 19 Jan 2025 14:34:17 +0900 Subject: [PATCH] percona-server@8.0 8.0.40-31 --- Formula/p/percona-server@8.0.rb | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/Formula/p/percona-server@8.0.rb b/Formula/p/percona-server@8.0.rb index 781391b904f08..571242973bb12 100644 --- a/Formula/p/percona-server@8.0.rb +++ b/Formula/p/percona-server@8.0.rb @@ -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 @@ -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 @@ -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 @@ -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") @@ -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"