Skip to content

Commit d803e22

Browse files
authored
Merge pull request Homebrew#182489 from Homebrew/libffcall-sonoma
libffcall: fix Sonoma ARM build
2 parents 4744882 + 9417222 commit d803e22

File tree

1 file changed

+91
-14
lines changed

1 file changed

+91
-14
lines changed

Formula/lib/libffcall.rb

Lines changed: 91 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,38 @@ class Libffcall < Formula
77
license "GPL-2.0-or-later"
88

99
bottle do
10-
sha256 cellar: :any, arm64_ventura: "cb0b3113b4075bd871c9dbc7c1c0af213e77b700aaedc4cf5532b1944015defc"
11-
sha256 cellar: :any, arm64_monterey: "58dd56d1ab429bde2b8078bb3737682b57a37a7d67b70e8c27bcc023f988e2fd"
12-
sha256 cellar: :any, arm64_big_sur: "d7ace5f73fe02c38febe33718fbb293e765f7d1909763b39dc280d410e2a1488"
13-
sha256 cellar: :any, sonoma: "3b70f3916012c4240807ddb397c4138d174367c587b6814b7f1970a282f2569e"
14-
sha256 cellar: :any, ventura: "ee2b7df162625a59cd9ac90a61a91a238138cf244a385c1c94dc50d90319d546"
15-
sha256 cellar: :any, monterey: "947d7c231e88bbf9a4037e15c75abb158334b895efb9ea15e698e340e0d95f6b"
16-
sha256 cellar: :any, big_sur: "61cb42231c842a5559808582e374420e058fe76cc60b47f08b383c2751536caa"
17-
sha256 cellar: :any, catalina: "1412d8bb030690981a6322f18a3ef686aaa3f7b1ab3e390be2767e83cb5160a5"
18-
sha256 cellar: :any, mojave: "093534e26c77187ebd27234802635357c458cfe6956edc618d6292e707bc5fdc"
19-
sha256 cellar: :any_skip_relocation, x86_64_linux: "4b9ade24ffa94a150150dd446d25f7fdee0497c98d334cbf9d4b3cc0ed649990"
10+
rebuild 1
11+
sha256 cellar: :any, arm64_sonoma: "81b1425ddfbafc4b45ea81966453bb799882b8416e5afb12782188b8fbe187ec"
12+
sha256 cellar: :any, arm64_ventura: "a8c90eb0454270ad27198e6e90c0731f6afef51095ec621b80a7a043754822e0"
13+
sha256 cellar: :any, arm64_monterey: "91b71a704643bddb2ccd847f70bca71b2f4f42f15dfbe090163efb30e834e9aa"
14+
sha256 cellar: :any, sonoma: "dd054182feae02cb566f5e587b1a8d325207d08ee4aea65d0fc1dc6b63c5fb3e"
15+
sha256 cellar: :any, ventura: "5f46b88ad65430756cb72c1d4998af731850e1c5b1a8ddd7867f08f7c574af34"
16+
sha256 cellar: :any, monterey: "40160028f3394161521a252e488bd7aaa5d2f08f226c794d3252d0d5e1622d32"
17+
sha256 cellar: :any_skip_relocation, x86_64_linux: "f068599b3b97c24dba0ebe1338f972e5de443b155dd2a174dcd516d7b8a39430"
18+
end
19+
20+
# Backport fix needed to build on Sonoma ARM
21+
on_arm do
22+
on_sonoma :or_newer do
23+
depends_on "autoconf" => :build
24+
depends_on "automake" => :build
25+
depends_on "libtool" => :build
26+
27+
patch :DATA # minimal diff to apply following commit
28+
patch do
29+
url "https://git.savannah.gnu.org/gitweb/?p=libffcall.git;a=patch;h=b35777b44209c0fa94f70320d9c7054220f31acb"
30+
sha256 "a120b64c77a8c493f6fc00545cc2c689cde16d009141590ad8fad0f0336124cc"
31+
end
32+
end
2033
end
2134

