Skip to content

Commit

Permalink
Merge pull request #197404 from Homebrew/[email protected]
Browse files Browse the repository at this point in the history
[email protected]: drop protobuf workaround
  • Loading branch information
BrewTestBot authored Nov 12, 2024
2 parents 9709ec9 + 5ca2992 commit 9684787
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions Formula/m/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class MysqlAT80 < Formula

depends_on "bison" => :build
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "abseil"
depends_on "icu4c@76"
depends_on "libevent"
Expand Down Expand Up @@ -59,18 +59,8 @@ def datadir
end

def install
if OS.linux?
# Disable ABI checking
inreplace "cmake/abi_check.cmake", "RUN_ABI_CHECK 1", "RUN_ABI_CHECK 0"

# Work around build issue with Protobuf 22+ on Linux
# Ref: https://bugs.mysql.com/bug.php?id=113045
# Ref: https://bugs.mysql.com/bug.php?id=115163
inreplace "cmake/protobuf.cmake" do |s|
s.gsub! 'IF(APPLE AND WITH_PROTOBUF STREQUAL "system"', 'IF(WITH_PROTOBUF STREQUAL "system"'
s.gsub! ' INCLUDE REGEX "${HOMEBREW_HOME}.*")', ' INCLUDE REGEX "libabsl.*")'
end
end
# Disable ABI checking
inreplace "cmake/abi_check.cmake", "RUN_ABI_CHECK 1", "RUN_ABI_CHECK 0" if OS.linux?

icu4c = deps.find { |dep| dep.name.match?(/^icu4c(@\d+)?$/) }
.to_formula
Expand Down

0 comments on commit 9684787

Please sign in to comment.