@@ -23,14 +23,13 @@ class PerconaServerAT80 < Formula
2323 no_autobump! because : :requires_manual_review
2424
2525 bottle do
26- sha256 arm64_tahoe : "04f33cef72a0383b11561bfde6117334c1ea6b225f161420bc1eb1ca62eaf102"
27- sha256 arm64_sequoia : "3eed8303b8842a9387d698b7e28b7fed5030a0f26d1ef48fbd1c2db998dc3e78"
28- sha256 arm64_sonoma : "efe604f23093e3b617ecfb843c9b1eef30dfcd9cdbb56807f759a2bc711ab23c"
29- sha256 arm64_ventura : "3f6e7796a2836f1acae4f19d146c89e81d84b1fa2b373136742408f9f580084d"
30- sha256 sonoma : "58c116fa49bc7467eae2b13513aa9e409ed3e3e2157f1f4f2341a8ec06f20b65"
31- sha256 ventura : "203d62185a91e5cd10b59dc78e06626050b81304e95834208350afdaa180cf14"
32- sha256 arm64_linux : "572e1744e47cc0d2838b056cc0a90c848c8b37582edcfb222bb258a7fb5f0dd5"
33- sha256 x86_64_linux : "7dabd8dc9a0414296a8363912968b0f61f89fe05e023dd3c543e1c0a2e003bf3"
26+ rebuild 1
27+ sha256 arm64_tahoe : "164ba274b09d03ac72cd443984595456c5490667154d1c565af6ca3fd255d8c0"
28+ sha256 arm64_sequoia : "2eb34c976b4475cf5df268ef87a39418719448e89062e0225f9404b59fa965a4"
29+ sha256 arm64_sonoma : "ae437d4d8e987200aead52c08550f63ce0fade843d8b329cd2e3b8914cc875ed"
30+ sha256 sonoma : "ab7cbb3146ee5745c042896e7a4d4ff5c7123e73950e0ac52fe096edce50b760"
31+ sha256 arm64_linux : "dce4d5a31a9acde9c5a7659b7f12828045af75cb5efad0ad66496d42e97b04a7"
32+ sha256 x86_64_linux : "0676233db4dbf00bce0ec0c811b7e6e254bfa02d3eda2c72477667523034b223"
3433 end
3534
3635 keg_only :versioned_formula
@@ -45,7 +44,7 @@ class PerconaServerAT80 < Formula
4544 depends_on "lz4"
4645 depends_on "openldap" # Needs `ldap_set_urllist_proc`, not provided by LDAP.framework
4746 depends_on "openssl@3"
48- depends_on "protobuf@29 "
47+ depends_on "protobuf"
4948 depends_on "zlib" # Zlib 1.2.13+
5049 depends_on "zstd"
5150
@@ -70,58 +69,22 @@ class PerconaServerAT80 < Formula
7069 end
7170 end
7271
73- # Patch out check for Homebrew `boost`.
74- # This should not be necessary when building inside `brew`.
75- # https://github.com/Homebrew/homebrew-test-bot/pull/820
76- patch do
77- url "https://raw.githubusercontent.com/Homebrew/homebrew-core/1cf441a0/Patches/mysql/boost-check.patch"
78- sha256 "af27e4b82c84f958f91404a9661e999ccd1742f57853978d8baec2f993b51153"
79- end
80-
8172 # Fix for system ssl add_library error
8273 # Issue ref: https://perconadev.atlassian.net/jira/software/c/projects/PS/issues/PS-9641
8374 patch do
8475 url "https://github.com/percona/percona-server/commit/a693e5d67abf6f27f5284c86361604babec529c6.patch?full_index=1"
8576 sha256 "d4afcdfb0dd8dcb7c0f7e380a88605b515874628107295ab5b892e8f1e019604"
8677 end
8778
88- # FreeBSD patches for fixing build failure with newer clang
89- patch :p0 do
90- url "https://raw.githubusercontent.com/freebsd/freebsd-ports/1a02a961a2d53f21bf208f07903a97cc46f43e17/databases/mysql80-server/files/patch-sql_binlog__ostream.cc"
91- sha256 "16f86edd2daf5f6c87616781c9f51f76d4a695d55b354e44d639a823b1c3f681"
92- end
93-
94- patch :p0 do
95- url "https://raw.githubusercontent.com/freebsd/freebsd-ports/1a02a961a2d53f21bf208f07903a97cc46f43e17/databases/mysql80-server/files/patch-sql_mdl__context__backup.cc"
96- sha256 "501646e1cb6ac2ddc5eb42755d340443e4655741d6e76788f48751a2fb8f3775"
97- end
98-
99- patch :p0 do
100- url "https://raw.githubusercontent.com/freebsd/freebsd-ports/1a72b413508501423ddfa576f6f50681cef398fa/databases/mysql80-server/files/patch-sql_mdl__context__backup.h"
101- sha256 "69be131aca93a8a263a394d61e8f388a9f560d1b19fa0fe8a2f2609bbc9b817d"
102- end
103-
104- patch :p0 do
105- url "https://raw.githubusercontent.com/freebsd/freebsd-ports/1a02a961a2d53f21bf208f07903a97cc46f43e17/databases/mysql80-server/files/patch-sql_rpl__log__encryption.cc"
106- sha256 "bdadcf4317295d1847283e20dd7fbfa2df2c4acebf45d5a13d0670bc7311f7ba"
107- end
108-
109- patch :p0 do
110- url "https://raw.githubusercontent.com/freebsd/freebsd-ports/1a02a961a2d53f21bf208f07903a97cc46f43e17/databases/mysql80-server/files/patch-sql_stream__cipher.cc"
111- sha256 "ac74c60f6051223993c88e7a11ddd9512c951ac1401d719a2c3377efe1bee3cf"
112- end
113-
114- patch :p0 do
115- url "https://raw.githubusercontent.com/freebsd/freebsd-ports/1a72b413508501423ddfa576f6f50681cef398fa/databases/mysql80-server/files/patch-sql_stream__cipher.h"
116- sha256 "ab29351becd9ff8a6a3fcc37abcdfaace5dbc7176b776bce95e6679ee9f81efb"
117- end
118-
119- patch :p0 do
120- url "https://raw.githubusercontent.com/freebsd/freebsd-ports/1a02a961a2d53f21bf208f07903a97cc46f43e17/databases/mysql80-server/files/patch-unittest_gunit_stream__cipher-t.cc"
121- sha256 "9e7629a2174e754487737ef0d73c79fc1ed47ba54a982a3a4803e19c72c5dc0f"
79+ # Apply MySQL commit to support Protobuf >= 30
80+ patch do
81+ url "https://github.com/mysql/mysql-server/commit/4c1fdd1fb34a9a80a062357a54afe134a92f8abc.patch?full_index=1"
82+ sha256 "8943cf092d31f2ed788f9a86b11b27973ec310d53718f15f6d2dac618696e1a3"
12283 end
12384
124- # More fixes for new clang not covered by the FreeBSD patches.
85+ # Patch out check for Homebrew `boost`.
86+ # This should not be necessary when building inside `brew`.
87+ # https://github.com/Homebrew/homebrew-test-bot/pull/820
12588 patch :DATA
12689
12790 def datadir
@@ -300,16 +263,39 @@ def caveats
300263end
301264
302265__END__
303- diff --git i/sql/mf_iocache.cc w/sql/mf_iocache.cc
304- index 4a7695ff..f640f5a5 100644
305- --- i/sql/mf_iocache.cc
306- +++ w/sql/mf_iocache.cc
307- @@ -110,7 +110,7 @@ bool open_cached_file_encrypted(IO_CACHE *cache, const char *dir,
308-
309- /* Generate password, it is a random string. */
310- if (my_rand_buffer(password, sizeof(password)) != 0) DBUG_RETURN(true);
311- - password_str.append(password, sizeof(password));
312- + password_str.insert(password_str.end(), password, password + sizeof(password));
313-
314- auto encryptor = std::make_unique<Aes_ctr_encryptor>();
315- if (encryptor->open(password_str, 0)) DBUG_RETURN(true);
266+ diff --git a/CMakeLists.txt b/CMakeLists.txt
267+ index 22fa212..ad5f90e 100644
268+ --- a/CMakeLists.txt
269+ +++ b/CMakeLists.txt
270+ @@ -1927,31 +1927,6 @@ MYSQL_CHECK_RAPIDJSON()
271+ MYSQL_CHECK_FIDO()
272+ MYSQL_CHECK_FIDO_DLLS()
273+
274+ -IF(APPLE)
275+ - GET_FILENAME_COMPONENT(HOMEBREW_BASE ${HOMEBREW_HOME} DIRECTORY)
276+ - IF(EXISTS ${HOMEBREW_BASE}/include/boost)
277+ - FOREACH(SYSTEM_LIB ICU LIBEVENT LZ4 PROTOBUF ZSTD FIDO)
278+ - IF(WITH_${SYSTEM_LIB} STREQUAL "system")
279+ - MESSAGE(FATAL_ERROR
280+ - "WITH_${SYSTEM_LIB}=system is not compatible with Homebrew boost\n"
281+ - "MySQL depends on ${BOOST_PACKAGE_NAME} with a set of patches.\n"
282+ - "Including headers from ${HOMEBREW_BASE}/include "
283+ - "will break the build.\n"
284+ - "Please use WITH_${SYSTEM_LIB}=bundled\n"
285+ - "or do 'brew uninstall boost' or 'brew unlink boost'"
286+ - )
287+ - ENDIF()
288+ - ENDFOREACH()
289+ - ENDIF()
290+ - # Ensure that we look in /usr/local/include or /opt/homebrew/include
291+ - FOREACH(SYSTEM_LIB ICU LIBEVENT LZ4 PROTOBUF ZSTD FIDO)
292+ - IF(WITH_${SYSTEM_LIB} STREQUAL "system")
293+ - INCLUDE_DIRECTORIES(SYSTEM ${HOMEBREW_BASE}/include)
294+ - BREAK()
295+ - ENDIF()
296+ - ENDFOREACH()
297+ -ENDIF()
298+ -
299+ IF(WITH_AUTHENTICATION_FIDO OR WITH_AUTHENTICATION_CLIENT_PLUGINS)
300+ IF(WITH_FIDO STREQUAL "system" AND
301+ NOT WITH_SSL STREQUAL "system")
0 commit comments