Skip to content

Commit 053d0bf

Browse files
committed
samba: fix incorrect install_name for shared libraries on macOS
Signed-off-by: Rui Chen <[email protected]> samba: use upstream patch Signed-off-by: Rui Chen <[email protected]>
1 parent 4c15220 commit 053d0bf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Formula/s/samba.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ 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/"
@@ -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

Comments
 (0)