@@ -7,19 +7,20 @@ class Samba < Formula
77 url "https://download.samba.org/pub/samba/stable/samba-4.21.2.tar.gz"
88 sha256 "bde66be3d2025cb949de38518ad2652f3795f824c7fa89d4e443ede1ae828ea6"
99 license "GPL-3.0-or-later"
10+ revision 1
1011
1112 livecheck do
1213 url "https://www.samba.org/samba/download/"
1314 regex ( /href=.*?samba[._-]v?(\d +(?:\. \d +)+)\. t/i )
1415 end
1516
1617 bottle do
17- sha256 arm64_sequoia : "81ffa7e7a8caa429a8e1dd701ecaa2b2e541defc970356cdffa56b3f60c8a75c "
18- sha256 arm64_sonoma : "47e491c656a41d217bc8c54ec0bef53be8eccbe30e865050faedf07d8155212b "
19- sha256 arm64_ventura : "c779512c5594fd9bcf481b6ab238a27e49fd26cedaee7b001060c2d116181d74 "
20- sha256 sonoma : "9f338dc5d27441d11fd62eb34cf26048d59035cd2e9c809d704fca0e51e526a1 "
21- sha256 ventura : "c0d88b1952c056bc37eb04d2ab7afff0801a51d65c9c877e534e1c439fcfa6fa "
22- sha256 x86_64_linux : "1d3f9a04277a848938298c6185a92df13e016b6ed43f840574850b1a55d61fc8 "
18+ sha256 arm64_sequoia : "7619dec787d24ae50195ccc8232da940eb9b3ee8c13743e380f01f9934f76266 "
19+ sha256 arm64_sonoma : "a02b6c78c34f97eadb09445bd1029b722eb32965991e6f79c2c17e3fc725052d "
20+ sha256 arm64_ventura : "6255f04c3845e3399a20b32f6735bde06359283fcf77c6ee8567b07987fda19d "
21+ sha256 sonoma : "2690ee2dfe0c0b1dc410059f4df97d088027e53f65d446fa6b352cb5de86a794 "
22+ sha256 ventura : "1a34ca730dc121b9ef1a876375cfd427523584bd1079a44cd7a388d7475795f5 "
23+ sha256 x86_64_linux : "af8bd2b780d28fe08107d4a081cecc97762ed95a7af2915a766dfd11f1993c72 "
2324 end
2425
2526 depends_on "bison" => :build
@@ -61,6 +62,15 @@ class Samba < Formula
6162 sha256 "3810e998308fba2e0f4f26043035032b027ce51ce5c8a52a8b8e340ca65f13e5"
6263 end
6364
65+ # upstream bug report, https://bugzilla.samba.org/show_bug.cgi?id=10791
66+ # https://bugzilla.samba.org/show_bug.cgi?id=10626
67+ # https://bugzilla.samba.org/show_bug.cgi?id=9665
68+ # upstream pr ref, https://gitlab.com/samba-team/samba/-/merge_requests/3902
69+ patch do
70+ url "https://gitlab.com/samba-team/samba/-/commit/a2736fe78a4e75e71b9bc53dc24c36d71b911d2a.diff"
71+ sha256 "7d1bf9eb26211e2ab9e3e67ae32308a3704ff9904ab2369e5d863e079ea8a03f"
72+ end
73+
6474 def install
6575 # Skip building test that fails on ARM with error: initializer element is not a compile-time constant
6676 inreplace "lib/ldb/wscript" , /\( 'test_ldb_comparison_fold',$/ , "\\ 0 enabled=False," if Hardware ::CPU . arm?
0 commit comments