2235
def install
36+
if Hardware::CPU.arm? && OS.mac? && MacOS.version >= :sonoma
37+
cp Formula["libtool"].share.glob("aclocal/*"), buildpath/"m4"
38+
system "autoreconf", "--force", "--install", "--verbose", "-I", "gnulib-m4", "-I", "m4"
39+
end
2340
ENV.deparallelize
24-
system "./configure", "--disable-debug",
25-
"--disable-dependency-tracking",
26-
"--disable-silent-rules",
27-
"--prefix=#{prefix}"
41+
system "./configure", "--disable-silent-rules", *std_configure_args
2842
system "make"
2943
system "make", "install"
3044
end
@@ -58,3 +72,66 @@ def install
5872
assert_equal "true\na\n", output
5973
end
6074
end
75+
76+
__END__
77+
diff --git a/ChangeLog b/ChangeLog
78+
index eda04ef..0510f3e 100644
79+
--- a/ChangeLog
80+
+++ b/ChangeLog
81+
@@ -1,3 +1,7 @@
82+
+2024-07-12 Bruno Haible <[email protected]>
83+
+
84+
+ Switch to autoconf 2.72, automake 1.17.
85+
+
86+
2021-06-13 Bruno Haible <[email protected]>
87+
88+
Prepare for 2.4 release.
89+
diff --git a/NEWS b/NEWS
90+
index 5911682..d3dc00e 100644
91+
--- a/NEWS
92+
+++ b/NEWS
93+
@@ -1,3 +1,7 @@
94+
+* Added support for the following platforms:
95+
+ (Previously, a build on these platforms failed.)
96+
+ - loongarch64: Linux with lp64d ABI.
97+
+
98+
New in 2.4:
99+
100+
* Added support for the following platforms:
101+
diff --git a/callback/trampoline_r/trampoline.c b/callback/trampoline_r/trampoline.c
102+
index 5d4f8c2..089ce24 100644
103+
--- a/callback/trampoline_r/trampoline.c
104+
+++ b/callback/trampoline_r/trampoline.c
105+
@@ -1,7 +1,7 @@
106+
/* Trampoline construction */
107+
108+
/*
109+
- * Copyright 1995-2021 Bruno Haible <[email protected]>
110+
+ * Copyright 1995-2022 Bruno Haible <[email protected]>
111+
*
112+
* This program is free software: you can redistribute it and/or modify
113+
* it under the terms of the GNU General Public License as published by
114+
diff --git a/m4/codeexec.m4 b/m4/codeexec.m4
115+
index 4bf8a73..16a59af 100644
116+
--- a/m4/codeexec.m4
117+
+++ b/m4/codeexec.m4
118+
@@ -1,5 +1,5 @@
119+
dnl -*- Autoconf -*-
120+
-dnl Copyright (C) 1993-2020 Free Software Foundation, Inc.
121+
+dnl Copyright (C) 1993-2023 Free Software Foundation, Inc.
122+
dnl This file is free software, distributed under the terms of the GNU
123+
dnl General Public License as published by the Free Software Foundation;
124+
dnl either version 2 of the License, or (at your option) any later version.
125+
diff --git a/trampoline/trampoline.c b/trampoline/trampoline.c
126+
index 9b79e0d..7147c5f 100644
127+
--- a/trampoline/trampoline.c
128+
+++ b/trampoline/trampoline.c
129+
@@ -1,7 +1,7 @@
130+
/* Trampoline construction */
131+
132+
/*
133+
- * Copyright 1995-2021 Bruno Haible <[email protected]>
134+
+ * Copyright 1995-2022 Bruno Haible <[email protected]>
135+
*
136+
* This program is free software: you can redistribute it and/or modify
137+
* it under the terms of the GNU General Public License as published by

0 commit comments

Comments
 (0)