From fa705cae77e3ca95286ef1abc2be2cf5136e3786 Mon Sep 17 00:00:00 2001 From: Ladislas de Toldi Date: Mon, 28 Oct 2024 10:45:31 +0100 Subject: [PATCH 1/2] avr-gcc@13: revision bump --- Formula/avr-gcc@13.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Formula/avr-gcc@13.rb b/Formula/avr-gcc@13.rb index a75961b..95e9128 100644 --- a/Formula/avr-gcc@13.rb +++ b/Formula/avr-gcc@13.rb @@ -7,6 +7,7 @@ class AvrGccAT13 < Formula sha256 "e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da" license "GPL-3.0-or-later" => { with: "GCC-exception-3.1" } + revision 1 head "https://gcc.gnu.org/git/gcc.git", branch: "master" From c6342d501483b3de8077e6c7d1b3d4a0a2df1f61 Mon Sep 17 00:00:00 2001 From: Ladislas de Toldi Date: Mon, 28 Oct 2024 10:46:34 +0100 Subject: [PATCH 2/2] Upgrade to avr-libc v2.2.1 --- Formula/avr-gcc@13.rb | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Formula/avr-gcc@13.rb b/Formula/avr-gcc@13.rb index 95e9128..d9ca1c3 100644 --- a/Formula/avr-gcc@13.rb +++ b/Formula/avr-gcc@13.rb @@ -45,19 +45,11 @@ class AvrGccAT13 < Formula # GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib cxxstdlib_check :skip - current_build = build + build resource "avr-libc" do - url "https://download.savannah.gnu.org/releases/avr-libc/avr-libc-2.1.0.tar.bz2" - mirror "https://download-mirror.savannah.gnu.org/releases/avr-libc/avr-libc-2.1.0.tar.bz2" - sha256 "0b84cee5c08b5d5cba67c36125e5aaa85251bc9accfba5773bfa87bc34b654e8" - - if current_build.with? "ATMega168pbSupport" - patch do - url "https://raw.githubusercontent.com/osx-cross/homebrew-avr/d2e2566b06b90355952ed996707a0a1a24673cd3/Patch/avr-libc-add-mcu-atmega168pb.patch" - sha256 "7a2bf2e11cfd9335e8e143eecb94480b4871e8e1ac54392c2ee2d89010b43711" - end - end + url "https://github.com/avrdudes/avr-libc/releases/download/avr-libc-2_2_1-release/avr-libc-2.2.1.tar.bz2" + sha256 "006a6306cbbc938c3bdb583ac54f93fe7d7c8cf97f9cde91f91c6fb0273ab465" end if Hardware::CPU.arm?