From 3704704ff3eebac0ff42cd3ff20d29ade8f74d68 Mon Sep 17 00:00:00 2001 From: fauxpark Date: Sat, 16 Mar 2024 08:50:54 +1100 Subject: [PATCH 1/3] arm-none-eabi-binutils 2.41 --- Formula/arm-none-eabi-binutils.rb | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Formula/arm-none-eabi-binutils.rb b/Formula/arm-none-eabi-binutils.rb index 02edec7..fb61d13 100644 --- a/Formula/arm-none-eabi-binutils.rb +++ b/Formula/arm-none-eabi-binutils.rb @@ -2,9 +2,9 @@ class ArmNoneEabiBinutils < Formula desc "GNU Tools for ARM Embedded Processors - Binutils" homepage "https://www.gnu.org/software/binutils/binutils.html" - url "https://ftp.gnu.org/gnu/binutils/binutils-2.38.tar.xz" - mirror "https://ftpmirror.gnu.org/binutils/binutils-2.38.tar.xz" - sha256 "e316477a914f567eccc34d5d29785b8b0f5a10208d36bbacedcc39048ecfe024" + url "https://ftp.gnu.org/gnu/binutils/binutils-2.41.tar.xz" + mirror "https://ftpmirror.gnu.org/binutils/binutils-2.41.tar.xz" + sha256 "ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450" bottle do root_url "https://github.com/osx-cross/homebrew-arm/releases/download/arm-none-eabi-binutils-2.38" @@ -50,15 +50,7 @@ def install info.rmtree # info files conflict with native binutils end - def caveats - <<~EOS - For Mac computers with Apple silicon, arm-none-eabi-binutils might need Rosetta 2 to work properly. - You can learn more about Rosetta 2 here: - > https://support.apple.com/en-us/HT211861 - EOS - end - test do - assert_match "GNU ld (GNU Binutils) 2.38\n", `#{opt_prefix}/bin/arm-none-eabi-ld -v` + assert_match "GNU ld (GNU Binutils) 2.41\n", `#{opt_prefix}/bin/arm-none-eabi-ld -v` end end From 12518372a75fece58dd23537b9476650fab845ad Mon Sep 17 00:00:00 2001 From: fauxpark Date: Sat, 16 Mar 2024 09:37:05 +1100 Subject: [PATCH 2/3] Needs pkg-config? --- Formula/arm-none-eabi-binutils.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Formula/arm-none-eabi-binutils.rb b/Formula/arm-none-eabi-binutils.rb index fb61d13..f3cc844 100644 --- a/Formula/arm-none-eabi-binutils.rb +++ b/Formula/arm-none-eabi-binutils.rb @@ -18,6 +18,8 @@ class ArmNoneEabiBinutils < Formula "This is useful if you want to have multiple version of arm-none-eabi-gcc\n" \ "installed on the same machine" + depends_on "pkg-config" => :build + uses_from_macos "zlib" on_ventura :or_newer do From 047da6c18cec7c3c70d7568d700001a1ac69c1a8 Mon Sep 17 00:00:00 2001 From: fauxpark Date: Sat, 16 Mar 2024 11:51:56 +1100 Subject: [PATCH 3/3] texinfo for Monterey too? --- Formula/arm-none-eabi-binutils.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Formula/arm-none-eabi-binutils.rb b/Formula/arm-none-eabi-binutils.rb index f3cc844..a165b7e 100644 --- a/Formula/arm-none-eabi-binutils.rb +++ b/Formula/arm-none-eabi-binutils.rb @@ -19,13 +19,10 @@ class ArmNoneEabiBinutils < Formula "installed on the same machine" depends_on "pkg-config" => :build + depends_on "texinfo" => :build uses_from_macos "zlib" - on_ventura :or_newer do - depends_on "texinfo" => :build - end - def install # https://sourceware.org/bugzilla/show_bug.cgi?id=23424 ENV["CXXFLAGS"] = "-std=c++11 -Wno-c++11-narrowing"