Skip to content

Commit

Permalink
mysql 9.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bevanjkay committed Oct 20, 2024
1 parent 457bd58 commit 9f106f9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
File renamed without changes.
30 changes: 14 additions & 16 deletions Formula/m/mysql.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# typed: false

class Mysql < Formula
desc "Open source relational database management system"
homepage "https://dev.mysql.com/doc/refman/9.0/en/"
url "https://cdn.mysql.com/Downloads/MySQL-9.0/mysql-9.0.1.tar.gz"
sha256 "18fa65f1ea6aea71e418fe0548552d9a28de68e2b8bc3ba9536599eb459a6606"
homepage "https://dev.mysql.com/doc/refman/9.1/en/"
url "https://cdn.mysql.com/Downloads/MySQL-9.1/mysql-9.1.0.tar.gz"
sha256 "52c3675239bfd9d3c83224ff2002aa6e286fab97bf5b2b5ca1a85c9c347766fc"
license "GPL-2.0-only" => { with: "Universal-FOSS-exception-1.0" }
revision 4

livecheck do
url "https://dev.mysql.com/downloads/mysql/?tpl=files&os=src"
Expand Down Expand Up @@ -35,8 +36,11 @@ class Mysql < Formula
uses_from_macos "cyrus-sasl"
uses_from_macos "libedit"

on_macos do
depends_on "llvm" if DevelopmentTools.clang_build_version <= 1400
# std::string_view is not fully compatible with the libc++ shipped
# with ventura, so we need to use the LLVM libc++ instead.
on_ventura :or_older do
depends_on "llvm@18"
fails_with :clang
end

on_linux do
Expand All @@ -46,11 +50,6 @@ class Mysql < Formula

conflicts_with "mariadb", "percona-server", because: "both install the same binaries"

fails_with :clang do
build 1400
cause "Requires C++20"
end

fails_with :gcc do
version "9"
cause "Requires C++20"
Expand Down Expand Up @@ -78,18 +77,17 @@ def install

# 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
elsif DevelopmentTools.clang_build_version <= 1400
ENV.llvm_clang
elsif MacOS.version <= :ventura
# Compiler selection is not supported for versioned LLVM
ENV["HOMEBREW_CC"] = Formula["llvm@18"].opt_bin/"clang"
# Work around failure mixing newer `llvm` headers with older Xcode's libc++:
# Undefined symbols for architecture arm64:
# "std::exception_ptr::__from_native_exception_pointer(void*)", referenced from:
# std::exception_ptr std::make_exception_ptr[abi:ne180100]<std::runtime_error>(std::runtime_error) ...
ENV.prepend_path "HOMEBREW_LIBRARY_PATHS", Formula["llvm"].opt_lib/"c++"
ENV.prepend_path "HOMEBREW_LIBRARY_PATHS", Formula["llvm@18"].opt_lib/"c++"
end

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

0 comments on commit 9f106f9

Please sign in to comment.